|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ui.contexts.EnabledSubmission
IContextService.activateContext
instead.
An instance of this class represents a request to enabled a context. An enabled submission specifies a list of conditions under which it would be appropriate for a particular context to be enabled. These conditions include things like the active part or the active shell. So, it is possible to say things like: "when the java editor is active, please consider enabling the 'editing java' context".
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.
IWorkbenchContextSupport
,
IContextService
Constructor Summary | |
---|---|
EnabledSubmission(String activePartId,
Shell activeShell,
IWorkbenchPartSite activeWorkbenchPartSite,
String contextId)
Deprecated. Creates a new instance of this class. |
Method Summary | |
---|---|
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 |
getContextId()
Deprecated. Returns the identifier of the context to be enabled. |
String |
toString()
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public EnabledSubmission(String activePartId, Shell activeShell, IWorkbenchPartSite activeWorkbenchPartSite, String contextId)
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
.contextId
- the identifier of the context to be enabled. Must not be
null
.Method Detail |
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 getContextId()
null
.public String toString()
Object.toString()
|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.