|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ui.texteditor.AbstractTextEditor.ColumnSupport
protected static class AbstractTextEditor.ColumnSupport
Implements the ruler column support of for the given editor.
This is currently only used to support vertical ruler columns.
| Constructor Summary | |
|---|---|
AbstractTextEditor.ColumnSupport(AbstractTextEditor editor,
RulerColumnRegistry registry)
Creates a new column support for the given editor. |
|
| Method Summary | |
|---|---|
void |
dispose()
Removes and disposes all currently visible ruler columns. Subclasses may extend this method. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractTextEditor.ColumnSupport(AbstractTextEditor editor,
RulerColumnRegistry registry)
editor - the editorregistry - the contribution registry to refer to| Method Detail |
|---|
public final void setColumnVisible(RulerColumnDescriptor descriptor,
boolean visible)
IColumnSupportdescriptor. Nothing
happens if the visibility is already as requested, or if the column is not supported by the
editor.
setColumnVisible in interface IColumnSupportdescriptor - 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)
IColumnSupporttrue if the column described by descriptor is
currently showing, false if not.
isColumnVisible in interface IColumnSupportdescriptor - the column descriptor
true if the specified column is currently visiblepublic final boolean isColumnSupported(RulerColumnDescriptor descriptor)
IColumnSupporttrue 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 IColumnSupportdescriptor - the column descriptor
true if the specified column is supportedpublic void dispose()
Subclasses may extend this method.
dispose in interface IColumnSupport
|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2011. All rights reserved.