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

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.SortOutlineContribution
All Implemented Interfaces:
IOutlineContribution, IPreferenceStoreInitializer

public class SortOutlineContribution
extends AbstractToggleOutlineContribution

Author:
Jan Koehnlein - Initial contribution and API

Nested Class Summary
static class SortOutlineContribution.DefaultComparator
           
 
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
SortOutlineContribution()
           
 
Method Summary
protected  void configureAction(org.eclipse.jface.action.Action action)
          Subclasses must set text, image, description, tooltip etc.
 void deregister(OutlinePage outlinePage)
           
 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, getPreferenceDefaultValue, 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

SortOutlineContribution

public SortOutlineContribution()
Method Detail

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

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