Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorysroh2017-04-26 18:19:06 +0000
committerysroh2017-04-26 18:48:12 +0000
commitdbda1a7b8b92837ea97473c23a249b97830789e6 (patch)
tree31004ed283de68f3dfd55428b8971a87b2d00ee7
parentcba328d9907a0849ec436eb1a3ff82d57c06211a (diff)
downloadorg.eclipse.papyrus-rt-dbda1a7b8b92837ea97473c23a249b97830789e6.tar.gz
org.eclipse.papyrus-rt-dbda1a7b8b92837ea97473c23a249b97830789e6.tar.xz
org.eclipse.papyrus-rt-dbda1a7b8b92837ea97473c23a249b97830789e6.zip
Bug 514635 - [Tooling] Selection in code snippet view causes exceptions
Remove unnecessary selection change causes trigger table to fail. Change-Id: I3283687f7d7fb06cb856e6bbe5e34a2ef810fd8c Signed-off-by: ysroh <ysroh@zeligsoft.com>
-rw-r--r--plugins/umlrt/tooling/org.eclipse.papyrusrt.umlrt.tooling.views.codesnippet/src/org/eclipse/papyrusrt/umlrt/tooling/views/codesnippet/internal/CodeSnippetPage.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/umlrt/tooling/org.eclipse.papyrusrt.umlrt.tooling.views.codesnippet/src/org/eclipse/papyrusrt/umlrt/tooling/views/codesnippet/internal/CodeSnippetPage.java b/plugins/umlrt/tooling/org.eclipse.papyrusrt.umlrt.tooling.views.codesnippet/src/org/eclipse/papyrusrt/umlrt/tooling/views/codesnippet/internal/CodeSnippetPage.java
index 11f41a6e6..ff944740c 100644
--- a/plugins/umlrt/tooling/org.eclipse.papyrusrt.umlrt.tooling.views.codesnippet/src/org/eclipse/papyrusrt/umlrt/tooling/views/codesnippet/internal/CodeSnippetPage.java
+++ b/plugins/umlrt/tooling/org.eclipse.papyrusrt.umlrt.tooling.views.codesnippet/src/org/eclipse/papyrusrt/umlrt/tooling/views/codesnippet/internal/CodeSnippetPage.java
@@ -138,7 +138,7 @@ public class CodeSnippetPage extends Page implements ICodeSnippetPage {
if (!"org.eclipse.ui.views.PropertySheet".equals(partId)) {
// Save selection to pass on to the property sheet.
// Ignore selection from the property sheet.
- currentWorkbenchSelection = (IStructuredSelection) selection;
+ currentWorkbenchSelection = new StructuredSelection(((IStructuredSelection) selection).toList());
}
if (selection.isEmpty()) {
@@ -179,8 +179,6 @@ public class CodeSnippetPage extends Page implements ICodeSnippetPage {
pageBook.showPage(defaultPage);
currentSelectedEObject = null;
}
-
- fireSelectionChange();
}
}

Back to the top