Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptessier2013-01-31 10:36:09 +0000
committerptessier2013-01-31 10:36:09 +0000
commit257a4c1a671caa03c0f8a757ee28261bd6ab7a82 (patch)
treeedd2359812b00314b6252192cd122b70fc17e63b
parentd6476a4c2bbbdb44dadd381352eb3d49bf45beec (diff)
downloadorg.eclipse.papyrus-257a4c1a671caa03c0f8a757ee28261bd6ab7a82.tar.gz
org.eclipse.papyrus-257a4c1a671caa03c0f8a757ee28261bd6ab7a82.tar.xz
org.eclipse.papyrus-257a4c1a671caa03c0f8a757ee28261bd6ab7a82.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.java3
1 files changed, 3 insertions, 0 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 5d10ce20292..6ac70b721c3 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
@@ -191,6 +191,9 @@ public class CreateAppliedStereotypeCommentViewCommand extends RecordingCommand
while(currentView!=null) {
currentView=(View)currentView.eContainer();
if(currentView!=null){
+ if(!( currentView instanceof BasicCompartment)){
+ parents.addAll(currentView.getChildren());
+ }
parents.add(currentView);
}

Back to the top