public abstract class AbstractContributedRulerColumn extends Object implements IContributedRulerColumn
org.eclipse.ui.texteditor.rulerColumns
extension point.
Subclasses must have a zero-argument constructor so that they can be created by
IConfigurationElement.createExecutableExtension(String)
.
Constructor and Description |
---|
AbstractContributedRulerColumn() |
Modifier and Type | Method and Description |
---|---|
void |
columnCreated()
Hook method called after a column has been instantiated, but before it is
added to a
CompositeRuler and before
createControl
is called. |
void |
columnRemoved()
Hook method called after a column has been removed from the
CompositeRuler . |
RulerColumnDescriptor |
getDescriptor()
Returns the extension point descriptor of this ruler.
|
ITextEditor |
getEditor()
Returns the editor targeted by this ruler instance.
|
void |
setDescriptor(RulerColumnDescriptor descriptor)
Sets the extension point descriptor of this ruler.
|
void |
setEditor(ITextEditor editor)
Sets the editor (called right after the extension was instantiated).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createControl, getControl, getWidth, redraw, setFont, setModel
public final RulerColumnDescriptor getDescriptor()
IContributedRulerColumn
getDescriptor
in interface IContributedRulerColumn
null
if called before IContributedRulerColumn.columnCreated()
public final void setDescriptor(RulerColumnDescriptor descriptor)
IContributedRulerColumn
This method will be called by the framework and must not be called by clients.
setDescriptor
in interface IContributedRulerColumn
descriptor
- the extension point descriptorpublic final void setEditor(ITextEditor editor)
IContributedRulerColumn
This method will be called by the framework and must not be called by clients.
setEditor
in interface IContributedRulerColumn
editor
- the editor targeted by this ruler instancepublic final ITextEditor getEditor()
IContributedRulerColumn
getEditor
in interface IContributedRulerColumn
null
if called before IContributedRulerColumn.columnCreated()
public void columnCreated()
IContributedRulerColumn
CompositeRuler
and before
createControl
is called.
This happens when
columnCreated
in interface IContributedRulerColumn
public void columnRemoved()
IContributedRulerColumn
CompositeRuler
.
This happens when
The column will not be used after this method has been called. A new column will be instantiated if the same column type should be shown for the same editor.
columnRemoved
in interface IContributedRulerColumn
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.