diff options
Diffstat (limited to 'plugins/toolsmiths/profilemigration/org.eclipse.papyrus.toolsmiths.profilemigration/src/org/eclipse/papyrus/toolsmiths/profilemigration/migrators/atomic/stereotype/IMoveStereotypeMigrator.java')
1 files changed, 42 insertions, 0 deletions
diff --git a/plugins/toolsmiths/profilemigration/org.eclipse.papyrus.toolsmiths.profilemigration/src/org/eclipse/papyrus/toolsmiths/profilemigration/migrators/atomic/stereotype/IMoveStereotypeMigrator.java b/plugins/toolsmiths/profilemigration/org.eclipse.papyrus.toolsmiths.profilemigration/src/org/eclipse/papyrus/toolsmiths/profilemigration/migrators/atomic/stereotype/IMoveStereotypeMigrator.java new file mode 100644 index 00000000000..5e8ce851f8e --- /dev/null +++ b/plugins/toolsmiths/profilemigration/org.eclipse.papyrus.toolsmiths.profilemigration/src/org/eclipse/papyrus/toolsmiths/profilemigration/migrators/atomic/stereotype/IMoveStereotypeMigrator.java @@ -0,0 +1,42 @@ +/***************************************************************************** + * Copyright (c) 2017 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: + * Pauline DEVILLE (CEA LIST) pauline.deville@cea.fr - Initial API and implementation + * + *****************************************************************************/ + +package org.eclipse.papyrus.toolsmiths.profilemigration.migrators.atomic.stereotype; + +import org.eclipse.papyrus.toolsmiths.profilemigration.migrators.atomic.IMoveMigrator; +import org.eclipse.uml2.uml.Stereotype; + +/** + * If a Stereotype is moved to another profile then the migration tool shall focus + * on the preservation of the stereotype applications available at the profiled model. + * + * If the stereotype was moved in a profile that is already applied on the + * profiled model then the migration is trivial and every application of + * this stereotype shall remain. + * + * If the stereotype was moved in a profile that is not already applied on the + * profiled model then the migration tool asks the designer if the profile + * should be applied. If the designer answers 'yes' every application of this + * stereotype shall remain conversely if the answer is 'no' then every + * application of this stereotype shall be deleted. + */ +public interface IMoveStereotypeMigrator extends IMoveMigrator { + + /** + * Get the moved stereotype + * + * @return the stereotype + */ + public Stereotype getStereotype(); +} |