org.eclipse.xtext.ui.editor.outline.actions
Class LinkWithEditorOutlineContribution

java.lang.Object
  extended by org.eclipse.xtext.ui.editor.actions.AbstractToggleActionContributor
      extended by org.eclipse.xtext.ui.editor.outline.actions.AbstractToggleOutlineContribution
          extended by org.eclipse.xtext.ui.editor.outline.actions.LinkWithEditorOutlineContribution
All Implemented Interfaces:
IOutlineContribution, IPreferenceStoreInitializer

public class LinkWithEditorOutlineContribution
extends AbstractToggleOutlineContribution

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.outline.actions.IOutlineContribution
IOutlineContribution.All, IOutlineContribution.Composite, IOutlineContribution.LinkWithEditor, IOutlineContribution.Sort
 
Nested classes/interfaces inherited from interface org.eclipse.xtext.ui.editor.preferences.IPreferenceStoreInitializer
IPreferenceStoreInitializer.CompositeImpl
 
Field Summary
static java.lang.String PREFERENCE_KEY
           
 
Constructor Summary
LinkWithEditorOutlineContribution()
           
 
Method Summary
protected  void configureAction(org.eclipse.jface.action.Action action)
          Subclasses must set text, image, description, tooltip etc.
 void deregister(OutlinePage outlinePage)
           
protected  boolean getPreferenceDefaultValue()
           
 java.lang.String getPreferenceKey()
           
 void register(OutlinePage outlinePage)
           
protected  void stateChanged(boolean newState)
           
 
Methods inherited from class org.eclipse.xtext.ui.editor.actions.AbstractToggleActionContributor
addPropertyChangeListener, getAction, getPreferenceStoreAccess, initialize, isPropertySet, removePropertyChangeListener, toggle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.xtext.ui.editor.preferences.IPreferenceStoreInitializer
initialize
 

Field Detail

PREFERENCE_KEY

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

LinkWithEditorOutlineContribution

public LinkWithEditorOutlineContribution()
Method Detail

getPreferenceKey

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

getPreferenceDefaultValue

protected boolean getPreferenceDefaultValue()
Overrides:
getPreferenceDefaultValue 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

register

public void register(OutlinePage outlinePage)
Specified by:
register in interface IOutlineContribution
Overrides:
register in class AbstractToggleOutlineContribution

deregister

public void deregister(OutlinePage outlinePage)
Specified by:
deregister in interface IOutlineContribution
Overrides:
deregister in class AbstractToggleOutlineContribution