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 years ago
parent
commit
0db2f159e7
2 changed files with 5 additions and 5 deletions
  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",
 protocol: "actions",
 //>>excludeStart("ide", pragmas.excludeIdeData);
 //>>excludeStart("ide", pragmas.excludeIdeData);
 args: [],
 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");
 //>>excludeEnd("ide");
 pragmas: [],
 pragmas: [],
-messageSends: ["fork", "browse:", "model", "basicDoIt"]
+messageSends: ["fork", "findString:", "currentLineOrSelection"]
 }, function ($methodClass){ return function (){
 }, function ($methodClass){ return function (){
 var self=this,$self=this;
 var self=this,$self=this;
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
@@ -335,7 +335,7 @@ $recv((function(){
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 return $core.withContext(function($ctx2) {
 return $core.withContext(function($ctx2) {
 //>>excludeEnd("ctx");
 //>>excludeEnd("ctx");
-return $recv($self._model())._browse_($self._basicDoIt());
+return $recv($globals.Finder)._findString_($self._currentLineOrSelection());
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)});
 }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)});
 //>>excludeEnd("ctx");
 //>>excludeEnd("ctx");

+ 1 - 1
src/Helios-Workspace.st

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