org.eclipse.xtext.ui.editor.occurrences
Class MarkOccurrenceActionContributor

java.lang.Object
  extended by org.eclipse.xtext.ui.editor.actions.AbstractToggleActionContributor
      extended by org.eclipse.xtext.ui.editor.occurrences.MarkOccurrenceActionContributor
All Implemented Interfaces:
IActionContributor

public class MarkOccurrenceActionContributor
extends AbstractToggleActionContributor
implements IActionContributor

Author:
Jan Koehnlein - Initial contribution and API

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.xtext.ui.editor.actions.AbstractToggleActionContributor
AbstractToggleActionContributor.InternalToggleAction
 
Nested classes/interfaces inherited from interface org.eclipse.xtext.ui.editor.actions.IActionContributor
IActionContributor.CompositeImpl
 
Field Summary
static java.lang.String EDITOR_MARK_OCCURRENCES
           
 
Constructor Summary
MarkOccurrenceActionContributor()
           
 
Method Summary
protected  void configureAction(org.eclipse.jface.action.Action action)
          Subclasses must set text, image, description, tooltip etc. here.
 void contributeActions(XtextEditor editor)
          hook used to contribute any actions on editor start up.
 void editorDisposed(XtextEditor editor)
           
protected  org.eclipse.jface.action.Action getAction()
           
 java.lang.String getPreferenceKey()
           
protected  void stateChanged(boolean newState)
           
 
Methods inherited from class org.eclipse.xtext.ui.editor.actions.AbstractToggleActionContributor
addPropertyChangeListener, getPreferenceStoreAccess, initialize, isPropertySet, removePropertyChangeListener, toggle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EDITOR_MARK_OCCURRENCES

public static final java.lang.String EDITOR_MARK_OCCURRENCES
See Also:
Constant Field Values
Constructor Detail

MarkOccurrenceActionContributor

public MarkOccurrenceActionContributor()
Method Detail

getAction

protected org.eclipse.jface.action.Action getAction()
Overrides:
getAction in class AbstractToggleActionContributor

contributeActions

public void contributeActions(XtextEditor editor)
Description copied from interface: IActionContributor
hook used to contribute any actions on editor start up.

Specified by:
contributeActions in interface IActionContributor

editorDisposed

public void editorDisposed(XtextEditor editor)
Specified by:
editorDisposed in interface IActionContributor

getPreferenceKey

public java.lang.String getPreferenceKey()
Specified by:
getPreferenceKey in class AbstractToggleActionContributor

stateChanged

protected void stateChanged(boolean newState)
Specified by:
stateChanged in class AbstractToggleActionContributor

configureAction

protected void configureAction(org.eclipse.jface.action.Action action)
Description copied from class: AbstractToggleActionContributor
Subclasses must set text, image, description, tooltip etc. here.

Specified by:
configureAction in class AbstractToggleActionContributor