From a59625950bcabb12a40ab5b38563cfa5d13c1b74 Mon Sep 17 00:00:00 2001 From: jsimomaa Date: Thu, 1 Feb 2018 08:43:06 +0200 Subject: [PATCH] Fix opening of SCL-definitions refs #7733 Change-Id: Iffab8f3330d2b491c6ec29728271c2f1a260d3b4 (cherry picked from commit bcf2330da2396b0fab4d01e0e41cb8cb8fee84ac) --- .../src/org/simantics/scl/ui/issues/SCLModuleIssueProvider.java | 2 +- .../src/org/simantics/scl/ui/search/SCLSearchResultPage.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/issues/SCLModuleIssueProvider.java b/bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/issues/SCLModuleIssueProvider.java index 20a89d41b..0fbcff8dd 100644 --- a/bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/issues/SCLModuleIssueProvider.java +++ b/bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/issues/SCLModuleIssueProvider.java @@ -116,7 +116,7 @@ public class SCLModuleIssueProvider implements SCLIssueProvider { result.add(new SCLIssuesTableEntry(moduleName, error) { @Override public void openLocation() { - OpenSCLDefinition.openDefinition(moduleName, error.location); + OpenSCLDefinition.scheduleOpenDefinition(moduleName, error.location); } }); } diff --git a/bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/search/SCLSearchResultPage.java b/bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/search/SCLSearchResultPage.java index f38d8d539..8a8c5059c 100644 --- a/bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/search/SCLSearchResultPage.java +++ b/bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/search/SCLSearchResultPage.java @@ -89,7 +89,7 @@ public class SCLSearchResultPage extends AbstractTextSearchViewPage { Object selection = ((StructuredSelection)event.getSelection()).getFirstElement(); if (selection != null) { SymbolReference reference = (SymbolReference) selection; - OpenSCLDefinition.openDefinition(reference.referrer.module, reference.referenceLocation); + OpenSCLDefinition.scheduleOpenDefinition(reference.referrer.module, reference.referenceLocation); } } -- 2.47.1