Browse Source

References list reselect works.

Herby Vojčík 5 years ago
parent
commit
1db410b405
2 changed files with 29 additions and 0 deletions
  1. 25 0
      src/Helios-References.js
  2. 4 0
      src/Helios-References.st

+ 25 - 0
src/Helios-References.js

@@ -603,6 +603,31 @@ messageSends: ["with:", "asString"]
 }),
 $globals.HLReferencesListWidget);
 
+$core.addMethod(
+$core.method({
+selector: "reselectItem:",
+protocol: "actions",
+fn: function (aMethod){
+var self=this,$self=this;
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
+return $core.withContext(function($ctx1) {
+//>>excludeEnd("ctx");
+$self._selectItem_(aMethod);
+return self;
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
+}, function($ctx1) {$ctx1.fill(self,"reselectItem:",{aMethod:aMethod})});
+//>>excludeEnd("ctx");
+},
+//>>excludeStart("ide", pragmas.excludeIdeData);
+args: ["aMethod"],
+source: "reselectItem: aMethod\x0a\x09self selectItem: aMethod",
+referencedClasses: [],
+//>>excludeEnd("ide");
+pragmas: [],
+messageSends: ["selectItem:"]
+}),
+$globals.HLReferencesListWidget);
+
 $core.addMethod(
 $core.method({
 selector: "selectItem:",

+ 4 - 0
src/Helios-References.st

@@ -124,6 +124,10 @@ observeModel
 		do: [ :ann | self onMethodSelected: ann item ]
 !
 
+reselectItem: aMethod
+	self selectItem: aMethod
+!
+
 selectItem: aMethod
 	super selectItem: aMethod.
 	self model selectedClass: nil; selectedMethod: aMethod