Package org.eclipse.ui.texteditor.rulers
Class RulerColumnRegistry
- java.lang.Object
-
- org.eclipse.ui.texteditor.rulers.RulerColumnRegistry
-
public final class RulerColumnRegistry extends Object
A registry for all extensions to therulerColumnsextension point.- Since:
- 3.3
- Restriction:
- This class is not intended to be instantiated by clients.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RulerColumnDescriptorgetColumnDescriptor(String id)Returns theRulerColumnDescriptorwith the given identity,nullif no such descriptor exists.List<RulerColumnDescriptor>getColumnDescriptors()Returns the list ofRulerColumnDescriptors describing all extensions to therulerColumnsextension point.static RulerColumnRegistrygetDefault()Returns the default computer registry.voidreload()Reloads the extensions to the extension point.
-
-
-
Method Detail
-
getDefault
public static RulerColumnRegistry getDefault()
Returns the default computer registry.TODO keep this or add some other singleton, e.g. TextEditorPlugin?
- Returns:
- the singleton instance
-
getColumnDescriptors
public List<RulerColumnDescriptor> getColumnDescriptors()
Returns the list ofRulerColumnDescriptors describing all extensions to therulerColumnsextension point. The list's iterator traverses the descriptors in the ordering implied by the placement specifications of the contributions.The returned list is unmodifiable and guaranteed to never change. Note that the set of descriptors may change over time due to dynamic plug-in removal or addition.
- Returns:
- the sorted list of extensions to the
rulerColumnsextension point
-
getColumnDescriptor
public RulerColumnDescriptor getColumnDescriptor(String id)
Returns theRulerColumnDescriptorwith the given identity,nullif no such descriptor exists.- Parameters:
id- the identity of the ruler contribution as given in the extension point xml.- Returns:
- the
RulerColumnDescriptorwith the given identity,nullif no such descriptor exists
-
reload
public void reload()
Reloads the extensions to the extension point.This method can be called more than once in order to reload from a changed extension registry.
-
-