Class ElementMatcher
java.lang.Object
org.eclipse.e4.ui.workbench.modeling.ElementMatcher
- All Implemented Interfaces:
Selector
This is an implementation of a Selector that implements the existing 'findElements'. Clients may
subclass this and override the 'select' method in order to define custom filters.
- Since:
- 1.1
-
Constructor Summary
ConstructorDescriptionElementMatcher
(String id, Class<?> clazz, String tag) ElementMatcher
(String id, Class<?> clazz, List<String> tagsToMatch) -
Method Summary
Modifier and TypeMethodDescriptionboolean
select
(MApplicationElement element) Call for each element to find matching elements
-
Constructor Details
-
ElementMatcher
- Parameters:
id
- The elementId of the desired elementclazz
- The class specification of the desired elementtag
- A tag which must be specified on the desired element
-
ElementMatcher
- Parameters:
id
- The elementId of the desired elementclazz
- The class specification of the desired elementtagsToMatch
- A list of tags which must all be specified on the desired element
-
-
Method Details