Package org.eclipse.ui.texteditor.rulers
Class RulerColumnPreferenceAdapter
java.lang.Object
org.eclipse.ui.texteditor.rulers.RulerColumnPreferenceAdapter
Manages the preferences for ruler contributions stored in a preference store.
- Since:
- 3.3
-
Constructor Summary
ConstructorsConstructorDescriptionRulerColumnPreferenceAdapter(IPreferenceStore store, String key) Creates a new preference adapter that will read and write under the specified key in the given preference store. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisEnabled(RulerColumnDescriptor descriptor) Returns the enablement state of the given ruler contribution.voidsetEnabled(RulerColumnDescriptor descriptor, boolean enabled) Sets the enablement state of the given ruler contribution.voidtoggle(RulerColumnDescriptor descriptor) Toggles the enablement state of given the ruler contribution.
-
Constructor Details
-
RulerColumnPreferenceAdapter
Creates a new preference adapter that will read and write under the specified key in the given preference store.- Parameters:
store- the preference storekey- the key
-
-
Method Details
-
isEnabled
Returns the enablement state of the given ruler contribution.- Parameters:
descriptor- a ruler contribution descriptor- Returns:
trueif the ruler is enabled,falseotherwise
-
setEnabled
Sets the enablement state of the given ruler contribution.- Parameters:
descriptor- a ruler contribution descriptorenabled-trueto enable the contribution,falseto disable it
-
toggle
Toggles the enablement state of given the ruler contribution.- Parameters:
descriptor- a ruler contribution descriptor
-