diff options
Diffstat (limited to 'plugins/core/org.eclipse.papyrus.modelexplorer/src/org/eclipse/papyrus/modelexplorer/handler/ValidateDelMarkersFromSubtreeHandler.java')
-rw-r--r-- | plugins/core/org.eclipse.papyrus.modelexplorer/src/org/eclipse/papyrus/modelexplorer/handler/ValidateDelMarkersFromSubtreeHandler.java | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/plugins/core/org.eclipse.papyrus.modelexplorer/src/org/eclipse/papyrus/modelexplorer/handler/ValidateDelMarkersFromSubtreeHandler.java b/plugins/core/org.eclipse.papyrus.modelexplorer/src/org/eclipse/papyrus/modelexplorer/handler/ValidateDelMarkersFromSubtreeHandler.java new file mode 100644 index 00000000000..61f94bd0072 --- /dev/null +++ b/plugins/core/org.eclipse.papyrus.modelexplorer/src/org/eclipse/papyrus/modelexplorer/handler/ValidateDelMarkersFromSubtreeHandler.java @@ -0,0 +1,33 @@ +/***************************************************************************** + * Copyright (c) 2010 CEA LIST. + * + * + * 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: + * Ansgar Radermacher (CEA LIST) ansgar.radermacher@cea.fr - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.modelexplorer.handler; + +import org.eclipse.emf.common.command.Command; +import org.eclipse.papyrus.modelexplorer.commands.ValidateDelMarkersFromSubtreeCommand; + +/** + * Action used for pasting either a model element or a shape (i.e. the model element represented + * by the shape). Delegates to PasteShapeOrElementCommand + * + * @author Ansgar Radermacher (CEA LIST) + */ +public class ValidateDelMarkersFromSubtreeHandler extends AbstractCommandHandler +{ + @Override + protected Command getCommand() { + // not useful to cache command, since selected element may change + return new GMFtoEMFCommandWrapper(new ValidateDelMarkersFromSubtreeCommand(getSelectedElement())); + } +} |