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
-
Method Summary
Modifier and TypeMethodDescriptionprotected ParameterizedCommand
Get the backward command.protected int
Get the index of the current item (not valid if there are no items).protected ViewerFilter
Return the filter to use.protected ParameterizedCommand
Get the forward command.protected Object
getInput
(WorkbenchPage page) Add all items to the dialog in the activation orderprotected boolean
isActiveEditor
(MPart model) True if the given model represents the active editorprotected boolean
True to show search text and enable filtering.protected boolean
isHiddenEditor
(MPart model) True is the given model represents an hidden editorprotected void
setLabelProvider
(TableViewerColumn tableViewerColumn) SpecializesFilteredTableBaseHandler.setLabelProvider(TableViewerColumn)
by providing custom styles to the table cellsprotected void
setMatcherString
(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, setInitializationData
Methods inherited from class org.eclipse.core.commands.AbstractHandler
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled, setEnabled
Methods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.core.commands.IHandler
getHandlerLabel
-
Constructor Details
-
WorkbookEditorsHandler
public WorkbookEditorsHandler()
-
-
Method Details
-
getInput
Description copied from class:FilteredTableBaseHandler
Add all items to the dialog in the activation order- Specified by:
getInput
in classFilteredTableBaseHandler
-
isFiltered
protected boolean isFiltered()Description copied from class:FilteredTableBaseHandler
True to show search text and enable filtering. False by default- Overrides:
isFiltered
in classFilteredTableBaseHandler
-
setMatcherString
Description copied from class:FilteredTableBaseHandler
Set the filter text entered by the User, does nothing by default- Overrides:
setMatcherString
in classFilteredTableBaseHandler
- Parameters:
pattern
- may be used in overrides
-
setLabelProvider
SpecializesFilteredTableBaseHandler.setLabelProvider(TableViewerColumn)
by providing custom styles to the table cells- Overrides:
setLabelProvider
in 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:FilteredTableBaseHandler
Return the filter to use. Null by default- Overrides:
getFilter
in classFilteredTableBaseHandler
-
getBackwardCommand
Description copied from class:FilteredTableBaseHandler
Get the backward command.- Specified by:
getBackwardCommand
in classFilteredTableBaseHandler
-
getForwardCommand
Description copied from class:FilteredTableBaseHandler
Get the forward command.- Specified by:
getForwardCommand
in classFilteredTableBaseHandler
-
getCurrentItemIndex
protected int getCurrentItemIndex()Description copied from class:FilteredTableBaseHandler
Get the index of the current item (not valid if there are no items).- Overrides:
getCurrentItemIndex
in classFilteredTableBaseHandler
-