|
@@ -1069,12 +1069,15 @@ selector: "initialize",
|
|
category: 'initialization',
|
|
category: 'initialization',
|
|
fn: function (){
|
|
fn: function (){
|
|
var self=this;
|
|
var self=this;
|
|
|
|
+function $Inspector(){return smalltalk.Inspector||(typeof Inspector=="undefined"?nil:Inspector)}
|
|
|
|
+function $InspectorHandler(){return smalltalk.InspectorHandler||(typeof InspectorHandler=="undefined"?nil:InspectorHandler)}
|
|
function $IDETranscript(){return smalltalk.IDETranscript||(typeof IDETranscript=="undefined"?nil:IDETranscript)}
|
|
function $IDETranscript(){return smalltalk.IDETranscript||(typeof IDETranscript=="undefined"?nil:IDETranscript)}
|
|
function $Workspace(){return smalltalk.Workspace||(typeof Workspace=="undefined"?nil:Workspace)}
|
|
function $Workspace(){return smalltalk.Workspace||(typeof Workspace=="undefined"?nil:Workspace)}
|
|
function $TestRunner(){return smalltalk.TestRunner||(typeof TestRunner=="undefined"?nil:TestRunner)}
|
|
function $TestRunner(){return smalltalk.TestRunner||(typeof TestRunner=="undefined"?nil:TestRunner)}
|
|
return smalltalk.withContext(function($ctx1) {
|
|
return smalltalk.withContext(function($ctx1) {
|
|
var $1,$2,$3,$4,$5,$6;
|
|
var $1,$2,$3,$4,$5,$6;
|
|
smalltalk.TabManager.superclass.fn.prototype._initialize.apply(_st(self), []);
|
|
smalltalk.TabManager.superclass.fn.prototype._initialize.apply(_st(self), []);
|
|
|
|
+_st($InspectorHandler())._register_($Inspector());
|
|
self["@opened"]=true;
|
|
self["@opened"]=true;
|
|
_st((function(html){
|
|
_st((function(html){
|
|
return smalltalk.withContext(function($ctx2) {
|
|
return smalltalk.withContext(function($ctx2) {
|
|
@@ -1101,9 +1104,9 @@ return self._updatePosition();
|
|
}, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
|
|
}, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
|
|
return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.TabManager)})},
|
|
return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.TabManager)})},
|
|
args: [],
|
|
args: [],
|
|
-source: "initialize\x0a\x09super initialize.\x0a\x09opened := true.\x0a\x09[:html | html div id: 'amber'] appendToJQuery: 'body' asJQuery.\x0a\x09'body' asJQuery\x0a\x09addClass: 'amberBody'.\x0a\x09self appendToJQuery: '#amber' asJQuery.\x0a\x09self\x0a\x09addTab: IDETranscript current;\x0a\x09addTab: Workspace new;\x0a\x09addTab: TestRunner new.\x0a\x09self selectTab: self tabs last.\x0a\x09self\x0a\x09onResize: [self updateBodyMargin; updatePosition];\x0a\x09onWindowResize: [self updatePosition]",
|
|
|
|
-messageSends: ["initialize", "appendToJQuery:", "asJQuery", "id:", "div", "addClass:", "addTab:", "current", "new", "selectTab:", "last", "tabs", "onResize:", "updateBodyMargin", "updatePosition", "onWindowResize:"],
|
|
|
|
-referencedClasses: ["IDETranscript", "Workspace", "TestRunner"]
|
|
|
|
|
|
+source: "initialize\x0a\x09super initialize.\x0a\x09InspectorHandler register: Inspector.\x0a\x09opened := true.\x0a\x09[:html | html div id: 'amber'] appendToJQuery: 'body' asJQuery.\x0a\x09'body' asJQuery\x0a\x09addClass: 'amberBody'.\x0a\x09self appendToJQuery: '#amber' asJQuery.\x0a\x09self\x0a\x09addTab: IDETranscript current;\x0a\x09addTab: Workspace new;\x0a\x09addTab: TestRunner new.\x0a\x09self selectTab: self tabs last.\x0a\x09self\x0a\x09onResize: [self updateBodyMargin; updatePosition];\x0a\x09onWindowResize: [self updatePosition]",
|
|
|
|
+messageSends: ["initialize", "register:", "appendToJQuery:", "asJQuery", "id:", "div", "addClass:", "addTab:", "current", "new", "selectTab:", "last", "tabs", "onResize:", "updateBodyMargin", "updatePosition", "onWindowResize:"],
|
|
|
|
+referencedClasses: ["Inspector", "InspectorHandler", "IDETranscript", "Workspace", "TestRunner"]
|
|
}),
|
|
}),
|
|
smalltalk.TabManager);
|
|
smalltalk.TabManager);
|
|
|
|
|
|
@@ -5020,13 +5023,14 @@ return smalltalk.withContext(function($ctx1) {
|
|
var $2,$3,$1;
|
|
var $2,$3,$1;
|
|
$2=self._new();
|
|
$2=self._new();
|
|
_st($2)._inspect_(anObject);
|
|
_st($2)._inspect_(anObject);
|
|
|
|
+_st($2)._open();
|
|
$3=_st($2)._yourself();
|
|
$3=_st($2)._yourself();
|
|
$1=$3;
|
|
$1=$3;
|
|
return $1;
|
|
return $1;
|
|
}, function($ctx1) {$ctx1.fill(self,"inspect:",{anObject:anObject},smalltalk.Inspector.klass)})},
|
|
}, function($ctx1) {$ctx1.fill(self,"inspect:",{anObject:anObject},smalltalk.Inspector.klass)})},
|
|
args: ["anObject"],
|
|
args: ["anObject"],
|
|
-source: "inspect: anObject\x0a\x09^self new\x0a\x09\x09inspect: anObject;\x0a\x09\x09yourself",
|
|
|
|
-messageSends: ["inspect:", "new", "yourself"],
|
|
|
|
|
|
+source: "inspect: anObject\x0a\x09^self new\x0a\x09\x09inspect: anObject;\x0a\x09\x09open;\x0a\x09\x09yourself",
|
|
|
|
+messageSends: ["inspect:", "new", "open", "yourself"],
|
|
referencedClasses: []
|
|
referencedClasses: []
|
|
}),
|
|
}),
|
|
smalltalk.Inspector.klass);
|
|
smalltalk.Inspector.klass);
|
|
@@ -6805,20 +6809,23 @@ return smalltalk.withContext(function($ctx1) {
|
|
var $1,$2;
|
|
var $1,$2;
|
|
variables=_st($Dictionary())._new();
|
|
variables=_st($Dictionary())._new();
|
|
_st(variables)._at_put_("#self",self);
|
|
_st(variables)._at_put_("#self",self);
|
|
-self._withIndexDo_((function(each,i){
|
|
|
|
-return smalltalk.withContext(function($ctx2) {
|
|
|
|
-return _st(variables)._at_put_(i,each);
|
|
|
|
-}, function($ctx2) {$ctx2.fillBlock({each:each,i:i},$ctx1)})}));
|
|
|
|
|
|
+_st(variables)._at_put_("#year",self._year());
|
|
|
|
+_st(variables)._at_put_("#month",self._month());
|
|
|
|
+_st(variables)._at_put_("#day",self._day());
|
|
|
|
+_st(variables)._at_put_("#hours",self._hours());
|
|
|
|
+_st(variables)._at_put_("#minutes",self._minutes());
|
|
|
|
+_st(variables)._at_put_("#seconds",self._seconds());
|
|
|
|
+_st(variables)._at_put_("#milliseconds",self._milliseconds());
|
|
$1=anInspector;
|
|
$1=anInspector;
|
|
_st($1)._setLabel_(self._printString());
|
|
_st($1)._setLabel_(self._printString());
|
|
$2=_st($1)._setVariables_(variables);
|
|
$2=_st($1)._setVariables_(variables);
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"inspectOn:",{anInspector:anInspector,variables:variables},smalltalk.Collection)})},
|
|
|
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"inspectOn:",{anInspector:anInspector,variables:variables},smalltalk.Date)})},
|
|
args: ["anInspector"],
|
|
args: ["anInspector"],
|
|
-source: "inspectOn: anInspector\x0a\x09| variables |\x0a\x09variables := Dictionary new.\x0a\x09variables at: '#self' put: self.\x0a\x09self withIndexDo: [:each :i |\x0a\x09\x09variables at: i put: each].\x0a\x09anInspector\x0a\x09\x09setLabel: self printString;\x0a\x09\x09setVariables: variables",
|
|
|
|
-messageSends: ["new", "at:put:", "withIndexDo:", "setLabel:", "printString", "setVariables:"],
|
|
|
|
|
|
+source: "inspectOn: anInspector\x0a\x09| variables |\x0a\x09variables := Dictionary new.\x0a\x09variables at: '#self' put: self.\x0a\x09variables at: '#year' put: self year.\x0a\x09variables at: '#month' put: self month.\x0a\x09variables at: '#day' put: self day.\x0a\x09variables at: '#hours' put: self hours.\x0a\x09variables at: '#minutes' put: self minutes.\x0a\x09variables at: '#seconds' put: self seconds.\x0a\x09variables at: '#milliseconds' put: self milliseconds.\x0a\x09anInspector\x0a\x09\x09setLabel: self printString;\x0a\x09\x09setVariables: variables",
|
|
|
|
+messageSends: ["new", "at:put:", "year", "month", "day", "hours", "minutes", "seconds", "milliseconds", "setLabel:", "printString", "setVariables:"],
|
|
referencedClasses: ["Dictionary"]
|
|
referencedClasses: ["Dictionary"]
|
|
}),
|
|
}),
|
|
-smalltalk.Collection);
|
|
|
|
|
|
+smalltalk.Date);
|
|
|
|
|
|
smalltalk.addMethod(
|
|
smalltalk.addMethod(
|
|
smalltalk.method({
|
|
smalltalk.method({
|
|
@@ -6832,21 +6839,20 @@ return smalltalk.withContext(function($ctx1) {
|
|
var $1,$2;
|
|
var $1,$2;
|
|
variables=_st($Dictionary())._new();
|
|
variables=_st($Dictionary())._new();
|
|
_st(variables)._at_put_("#self",self);
|
|
_st(variables)._at_put_("#self",self);
|
|
-_st(variables)._at_put_("#keys",self._keys());
|
|
|
|
-self._keysAndValuesDo_((function(key,value){
|
|
|
|
|
|
+self._withIndexDo_((function(each,i){
|
|
return smalltalk.withContext(function($ctx2) {
|
|
return smalltalk.withContext(function($ctx2) {
|
|
-return _st(variables)._at_put_(key,value);
|
|
|
|
-}, function($ctx2) {$ctx2.fillBlock({key:key,value:value},$ctx1)})}));
|
|
|
|
|
|
+return _st(variables)._at_put_(i,each);
|
|
|
|
+}, function($ctx2) {$ctx2.fillBlock({each:each,i:i},$ctx1)})}));
|
|
$1=anInspector;
|
|
$1=anInspector;
|
|
_st($1)._setLabel_(self._printString());
|
|
_st($1)._setLabel_(self._printString());
|
|
$2=_st($1)._setVariables_(variables);
|
|
$2=_st($1)._setVariables_(variables);
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"inspectOn:",{anInspector:anInspector,variables:variables},smalltalk.HashedCollection)})},
|
|
|
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"inspectOn:",{anInspector:anInspector,variables:variables},smalltalk.Collection)})},
|
|
args: ["anInspector"],
|
|
args: ["anInspector"],
|
|
-source: "inspectOn: anInspector\x0a\x09| variables |\x0a\x09variables := Dictionary new.\x0a\x09variables at: '#self' put: self.\x0a\x09variables at: '#keys' put: self keys.\x0a\x09self keysAndValuesDo: [:key :value |\x0a\x09\x09variables at: key put: value].\x0a\x09anInspector\x0a\x09\x09setLabel: self printString;\x0a\x09\x09setVariables: variables",
|
|
|
|
-messageSends: ["new", "at:put:", "keys", "keysAndValuesDo:", "setLabel:", "printString", "setVariables:"],
|
|
|
|
|
|
+source: "inspectOn: anInspector\x0a\x09| variables |\x0a\x09variables := Dictionary new.\x0a\x09variables at: '#self' put: self.\x0a\x09self withIndexDo: [:each :i |\x0a\x09\x09variables at: i put: each].\x0a\x09anInspector\x0a\x09\x09setLabel: self printString;\x0a\x09\x09setVariables: variables",
|
|
|
|
+messageSends: ["new", "at:put:", "withIndexDo:", "setLabel:", "printString", "setVariables:"],
|
|
referencedClasses: ["Dictionary"]
|
|
referencedClasses: ["Dictionary"]
|
|
}),
|
|
}),
|
|
-smalltalk.HashedCollection);
|
|
|
|
|
|
+smalltalk.Collection);
|
|
|
|
|
|
smalltalk.addMethod(
|
|
smalltalk.addMethod(
|
|
smalltalk.method({
|
|
smalltalk.method({
|
|
@@ -6887,20 +6893,24 @@ return smalltalk.withContext(function($ctx1) {
|
|
var $1,$2;
|
|
var $1,$2;
|
|
variables=_st($Dictionary())._new();
|
|
variables=_st($Dictionary())._new();
|
|
_st(variables)._at_put_("#self",self);
|
|
_st(variables)._at_put_("#self",self);
|
|
-_st(self["@elements"])._withIndexDo_((function(each,i){
|
|
|
|
|
|
+_st(variables)._at_put_("#home",self._home());
|
|
|
|
+_st(variables)._at_put_("#receiver",self._receiver());
|
|
|
|
+_st(variables)._at_put_("#selector",self._selector());
|
|
|
|
+_st(variables)._at_put_("#temps",self._temps());
|
|
|
|
+_st(_st(self._class())._instanceVariableNames())._do_((function(each){
|
|
return smalltalk.withContext(function($ctx2) {
|
|
return smalltalk.withContext(function($ctx2) {
|
|
-return _st(variables)._at_put_(i,each);
|
|
|
|
-}, function($ctx2) {$ctx2.fillBlock({each:each,i:i},$ctx1)})}));
|
|
|
|
|
|
+return _st(variables)._at_put_(each,self._instVarAt_(each));
|
|
|
|
+}, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
|
|
$1=anInspector;
|
|
$1=anInspector;
|
|
_st($1)._setLabel_(self._printString());
|
|
_st($1)._setLabel_(self._printString());
|
|
$2=_st($1)._setVariables_(variables);
|
|
$2=_st($1)._setVariables_(variables);
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"inspectOn:",{anInspector:anInspector,variables:variables},smalltalk.Set)})},
|
|
|
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"inspectOn:",{anInspector:anInspector,variables:variables},smalltalk.MethodContext)})},
|
|
args: ["anInspector"],
|
|
args: ["anInspector"],
|
|
-source: "inspectOn: anInspector\x0a\x09| variables |\x0a\x09variables := Dictionary new.\x0a\x09variables at: '#self' put: self.\x0a\x09elements withIndexDo: [:each :i |\x0a\x09\x09variables at: i put: each].\x0a\x09anInspector\x0a\x09\x09setLabel: self printString;\x0a\x09\x09setVariables: variables",
|
|
|
|
-messageSends: ["new", "at:put:", "withIndexDo:", "setLabel:", "printString", "setVariables:"],
|
|
|
|
|
|
+source: "inspectOn: anInspector\x0a\x09| variables |\x0a\x09variables := Dictionary new.\x0a\x09variables at: '#self' put: self.\x0a\x09variables at: '#home' put: self home.\x0a\x09variables at: '#receiver' put: self receiver.\x0a\x09variables at: '#selector' put: self selector.\x0a\x09variables at: '#temps' put: self temps.\x0a\x09self class instanceVariableNames do: [:each |\x0a\x09\x09variables at: each put: (self instVarAt: each)].\x0a\x09anInspector\x0a\x09\x09setLabel: self printString;\x0a\x09\x09setVariables: variables",
|
|
|
|
+messageSends: ["new", "at:put:", "home", "receiver", "selector", "temps", "do:", "instVarAt:", "instanceVariableNames", "class", "setLabel:", "printString", "setVariables:"],
|
|
referencedClasses: ["Dictionary"]
|
|
referencedClasses: ["Dictionary"]
|
|
}),
|
|
}),
|
|
-smalltalk.Set);
|
|
|
|
|
|
+smalltalk.MethodContext);
|
|
|
|
|
|
smalltalk.addMethod(
|
|
smalltalk.addMethod(
|
|
smalltalk.method({
|
|
smalltalk.method({
|
|
@@ -6914,23 +6924,21 @@ return smalltalk.withContext(function($ctx1) {
|
|
var $1,$2;
|
|
var $1,$2;
|
|
variables=_st($Dictionary())._new();
|
|
variables=_st($Dictionary())._new();
|
|
_st(variables)._at_put_("#self",self);
|
|
_st(variables)._at_put_("#self",self);
|
|
-_st(variables)._at_put_("#year",self._year());
|
|
|
|
-_st(variables)._at_put_("#month",self._month());
|
|
|
|
-_st(variables)._at_put_("#day",self._day());
|
|
|
|
-_st(variables)._at_put_("#hours",self._hours());
|
|
|
|
-_st(variables)._at_put_("#minutes",self._minutes());
|
|
|
|
-_st(variables)._at_put_("#seconds",self._seconds());
|
|
|
|
-_st(variables)._at_put_("#milliseconds",self._milliseconds());
|
|
|
|
|
|
+_st(variables)._at_put_("#keys",self._keys());
|
|
|
|
+self._keysAndValuesDo_((function(key,value){
|
|
|
|
+return smalltalk.withContext(function($ctx2) {
|
|
|
|
+return _st(variables)._at_put_(key,value);
|
|
|
|
+}, function($ctx2) {$ctx2.fillBlock({key:key,value:value},$ctx1)})}));
|
|
$1=anInspector;
|
|
$1=anInspector;
|
|
_st($1)._setLabel_(self._printString());
|
|
_st($1)._setLabel_(self._printString());
|
|
$2=_st($1)._setVariables_(variables);
|
|
$2=_st($1)._setVariables_(variables);
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"inspectOn:",{anInspector:anInspector,variables:variables},smalltalk.Date)})},
|
|
|
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"inspectOn:",{anInspector:anInspector,variables:variables},smalltalk.HashedCollection)})},
|
|
args: ["anInspector"],
|
|
args: ["anInspector"],
|
|
-source: "inspectOn: anInspector\x0a\x09| variables |\x0a\x09variables := Dictionary new.\x0a\x09variables at: '#self' put: self.\x0a\x09variables at: '#year' put: self year.\x0a\x09variables at: '#month' put: self month.\x0a\x09variables at: '#day' put: self day.\x0a\x09variables at: '#hours' put: self hours.\x0a\x09variables at: '#minutes' put: self minutes.\x0a\x09variables at: '#seconds' put: self seconds.\x0a\x09variables at: '#milliseconds' put: self milliseconds.\x0a\x09anInspector\x0a\x09\x09setLabel: self printString;\x0a\x09\x09setVariables: variables",
|
|
|
|
-messageSends: ["new", "at:put:", "year", "month", "day", "hours", "minutes", "seconds", "milliseconds", "setLabel:", "printString", "setVariables:"],
|
|
|
|
|
|
+source: "inspectOn: anInspector\x0a\x09| variables |\x0a\x09variables := Dictionary new.\x0a\x09variables at: '#self' put: self.\x0a\x09variables at: '#keys' put: self keys.\x0a\x09self keysAndValuesDo: [:key :value |\x0a\x09\x09variables at: key put: value].\x0a\x09anInspector\x0a\x09\x09setLabel: self printString;\x0a\x09\x09setVariables: variables",
|
|
|
|
+messageSends: ["new", "at:put:", "keys", "keysAndValuesDo:", "setLabel:", "printString", "setVariables:"],
|
|
referencedClasses: ["Dictionary"]
|
|
referencedClasses: ["Dictionary"]
|
|
}),
|
|
}),
|
|
-smalltalk.Date);
|
|
|
|
|
|
+smalltalk.HashedCollection);
|
|
|
|
|
|
smalltalk.addMethod(
|
|
smalltalk.addMethod(
|
|
smalltalk.method({
|
|
smalltalk.method({
|
|
@@ -6944,23 +6952,19 @@ return smalltalk.withContext(function($ctx1) {
|
|
var $1,$2;
|
|
var $1,$2;
|
|
variables=_st($Dictionary())._new();
|
|
variables=_st($Dictionary())._new();
|
|
_st(variables)._at_put_("#self",self);
|
|
_st(variables)._at_put_("#self",self);
|
|
-_st(variables)._at_put_("#home",self._home());
|
|
|
|
-_st(variables)._at_put_("#receiver",self._receiver());
|
|
|
|
-_st(variables)._at_put_("#selector",self._selector());
|
|
|
|
-_st(variables)._at_put_("#temps",self._temps());
|
|
|
|
-_st(_st(self._class())._instanceVariableNames())._do_((function(each){
|
|
|
|
|
|
+_st(self["@elements"])._withIndexDo_((function(each,i){
|
|
return smalltalk.withContext(function($ctx2) {
|
|
return smalltalk.withContext(function($ctx2) {
|
|
-return _st(variables)._at_put_(each,self._instVarAt_(each));
|
|
|
|
-}, function($ctx2) {$ctx2.fillBlock({each:each},$ctx1)})}));
|
|
|
|
|
|
+return _st(variables)._at_put_(i,each);
|
|
|
|
+}, function($ctx2) {$ctx2.fillBlock({each:each,i:i},$ctx1)})}));
|
|
$1=anInspector;
|
|
$1=anInspector;
|
|
_st($1)._setLabel_(self._printString());
|
|
_st($1)._setLabel_(self._printString());
|
|
$2=_st($1)._setVariables_(variables);
|
|
$2=_st($1)._setVariables_(variables);
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"inspectOn:",{anInspector:anInspector,variables:variables},smalltalk.MethodContext)})},
|
|
|
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"inspectOn:",{anInspector:anInspector,variables:variables},smalltalk.Set)})},
|
|
args: ["anInspector"],
|
|
args: ["anInspector"],
|
|
-source: "inspectOn: anInspector\x0a\x09| variables |\x0a\x09variables := Dictionary new.\x0a\x09variables at: '#self' put: self.\x0a\x09variables at: '#home' put: self home.\x0a\x09variables at: '#receiver' put: self receiver.\x0a\x09variables at: '#selector' put: self selector.\x0a\x09variables at: '#temps' put: self temps.\x0a\x09self class instanceVariableNames do: [:each |\x0a\x09\x09variables at: each put: (self instVarAt: each)].\x0a\x09anInspector\x0a\x09\x09setLabel: self printString;\x0a\x09\x09setVariables: variables",
|
|
|
|
-messageSends: ["new", "at:put:", "home", "receiver", "selector", "temps", "do:", "instVarAt:", "instanceVariableNames", "class", "setLabel:", "printString", "setVariables:"],
|
|
|
|
|
|
+source: "inspectOn: anInspector\x0a\x09| variables |\x0a\x09variables := Dictionary new.\x0a\x09variables at: '#self' put: self.\x0a\x09elements withIndexDo: [:each :i |\x0a\x09\x09variables at: i put: each].\x0a\x09anInspector\x0a\x09\x09setLabel: self printString;\x0a\x09\x09setVariables: variables",
|
|
|
|
+messageSends: ["new", "at:put:", "withIndexDo:", "setLabel:", "printString", "setVariables:"],
|
|
referencedClasses: ["Dictionary"]
|
|
referencedClasses: ["Dictionary"]
|
|
}),
|
|
}),
|
|
-smalltalk.MethodContext);
|
|
|
|
|
|
+smalltalk.Set);
|
|
|
|
|
|
});
|
|
});
|