Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnsgar Radermacher2016-10-18 05:26:15 -0400
committerGerrit Code Review @ Eclipse.org2016-10-21 08:50:17 -0400
commit82028f0193b6979c2cab050ed8a181850e6469e6 (patch)
tree41a50e49926b612257d7107ae21f1ceae76814e7 /plugins
parent685b59505a8c74bc1cfc4e84e4a7e94badfbc79f (diff)
downloadorg.eclipse.papyrus-82028f0193b6979c2cab050ed8a181850e6469e6.tar.gz
org.eclipse.papyrus-82028f0193b6979c2cab050ed8a181850e6469e6.tar.xz
org.eclipse.papyrus-82028f0193b6979c2cab050ed8a181850e6469e6.zip
Bug 505860 - [XText editor] Dangling stereotype application after editing with Xtext editor
- destroy created comment after removal (will also remove the applied stereotype)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/uml/xtext/org.eclipse.papyrus.uml.xtext.integration.ui/src/org/eclipse/papyrus/uml/xtext/integration/InvalidSyntaxAdapter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/uml/xtext/org.eclipse.papyrus.uml.xtext.integration.ui/src/org/eclipse/papyrus/uml/xtext/integration/InvalidSyntaxAdapter.java b/plugins/uml/xtext/org.eclipse.papyrus.uml.xtext.integration.ui/src/org/eclipse/papyrus/uml/xtext/integration/InvalidSyntaxAdapter.java
index c2705815526..662ada1f4a1 100644
--- a/plugins/uml/xtext/org.eclipse.papyrus.uml.xtext.integration.ui/src/org/eclipse/papyrus/uml/xtext/integration/InvalidSyntaxAdapter.java
+++ b/plugins/uml/xtext/org.eclipse.papyrus.uml.xtext.integration.ui/src/org/eclipse/papyrus/uml/xtext/integration/InvalidSyntaxAdapter.java
@@ -22,8 +22,8 @@ public class InvalidSyntaxAdapter extends EContentAdapter {
.getTextualRepresentationComment(element);
if (comment != null) {
element.getOwnedComments().remove(comment);
+ comment.destroy();
}
-
}
}
} \ No newline at end of file

Back to the top