From: jsimomaa Date: Thu, 1 Feb 2018 06:43:06 +0000 (+0200) Subject: Fix opening of SCL-definitions X-Git-Tag: v1.43.0~136^2~609 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F15%2F1415%2F1;p=simantics%2Fplatform.git Fix opening of SCL-definitions refs #7733 Change-Id: Iffab8f3330d2b491c6ec29728271c2f1a260d3b4 --- 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); } }