Skip to main content

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.

Jump to: navigation, search

Org.eclipse.ui.context

Revision as of 12:28, 6 March 2007 by Michael.grant.bbc.co.uk (Talk | contribs) (Added, as I couldn't see reference to this type of context elsewhere on the Eclipse wiki.)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.

Back to the top