diff options
Diffstat (limited to 'plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.common/src-common-uml/org/eclipse/papyrus/uml/diagram/common/edit/part/AppliedStereotypeLinkLabelEditPart.java')
-rw-r--r-- | plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.common/src-common-uml/org/eclipse/papyrus/uml/diagram/common/edit/part/AppliedStereotypeLinkLabelEditPart.java | 83 |
1 files changed, 0 insertions, 83 deletions
diff --git a/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.common/src-common-uml/org/eclipse/papyrus/uml/diagram/common/edit/part/AppliedStereotypeLinkLabelEditPart.java b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.common/src-common-uml/org/eclipse/papyrus/uml/diagram/common/edit/part/AppliedStereotypeLinkLabelEditPart.java deleted file mode 100644 index ed7894be2d6..00000000000 --- a/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.common/src-common-uml/org/eclipse/papyrus/uml/diagram/common/edit/part/AppliedStereotypeLinkLabelEditPart.java +++ /dev/null @@ -1,83 +0,0 @@ -/***************************************************************************** - * Copyright (c) 2011 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: - * - * CEA LIST - Initial API and implementation - * - *****************************************************************************/ -package org.eclipse.papyrus.uml.diagram.common.edit.part; - -import org.eclipse.gef.EditPolicy; -import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions; -import org.eclipse.gmf.runtime.notation.View; -import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.PapyrusLinkLabelDragPolicy; -import org.eclipse.papyrus.uml.diagram.common.editpolicies.IDirectEdition; - -/** - * Abstract non-diagram specific edit part for link label representing applied stereotypes. - * This class is adapted from edit parts generated by GMF Tooling. - */ -public class AppliedStereotypeLinkLabelEditPart extends AbstractElementLabelEditPart { - - /** Constructor */ - public AppliedStereotypeLinkLabelEditPart(View view) { - super(view); - addSnapBackLocation(); - } - - /** - * {@inheritDoc} - */ - @Override - protected void createDefaultEditPolicies() { - super.createDefaultEditPolicies(); - installEditPolicy(EditPolicy.PRIMARY_DRAG_ROLE, new PapyrusLinkLabelDragPolicy()); - } - - /** - * {@inheritDoc} - */ - @Override - protected boolean isEditable() { - return false; - } - - /** - * {@inheritDoc} - */ - @Override - public ParserOptions getParserOptions() { - return ParserOptions.NONE; - } - - /** - * Forbid direct edition on this label. - */ - @Override - public int getDirectEditionType() { - // The label is read-only (defined in GMFGen model) - return IDirectEdition.NO_DIRECT_EDITION; - } - - /** - * {@inheritDoc} - */ - @Override - public String getLabelRole() { - return "Stereotype";//$NON-NLS-1$ - } - - /** - * {@inheritDoc} - */ - @Override - public String getIconPathRole() { - return "";//$NON-NLS-1$ - } -} |