Skip to main content

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.

Jump to: navigation, search

E4/Contexts/Lookup

< E4‎ | Contexts
Revision as of 09:40, 29 April 2010 by Unnamed Poltroon (Talk) (New page: == Lookup Usecases == We have the IEclipseContext hierarchy and we provide our framework data and framework services by a pattern of lookup strategies. [[E4/Contexts#Available_Services_i...)

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

Lookup Usecases

We have the IEclipseContext hierarchy and we provide our framework data and framework services by a pattern of lookup strategies. E4/Contexts#Available_Services_in_Eclipse_e4 contains some examples that we look up.

The lookups are done for explicit requests and for DI. Our general guiding principle is "When you ask your context a question, you should get back the appropriate answer."

But that translates into a number of different usecases:

  1. the application context expects to provide the application view of the state. i.e. you should be able to ask the application what the active window is, the current selection for the application, etc.
  2. some information is bounded by a container. Parts that track the activePart mean the activePart for the window that contains them.

Back to the top