| java.lang.Object org.eclipse.ui.texteditor.rulers.RulerColumnPreferenceAdapter
RulerColumnPreferenceAdapter | final public class RulerColumnPreferenceAdapter (Code) | | Manages the preferences for ruler contributions stored in a preference store.
since: 3.3 |
Constructor Summary | |
public | RulerColumnPreferenceAdapter(IPreferenceStore store, String key) Creates a new preference adapter that will read and write under the specified key in the
given preference store. |
RulerColumnPreferenceAdapter | public RulerColumnPreferenceAdapter(IPreferenceStore store, String key)(Code) | | Creates a new preference adapter that will read and write under the specified key in the
given preference store.
Parameters: store - the preference store Parameters: key - the key |
isEnabled | public boolean isEnabled(RulerColumnDescriptor descriptor)(Code) | | Returns the enablement state of the given ruler contribution.
Parameters: descriptor - a ruler contribution descriptor true if the ruler is enabled, false otherwise |
setEnabled | public void setEnabled(RulerColumnDescriptor descriptor, boolean enabled)(Code) | | Sets the enablement state of the given ruler contribution.
Parameters: descriptor - a ruler contribution descriptor Parameters: enabled - true to enable the contribution, false todisable it |
toggle | public void toggle(RulerColumnDescriptor descriptor)(Code) | | Toggles the enablement state of given the ruler contribution.
Parameters: descriptor - a ruler contribution descriptor |
|
|