|
@@ -1632,7 +1632,7 @@ messageSends: ["initializeFromError:", "new", "yourself"]
|
|
|
$globals.HLDebuggerModel.a$cls);
|
|
|
|
|
|
|
|
|
-$core.addClass("HLErrorHandler", $globals.Object, [], "Helios-Debugger");
|
|
|
+$core.addClass("HLErrorHandler", $globals.Object, ["confirms"], "Helios-Debugger");
|
|
|
$core.addMethod(
|
|
|
$core.method({
|
|
|
selector: "confirmDebugError:",
|
|
@@ -1642,21 +1642,31 @@ var self=this,$self=this;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-var $1;
|
|
|
-$1=$recv($globals.HLConfirmationWidget)._new();
|
|
|
-$recv($1)._confirmationString_($recv(anError)._messageText());
|
|
|
-$recv($1)._actionBlock_((function(){
|
|
|
+var $1,$2;
|
|
|
+$1=$self.confirms;
|
|
|
+if(!$core.assert($1)){
|
|
|
+$self.confirms=true;
|
|
|
+$2=$recv($globals.HLConfirmationWidget)._new();
|
|
|
+$recv($2)._confirmationString_($recv(anError)._messageText());
|
|
|
+$recv($2)._cancelBlock_((function(){
|
|
|
+$self.confirms=false;
|
|
|
+return $self.confirms;
|
|
|
+
|
|
|
+}));
|
|
|
+$recv($2)._actionBlock_((function(){
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx2) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
+$self.confirms=false;
|
|
|
return $self._debugError_(anError);
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
-}, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)});
|
|
|
+}, function($ctx2) {$ctx2.fillBlock({},$ctx1,3)});
|
|
|
//>>excludeEnd("ctx");
|
|
|
}));
|
|
|
-$recv($1)._cancelButtonLabel_("Abandon");
|
|
|
-$recv($1)._confirmButtonLabel_("Debug");
|
|
|
-$recv($1)._show();
|
|
|
+$recv($2)._cancelButtonLabel_("Abandon");
|
|
|
+$recv($2)._confirmButtonLabel_("Debug");
|
|
|
+$recv($2)._show();
|
|
|
+}
|
|
|
return self;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
}, function($ctx1) {$ctx1.fill(self,"confirmDebugError:",{anError:anError})});
|
|
@@ -1664,11 +1674,11 @@ return self;
|
|
|
},
|
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
args: ["anError"],
|
|
|
-source: "confirmDebugError: anError\x0a\x09HLConfirmationWidget new\x0a\x09\x09confirmationString: anError messageText;\x0a\x09\x09actionBlock: [ self debugError: anError ];\x0a\x09\x09cancelButtonLabel: 'Abandon';\x0a\x09\x09confirmButtonLabel: 'Debug';\x0a\x09\x09show",
|
|
|
+source: "confirmDebugError: anError\x0a\x09confirms ifFalse: [\x0a\x09\x09confirms := true.\x0a\x09\x09HLConfirmationWidget new\x0a\x09\x09\x09confirmationString: anError messageText;\x0a\x09\x09\x09cancelBlock: [ confirms := false ];\x0a\x09\x09\x09actionBlock: [ confirms := false. self debugError: anError ];\x0a\x09\x09\x09cancelButtonLabel: 'Abandon';\x0a\x09\x09\x09confirmButtonLabel: 'Debug';\x0a\x09\x09\x09show ]",
|
|
|
referencedClasses: ["HLConfirmationWidget"],
|
|
|
//>>excludeEnd("ide");
|
|
|
pragmas: [],
|
|
|
-messageSends: ["confirmationString:", "new", "messageText", "actionBlock:", "debugError:", "cancelButtonLabel:", "confirmButtonLabel:", "show"]
|
|
|
+messageSends: ["ifFalse:", "confirmationString:", "new", "messageText", "cancelBlock:", "actionBlock:", "debugError:", "cancelButtonLabel:", "confirmButtonLabel:", "show"]
|
|
|
}),
|
|
|
$globals.HLErrorHandler);
|
|
|
|
|
@@ -1738,6 +1748,26 @@ messageSends: ["confirmDebugError:"]
|
|
|
}),
|
|
|
$globals.HLErrorHandler);
|
|
|
|
|
|
+$core.addMethod(
|
|
|
+$core.method({
|
|
|
+selector: "initialize",
|
|
|
+protocol: "error handling",
|
|
|
+fn: function (){
|
|
|
+var self=this,$self=this;
|
|
|
+$self.confirms=false;
|
|
|
+return self;
|
|
|
+
|
|
|
+},
|
|
|
+//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
+args: [],
|
|
|
+source: "initialize\x0a\x09confirms := false",
|
|
|
+referencedClasses: [],
|
|
|
+//>>excludeEnd("ide");
|
|
|
+pragmas: [],
|
|
|
+messageSends: []
|
|
|
+}),
|
|
|
+$globals.HLErrorHandler);
|
|
|
+
|
|
|
$core.addMethod(
|
|
|
$core.method({
|
|
|
selector: "onErrorHandled",
|