Package org.eclipse.ui.texteditor.rulers
Class RulerColumnDescriptor
java.lang.Object
org.eclipse.ui.texteditor.rulers.RulerColumnDescriptor
The description of an extension to the
org.eclipse.ui.workbench.texteditor.rulerColumns
extension point. Instances are
immutable. Instances can be obtained from a RulerColumnRegistry
.- Since:
- 3.3
- Restriction:
- This class is not intended to be instantiated by clients.
-
Method Summary
Modifier and TypeMethodDescriptioncreateColumn
(ITextEditor editor) Creates aIContributedRulerColumn
instance as described by the receiver.boolean
boolean
Returns the default enablement of the described extension.getIcon()
Returns the image descriptor of the described extension,null
if it does not have an image.getId()
Returns the identifier of the described extension.getName()
Returns the name of the described extension.int
hashCode()
boolean
isGlobal()
Returns the global property of the described extension.boolean
Returns the menu inclusion property of the described extension.boolean
matchesEditor
(ITextEditor editor) Returnstrue
if this contribution matches the passed editor,false
if not.toString()
-
Method Details
-
getId
Returns the identifier of the described extension.- Returns:
- the identifier of the described extension
-
getName
Returns the name of the described extension.- Returns:
- the name of the described extension
-
getIcon
Returns the image descriptor of the described extension,null
if it does not have an image.- Returns:
- the image descriptor of the described extension or
null
for no image
-
getDefaultEnablement
public boolean getDefaultEnablement()Returns the default enablement of the described extension. Editors that support this contribution should typically enable the column by default.- Returns:
- the default enablement of the described extension
-
isGlobal
public boolean isGlobal()Returns the global property of the described extension. Changing the visibility of a column with the global property set totrue
should typically affect all matching editors. Changing the visibility of a column with the global property set tofalse
should only affect the current editor.- Returns:
- the global property of the described extension
-
isIncludedInMenu
public boolean isIncludedInMenu()Returns the menu inclusion property of the described extension. A toggle menu entry should be inluded in the ruler context menu for columns with this property set totrue
.- Returns:
- the menu inclusion property of the described extension
-
matchesEditor
Returnstrue
if this contribution matches the passed editor,false
if not.- Parameters:
editor
- the editor to check- Returns:
true
if this contribution targets the passed editor
-
createColumn
public IContributedRulerColumn createColumn(ITextEditor editor) throws CoreException, InvalidRegistryObjectException Creates aIContributedRulerColumn
instance as described by the receiver. This may load the contributing plug-in.- Parameters:
editor
- the editor that loads the contributed column- Returns:
- the instantiated column
- Throws:
CoreException
- as thrown byIConfigurationElement.createExecutableExtension(String)
InvalidRegistryObjectException
- as thrown byIConfigurationElement.createExecutableExtension(String)
-
toString
-
hashCode
public int hashCode() -
equals
-