Package org.eclipse.ui.handlers
Class ShowPerspectiveHandler
- java.lang.Object
-
- org.eclipse.core.commands.common.EventManager
-
- org.eclipse.core.commands.AbstractHandler
-
- org.eclipse.ui.handlers.ShowPerspectiveHandler
-
public final class ShowPerspectiveHandler extends AbstractHandler
Shows the given perspective. If no perspective is specified in the parameters, then this opens the perspective selection dialog.- Since:
- 3.1
-
-
Constructor Summary
Constructors Constructor Description ShowPerspectiveHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
execute(ExecutionEvent event)
Executes with the map of parameter values by name.-
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
-
-
-
-
Method Detail
-
execute
public Object execute(ExecutionEvent event) throws ExecutionException
Description copied from interface:IHandler
Executes with the map of parameter values by name.- Parameters:
event
- An event containing all the information about the current state of the application; must not benull
.- Returns:
- the result of the execution. Reserved for future use, must be
null
. - Throws:
ExecutionException
- if an exception occurred during execution.
-
-