Package org.eclipse.ui.internal
Class CycleViewHandler
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.core.commands.AbstractHandler
org.eclipse.ui.internal.FilteredTableBaseHandler
org.eclipse.ui.internal.CycleViewHandler
- All Implemented Interfaces:
IHandler
,IHandler2
,IExecutableExtension
This handler is used to switch between parts using the keyboard.
Replacement for CyclePartAction
- Since:
- 3.3
-
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 void
addExistingReference
(List<IWorkbenchPartReference> refs, MPart part) Adds theIWorkbenchPartReference
contained in part's transient data, if exists.protected ParameterizedCommand
Get the backward command.protected ParameterizedCommand
Get the forward command.protected Object
getInput
(WorkbenchPage page) Add all items to the dialog in the activation orderprotected String
getTableHeader
(IWorkbenchPart activePart) Get TableHeader, return title for non-filtered lists.protected String
Returns the text for the givenWorkbenchPartReference
Methods inherited from class org.eclipse.ui.internal.FilteredTableBaseHandler
activate, addKeyListener, addKeyListener, addModifyListener, addMouseListener, addTraverseListener, cancel, clearTriggers, execute, getBackground, getBackwardTriggerSequences, getColumnLabelProvider, getCurrentItemIndex, getFilter, getForeground, getForwardTriggerSequences, getSelection, getTriggers, getWindow, isFiltered, keepOpen, ok, openDialog, setDialogLocation, setInitializationData, setLabelProvider, setMatcherString
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
-
CycleViewHandler
public CycleViewHandler()
-
-
Method Details
-
getInput
Description copied from class:FilteredTableBaseHandler
Add all items to the dialog in the activation order- Specified by:
getInput
in classFilteredTableBaseHandler
-
getWorkbenchPartReferenceText
Description copied from class:FilteredTableBaseHandler
Returns the text for the givenWorkbenchPartReference
- Overrides:
getWorkbenchPartReferenceText
in classFilteredTableBaseHandler
-
addExistingReference
Adds theIWorkbenchPartReference
contained in part's transient data, if exists. -
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
-
getTableHeader
Description copied from class:FilteredTableBaseHandler
Get TableHeader, return title for non-filtered lists. By default returns an empty String. Subclasses can use the active part to detect the type of object.- Overrides:
getTableHeader
in classFilteredTableBaseHandler
- Parameters:
activePart
- may be used in overrides
-