소스 검색

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 년 전
부모
커밋
0db2f159e7
2개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  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