Browse Source

Make browseIt action invoke Finder

This change makes #browseIt action invoke Finder.

This way it is possible to not only navigate to classes as before, but
also methods, selecting the method to navigate to in the source code.
Mariano Montone 3 năm trước cách đây
mục cha
commit
0db2f159e7
2 tập tin đã thay đổi với 5 bổ sung5 xóa
  1. 4 4
      src/Helios-Workspace.js
  2. 1 1
      src/Helios-Workspace.st

+ 4 - 4
src/Helios-Workspace.js

@@ -321,11 +321,11 @@ selector: "browseIt",
 protocol: "actions",
 //>>excludeStart("ide", pragmas.excludeIdeData);
 args: [],
-source: "browseIt\x0a\x09[ self model browse: self basicDoIt ] fork",
-referencedClasses: [],
+source: "browseIt\x0a\x09[ Finder findString: self currentLineOrSelection ] fork",
+referencedClasses: ["Finder"],
 //>>excludeEnd("ide");
 pragmas: [],
-messageSends: ["fork", "browse:", "model", "basicDoIt"]
+messageSends: ["fork", "findString:", "currentLineOrSelection"]
 }, function ($methodClass){ return function (){
 var self=this,$self=this;
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
@@ -335,7 +335,7 @@ $recv((function(){
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 return $core.withContext(function($ctx2) {
 //>>excludeEnd("ctx");
-return $recv($self._model())._browse_($self._basicDoIt());
+return $recv($globals.Finder)._findString_($self._currentLineOrSelection());
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)});
 //>>excludeEnd("ctx");

+ 1 - 1
src/Helios-Workspace.st

@@ -148,7 +148,7 @@ basicDoIt
 !
 
 browseIt
-	[ self model browse: self basicDoIt ] fork
+	[ Finder findString: self currentLineOrSelection ] fork
 !
 
 clear