Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/edithelper/DefaultUMLEditHelper.java')
-rw-r--r--plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/edithelper/DefaultUMLEditHelper.java96
1 files changed, 0 insertions, 96 deletions
diff --git a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/edithelper/DefaultUMLEditHelper.java b/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/edithelper/DefaultUMLEditHelper.java
deleted file mode 100644
index 931cbc9f6c0..00000000000
--- a/plugins/uml/org.eclipse.papyrus.uml.elementtypesconfigurations/src/org/eclipse/papyrus/uml/elementtypesconfigurations/edithelper/DefaultUMLEditHelper.java
+++ /dev/null
@@ -1,96 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2016 CEA LIST and others.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * CEA LIST - Initial API and implementation
- *
- *****************************************************************************/
-
-package org.eclipse.papyrus.uml.elementtypesconfigurations.edithelper;
-
-import org.eclipse.gmf.runtime.common.core.command.ICommand;
-import org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest;
-import org.eclipse.papyrus.infra.gmfdiag.common.helper.DefaultEditHelper;
-import org.eclipse.papyrus.uml.elementtypesconfigurations.commands.ApplyProfileCommand;
-import org.eclipse.papyrus.uml.elementtypesconfigurations.commands.ApplyStereotypeCommand;
-import org.eclipse.papyrus.uml.elementtypesconfigurations.commands.SetStereotypeValueCommand;
-import org.eclipse.papyrus.uml.elementtypesconfigurations.commands.UnapplyProfileCommand;
-import org.eclipse.papyrus.uml.elementtypesconfigurations.commands.UnapplyStereotypeCommand;
-import org.eclipse.papyrus.uml.elementtypesconfigurations.requests.ApplyProfileRequest;
-import org.eclipse.papyrus.uml.elementtypesconfigurations.requests.ApplyStereotypeRequest;
-import org.eclipse.papyrus.uml.elementtypesconfigurations.requests.SetStereotypeValueRequest;
-import org.eclipse.papyrus.uml.elementtypesconfigurations.requests.UnapplyProfileRequest;
-import org.eclipse.papyrus.uml.elementtypesconfigurations.requests.UnapplyStereotypeRequest;
-
-public class DefaultUMLEditHelper extends DefaultEditHelper {
-
- /**
- * @see org.eclipse.papyrus.infra.gmfdiag.common.helper.DefaultEditHelper#getInsteadCommand(org.eclipse.gmf.runtime.emf.type.core.requests.IEditCommandRequest)
- *
- * @param req
- * @return
- */
- @Override
- protected ICommand getInsteadCommand(IEditCommandRequest req) {
-
- if (req instanceof ApplyProfileRequest) {
- return getApplyProfileCommand((ApplyProfileRequest) req);
- } else if (req instanceof UnapplyProfileRequest) {
- return getUnapplyProfileCommand((UnapplyProfileRequest) req);
- } else if (req instanceof ApplyStereotypeRequest) {
- return getApplyStereotypeCommand((ApplyStereotypeRequest) req);
- } else if (req instanceof UnapplyStereotypeRequest) {
- return getUnapplyStereotypeCommand((UnapplyStereotypeRequest) req);
- } else if (req instanceof SetStereotypeValueRequest) {
- return getSetStereotypeValueCommand((SetStereotypeValueRequest) req);
- }
-
- return super.getInsteadCommand(req);
- }
-
- /**
- * @param req
- * @return
- */
- protected ICommand getUnapplyProfileCommand(UnapplyProfileRequest req) {
- return new UnapplyProfileCommand(req, req.getEditingDomain(), req.getLabel());
- }
-
- /**
- * @param req
- * @return
- */
- protected ICommand getApplyProfileCommand(ApplyProfileRequest req) {
- return new ApplyProfileCommand(req, req.getEditingDomain(), req.getLabel());
- }
-
- /**
- * @param req
- * @return
- */
- protected ICommand getUnapplyStereotypeCommand(UnapplyStereotypeRequest req) {
- return new UnapplyStereotypeCommand(req, req.getEditingDomain(), req.getLabel());
- }
-
- /**
- * @param req
- * @return
- */
- protected ICommand getApplyStereotypeCommand(ApplyStereotypeRequest req) {
- return new ApplyStereotypeCommand(req, req.getEditingDomain(), req.getLabel());
- }
-
- /**
- * @param req
- * @return
- */
- protected ICommand getSetStereotypeValueCommand(SetStereotypeValueRequest req) {
- return new SetStereotypeValueCommand(req, req.getEditingDomain(), req.getLabel());
- }
-
-}

Back to the top