diff options
author | Céline Janssens | 2015-04-03 15:48:34 +0000 |
---|---|---|
committer | Céline Janssens | 2015-05-06 16:02:12 +0000 |
commit | d967634da6d51b18504fe6571bf590ae4da2026c (patch) | |
tree | 6198bf5c651776560ba9473bb7d1c5347420fca2 /plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus | |
parent | 6cf730c33da825452060cbc50a4cddeb35905c2e (diff) | |
download | org.eclipse.papyrus-d967634da6d51b18504fe6571bf590ae4da2026c.tar.gz org.eclipse.papyrus-d967634da6d51b18504fe6571bf590ae4da2026c.tar.xz org.eclipse.papyrus-d967634da6d51b18504fe6571bf590ae4da2026c.zip |
Bug 463903: [Stereotype Display] Objective 7: Plan a model
transformation for a compatibility with old models using EAnnotation.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=463903
Creation of Command for Migration of Stereotype Label
- Allow "AllDiagrams" in the DiagramType field
- Properties Migration
- Create new Helper for CommandExecution
- Enrich the CommandUtil class with additional method to execute
Commands
- Make the Applied Stereotype Helper as Deprecated
- Remove the EAnnotation Update when applying or unappling Stereotype
- Rename StereotypeDisplayUtils into StereotypeDisplayConstant
- Rename StereotypeDisplayHelper into StereotypeDisplayUtil
- Create StereotypeUserActionHelper
- Create StereotypeDisplayMigrationConstant
- Create Edit Policies for Migration
- Create Migration Edit Policies Provider
- Create Command to migrate Comment
- Disable the Delete Command on the Stereotype Comment Edit Part
- CSS match on StereotypeComment instead of [type = StereotypeComment]
- CSS match on Label[kind=StereotypeLabel]
- Avoid "This element is Imported" decoration for invisible Stereotype
View.
- Sychronise the Depth of the compartment Name with the Label Depth.
The Commands of AppliedStereotypeHelper have been dupplicated into
oep.uml.diagram.common.stereotype.diplay by changing the way those
Commands manipulate the Stereotype Display Object using the new
Structure.
Change-Id: I72eb4b7610774b05502b2908ee9071628c3087cb
Signed-off-by: Céline Janssens <Celine.Janssens@all4tec.net>
Diffstat (limited to 'plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus')
-rw-r--r-- | plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/uml/diagram/clazz/custom/command/DefferedAppliedStereotypeToDisplayCommand.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/uml/diagram/clazz/custom/command/DefferedAppliedStereotypeToDisplayCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/uml/diagram/clazz/custom/command/DefferedAppliedStereotypeToDisplayCommand.java index 74d38878380..72844000775 100644 --- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/uml/diagram/clazz/custom/command/DefferedAppliedStereotypeToDisplayCommand.java +++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.clazz/custom-src/org/eclipse/papyrus/uml/diagram/clazz/custom/command/DefferedAppliedStereotypeToDisplayCommand.java @@ -29,7 +29,12 @@ import org.eclipse.uml2.uml.Stereotype; /**
* The Class DefferedAppliedStereotypeToDisplayCommand used to set the list of applied stereotype to
* display
+ *
+ * @deprecated The Display of stereotype is now treated with notation View (Bug 455311)
+ * use the command into oep.uml.diagram.common.stereotype.display.command instead
+ *
*/
+@Deprecated
public class DefferedAppliedStereotypeToDisplayCommand extends CreateEAnnotationCommand {
/** The qualified namedepht. */
@@ -69,7 +74,7 @@ public class DefferedAppliedStereotypeToDisplayCommand extends CreateEAnnotation */
@Override
protected void doExecute() {
- View view = (View) adapter.getAdapter(View.class);
+ View view = adapter.getAdapter(View.class);
EObject view_element = view.getElement();
Element element = (Element) view_element;
Iterator<?> listStereotype = element.getAppliedStereotypes().iterator();
|