Jump to: navigation, search

Difference between revisions of "Eclipse4/API/AppContext"

< Eclipse4‎ | API
Line 43: Line 43:
 
<u>'''''What's 'getContext' for ?'''''</u>
 
<u>'''''What's 'getContext' for ?'''''</u>
  
=== EMenuService ===
+
=== EMenuService ===
  
asd
+
Provides a single API to register context menus.<br>
 +
 
 +
<u><span style="font-style: italic;"><span style="font-weight: bold;">In the UI Model a MPart can have any number of menus, each with a unique id. Do we need this or should we have a 'showMenu(id)' method ?</span></span></u><u><span style="font-style: italic;"><span style="font-weight: bold;" /></span></u>
  
 
=== ESelectionService ===
 
=== ESelectionService ===
  
 
asd
 
asd

Revision as of 15:54, 7 March 2013

Services and Context Values

This section will describe which elements are guaranteed to be available for injection through the IEclipseContext. The most common of these will be the 'standard' services but will also reference some other 'value' elements (i.e. the injected value is *not* an interface itself but some discreet value such as a preference or model event).

Basic Services

EModelService

This service presents API appropriate for working with the UI Model. If contains methods to search for model elements via a variety of search parameters a well as operations that can be used to manipulate the model to achieve changes in the UI.

EPartService

This service provides API that deals with the runtime aspects of managin the current workbench UI such as opening new parts or getting / setting the 'active' part...

EBindingService

This service allows manipulation of the key binding structures.

Some (many?) of the methods in this class appear to be more useful for the implementation rather than user API.

EContextService

Provides API to control the active 'chain' within a context structure.

Is this too low level to be useful for clients ?

ECommandService

Provides API to construct Commands.

Why is there no 'Execute' ?

EHandlerService

This provides API to manage Handlers.

Why do the Execute methods take in Parameterized Commands (perhaps Execute should be in the CommandService and take a Handler?)

What's 'getContext' for ?

EMenuService

Provides a single API to register context menus.

In the UI Model a MPart can have any number of menus, each with a unique id. Do we need this or should we have a 'showMenu(id)' method ?<span style="font-weight: bold;" />

ESelectionService

asd