Package org.eclipse.ui.internal
Class CloseOthersHandler
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.core.commands.AbstractHandler
org.eclipse.ui.internal.AbstractEnabledHandler
org.eclipse.ui.internal.AbstractEvaluationHandler
org.eclipse.ui.internal.CloseOthersHandler
Closes all editors except the one that is active.
Replacement for CloseOthersHandler
- Since:
- 3.3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(ExecutionEvent event) Executes with the map of parameter values by name.protected ExpressionMethods inherited from class org.eclipse.ui.internal.AbstractEvaluationHandler
dispose, getEvaluationService, registerEnablementMethods inherited from class org.eclipse.ui.internal.AbstractEnabledHandler
isEnabled, setEnabledMethods inherited from class org.eclipse.core.commands.AbstractHandler
addHandlerListener, fireHandlerChanged, hasListeners, 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
-
CloseOthersHandler
public CloseOthersHandler()
-
-
Method Details
-
execute
Description copied from interface:IHandlerExecutes 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.
-
getEnabledWhenExpression
- Specified by:
getEnabledWhenExpressionin classAbstractEvaluationHandler
-