Browse Source

Use Terminal {alert:,confirm:,prompt:}.

Instead of `self` via InterfacingObject inheritance.
Herbert Vojčík 8 years ago
parent
commit
4d62188e55
2 changed files with 4 additions and 4 deletions
  1. 3 3
      src/Helios-Workspace.js
  2. 1 1
      src/Helios-Workspace.st

+ 3 - 3
src/Helios-Workspace.js

@@ -2438,7 +2438,7 @@ var self=this;
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 return $core.withContext(function($ctx1) {
 //>>excludeEnd("ctx");
-self._alert_($recv($recv(anAnnouncement)._error())._messageText());
+$recv($globals.Terminal)._alert_($recv($recv(anAnnouncement)._error())._messageText());
 return self;
 //>>excludeStart("ctx", pragmas.excludeDebugContexts);
 }, function($ctx1) {$ctx1.fill(self,"onCompileError:",{anAnnouncement:anAnnouncement},$globals.HLBrowserCodeWidget)});
@@ -2446,8 +2446,8 @@ return self;
 },
 //>>excludeStart("ide", pragmas.excludeIdeData);
 args: ["anAnnouncement"],
-source: "onCompileError: anAnnouncement\x0a\x09self alert: anAnnouncement error messageText",
-referencedClasses: [],
+source: "onCompileError: anAnnouncement\x0a\x09Terminal alert: anAnnouncement error messageText",
+referencedClasses: ["Terminal"],
 //>>excludeEnd("ide");
 messageSends: ["alert:", "messageText", "error"]
 }),

+ 1 - 1
src/Helios-Workspace.st

@@ -685,7 +685,7 @@ onClassSelected: anAnnouncement
 !
 
 onCompileError: anAnnouncement
-	self alert: anAnnouncement error messageText
+	Terminal alert: anAnnouncement error messageText
 !
 
 onInstVarAdded