]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Fix opening of SCL-definitions 58/1458/1
authorjsimomaa <jani.simomaa@gmail.com>
Thu, 1 Feb 2018 06:43:06 +0000 (08:43 +0200)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 13 Feb 2018 20:50:52 +0000 (22:50 +0200)
refs #7733

Change-Id: Iffab8f3330d2b491c6ec29728271c2f1a260d3b4
(cherry picked from commit bcf2330da2396b0fab4d01e0e41cb8cb8fee84ac)

bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/issues/SCLModuleIssueProvider.java
bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/search/SCLSearchResultPage.java

index 20a89d41b7fda21248ff55c73e0d1f74fdc1ff2b..0fbcff8ddb01fe2d414a124e40a7a735fffa12b8 100644 (file)
@@ -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);
                         }
                     });
                 }
index f38d8d539ead6f35c863b9c89bcb057c8ee02e53..8a8c5059cd852834a63ffa5437724b00ed0bdcd0 100644 (file)
@@ -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);
         }
     }