protected static class AbstractTextEditor.ColumnSupport extends Object implements IColumnSupport
This is currently only used to support vertical ruler columns.
Constructor and Description |
---|
AbstractTextEditor.ColumnSupport(AbstractTextEditor editor,
RulerColumnRegistry registry)
Creates a new column support for the given editor.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Removes and disposes all currently visible ruler columns.
|
protected void |
initializeColumn(IContributedRulerColumn column)
Hook to let subclasses initialize a newly created column.
|
boolean |
isColumnSupported(RulerColumnDescriptor descriptor)
Returns
true if the column described by descriptor is
supported by the receiver's editor, false if id is not the
identifier of a known column contribution, if the column does not target the editor, or if
the editor does not support contributed columns. |
boolean |
isColumnVisible(RulerColumnDescriptor descriptor)
Returns
true if the column described by descriptor is
currently showing, false if not. |
void |
setColumnVisible(RulerColumnDescriptor descriptor,
boolean visible)
Attempts to set the visibility of the column described by
descriptor . |
public AbstractTextEditor.ColumnSupport(AbstractTextEditor editor, RulerColumnRegistry registry)
editor
- the editorregistry
- the contribution registry to refer topublic final void setColumnVisible(RulerColumnDescriptor descriptor, boolean visible)
IColumnSupport
descriptor
. Nothing
happens if the visibility is already as requested, or if the column is not supported by the
editor.setColumnVisible
in interface IColumnSupport
descriptor
- the column descriptorvisible
- true
to show the column, false
to hide itprotected void initializeColumn(IContributedRulerColumn column)
Subclasses may extend this method.
column
- the created columnpublic final boolean isColumnVisible(RulerColumnDescriptor descriptor)
IColumnSupport
true
if the column described by descriptor
is
currently showing, false
if not.isColumnVisible
in interface IColumnSupport
descriptor
- the column descriptortrue
if the specified column is currently visiblepublic final boolean isColumnSupported(RulerColumnDescriptor descriptor)
IColumnSupport
true
if the column described by descriptor
is
supported by the receiver's editor, false
if id
is not the
identifier of a known column contribution, if the column does not target the editor, or if
the editor does not support contributed columns.isColumnSupported
in interface IColumnSupport
descriptor
- the column descriptortrue
if the specified column is supportedpublic void dispose()
Subclasses may extend this method.
dispose
in interface IColumnSupport
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.