Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnsgar Radermacher2016-10-18 09:26:15 +0000
committerAnsgar Radermacher2016-11-08 09:11:29 +0000
commite3861038e40246af014a887179685072875bd10b (patch)
treea13d25ae715a948759164c91491b3f81cff09837
parentb76d678c5b18d91ba5532071d10f284ea471dada (diff)
downloadorg.eclipse.papyrus-e3861038e40246af014a887179685072875bd10b.tar.gz
org.eclipse.papyrus-e3861038e40246af014a887179685072875bd10b.tar.xz
org.eclipse.papyrus-e3861038e40246af014a887179685072875bd10b.zip
Bug 505860 - [XText editor] Dangling stereotype application after editing with Xtext editor
- destroy created comment after removal (will also remove the applied stereotype)
-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