public final class RulerColumnPreferenceAdapter extends Object
Constructor and Description |
---|
RulerColumnPreferenceAdapter(IPreferenceStore store,
String key)
Creates a new preference adapter that will read and write under the specified key in the
given preference store.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public RulerColumnPreferenceAdapter(IPreferenceStore store, String key)
store
- the preference storekey
- the keypublic boolean isEnabled(RulerColumnDescriptor descriptor)
descriptor
- a ruler contribution descriptortrue
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
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.