Fix opening of SCL-definitions 15/1415/1
authorjsimomaa <jani.simomaa@gmail.com>
Thu, 1 Feb 2018 06:43:06 +0000 (08:43 +0200)
committerjsimomaa <jani.simomaa@gmail.com>
Thu, 1 Feb 2018 06:43:06 +0000 (08:43 +0200)
refs #7733

Change-Id: Iffab8f3330d2b491c6ec29728271c2f1a260d3b4

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);
         }
     }