Explorar o código

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 %!s(int64=3) %!d(string=hai) anos
pai
achega
0db2f159e7
Modificáronse 2 ficheiros con 5 adicións e 5 borrados
  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