Interface IWorkbenchPart3

    • Method Detail

      • addPartPropertyListener

        void addPartPropertyListener​(IPropertyChangeListener listener)
        Add a listener for changes in the arbitrary properties set.

        Note: this is a different set of properties than the ones covered by the IWorkbenchPartConstants.PROP_* constants.

        Parameters:
        listener - Must not be null.
      • removePartPropertyListener

        void removePartPropertyListener​(IPropertyChangeListener listener)
        Remove a change listener from the arbitrary properties set.

        Note: this is a different set of properties than the ones covered by the IWorkbenchPartConstants.PROP_* constants.

        Parameters:
        listener - Must not be null.
      • getPartProperty

        java.lang.String getPartProperty​(java.lang.String key)
        Return the value for the arbitrary property key, or null.
        Parameters:
        key - the arbitrary property. Must not be null.
        Returns:
        the property value, or null.
      • setPartProperty

        void setPartProperty​(java.lang.String key,
                             java.lang.String value)
        Set an arbitrary property on the part. It is the implementor's responsibility to fire the corresponding PropertyChangeEvent.

        A default implementation has been added to WorkbenchPart.

        Parameters:
        key - the arbitrary property. Must not be null.
        value - the property value. A null value will remove that property.
      • getPartProperties

        java.util.Map<java.lang.String,​java.lang.String> getPartProperties()
        Return an unmodifiable map of the arbitrary properties. This method can be used to save the properties during workbench save/restore.
        Returns:
        A Map of the properties. Must not be null.