org.eclipse.xtext.xtext.ui.graph
Class RailroadViewPreferences

java.lang.Object
  extended by org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer
      extended by org.eclipse.xtext.xtext.ui.graph.RailroadViewPreferences

public class RailroadViewPreferences
extends org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer

Handles preferences of the railroad diagram view.

Author:
Jan Koehnlein - Initial contribution and API

Field Summary
static java.lang.String LINK_WITH_EDITOR_KEY
           
 
Constructor Summary
RailroadViewPreferences()
           
 
Method Summary
 org.eclipse.ui.preferences.ScopedPreferenceStore getPreferenceStore()
           
 void initializeDefaultPreferences()
          This method is called by the preference initializer to initialize default preference values.
 boolean isLinkWithEditor()
           
 void setLinkWithEditor(boolean isLinkWithEditor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LINK_WITH_EDITOR_KEY

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

RailroadViewPreferences

public RailroadViewPreferences()
Method Detail

initializeDefaultPreferences

public void initializeDefaultPreferences()
Description copied from class: org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer
This method is called by the preference initializer to initialize default preference values. Clients should get the correct node for their bundle and then set the default values on it. For example:
                        public void initializeDefaultPreferences() {
                                Preferences node = new DefaultScope().getNode("my.bundle.id");
                                node.put(key, value);
                        }
 

Note: Clients should only set default preference values for their own bundle.

Note: Clients should not call this method. It will be called automatically by the preference initializer when the appropriate default preference node is accessed.

Specified by:
initializeDefaultPreferences in class org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer

isLinkWithEditor

public boolean isLinkWithEditor()

setLinkWithEditor

public void setLinkWithEditor(boolean isLinkWithEditor)

getPreferenceStore

public org.eclipse.ui.preferences.ScopedPreferenceStore getPreferenceStore()