Package org.eclipse.ui.internal
Class WorkbookEditorsHandler
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.core.commands.AbstractHandler
org.eclipse.ui.internal.FilteredTableBaseHandler
org.eclipse.ui.internal.WorkbookEditorsHandler
- All Implemented Interfaces:
IHandler,IHandler2,IExecutableExtension
Shows a list of open editor and parts in the current or last active workbook.
- Since:
- 3.4
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.ui.internal.FilteredTableBaseHandler
FilteredTableBaseHandler.FilteredTableItem -
Field Summary
Fields inherited from class org.eclipse.ui.internal.FilteredTableBaseHandler
commandBackward, commandForward, dialog, gotoDirection, page, result, window -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ParameterizedCommandGet the backward command.protected intGet the index of the current item (not valid if there are no items).protected ViewerFilterReturn the filter to use.protected ParameterizedCommandGet the forward command.protected ObjectgetInput(WorkbenchPage page) Add all items to the dialog in the activation orderprotected booleanisActiveEditor(MPart model) True if the given model represents the active editorprotected booleanTrue to show search text and enable filtering.protected booleanisHiddenEditor(MPart model) True is the given model represents an hidden editorprotected voidsetLabelProvider(TableViewerColumn tableViewerColumn) SpecializesFilteredTableBaseHandler.setLabelProvider(TableViewerColumn)by providing custom styles to the table cellsprotected voidsetMatcherString(String pattern) Set the filter text entered by the User, does nothing by defaultMethods inherited from class org.eclipse.ui.internal.FilteredTableBaseHandler
activate, addKeyListener, addKeyListener, addModifyListener, addMouseListener, addTraverseListener, cancel, clearTriggers, execute, getBackground, getBackwardTriggerSequences, getColumnLabelProvider, getForeground, getForwardTriggerSequences, getSelection, getTableHeader, getTriggers, getWindow, getWorkbenchPartReferenceText, keepOpen, ok, openDialog, setDialogLocation, setInitializationDataMethods inherited from class org.eclipse.core.commands.AbstractHandler
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled, setEnabledMethods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.core.commands.IHandler
getHandlerLabel
-
Constructor Details
-
WorkbookEditorsHandler
public WorkbookEditorsHandler()
-
-
Method Details
-
getInput
Description copied from class:FilteredTableBaseHandlerAdd all items to the dialog in the activation order- Specified by:
getInputin classFilteredTableBaseHandler
-
isFiltered
protected boolean isFiltered()Description copied from class:FilteredTableBaseHandlerTrue to show search text and enable filtering. False by default- Overrides:
isFilteredin classFilteredTableBaseHandler
-
setMatcherString
Description copied from class:FilteredTableBaseHandlerSet the filter text entered by the User, does nothing by default- Overrides:
setMatcherStringin classFilteredTableBaseHandler- Parameters:
pattern- may be used in overrides
-
setLabelProvider
SpecializesFilteredTableBaseHandler.setLabelProvider(TableViewerColumn)by providing custom styles to the table cells- Overrides:
setLabelProviderin classFilteredTableBaseHandler
-
isActiveEditor
True if the given model represents the active editor -
isHiddenEditor
True is the given model represents an hidden editor -
getFilter
Description copied from class:FilteredTableBaseHandlerReturn the filter to use. Null by default- Overrides:
getFilterin classFilteredTableBaseHandler
-
getBackwardCommand
Description copied from class:FilteredTableBaseHandlerGet the backward command.- Specified by:
getBackwardCommandin classFilteredTableBaseHandler
-
getForwardCommand
Description copied from class:FilteredTableBaseHandlerGet the forward command.- Specified by:
getForwardCommandin classFilteredTableBaseHandler
-
getCurrentItemIndex
protected int getCurrentItemIndex()Description copied from class:FilteredTableBaseHandlerGet the index of the current item (not valid if there are no items).- Overrides:
getCurrentItemIndexin classFilteredTableBaseHandler
-