|
@@ -1,4 +1,4 @@
|
|
|
-define("amber_core/IDE", ["amber_vm/smalltalk", "amber_vm/nil", "amber_vm/_st", "amber_core/Canvas", "amber_core/Kernel-Exceptions", "amber_core/Kernel-Objects", "amber_core/Kernel-Collections", "amber_core/Kernel-Methods"], function(smalltalk,nil,_st){
|
|
|
+define("amber_core/IDE", ["amber_vm/smalltalk", "amber_vm/nil", "amber_vm/_st", "amber_core/Canvas", "amber_core/Kernel-Objects", "amber_core/Kernel-Collections", "amber_core/Kernel-Methods"], function(smalltalk,nil,_st){
|
|
|
smalltalk.addPackage('IDE');
|
|
|
smalltalk.packages["IDE"].transport = {"type":"amd","amdNamespace":"amber_core"};
|
|
|
|
|
@@ -444,7 +444,7 @@ referencedClasses: []
|
|
|
smalltalk.ClassesListNode.klass);
|
|
|
|
|
|
|
|
|
-smalltalk.addClass('DebugErrorHandler', smalltalk.ErrorHandler, [], 'IDE');
|
|
|
+smalltalk.addClass('DebugErrorHandler', smalltalk.Object, [], 'IDE');
|
|
|
smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "handleError:",
|
|
@@ -484,17 +484,11 @@ fn: function (){
|
|
|
var self=this;
|
|
|
function $ErrorHandler(){return smalltalk.ErrorHandler||(typeof ErrorHandler=="undefined"?nil:ErrorHandler)}
|
|
|
return smalltalk.withContext(function($ctx1) {
|
|
|
-var $1;
|
|
|
-$1=_st($ErrorHandler())._current();
|
|
|
-if(($receiver = $1) == nil || $receiver == null){
|
|
|
-self._register();
|
|
|
-} else {
|
|
|
-$1;
|
|
|
-};
|
|
|
+_st($ErrorHandler())._register_(self._new());
|
|
|
return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.DebugErrorHandler.klass)})},
|
|
|
args: [],
|
|
|
-source: "initialize\x0a\x09ErrorHandler current ifNil: [ self register ]",
|
|
|
-messageSends: ["ifNil:", "current", "register"],
|
|
|
+source: "initialize\x0a\x09ErrorHandler register: self new",
|
|
|
+messageSends: ["register:", "new"],
|
|
|
referencedClasses: ["ErrorHandler"]
|
|
|
}),
|
|
|
smalltalk.DebugErrorHandler.klass);
|
|
@@ -1110,15 +1104,15 @@ selector: "initialize",
|
|
|
protocol: 'initialization',
|
|
|
fn: function (){
|
|
|
var self=this;
|
|
|
-function $InspectorHandler(){return smalltalk.InspectorHandler||(typeof InspectorHandler=="undefined"?nil:InspectorHandler)}
|
|
|
function $Inspector(){return smalltalk.Inspector||(typeof Inspector=="undefined"?nil:Inspector)}
|
|
|
+function $IDEInspector(){return smalltalk.IDEInspector||(typeof IDEInspector=="undefined"?nil:IDEInspector)}
|
|
|
function $IDETranscript(){return smalltalk.IDETranscript||(typeof IDETranscript=="undefined"?nil:IDETranscript)}
|
|
|
function $Workspace(){return smalltalk.Workspace||(typeof Workspace=="undefined"?nil:Workspace)}
|
|
|
function $TestRunner(){return smalltalk.TestRunner||(typeof TestRunner=="undefined"?nil:TestRunner)}
|
|
|
return smalltalk.withContext(function($ctx1) {
|
|
|
var $1,$2,$3,$4,$5,$6,$7;
|
|
|
smalltalk.TabManager.superclass.fn.prototype._initialize.apply(_st(self), []);
|
|
|
-_st($InspectorHandler())._register_($Inspector());
|
|
|
+_st($Inspector())._register_($IDEInspector());
|
|
|
self["@opened"]=true;
|
|
|
$1=(function(html){
|
|
|
return smalltalk.withContext(function($ctx2) {
|
|
@@ -1153,9 +1147,9 @@ return self._updatePosition();
|
|
|
}, function($ctx2) {$ctx2.fillBlock({},$ctx1,3)})}));
|
|
|
return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.TabManager)})},
|
|
|
args: [],
|
|
|
-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 ]",
|
|
|
+source: "initialize\x0a\x09super initialize.\x0a\x09Inspector register: IDEInspector.\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:", "id:", "div", "asJQuery", "addClass:", "addTab:", "current", "new", "selectTab:", "last", "tabs", "onResize:", "updateBodyMargin", "updatePosition", "onWindowResize:"],
|
|
|
-referencedClasses: ["InspectorHandler", "Inspector", "IDETranscript", "Workspace", "TestRunner"]
|
|
|
+referencedClasses: ["Inspector", "IDEInspector", "IDETranscript", "Workspace", "TestRunner"]
|
|
|
}),
|
|
|
smalltalk.TabManager);
|
|
|
|
|
@@ -4662,227 +4656,7 @@ smalltalk.Debugger);
|
|
|
|
|
|
|
|
|
|
|
|
-smalltalk.addClass('IDETranscript', smalltalk.TabWidget, ['textarea'], 'IDE');
|
|
|
-smalltalk.addMethod(
|
|
|
-smalltalk.method({
|
|
|
-selector: "clear",
|
|
|
-protocol: 'actions',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-return smalltalk.withContext(function($ctx1) {
|
|
|
-_st(_st(self["@textarea"])._asJQuery())._val_("");
|
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"clear",{},smalltalk.IDETranscript)})},
|
|
|
-args: [],
|
|
|
-source: "clear\x0a\x09textarea asJQuery val: ''",
|
|
|
-messageSends: ["val:", "asJQuery"],
|
|
|
-referencedClasses: []
|
|
|
-}),
|
|
|
-smalltalk.IDETranscript);
|
|
|
-
|
|
|
-smalltalk.addMethod(
|
|
|
-smalltalk.method({
|
|
|
-selector: "cr",
|
|
|
-protocol: 'actions',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-function $String(){return smalltalk.String||(typeof String=="undefined"?nil:String)}
|
|
|
-return smalltalk.withContext(function($ctx1) {
|
|
|
-var $1;
|
|
|
-$1=_st(self["@textarea"])._asJQuery();
|
|
|
-$ctx1.sendIdx["asJQuery"]=1;
|
|
|
-_st($1)._val_(_st(_st(_st(self["@textarea"])._asJQuery())._val()).__comma(_st($String())._cr()));
|
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"cr",{},smalltalk.IDETranscript)})},
|
|
|
-args: [],
|
|
|
-source: "cr\x0a\x09textarea asJQuery val: textarea asJQuery val, String cr.",
|
|
|
-messageSends: ["val:", "asJQuery", ",", "val", "cr"],
|
|
|
-referencedClasses: ["String"]
|
|
|
-}),
|
|
|
-smalltalk.IDETranscript);
|
|
|
-
|
|
|
-smalltalk.addMethod(
|
|
|
-smalltalk.method({
|
|
|
-selector: "label",
|
|
|
-protocol: 'accessing',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-return "Transcript";
|
|
|
-},
|
|
|
-args: [],
|
|
|
-source: "label\x0a\x09^ 'Transcript'",
|
|
|
-messageSends: [],
|
|
|
-referencedClasses: []
|
|
|
-}),
|
|
|
-smalltalk.IDETranscript);
|
|
|
-
|
|
|
-smalltalk.addMethod(
|
|
|
-smalltalk.method({
|
|
|
-selector: "open",
|
|
|
-protocol: 'actions',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-function $TabManager(){return smalltalk.TabManager||(typeof TabManager=="undefined"?nil:TabManager)}
|
|
|
-return smalltalk.withContext(function($ctx1) {
|
|
|
-var $1,$2;
|
|
|
-$1=_st($TabManager())._current();
|
|
|
-_st($1)._open();
|
|
|
-$2=_st($1)._selectTab_(self);
|
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"open",{},smalltalk.IDETranscript)})},
|
|
|
-args: [],
|
|
|
-source: "open\x0a\x09TabManager current\x0a\x09open;\x0a\x09selectTab: self",
|
|
|
-messageSends: ["open", "current", "selectTab:"],
|
|
|
-referencedClasses: ["TabManager"]
|
|
|
-}),
|
|
|
-smalltalk.IDETranscript);
|
|
|
-
|
|
|
-smalltalk.addMethod(
|
|
|
-smalltalk.method({
|
|
|
-selector: "renderBoxOn:",
|
|
|
-protocol: 'rendering',
|
|
|
-fn: function (html){
|
|
|
-var self=this;
|
|
|
-return smalltalk.withContext(function($ctx1) {
|
|
|
-var $1,$2;
|
|
|
-self["@textarea"]=_st(html)._textarea();
|
|
|
-$1=self["@textarea"];
|
|
|
-_st($1)._class_("amber_transcript");
|
|
|
-$2=_st($1)._at_put_("spellcheck","false");
|
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"renderBoxOn:",{html:html},smalltalk.IDETranscript)})},
|
|
|
-args: ["html"],
|
|
|
-source: "renderBoxOn: html\x0a\x09textarea := html textarea.\x0a\x09textarea\x0a\x09class: 'amber_transcript';\x0a\x09at: 'spellcheck' put: 'false'",
|
|
|
-messageSends: ["textarea", "class:", "at:put:"],
|
|
|
-referencedClasses: []
|
|
|
-}),
|
|
|
-smalltalk.IDETranscript);
|
|
|
-
|
|
|
-smalltalk.addMethod(
|
|
|
-smalltalk.method({
|
|
|
-selector: "renderButtonsOn:",
|
|
|
-protocol: 'rendering',
|
|
|
-fn: function (html){
|
|
|
-var self=this;
|
|
|
-return smalltalk.withContext(function($ctx1) {
|
|
|
-var $1,$2;
|
|
|
-$1=_st(html)._button();
|
|
|
-_st($1)._with_("Clear transcript");
|
|
|
-$2=_st($1)._onClick_((function(){
|
|
|
-return smalltalk.withContext(function($ctx2) {
|
|
|
-return self._clear();
|
|
|
-}, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)})}));
|
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"renderButtonsOn:",{html:html},smalltalk.IDETranscript)})},
|
|
|
-args: ["html"],
|
|
|
-source: "renderButtonsOn: html\x0a\x09html button\x0a\x09with: 'Clear transcript';\x0a\x09onClick: [ self clear ]",
|
|
|
-messageSends: ["with:", "button", "onClick:", "clear"],
|
|
|
-referencedClasses: []
|
|
|
-}),
|
|
|
-smalltalk.IDETranscript);
|
|
|
-
|
|
|
-smalltalk.addMethod(
|
|
|
-smalltalk.method({
|
|
|
-selector: "show:",
|
|
|
-protocol: 'actions',
|
|
|
-fn: function (anObject){
|
|
|
-var self=this;
|
|
|
-return smalltalk.withContext(function($ctx1) {
|
|
|
-var $1,$2;
|
|
|
-$1=self["@textarea"];
|
|
|
-if(($receiver = $1) == nil || $receiver == null){
|
|
|
-self._open();
|
|
|
-} else {
|
|
|
-$1;
|
|
|
-};
|
|
|
-$2=_st(self["@textarea"])._asJQuery();
|
|
|
-$ctx1.sendIdx["asJQuery"]=1;
|
|
|
-_st($2)._val_(_st(_st(_st(self["@textarea"])._asJQuery())._val()).__comma(_st(anObject)._asString()));
|
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"show:",{anObject:anObject},smalltalk.IDETranscript)})},
|
|
|
-args: ["anObject"],
|
|
|
-source: "show: anObject\x0a\x09textarea ifNil: [ self open ].\x0a\x09textarea asJQuery val: textarea asJQuery val, anObject asString.",
|
|
|
-messageSends: ["ifNil:", "open", "val:", "asJQuery", ",", "val", "asString"],
|
|
|
-referencedClasses: []
|
|
|
-}),
|
|
|
-smalltalk.IDETranscript);
|
|
|
-
|
|
|
-
|
|
|
-smalltalk.IDETranscript.klass.iVarNames = ['current'];
|
|
|
-smalltalk.addMethod(
|
|
|
-smalltalk.method({
|
|
|
-selector: "current",
|
|
|
-protocol: 'instance creation',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-return smalltalk.withContext(function($ctx1) {
|
|
|
-var $2,$1;
|
|
|
-$2=self["@current"];
|
|
|
-if(($receiver = $2) == nil || $receiver == null){
|
|
|
-self["@current"]=smalltalk.IDETranscript.klass.superclass.fn.prototype._new.apply(_st(self), []);
|
|
|
-$1=self["@current"];
|
|
|
-} else {
|
|
|
-$1=$2;
|
|
|
-};
|
|
|
-return $1;
|
|
|
-}, function($ctx1) {$ctx1.fill(self,"current",{},smalltalk.IDETranscript.klass)})},
|
|
|
-args: [],
|
|
|
-source: "current\x0a\x09^ current ifNil: [ current := super new ]",
|
|
|
-messageSends: ["ifNil:", "new"],
|
|
|
-referencedClasses: []
|
|
|
-}),
|
|
|
-smalltalk.IDETranscript.klass);
|
|
|
-
|
|
|
-smalltalk.addMethod(
|
|
|
-smalltalk.method({
|
|
|
-selector: "initialize",
|
|
|
-protocol: 'initialization',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-function $Transcript(){return smalltalk.Transcript||(typeof Transcript=="undefined"?nil:Transcript)}
|
|
|
-return smalltalk.withContext(function($ctx1) {
|
|
|
-_st($Transcript())._register_(self._current());
|
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.IDETranscript.klass)})},
|
|
|
-args: [],
|
|
|
-source: "initialize\x0a\x09Transcript register: self current",
|
|
|
-messageSends: ["register:", "current"],
|
|
|
-referencedClasses: ["Transcript"]
|
|
|
-}),
|
|
|
-smalltalk.IDETranscript.klass);
|
|
|
-
|
|
|
-smalltalk.addMethod(
|
|
|
-smalltalk.method({
|
|
|
-selector: "new",
|
|
|
-protocol: 'instance creation',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-return smalltalk.withContext(function($ctx1) {
|
|
|
-self._shouldNotImplement();
|
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"new",{},smalltalk.IDETranscript.klass)})},
|
|
|
-args: [],
|
|
|
-source: "new\x0a\x09self shouldNotImplement",
|
|
|
-messageSends: ["shouldNotImplement"],
|
|
|
-referencedClasses: []
|
|
|
-}),
|
|
|
-smalltalk.IDETranscript.klass);
|
|
|
-
|
|
|
-smalltalk.addMethod(
|
|
|
-smalltalk.method({
|
|
|
-selector: "open",
|
|
|
-protocol: 'instance creation',
|
|
|
-fn: function (){
|
|
|
-var self=this;
|
|
|
-function $TabManager(){return smalltalk.TabManager||(typeof TabManager=="undefined"?nil:TabManager)}
|
|
|
-return smalltalk.withContext(function($ctx1) {
|
|
|
-var $1,$2;
|
|
|
-$1=_st($TabManager())._current();
|
|
|
-$ctx1.sendIdx["current"]=1;
|
|
|
-_st($1)._open();
|
|
|
-$2=_st($1)._selectTab_(self._current());
|
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"open",{},smalltalk.IDETranscript.klass)})},
|
|
|
-args: [],
|
|
|
-source: "open\x0a\x09TabManager current\x0a\x09open;\x0a\x09selectTab: self current",
|
|
|
-messageSends: ["open", "current", "selectTab:"],
|
|
|
-referencedClasses: ["TabManager"]
|
|
|
-}),
|
|
|
-smalltalk.IDETranscript.klass);
|
|
|
-
|
|
|
-
|
|
|
-smalltalk.addClass('Inspector', smalltalk.TabWidget, ['label', 'variables', 'object', 'selectedVariable', 'variablesList', 'valueTextarea', 'diveButton', 'sourceArea'], 'IDE');
|
|
|
+smalltalk.addClass('IDEInspector', smalltalk.TabWidget, ['label', 'variables', 'object', 'selectedVariable', 'variablesList', 'valueTextarea', 'diveButton', 'sourceArea'], 'IDE');
|
|
|
smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
|
selector: "canBeClosed",
|
|
@@ -4896,7 +4670,7 @@ source: "canBeClosed\x0a\x09^ true",
|
|
|
messageSends: [],
|
|
|
referencedClasses: []
|
|
|
}),
|
|
|
-smalltalk.Inspector);
|
|
|
+smalltalk.IDEInspector);
|
|
|
|
|
|
smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
@@ -4906,13 +4680,13 @@ fn: function (){
|
|
|
var self=this;
|
|
|
return smalltalk.withContext(function($ctx1) {
|
|
|
_st(_st(self._variables())._at_(self._selectedVariable()))._inspect();
|
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"dive",{},smalltalk.Inspector)})},
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"dive",{},smalltalk.IDEInspector)})},
|
|
|
args: [],
|
|
|
source: "dive\x0a\x09(self variables at: self selectedVariable) inspect",
|
|
|
messageSends: ["inspect", "at:", "variables", "selectedVariable"],
|
|
|
referencedClasses: []
|
|
|
}),
|
|
|
-smalltalk.Inspector);
|
|
|
+smalltalk.IDEInspector);
|
|
|
|
|
|
smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
@@ -4924,13 +4698,13 @@ return smalltalk.withContext(function($ctx1) {
|
|
|
self["@object"]=anObject;
|
|
|
self["@variables"]=[];
|
|
|
_st(self["@object"])._inspectOn_(self);
|
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"inspect:",{anObject:anObject},smalltalk.Inspector)})},
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"inspect:",{anObject:anObject},smalltalk.IDEInspector)})},
|
|
|
args: ["anObject"],
|
|
|
source: "inspect: anObject\x0a\x09object := anObject.\x0a\x09variables := #().\x0a\x09object inspectOn: self",
|
|
|
messageSends: ["inspectOn:"],
|
|
|
referencedClasses: []
|
|
|
}),
|
|
|
-smalltalk.Inspector);
|
|
|
+smalltalk.IDEInspector);
|
|
|
|
|
|
smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
@@ -4947,13 +4721,13 @@ $1="Inspector (nil)";
|
|
|
$1=$2;
|
|
|
};
|
|
|
return $1;
|
|
|
-}, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.Inspector)})},
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"label",{},smalltalk.IDEInspector)})},
|
|
|
args: [],
|
|
|
source: "label\x0a\x09^ label ifNil: [ 'Inspector (nil)' ]",
|
|
|
messageSends: ["ifNil:"],
|
|
|
referencedClasses: []
|
|
|
}),
|
|
|
-smalltalk.Inspector);
|
|
|
+smalltalk.IDEInspector);
|
|
|
|
|
|
smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
@@ -4966,13 +4740,13 @@ var $1;
|
|
|
self._inspect_(self["@object"]);
|
|
|
self._updateVariablesList();
|
|
|
$1=self._updateValueTextarea();
|
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"refresh",{},smalltalk.Inspector)})},
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"refresh",{},smalltalk.IDEInspector)})},
|
|
|
args: [],
|
|
|
source: "refresh\x0a\x09self\x0a\x09\x09inspect: object;\x0a\x09\x09updateVariablesList;\x0a\x09\x09updateValueTextarea",
|
|
|
messageSends: ["inspect:", "updateVariablesList", "updateValueTextarea"],
|
|
|
referencedClasses: []
|
|
|
}),
|
|
|
-smalltalk.Inspector);
|
|
|
+smalltalk.IDEInspector);
|
|
|
|
|
|
smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
@@ -4998,13 +4772,13 @@ self["@sourceArea"]=$4;
|
|
|
self["@sourceArea"];
|
|
|
return _st(self["@sourceArea"])._renderOn_(html);
|
|
|
}, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)})}));
|
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"renderBottomPanelOn:",{html:html},smalltalk.Inspector)})},
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"renderBottomPanelOn:",{html:html},smalltalk.IDEInspector)})},
|
|
|
args: ["html"],
|
|
|
source: "renderBottomPanelOn: html\x0a\x09html div\x0a\x09class: 'amber_sourceCode';\x0a\x09with: [\x0a\x09\x09sourceArea := SourceArea new\x0a\x09\x09receiver: object;\x0a\x09\x09onDoIt: [ self refresh ];\x0a\x09\x09yourself.\x0a\x09\x09\x09sourceArea renderOn: html ]",
|
|
|
messageSends: ["class:", "div", "with:", "receiver:", "new", "onDoIt:", "refresh", "yourself", "renderOn:"],
|
|
|
referencedClasses: ["SourceArea"]
|
|
|
}),
|
|
|
-smalltalk.Inspector);
|
|
|
+smalltalk.IDEInspector);
|
|
|
|
|
|
smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
@@ -5016,13 +4790,13 @@ return smalltalk.withContext(function($ctx1) {
|
|
|
var $1;
|
|
|
self._renderTopPanelOn_(html);
|
|
|
$1=self._renderBottomPanelOn_(html);
|
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"renderBoxOn:",{html:html},smalltalk.Inspector)})},
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"renderBoxOn:",{html:html},smalltalk.IDEInspector)})},
|
|
|
args: ["html"],
|
|
|
source: "renderBoxOn: html\x0a\x09self\x0a\x09\x09renderTopPanelOn: html;\x0a\x09\x09renderBottomPanelOn: html",
|
|
|
messageSends: ["renderTopPanelOn:", "renderBottomPanelOn:"],
|
|
|
referencedClasses: []
|
|
|
}),
|
|
|
-smalltalk.Inspector);
|
|
|
+smalltalk.IDEInspector);
|
|
|
|
|
|
smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
@@ -5061,13 +4835,13 @@ return smalltalk.withContext(function($ctx2) {
|
|
|
return _st(self._sourceArea())._inspectIt();
|
|
|
}, function($ctx2) {$ctx2.fillBlock({},$ctx1,3)})}));
|
|
|
self._updateButtons();
|
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"renderButtonsOn:",{html:html},smalltalk.Inspector)})},
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"renderButtonsOn:",{html:html},smalltalk.IDEInspector)})},
|
|
|
args: ["html"],
|
|
|
source: "renderButtonsOn: html\x0a\x09html button\x0a\x09\x09with: 'DoIt';\x0a\x09\x09onClick: [ self sourceArea doIt ].\x0a\x09html button\x0a\x09\x09with: 'PrintIt';\x0a\x09\x09onClick: [ self sourceArea printIt ].\x0a\x09html button\x0a\x09\x09with: 'InspectIt';\x0a\x09\x09onClick: [ self sourceArea inspectIt ].\x0a\x09self updateButtons",
|
|
|
messageSends: ["with:", "button", "onClick:", "doIt", "sourceArea", "printIt", "inspectIt", "updateButtons"],
|
|
|
referencedClasses: []
|
|
|
}),
|
|
|
-smalltalk.Inspector);
|
|
|
+smalltalk.IDEInspector);
|
|
|
|
|
|
smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
@@ -5129,13 +4903,13 @@ return _st(_st(html)._div())._class_("amber_clear");
|
|
|
$ctx1.sendIdx["with:"]=1;
|
|
|
self._updateVariablesList();
|
|
|
$11=self._updateValueTextarea();
|
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"renderTopPanelOn:",{html:html},smalltalk.Inspector)})},
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"renderTopPanelOn:",{html:html},smalltalk.IDEInspector)})},
|
|
|
args: ["html"],
|
|
|
source: "renderTopPanelOn: html\x0a\x09html div\x0a\x09\x09class: 'top';\x0a\x09\x09with: [\x0a\x09\x09\x09variablesList := html ul class: 'amber_column variables'.\x0a\x09\x09\x09valueTextarea := html textarea class: 'amber_column value'; at: 'readonly' put: 'readonly'; yourself.\x0a\x09\x09\x09html div class: 'amber_tabs inspector'; with: [\x0a\x09\x09\x09\x09html button\x0a\x09\x09\x09\x09\x09class: 'amber_button inspector refresh';\x0a\x09\x09\x09\x09\x09with: 'Refresh';\x0a\x09\x09\x09\x09\x09onClick: [ self refresh ].\x0a\x09\x09\x09\x09diveButton := html button\x0a\x09\x09\x09\x09\x09class: 'amber_button inspector dive';\x0a\x09\x09\x09\x09\x09with: 'Dive';\x0a\x09\x09\x09\x09\x09onClick: [ self dive ]].\x0a\x09\x09\x09html div class: 'amber_clear' ].\x0a\x09self\x0a\x09\x09updateVariablesList;\x0a\x09\x09updateValueTextarea.",
|
|
|
messageSends: ["class:", "div", "with:", "ul", "textarea", "at:put:", "yourself", "button", "onClick:", "refresh", "dive", "updateVariablesList", "updateValueTextarea"],
|
|
|
referencedClasses: []
|
|
|
}),
|
|
|
-smalltalk.Inspector);
|
|
|
+smalltalk.IDEInspector);
|
|
|
|
|
|
smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
@@ -5149,13 +4923,13 @@ self._selectedVariable_(aString);
|
|
|
self._updateVariablesList();
|
|
|
self._updateValueTextarea();
|
|
|
$1=self._updateButtons();
|
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"selectVariable:",{aString:aString},smalltalk.Inspector)})},
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"selectVariable:",{aString:aString},smalltalk.IDEInspector)})},
|
|
|
args: ["aString"],
|
|
|
source: "selectVariable: aString\x0a\x09self selectedVariable: aString.\x0a\x09self\x0a\x09\x09updateVariablesList;\x0a\x09\x09updateValueTextarea;\x0a\x09\x09updateButtons",
|
|
|
messageSends: ["selectedVariable:", "updateVariablesList", "updateValueTextarea", "updateButtons"],
|
|
|
referencedClasses: []
|
|
|
}),
|
|
|
-smalltalk.Inspector);
|
|
|
+smalltalk.IDEInspector);
|
|
|
|
|
|
smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
@@ -5172,7 +4946,7 @@ source: "selectedVariable\x0a\x09^ selectedVariable",
|
|
|
messageSends: [],
|
|
|
referencedClasses: []
|
|
|
}),
|
|
|
-smalltalk.Inspector);
|
|
|
+smalltalk.IDEInspector);
|
|
|
|
|
|
smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
@@ -5187,7 +4961,7 @@ source: "selectedVariable: aString\x0a\x09selectedVariable := aString",
|
|
|
messageSends: [],
|
|
|
referencedClasses: []
|
|
|
}),
|
|
|
-smalltalk.Inspector);
|
|
|
+smalltalk.IDEInspector);
|
|
|
|
|
|
smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
@@ -5202,7 +4976,7 @@ source: "setLabel: aString\x0a\x09label := aString",
|
|
|
messageSends: [],
|
|
|
referencedClasses: []
|
|
|
}),
|
|
|
-smalltalk.Inspector);
|
|
|
+smalltalk.IDEInspector);
|
|
|
|
|
|
smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
@@ -5217,7 +4991,7 @@ source: "setVariables: aCollection\x0a\x09variables := aCollection",
|
|
|
messageSends: [],
|
|
|
referencedClasses: []
|
|
|
}),
|
|
|
-smalltalk.Inspector);
|
|
|
+smalltalk.IDEInspector);
|
|
|
|
|
|
smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
@@ -5234,7 +5008,7 @@ source: "sourceArea\x0a\x09^ sourceArea",
|
|
|
messageSends: [],
|
|
|
referencedClasses: []
|
|
|
}),
|
|
|
-smalltalk.Inspector);
|
|
|
+smalltalk.IDEInspector);
|
|
|
|
|
|
smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
@@ -5257,13 +5031,13 @@ _st(self["@diveButton"])._removeAt_("disabled");
|
|
|
} else {
|
|
|
_st(self["@diveButton"])._at_put_("disabled",true);
|
|
|
};
|
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"updateButtons",{},smalltalk.Inspector)})},
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"updateButtons",{},smalltalk.IDEInspector)})},
|
|
|
args: [],
|
|
|
source: "updateButtons\x0a\x09(self selectedVariable notNil and: [ (self variables at: self selectedVariable) notNil ])\x0a\x09\x09ifFalse: [ diveButton at: 'disabled' put: true ]\x0a\x09\x09ifTrue: [ diveButton removeAt: 'disabled' ]",
|
|
|
messageSends: ["ifFalse:ifTrue:", "and:", "notNil", "selectedVariable", "at:", "variables", "at:put:", "removeAt:"],
|
|
|
referencedClasses: []
|
|
|
}),
|
|
|
-smalltalk.Inspector);
|
|
|
+smalltalk.IDEInspector);
|
|
|
|
|
|
smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
@@ -5283,13 +5057,13 @@ $2="";
|
|
|
$2=_st(_st(self._variables())._at_(self._selectedVariable()))._printString();
|
|
|
};
|
|
|
_st($1)._val_($2);
|
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"updateValueTextarea",{},smalltalk.Inspector)})},
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"updateValueTextarea",{},smalltalk.IDEInspector)})},
|
|
|
args: [],
|
|
|
source: "updateValueTextarea\x0a\x09valueTextarea asJQuery val: (self selectedVariable isNil\x0a\x09\x09ifTrue: [ '' ]\x0a\x09\x09ifFalse: [ (self variables at: self selectedVariable) printString ])",
|
|
|
messageSends: ["val:", "asJQuery", "ifTrue:ifFalse:", "isNil", "selectedVariable", "printString", "at:", "variables"],
|
|
|
referencedClasses: []
|
|
|
}),
|
|
|
-smalltalk.Inspector);
|
|
|
+smalltalk.IDEInspector);
|
|
|
|
|
|
smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
@@ -5319,13 +5093,13 @@ return _st(li)._class_("selected");
|
|
|
};
|
|
|
}, function($ctx3) {$ctx3.fillBlock({each:each,li:li},$ctx2,2)})}));
|
|
|
}, function($ctx2) {$ctx2.fillBlock({html:html},$ctx1,1)})}));
|
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"updateVariablesList",{},smalltalk.Inspector)})},
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"updateVariablesList",{},smalltalk.IDEInspector)})},
|
|
|
args: [],
|
|
|
source: "updateVariablesList\x0a\x09variablesList contents: [ :html |\x0a\x09\x09self variables keysDo: [ :each || li |\x0a\x09\x09\x09li := html li.\x0a\x09\x09\x09li\x0a\x09\x09\x09\x09with: each;\x0a\x09\x09\x09\x09onClick: [ self selectVariable: each ].\x0a\x09\x09\x09self selectedVariable = each ifTrue: [\x0a\x09\x09\x09\x09li class: 'selected' ]] ]",
|
|
|
messageSends: ["contents:", "keysDo:", "variables", "li", "with:", "onClick:", "selectVariable:", "ifTrue:", "=", "selectedVariable", "class:"],
|
|
|
referencedClasses: []
|
|
|
}),
|
|
|
-smalltalk.Inspector);
|
|
|
+smalltalk.IDEInspector);
|
|
|
|
|
|
smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
@@ -5342,7 +5116,7 @@ source: "variables\x0a\x09^ variables",
|
|
|
messageSends: [],
|
|
|
referencedClasses: []
|
|
|
}),
|
|
|
-smalltalk.Inspector);
|
|
|
+smalltalk.IDEInspector);
|
|
|
|
|
|
|
|
|
smalltalk.addMethod(
|
|
@@ -5359,13 +5133,13 @@ _st($2)._open();
|
|
|
$3=_st($2)._yourself();
|
|
|
$1=$3;
|
|
|
return $1;
|
|
|
-}, function($ctx1) {$ctx1.fill(self,"inspect:",{anObject:anObject},smalltalk.Inspector.klass)})},
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"inspect:",{anObject:anObject},smalltalk.IDEInspector.klass)})},
|
|
|
args: ["anObject"],
|
|
|
source: "inspect: anObject\x0a\x09^ self new\x0a\x09\x09inspect: anObject;\x0a\x09\x09open;\x0a\x09\x09yourself",
|
|
|
messageSends: ["inspect:", "new", "open", "yourself"],
|
|
|
referencedClasses: []
|
|
|
}),
|
|
|
-smalltalk.Inspector.klass);
|
|
|
+smalltalk.IDEInspector.klass);
|
|
|
|
|
|
smalltalk.addMethod(
|
|
|
smalltalk.method({
|
|
@@ -5380,13 +5154,233 @@ _st($2)._inspect_(anObject);
|
|
|
$3=_st($2)._yourself();
|
|
|
$1=$3;
|
|
|
return $1;
|
|
|
-}, function($ctx1) {$ctx1.fill(self,"on:",{anObject:anObject},smalltalk.Inspector.klass)})},
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"on:",{anObject:anObject},smalltalk.IDEInspector.klass)})},
|
|
|
args: ["anObject"],
|
|
|
source: "on: anObject\x0a\x09^ self new\x0a\x09\x09inspect: anObject;\x0a\x09\x09yourself",
|
|
|
messageSends: ["inspect:", "new", "yourself"],
|
|
|
referencedClasses: []
|
|
|
}),
|
|
|
-smalltalk.Inspector.klass);
|
|
|
+smalltalk.IDEInspector.klass);
|
|
|
+
|
|
|
+
|
|
|
+smalltalk.addClass('IDETranscript', smalltalk.TabWidget, ['textarea'], 'IDE');
|
|
|
+smalltalk.addMethod(
|
|
|
+smalltalk.method({
|
|
|
+selector: "clear",
|
|
|
+protocol: 'actions',
|
|
|
+fn: function (){
|
|
|
+var self=this;
|
|
|
+return smalltalk.withContext(function($ctx1) {
|
|
|
+_st(_st(self["@textarea"])._asJQuery())._val_("");
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"clear",{},smalltalk.IDETranscript)})},
|
|
|
+args: [],
|
|
|
+source: "clear\x0a\x09textarea asJQuery val: ''",
|
|
|
+messageSends: ["val:", "asJQuery"],
|
|
|
+referencedClasses: []
|
|
|
+}),
|
|
|
+smalltalk.IDETranscript);
|
|
|
+
|
|
|
+smalltalk.addMethod(
|
|
|
+smalltalk.method({
|
|
|
+selector: "cr",
|
|
|
+protocol: 'actions',
|
|
|
+fn: function (){
|
|
|
+var self=this;
|
|
|
+function $String(){return smalltalk.String||(typeof String=="undefined"?nil:String)}
|
|
|
+return smalltalk.withContext(function($ctx1) {
|
|
|
+var $1;
|
|
|
+$1=_st(self["@textarea"])._asJQuery();
|
|
|
+$ctx1.sendIdx["asJQuery"]=1;
|
|
|
+_st($1)._val_(_st(_st(_st(self["@textarea"])._asJQuery())._val()).__comma(_st($String())._cr()));
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"cr",{},smalltalk.IDETranscript)})},
|
|
|
+args: [],
|
|
|
+source: "cr\x0a\x09textarea asJQuery val: textarea asJQuery val, String cr.",
|
|
|
+messageSends: ["val:", "asJQuery", ",", "val", "cr"],
|
|
|
+referencedClasses: ["String"]
|
|
|
+}),
|
|
|
+smalltalk.IDETranscript);
|
|
|
+
|
|
|
+smalltalk.addMethod(
|
|
|
+smalltalk.method({
|
|
|
+selector: "label",
|
|
|
+protocol: 'accessing',
|
|
|
+fn: function (){
|
|
|
+var self=this;
|
|
|
+return "Transcript";
|
|
|
+},
|
|
|
+args: [],
|
|
|
+source: "label\x0a\x09^ 'Transcript'",
|
|
|
+messageSends: [],
|
|
|
+referencedClasses: []
|
|
|
+}),
|
|
|
+smalltalk.IDETranscript);
|
|
|
+
|
|
|
+smalltalk.addMethod(
|
|
|
+smalltalk.method({
|
|
|
+selector: "open",
|
|
|
+protocol: 'actions',
|
|
|
+fn: function (){
|
|
|
+var self=this;
|
|
|
+function $TabManager(){return smalltalk.TabManager||(typeof TabManager=="undefined"?nil:TabManager)}
|
|
|
+return smalltalk.withContext(function($ctx1) {
|
|
|
+var $1,$2;
|
|
|
+$1=_st($TabManager())._current();
|
|
|
+_st($1)._open();
|
|
|
+$2=_st($1)._selectTab_(self);
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"open",{},smalltalk.IDETranscript)})},
|
|
|
+args: [],
|
|
|
+source: "open\x0a\x09TabManager current\x0a\x09open;\x0a\x09selectTab: self",
|
|
|
+messageSends: ["open", "current", "selectTab:"],
|
|
|
+referencedClasses: ["TabManager"]
|
|
|
+}),
|
|
|
+smalltalk.IDETranscript);
|
|
|
+
|
|
|
+smalltalk.addMethod(
|
|
|
+smalltalk.method({
|
|
|
+selector: "renderBoxOn:",
|
|
|
+protocol: 'rendering',
|
|
|
+fn: function (html){
|
|
|
+var self=this;
|
|
|
+return smalltalk.withContext(function($ctx1) {
|
|
|
+var $1,$2;
|
|
|
+self["@textarea"]=_st(html)._textarea();
|
|
|
+$1=self["@textarea"];
|
|
|
+_st($1)._class_("amber_transcript");
|
|
|
+$2=_st($1)._at_put_("spellcheck","false");
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"renderBoxOn:",{html:html},smalltalk.IDETranscript)})},
|
|
|
+args: ["html"],
|
|
|
+source: "renderBoxOn: html\x0a\x09textarea := html textarea.\x0a\x09textarea\x0a\x09class: 'amber_transcript';\x0a\x09at: 'spellcheck' put: 'false'",
|
|
|
+messageSends: ["textarea", "class:", "at:put:"],
|
|
|
+referencedClasses: []
|
|
|
+}),
|
|
|
+smalltalk.IDETranscript);
|
|
|
+
|
|
|
+smalltalk.addMethod(
|
|
|
+smalltalk.method({
|
|
|
+selector: "renderButtonsOn:",
|
|
|
+protocol: 'rendering',
|
|
|
+fn: function (html){
|
|
|
+var self=this;
|
|
|
+return smalltalk.withContext(function($ctx1) {
|
|
|
+var $1,$2;
|
|
|
+$1=_st(html)._button();
|
|
|
+_st($1)._with_("Clear transcript");
|
|
|
+$2=_st($1)._onClick_((function(){
|
|
|
+return smalltalk.withContext(function($ctx2) {
|
|
|
+return self._clear();
|
|
|
+}, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)})}));
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"renderButtonsOn:",{html:html},smalltalk.IDETranscript)})},
|
|
|
+args: ["html"],
|
|
|
+source: "renderButtonsOn: html\x0a\x09html button\x0a\x09with: 'Clear transcript';\x0a\x09onClick: [ self clear ]",
|
|
|
+messageSends: ["with:", "button", "onClick:", "clear"],
|
|
|
+referencedClasses: []
|
|
|
+}),
|
|
|
+smalltalk.IDETranscript);
|
|
|
+
|
|
|
+smalltalk.addMethod(
|
|
|
+smalltalk.method({
|
|
|
+selector: "show:",
|
|
|
+protocol: 'actions',
|
|
|
+fn: function (anObject){
|
|
|
+var self=this;
|
|
|
+return smalltalk.withContext(function($ctx1) {
|
|
|
+var $1,$2;
|
|
|
+$1=self["@textarea"];
|
|
|
+if(($receiver = $1) == nil || $receiver == null){
|
|
|
+self._open();
|
|
|
+} else {
|
|
|
+$1;
|
|
|
+};
|
|
|
+$2=_st(self["@textarea"])._asJQuery();
|
|
|
+$ctx1.sendIdx["asJQuery"]=1;
|
|
|
+_st($2)._val_(_st(_st(_st(self["@textarea"])._asJQuery())._val()).__comma(_st(anObject)._asString()));
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"show:",{anObject:anObject},smalltalk.IDETranscript)})},
|
|
|
+args: ["anObject"],
|
|
|
+source: "show: anObject\x0a\x09textarea ifNil: [ self open ].\x0a\x09textarea asJQuery val: textarea asJQuery val, anObject asString.",
|
|
|
+messageSends: ["ifNil:", "open", "val:", "asJQuery", ",", "val", "asString"],
|
|
|
+referencedClasses: []
|
|
|
+}),
|
|
|
+smalltalk.IDETranscript);
|
|
|
+
|
|
|
+
|
|
|
+smalltalk.IDETranscript.klass.iVarNames = ['current'];
|
|
|
+smalltalk.addMethod(
|
|
|
+smalltalk.method({
|
|
|
+selector: "current",
|
|
|
+protocol: 'instance creation',
|
|
|
+fn: function (){
|
|
|
+var self=this;
|
|
|
+return smalltalk.withContext(function($ctx1) {
|
|
|
+var $2,$1;
|
|
|
+$2=self["@current"];
|
|
|
+if(($receiver = $2) == nil || $receiver == null){
|
|
|
+self["@current"]=smalltalk.IDETranscript.klass.superclass.fn.prototype._new.apply(_st(self), []);
|
|
|
+$1=self["@current"];
|
|
|
+} else {
|
|
|
+$1=$2;
|
|
|
+};
|
|
|
+return $1;
|
|
|
+}, function($ctx1) {$ctx1.fill(self,"current",{},smalltalk.IDETranscript.klass)})},
|
|
|
+args: [],
|
|
|
+source: "current\x0a\x09^ current ifNil: [ current := super new ]",
|
|
|
+messageSends: ["ifNil:", "new"],
|
|
|
+referencedClasses: []
|
|
|
+}),
|
|
|
+smalltalk.IDETranscript.klass);
|
|
|
+
|
|
|
+smalltalk.addMethod(
|
|
|
+smalltalk.method({
|
|
|
+selector: "initialize",
|
|
|
+protocol: 'initialization',
|
|
|
+fn: function (){
|
|
|
+var self=this;
|
|
|
+function $Transcript(){return smalltalk.Transcript||(typeof Transcript=="undefined"?nil:Transcript)}
|
|
|
+return smalltalk.withContext(function($ctx1) {
|
|
|
+_st($Transcript())._register_(self._current());
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"initialize",{},smalltalk.IDETranscript.klass)})},
|
|
|
+args: [],
|
|
|
+source: "initialize\x0a\x09Transcript register: self current",
|
|
|
+messageSends: ["register:", "current"],
|
|
|
+referencedClasses: ["Transcript"]
|
|
|
+}),
|
|
|
+smalltalk.IDETranscript.klass);
|
|
|
+
|
|
|
+smalltalk.addMethod(
|
|
|
+smalltalk.method({
|
|
|
+selector: "new",
|
|
|
+protocol: 'instance creation',
|
|
|
+fn: function (){
|
|
|
+var self=this;
|
|
|
+return smalltalk.withContext(function($ctx1) {
|
|
|
+self._shouldNotImplement();
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"new",{},smalltalk.IDETranscript.klass)})},
|
|
|
+args: [],
|
|
|
+source: "new\x0a\x09self shouldNotImplement",
|
|
|
+messageSends: ["shouldNotImplement"],
|
|
|
+referencedClasses: []
|
|
|
+}),
|
|
|
+smalltalk.IDETranscript.klass);
|
|
|
+
|
|
|
+smalltalk.addMethod(
|
|
|
+smalltalk.method({
|
|
|
+selector: "open",
|
|
|
+protocol: 'instance creation',
|
|
|
+fn: function (){
|
|
|
+var self=this;
|
|
|
+function $TabManager(){return smalltalk.TabManager||(typeof TabManager=="undefined"?nil:TabManager)}
|
|
|
+return smalltalk.withContext(function($ctx1) {
|
|
|
+var $1,$2;
|
|
|
+$1=_st($TabManager())._current();
|
|
|
+$ctx1.sendIdx["current"]=1;
|
|
|
+_st($1)._open();
|
|
|
+$2=_st($1)._selectTab_(self._current());
|
|
|
+return self}, function($ctx1) {$ctx1.fill(self,"open",{},smalltalk.IDETranscript.klass)})},
|
|
|
+args: [],
|
|
|
+source: "open\x0a\x09TabManager current\x0a\x09\x09open;\x0a\x09\x09selectTab: self current",
|
|
|
+messageSends: ["open", "current", "selectTab:"],
|
|
|
+referencedClasses: ["TabManager"]
|
|
|
+}),
|
|
|
+smalltalk.IDETranscript.klass);
|
|
|
|
|
|
|
|
|
smalltalk.addClass('ProgressBar', smalltalk.TabWidget, ['percent', 'progressDiv', 'div'], 'IDE');
|