|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ui.texteditor.rulers.RulerColumnPreferenceAdapter
Manages the preferences for ruler contributions stored in a preference store.
Constructor Summary | |
---|---|
RulerColumnPreferenceAdapter(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 | |
---|---|
boolean |
isEnabled(RulerColumnDescriptor descriptor)
Returns the enablement state of the given ruler contribution. |
void |
setEnabled(RulerColumnDescriptor descriptor,
boolean enabled)
Sets the enablement state of the given ruler contribution. |
void |
toggle(RulerColumnDescriptor descriptor)
Toggles the enablement state of given the ruler contribution. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RulerColumnPreferenceAdapter(IPreferenceStore store, String key)
store
- the preference storekey
- the keyMethod Detail |
public boolean isEnabled(RulerColumnDescriptor descriptor)
descriptor
- a ruler contribution descriptor
true
if the ruler is enabled, false
otherwisepublic void setEnabled(RulerColumnDescriptor descriptor, boolean enabled)
descriptor
- a ruler contribution descriptorenabled
- true
to enable the contribution, false
to
disable itpublic void toggle(RulerColumnDescriptor descriptor)
descriptor
- a ruler contribution descriptor
|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.