

Basic annotations for dependency injection by JSR330, can be added to a field, a constructor or a method. The following table gives an overview of dependency injection related annotations based on JSR330 and the Eclipse specific ones. ='basic:Part']]Ĭontribute to a MPart which is tagged with the Editor tag. When the MTrimBar is on top the side attribute is omitted, therefore is and. Menu:File to the bottom to the top trimbar. This xpath is more detailed than the one above since it also In most applications this would be the menu:File menu.Ĭontribute to the first Menu of the main menu. to every menu in it.Ĭontribute to the first child of the main menu. The slash (/) always addresses the root element of an XMLįile, which always is the MApplication element.Ĭontribute to all children of the main menu, e.g. Sample XPaths for the Application Model XPath The following table gives several examples how you can use XPath expressions to define the model element you want to extend. You can use the Eclipse framework to clone such a snippet and use the result object to attach it to the application model at runtime. Snippets can be used to pre-configure model parts which you want to create via your program. MPartDescriptor is a template for new parts.Ī new part based on this part descriptor can be created and shown via the Eclipse framework. In a handler you can query this property to provide a save possibility. If set to true, this property informs the Eclipse platform that this Part contains unsaved data (is dirty).

Represents the model element part, e.g., a view or an editor. Should be contained in a MPerspectiveStack. Represents a different layout of parts to be shown inside the window. Similar to MWindow but it allows containing toolbars for the windows (via the TrimBars model elements). It can register for events in the application life cycle and handle these events. All other model elements are contained in this object.Ī self-contained component typically without user interface. Eclipse model elements Model elementĭescribes the application object. The following table lists the types of the important model objects.
