Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "E4/Contexts"
< E4
(New page: = Contexts = In the general, execution or evaluation contexts, that can provide information to the currently executing code. == IEquinoxContext == [https://bugs.eclipse.org/bugs/show_bu...) |
(→IEquinoxContext) |
||
Line 6: | Line 6: | ||
[https://bugs.eclipse.org/bugs/show_bug.cgi?id=259423 Bug 259423 Add notion of "context" that can be injected into objects] | [https://bugs.eclipse.org/bugs/show_bug.cgi?id=259423 Bug 259423 Add notion of "context" that can be injected into objects] | ||
+ | |||
+ | == IServiceLocator == | ||
+ | |||
+ | In Eclipse 3.x we have the notion of part hierarchy: Workbench, WorkbenchWindow, WorkbenchPart (Editor/View), and nested part (MultiPageEditorPart or PageBookView). | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | == IEvaluationContext == | ||
+ | |||
+ | Provided by '''org.eclipse.core.expressions''' this is the application context used in 3.x by the IEvaluationService (and hence all declarative expressions like enabledWhen/activeWhen/visibleWhen) |
Revision as of 09:36, 9 January 2009
Contexts
In the general, execution or evaluation contexts, that can provide information to the currently executing code.
IEquinoxContext
Bug 259423 Add notion of "context" that can be injected into objects
IServiceLocator
In Eclipse 3.x we have the notion of part hierarchy: Workbench, WorkbenchWindow, WorkbenchPart (Editor/View), and nested part (MultiPageEditorPart or PageBookView).
IEvaluationContext
Provided by org.eclipse.core.expressions this is the application context used in 3.x by the IEvaluationService (and hence all declarative expressions like enabledWhen/activeWhen/visibleWhen)