Package org.eclipse.ui.navigator
Interface IExtensionStateModel
public interface IExtensionStateModel
Allows clients to coordinate state across components that are part of the
same logical extension.
That is, a content provider might vary how it exposes its content based on
the state of a specific property in the model. Interested parties may add
themselves as IPropertyChangeListeners to track changes in the state
model.
- Since:
- 3.2
- Restriction:
- This interface is not intended to be implemented by clients.
- Restriction:
- This interface is not intended to be extended by clients.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddPropertyChangeListener(IPropertyChangeListener aListener) booleangetBooleanProperty(String aPropertyName) getId()The id is used to look up the state model across different components of the same logical extension.intgetIntProperty(String aPropertyName) getProperty(String aPropertyName) getStringProperty(String aPropertyName) voidvoidsetBooleanProperty(String aPropertyName, boolean aPropertyValue) voidsetIntProperty(String aPropertyName, int aPropertyValue) voidsetProperty(String aPropertyName, Object aPropertyValue) voidsetStringProperty(String aPropertyName, String aPropertyValue)
-
Method Details
-
getId
String getId()The id is used to look up the state model across different components of the same logical extension. Generally, the id of the content extension is used.- Returns:
- The unique identifier of this state model.
-
getViewerId
String getViewerId()- Returns:
- The viewer id that this state model is associated with.
-
getStringProperty
- Parameters:
aPropertyName- The name of a given property- Returns:
- The current value of the property.
-
getBooleanProperty
- Parameters:
aPropertyName- The name of a given property- Returns:
- The current value of the property.
-
getIntProperty
- Parameters:
aPropertyName- The name of a given property- Returns:
- The current value of the property.
-
getProperty
- Parameters:
aPropertyName- The name of a given property- Returns:
- The current value of the property.
-
setStringProperty
- Parameters:
aPropertyName- The name of a given propertyaPropertyValue- The new value of a the given property.
-
setBooleanProperty
- Parameters:
aPropertyName- The name of a given propertyaPropertyValue- The new value of a the given property.
-
setIntProperty
- Parameters:
aPropertyName- The name of a given propertyaPropertyValue- The new value of a the given property.
-
setProperty
- Parameters:
aPropertyName- The name of a given propertyaPropertyValue- The new value of a the given property.
-
addPropertyChangeListener
- Parameters:
aListener- An implementation ofIPropertyChangeListenerthat should be notified when changes occur in this model.
-
removePropertyChangeListener
- Parameters:
aListener- An implementation ofIPropertyChangeListenerthat should no longer be notified when changes occur in this model.
-