diff options
Diffstat (limited to 'plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/uml/diagram/clazz/custom/policies/AppliedStereotypeEnumerationLiteralDisplayEditPolicy.java')
-rw-r--r-- | plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/uml/diagram/clazz/custom/policies/AppliedStereotypeEnumerationLiteralDisplayEditPolicy.java | 108 |
1 files changed, 54 insertions, 54 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/uml/diagram/clazz/custom/policies/AppliedStereotypeEnumerationLiteralDisplayEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/uml/diagram/clazz/custom/policies/AppliedStereotypeEnumerationLiteralDisplayEditPolicy.java index 37f27734225..de28feee30f 100644 --- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/uml/diagram/clazz/custom/policies/AppliedStereotypeEnumerationLiteralDisplayEditPolicy.java +++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/uml/diagram/clazz/custom/policies/AppliedStereotypeEnumerationLiteralDisplayEditPolicy.java @@ -1,54 +1,54 @@ -/*****************************************************************************
- * Copyright (c) 2015 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:
- * Celine JANSSENS (ALL4TEC) celine.janssens@all4tec.net - Initial API and implementation
- * Celine JANSSENS (ALL4TEC) celine.janssens@all4tec.net - Bug 472034
- *
- *****************************************************************************/
-
-package org.eclipse.papyrus.uml.diagram.clazz.custom.policies;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.gef.GraphicalEditPart;
-import org.eclipse.papyrus.uml.diagram.common.editpolicies.AbstractAppliedStereotypeDisplayEditPolicy;
-import org.eclipse.papyrus.uml.diagram.common.helper.EnumerationLiteralLabelHelper;
-import org.eclipse.uml2.uml.EnumerationLiteral;
-
-/**
- * This Policy is to be used for Enumeration Literal Edit Part to manage the stereotype display
- *
- * @author Céline JANSSENS
- *
- */
-public class AppliedStereotypeEnumerationLiteralDisplayEditPolicy extends AbstractAppliedStereotypeDisplayEditPolicy {
- /**
- * {@inheritDoc}
- */
- @Override
- protected EnumerationLiteral getUMLElement() {
- EObject element = super.getUMLElement();
- EnumerationLiteral literal = null;
- if (element instanceof EnumerationLiteral) {
- literal = (EnumerationLiteral) element;
- }
- return literal;
- }
-
-
- /**
- * {@inheritDoc}
- */
- @Override
- public void refreshDisplay() {
- // calls the helper for this edit Part
- EnumerationLiteralLabelHelper.getInstance().refreshEditPartDisplay((GraphicalEditPart) getHost());
- }
-
-
-}
+/***************************************************************************** + * Copyright (c) 2015 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: + * Celine JANSSENS (ALL4TEC) celine.janssens@all4tec.net - Initial API and implementation + * Celine JANSSENS (ALL4TEC) celine.janssens@all4tec.net - Bug 472034 + * + *****************************************************************************/ + +package org.eclipse.papyrus.uml.diagram.clazz.custom.policies; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.gef.GraphicalEditPart; +import org.eclipse.papyrus.uml.diagram.common.editpolicies.AbstractAppliedStereotypeDisplayEditPolicy; +import org.eclipse.papyrus.uml.diagram.common.helper.EnumerationLiteralLabelHelper; +import org.eclipse.uml2.uml.EnumerationLiteral; + +/** + * This Policy is to be used for Enumeration Literal Edit Part to manage the stereotype display + * + * @author Céline JANSSENS + * + */ +public class AppliedStereotypeEnumerationLiteralDisplayEditPolicy extends AbstractAppliedStereotypeDisplayEditPolicy { + /** + * {@inheritDoc} + */ + @Override + protected EnumerationLiteral getUMLElement() { + EObject element = super.getUMLElement(); + EnumerationLiteral literal = null; + if (element instanceof EnumerationLiteral) { + literal = (EnumerationLiteral) element; + } + return literal; + } + + + /** + * {@inheritDoc} + */ + @Override + public void refreshDisplay() { + // calls the helper for this edit Part + EnumerationLiteralLabelHelper.getInstance().refreshEditPartDisplay((GraphicalEditPart) getHost()); + } + + +} |