Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.ui.texteditor.rulers
Class RulerColumnPreferenceAdapter


java.lang.Object
  extended by 
org.eclipse.ui.texteditor.rulers.RulerColumnPreferenceAdapter

public final class RulerColumnPreferenceAdapter
extends Object

Manages the preferences for ruler contributions stored in a preference store.

Since:
3.3

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

RulerColumnPreferenceAdapter

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.

Parameters:
store - the preference store
key - the key
Method Detail

isEnabled

public boolean isEnabled(
RulerColumnDescriptor descriptor)
Returns the enablement state of the given ruler contribution.

Parameters:
descriptor - a ruler contribution descriptor
Returns:
true if the ruler is enabled, false otherwise

setEnabled

public void setEnabled(
RulerColumnDescriptor descriptor,
                       boolean enabled)
Sets the enablement state of the given ruler contribution.

Parameters:
descriptor - a ruler contribution descriptor
enabled - true to enable the contribution, false to disable it

toggle

public void toggle(
RulerColumnDescriptor descriptor)
Toggles the enablement state of given the ruler contribution.

Parameters:
descriptor - a ruler contribution descriptor

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire