Class PropertyEditingSupport

    • Constructor Detail

      • PropertyEditingSupport

        public PropertyEditingSupport​(ColumnViewer viewer,
                                      IPropertySourceProvider propertySourceProvider,
                                      Object propertyID)
        Creates a new instance to be used with the given viewer, based on the given property source provider and property ID.
        Parameters:
        viewer - the column viewer
        propertySourceProvider - the property source provider
        propertyID - the property ID
    • Method Detail

      • canEdit

        protected boolean canEdit​(Object object)
        Description copied from class: EditingSupport
        Is the cell editable
        Specified by:
        canEdit in class EditingSupport
        Parameters:
        object - the model element
        Returns:
        true if editable
      • getValue

        protected Object getValue​(Object object)
        Description copied from class: EditingSupport
        Get the value to set to the editor
        Specified by:
        getValue in class EditingSupport
        Parameters:
        object - the model element
        Returns:
        the value shown
      • setValue

        protected void setValue​(Object object,
                                Object value)
        Description copied from class: EditingSupport
        Sets the new value on the given element. Note that implementers need to ensure that getViewer().update(element, null) or similar methods are called, either directly or through some kind of listener mechanism on the implementer's model, to cause the new value to appear in the viewer.

        Subclasses should overwrite.

        Specified by:
        setValue in class EditingSupport
        Parameters:
        object - the model element
        value - the new value