Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptessier2013-01-31 12:42:10 +0000
committerptessier2013-01-31 12:42:10 +0000
commitcb1c2e406ec88500a82cf227e7882f1556c5b091 (patch)
tree3081187320c99a7f97fac759bfdad7d490df32d5
parent008f45b3861d912e6a1579c2df10e97935262939 (diff)
downloadorg.eclipse.papyrus-cb1c2e406ec88500a82cf227e7882f1556c5b091.tar.gz
org.eclipse.papyrus-cb1c2e406ec88500a82cf227e7882f1556c5b091.tar.xz
org.eclipse.papyrus-cb1c2e406ec88500a82cf227e7882f1556c5b091.zip
269492: [All Diagrams] Display properties of a applied stereotypes as a " comment"
https://bugs.eclipse.org/bugs/show_bug.cgi?id=269492
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.stereotype.edition/src/org/eclipse/papyrus/uml/diagram/stereotype/edition/command/CreateAppliedStereotypeCommentViewCommand.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.stereotype.edition/src/org/eclipse/papyrus/uml/diagram/stereotype/edition/command/CreateAppliedStereotypeCommentViewCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.stereotype.edition/src/org/eclipse/papyrus/uml/diagram/stereotype/edition/command/CreateAppliedStereotypeCommentViewCommand.java
index 6ac70b721c3..2265a33bbd9 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.stereotype.edition/src/org/eclipse/papyrus/uml/diagram/stereotype/edition/command/CreateAppliedStereotypeCommentViewCommand.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.stereotype.edition/src/org/eclipse/papyrus/uml/diagram/stereotype/edition/command/CreateAppliedStereotypeCommentViewCommand.java
@@ -24,6 +24,7 @@ import org.eclipse.gmf.runtime.diagram.core.util.ViewUtil;
import org.eclipse.gmf.runtime.notation.BasicCompartment;
import org.eclipse.gmf.runtime.notation.Bounds;
import org.eclipse.gmf.runtime.notation.Connector;
+import org.eclipse.gmf.runtime.notation.DecorationNode;
import org.eclipse.gmf.runtime.notation.EObjectValueStyle;
import org.eclipse.gmf.runtime.notation.Edge;
import org.eclipse.gmf.runtime.notation.IdentityAnchor;
@@ -191,8 +192,8 @@ public class CreateAppliedStereotypeCommentViewCommand extends RecordingCommand
while(currentView!=null) {
currentView=(View)currentView.eContainer();
if(currentView!=null){
- if(!( currentView instanceof BasicCompartment)){
- parents.addAll(currentView.getChildren());
+ if(!( currentView instanceof DecorationNode)&&!( currentView instanceof BasicCompartment)){
+ //parents.addAll(currentView.getChildren());
}
parents.add(currentView);
}

Back to the top