Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Org.eclipse.ui.context
Example context for a hypothetical AMPLE language editor:
<extension point="org.eclipse.ui.contexts"> <context name="AMPLE mode" description="AMPLE mode" parentId="org.eclipse.ui.textEditorScope" id="uk.co.example.ampleEditorScope" /> </extension>
The context can be changed programmatically by any plug-in. For example, you can change the context whenever your view or editor becomes active, using AbstractTextEditor.setKeyBindingScopes(). When the context is active, any key bindings associated with it also become active, and vice versa.