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 RulerColumnRegistry


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

public final class RulerColumnRegistry
extends Object

A registry for all extensions to the rulerColumns extension point.

Since:
3.3
Restriction:
This class is not intended to be instantiated by clients.

Method Summary
  RulerColumnDescriptor getColumnDescriptor ( String id)
          Returns the RulerColumnDescriptor with the given identity, null if no such descriptor exists.
  List getColumnDescriptors ()
          Returns the list of RulerColumnDescriptors describing all extensions to the rulerColumns extension point.
static  RulerColumnRegistry getDefault ()
          Returns the default computer registry.
 void reload ()
          Reloads the extensions to the extension point.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 getColumnDescriptors()
Returns the list of RulerColumnDescriptors describing all extensions to the rulerColumns extension 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 rulerColumns extension point (element type: RulerColumnDescriptor)

getColumnDescriptor

public 
RulerColumnDescriptor getColumnDescriptor(
String id)
Returns the RulerColumnDescriptor with the given identity, null if no such descriptor exists.

Parameters:
id - the identity of the ruler contribution as given in the extension point xml.
Returns:
the RulerColumnDescriptor with the given identity, null if 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.


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