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

E4/EAS/Model Service

< E4‎ | EAS

EModelService provides the ability to access model elements. The most generic usage is to seach for certain model elements via the method findElements(MUIElement searchRoot, String id, Class<T> clazz, List<String> tagsToMatch). The searchRoot is the model element from which the search will start, e.g. MApplication would be the root of the whole model. id, clazz and tagstoMatch define search criterias for model elements which can be combined.

For example to find the part with the id "mypart" use

List<MPart> findElements = service.findElements(application, "mypart", MPart.class, null);

Back to the top