org.eclipse.xtext.ui.editor.actions
Class AbstractToggleActionContributor
java.lang.Object
org.eclipse.xtext.ui.editor.actions.AbstractToggleActionContributor
- Direct Known Subclasses:
- AbstractToggleOutlineContribution, MarkOccurrenceActionContributor
public abstract class AbstractToggleActionContributor
- extends java.lang.Object
- Author:
- Jan Koehnlein - Initial contribution and API
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractToggleActionContributor
public AbstractToggleActionContributor()
getPreferenceKey
public abstract java.lang.String getPreferenceKey()
stateChanged
protected abstract void stateChanged(boolean newState)
isPropertySet
protected boolean isPropertySet()
getPreferenceStoreAccess
protected IPreferenceStoreAccess getPreferenceStoreAccess()
toggle
protected void toggle()
configureAction
protected abstract void configureAction(org.eclipse.jface.action.Action action)
- Subclasses must set text, image, description, tooltip etc. here.
getAction
protected org.eclipse.jface.action.Action getAction()
initialize
public void initialize(IPreferenceStoreAccess preferenceStoreAccess)
addPropertyChangeListener
protected void addPropertyChangeListener()
removePropertyChangeListener
protected void removePropertyChangeListener()