Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'extraplugins/eastadl/org.eclipse.papyrus.eastadl.service.types/src/org/eclipse/papyrus/eastadl/service/types/filter/EastadlCommandFilter.java')
-rw-r--r--extraplugins/eastadl/org.eclipse.papyrus.eastadl.service.types/src/org/eclipse/papyrus/eastadl/service/types/filter/EastadlCommandFilter.java11
1 files changed, 7 insertions, 4 deletions
diff --git a/extraplugins/eastadl/org.eclipse.papyrus.eastadl.service.types/src/org/eclipse/papyrus/eastadl/service/types/filter/EastadlCommandFilter.java b/extraplugins/eastadl/org.eclipse.papyrus.eastadl.service.types/src/org/eclipse/papyrus/eastadl/service/types/filter/EastadlCommandFilter.java
index be17bb2ad2a..d933ee2ab94 100644
--- a/extraplugins/eastadl/org.eclipse.papyrus.eastadl.service.types/src/org/eclipse/papyrus/eastadl/service/types/filter/EastadlCommandFilter.java
+++ b/extraplugins/eastadl/org.eclipse.papyrus.eastadl.service.types/src/org/eclipse/papyrus/eastadl/service/types/filter/EastadlCommandFilter.java
@@ -12,21 +12,24 @@ import org.eclipse.papyrus.uml.service.types.filter.ICommandFilter;
public class EastadlCommandFilter implements ICommandFilter {
public static final EastadlCommandFilter INSTANCE = new EastadlCommandFilter();
+
private EastadlCommandFilter() {
-
+
}
+
private List<IElementType> visibleCommands;
+
@Override
public List<IElementType> getVisibleCommands() {
if (visibleCommands == null) {
List<IElementType> localVisibleCommands = new ArrayList<IElementType>();
localVisibleCommands = new ArrayList<IElementType>();
-
+
localVisibleCommands.add(EastadlElementTypes.FUNCTION_ALLOCATE);
-
+
localVisibleCommands.add(UMLElementTypes.PROPERTY);
-
+
this.visibleCommands = Collections.unmodifiableList(localVisibleCommands);
}
return visibleCommands;

Back to the top