diff options
Diffstat (limited to 'plugins/infra/emf/org.eclipse.papyrus.infra.emf.appearance/src/org/eclipse/papyrus/infra/emf/appearance/commands/SetQualifiedNameDepthCommand.java')
-rw-r--r-- | plugins/infra/emf/org.eclipse.papyrus.infra.emf.appearance/src/org/eclipse/papyrus/infra/emf/appearance/commands/SetQualifiedNameDepthCommand.java | 110 |
1 files changed, 55 insertions, 55 deletions
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.appearance/src/org/eclipse/papyrus/infra/emf/appearance/commands/SetQualifiedNameDepthCommand.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.appearance/src/org/eclipse/papyrus/infra/emf/appearance/commands/SetQualifiedNameDepthCommand.java index 0ce0af51691..762930a4a40 100644 --- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.appearance/src/org/eclipse/papyrus/infra/emf/appearance/commands/SetQualifiedNameDepthCommand.java +++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.appearance/src/org/eclipse/papyrus/infra/emf/appearance/commands/SetQualifiedNameDepthCommand.java @@ -1,55 +1,55 @@ -/*****************************************************************************
- * Copyright (c) 2008 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:
- * Patrick Tessier (CEA LIST) Patrick.tessier@cea.fr - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.infra.emf.appearance.commands;
-
-import org.eclipse.emf.ecore.EAnnotation;
-import org.eclipse.emf.ecore.EModelElement;
-import org.eclipse.emf.transaction.TransactionalEditingDomain;
-import org.eclipse.papyrus.infra.emf.appearance.helper.VisualInformationPapyrusConstants;
-import org.eclipse.papyrus.infra.emf.commands.CreateEAnnotationCommand;
-
-/**
- * The Class SetQualifiedNameDepthCommand.
- */
-public class SetQualifiedNameDepthCommand extends CreateEAnnotationCommand {
-
- /** The qualified namedepth. */
- private String qualifiedNamedepth;
-
- /**
- * Instantiates a new sets the qualified name depth command.
- *
- * @param domain
- * the domain
- * @param object
- * the object
- * @param depth
- * the depth
- */
- public SetQualifiedNameDepthCommand(TransactionalEditingDomain domain, EModelElement object, int depth) {
- super(domain, object, VisualInformationPapyrusConstants.QUALIFIED_NAME);
- this.qualifiedNamedepth = "" + depth;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- protected void doExecute() {
- EAnnotation qualifiedNameEAnnotation = createEAnnotation();
- replaceEannotation(qualifiedNameEAnnotation, getObject());
- replaceEntry(qualifiedNameEAnnotation, VisualInformationPapyrusConstants.QUALIFIED_NAME_DEPTH, qualifiedNamedepth);
- }
-
-}
+/***************************************************************************** + * Copyright (c) 2008 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: + * Patrick Tessier (CEA LIST) Patrick.tessier@cea.fr - Initial API and implementation + * + *****************************************************************************/ +package org.eclipse.papyrus.infra.emf.appearance.commands; + +import org.eclipse.emf.ecore.EAnnotation; +import org.eclipse.emf.ecore.EModelElement; +import org.eclipse.emf.transaction.TransactionalEditingDomain; +import org.eclipse.papyrus.infra.emf.appearance.helper.VisualInformationPapyrusConstants; +import org.eclipse.papyrus.infra.emf.commands.CreateEAnnotationCommand; + +/** + * The Class SetQualifiedNameDepthCommand. + */ +public class SetQualifiedNameDepthCommand extends CreateEAnnotationCommand { + + /** The qualified namedepth. */ + private String qualifiedNamedepth; + + /** + * Instantiates a new sets the qualified name depth command. + * + * @param domain + * the domain + * @param object + * the object + * @param depth + * the depth + */ + public SetQualifiedNameDepthCommand(TransactionalEditingDomain domain, EModelElement object, int depth) { + super(domain, object, VisualInformationPapyrusConstants.QUALIFIED_NAME); + this.qualifiedNamedepth = "" + depth; + } + + /** + * {@inheritDoc} + */ + @Override + protected void doExecute() { + EAnnotation qualifiedNameEAnnotation = createEAnnotation(); + replaceEannotation(qualifiedNameEAnnotation, getObject()); + replaceEntry(qualifiedNameEAnnotation, VisualInformationPapyrusConstants.QUALIFIED_NAME_DEPTH, qualifiedNamedepth); + } + +} |