From ea48a20561464c3cbb7895d430583669a9f82fcc Mon Sep 17 00:00:00 2001 From: Camille Letavernier Date: Thu, 21 Aug 2014 13:37:18 +0200 Subject: [Code style] Apply clean-up and formatter on Extra plug-ins --- .../eastadl/service/types/filter/EastadlCommandFilter.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'extraplugins/eastadl/org.eclipse.papyrus.eastadl.service.types/src/org/eclipse/papyrus/eastadl/service/types/filter') 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 visibleCommands; + @Override public List getVisibleCommands() { if (visibleCommands == null) { List localVisibleCommands = new ArrayList(); localVisibleCommands = new ArrayList(); - + localVisibleCommands.add(EastadlElementTypes.FUNCTION_ALLOCATE); - + localVisibleCommands.add(UMLElementTypes.PROPERTY); - + this.visibleCommands = Collections.unmodifiableList(localVisibleCommands); } return visibleCommands; -- cgit v1.2.3