IHandlerService.activateHandler
instead.public final class HandlerSubmission extends Object implements Comparable
The workbench considers all of the submissions it has received and choses the ones it views as the best possible match.
This class is not intended to be extended by clients.
Note: this class has a natural ordering that is inconsistent with equals.
IWorkbenchCommandSupport
,
IHandlerService
Constructor and Description |
---|
HandlerSubmission(String activePartId,
Shell activeShell,
IWorkbenchPartSite activeWorkbenchPartSite,
String commandId,
IHandler handler,
Priority priority)
Deprecated.
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object object)
Deprecated.
|
String |
getActivePartId()
Deprecated.
Returns the identifier of the part that must be active for this request
to be considered.
|
Shell |
getActiveShell()
Deprecated.
Returns the shell that must be active for this request to be considered.
|
IWorkbenchPartSite |
getActiveWorkbenchPartSite()
Deprecated.
Returns the workbench part site of the part that must be active for this
request to be considered.
|
String |
getCommandId()
Deprecated.
Returns the identifier of the command to be handled.
|
IHandler |
getHandler()
Deprecated.
Returns the handler.
|
Priority |
getPriority()
Deprecated.
Returns the priority.
|
String |
toString()
Deprecated.
|
public HandlerSubmission(String activePartId, Shell activeShell, IWorkbenchPartSite activeWorkbenchPartSite, String commandId, IHandler handler, Priority priority)
activePartId
- the identifier of the part that must be active for this
request to be considered. May be null
.activeShell
- the shell that must be active for this request to be
considered. May be null
.activeWorkbenchPartSite
- the workbench part site of the part that must be active for
this request to be considered. May be null
.commandId
- the identifier of the command to be handled. Must not be
null
.handler
- the handler. Must not be null
.priority
- the priority. Must not be null
.public int compareTo(Object object)
compareTo
in interface Comparable
Comparable.compareTo(java.lang.Object)
public String getActivePartId()
null
.public Shell getActiveShell()
null
.public IWorkbenchPartSite getActiveWorkbenchPartSite()
null
.public String getCommandId()
null
.public IHandler getHandler()
null
.public Priority getPriority()
null
.public String toString()
toString
in class Object
Object.toString()
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.