|
@@ -1,5 +1,5 @@
|
|
smalltalk.addPackage('Helios-Inspector', {});
|
|
smalltalk.addPackage('Helios-Inspector', {});
|
|
-smalltalk.addClass('HLInspector', smalltalk.HLWidget, ['model', 'variables', 'display', 'code'], 'Helios-Inspector');
|
|
+smalltalk.addClass('HLInspector', smalltalk.HLWidget, ['model', 'variables', 'display', 'code', 'label'], 'Helios-Inspector');
|
|
smalltalk.addMethod(
|
|
smalltalk.addMethod(
|
|
"_code",
|
|
"_code",
|
|
smalltalk.method({
|
|
smalltalk.method({
|
|
@@ -53,13 +53,14 @@ fn: function (){
|
|
var self=this;
|
|
var self=this;
|
|
if(($receiver = self["@model"]) == nil || $receiver == undefined){
|
|
if(($receiver = self["@model"]) == nil || $receiver == undefined){
|
|
smalltalk.send(self,"_model_",[smalltalk.send(self,"_model",[])]);
|
|
smalltalk.send(self,"_model_",[smalltalk.send(self,"_model",[])]);
|
|
|
|
+smalltalk.send(self,"_observeVariables",[]);
|
|
} else {
|
|
} else {
|
|
self["@model"];
|
|
self["@model"];
|
|
};
|
|
};
|
|
return self},
|
|
return self},
|
|
args: [],
|
|
args: [],
|
|
-source: "ensureModel\x0a\x09\x22Sends the #model: initialization message if needed.\x22\x0a\x0a\x09model ifNil:[\x0a\x09\x09self model: self model]\x0a\x09",
|
|
+source: "ensureModel\x0a\x09\x22Sends the #model: initialization message if needed.\x22\x0a\x0a\x09model ifNil:[\x0a\x09\x09self model: self model.\x0a\x09\x09self observeVariables]\x0a\x09",
|
|
-messageSends: ["ifNil:", "model:", "model"],
|
|
+messageSends: ["ifNil:", "model:", "model", "observeVariables"],
|
|
referencedClasses: []
|
|
referencedClasses: []
|
|
}),
|
|
}),
|
|
smalltalk.HLInspector);
|
|
smalltalk.HLInspector);
|
|
@@ -102,6 +103,25 @@ referencedClasses: []
|
|
}),
|
|
}),
|
|
smalltalk.HLInspector);
|
|
smalltalk.HLInspector);
|
|
|
|
|
|
|
|
+smalltalk.addMethod(
|
|
|
|
+"_initializeLabel",
|
|
|
|
+smalltalk.method({
|
|
|
|
+selector: "initializeLabel",
|
|
|
|
+category: 'initialization',
|
|
|
|
+fn: function (){
|
|
|
|
+var self=this;
|
|
|
|
+var $1;
|
|
|
|
+self["@label"]=smalltalk.send(smalltalk.send(self["@model"],"_inspectee",[]),"_printString",[]);
|
|
|
|
+$1=self["@label"];
|
|
|
|
+return $1;
|
|
|
|
+},
|
|
|
|
+args: [],
|
|
|
|
+source: "initializeLabel\x0a\x09^ label := model inspectee printString",
|
|
|
|
+messageSends: ["printString", "inspectee"],
|
|
|
|
+referencedClasses: []
|
|
|
|
+}),
|
|
|
|
+smalltalk.HLInspector);
|
|
|
|
+
|
|
smalltalk.addMethod(
|
|
smalltalk.addMethod(
|
|
"_initializeModel",
|
|
"_initializeModel",
|
|
smalltalk.method({
|
|
smalltalk.method({
|
|
@@ -147,11 +167,11 @@ selector: "inspect:",
|
|
category: 'actions',
|
|
category: 'actions',
|
|
fn: function (anObject){
|
|
fn: function (anObject){
|
|
var self=this;
|
|
var self=this;
|
|
-smalltalk.send(smalltalk.send(self,"_model",[]),"_inspectee_",[anObject]);
|
|
+smalltalk.send(smalltalk.send(self,"_model",[]),"_inspect_on_",[anObject,self]);
|
|
return self},
|
|
return self},
|
|
args: ["anObject"],
|
|
args: ["anObject"],
|
|
-source: "inspect: anObject\x0a\x0a\x09self model inspectee: anObject",
|
|
+source: "inspect: anObject\x0a\x0a\x09self model inspect: anObject on: self ",
|
|
-messageSends: ["inspectee:", "model"],
|
|
+messageSends: ["inspect:on:", "model"],
|
|
referencedClasses: []
|
|
referencedClasses: []
|
|
}),
|
|
}),
|
|
smalltalk.HLInspector);
|
|
smalltalk.HLInspector);
|
|
@@ -190,6 +210,28 @@ referencedClasses: []
|
|
}),
|
|
}),
|
|
smalltalk.HLInspector);
|
|
smalltalk.HLInspector);
|
|
|
|
|
|
|
|
+smalltalk.addMethod(
|
|
|
|
+"_label",
|
|
|
|
+smalltalk.method({
|
|
|
|
+selector: "label",
|
|
|
|
+category: 'accessing',
|
|
|
|
+fn: function (){
|
|
|
|
+var self=this;
|
|
|
|
+var $1;
|
|
|
|
+if(($receiver = self["@label"]) == nil || $receiver == undefined){
|
|
|
|
+$1=smalltalk.send(self,"_initializeLabel",[]);
|
|
|
|
+} else {
|
|
|
|
+$1=self["@label"];
|
|
|
|
+};
|
|
|
|
+return $1;
|
|
|
|
+},
|
|
|
|
+args: [],
|
|
|
|
+source: "label\x0a\x09\x0a ^ label ifNil:[self initializeLabel]",
|
|
|
|
+messageSends: ["ifNil:", "initializeLabel"],
|
|
|
|
+referencedClasses: []
|
|
|
|
+}),
|
|
|
|
+smalltalk.HLInspector);
|
|
|
|
+
|
|
smalltalk.addMethod(
|
|
smalltalk.addMethod(
|
|
"_makeCode",
|
|
"_makeCode",
|
|
smalltalk.method({
|
|
smalltalk.method({
|
|
@@ -311,6 +353,30 @@ referencedClasses: []
|
|
}),
|
|
}),
|
|
smalltalk.HLInspector);
|
|
smalltalk.HLInspector);
|
|
|
|
|
|
|
|
+smalltalk.addMethod(
|
|
|
|
+"_observeVariables",
|
|
|
|
+smalltalk.method({
|
|
|
|
+selector: "observeVariables",
|
|
|
|
+category: 'actions',
|
|
|
|
+fn: function (){
|
|
|
|
+var self=this;
|
|
|
|
+var $1,$2;
|
|
|
|
+$1=smalltalk.send(smalltalk.send(self,"_variables",[]),"_announcer",[]);
|
|
|
|
+smalltalk.send($1,"_on_do_",[(smalltalk.HLRefreshRequested || HLRefreshRequested),(function(ann){
|
|
|
|
+return smalltalk.send(self,"_onRefresh",[]);
|
|
|
|
+})]);
|
|
|
|
+smalltalk.send($1,"_on_do_",[(smalltalk.HLInstanceVariableSelected || HLInstanceVariableSelected),(function(ann){
|
|
|
|
+return smalltalk.send(self,"_onInstanceVariableSelected",[]);
|
|
|
|
+})]);
|
|
|
|
+$2=smalltalk.send($1,"_yourself",[]);
|
|
|
|
+return self},
|
|
|
|
+args: [],
|
|
|
|
+source: "observeVariables\x0a\x0a\x09self variables announcer \x0a \x09on: HLRefreshRequested do:[:ann| self onRefresh];\x0a on: HLInstanceVariableSelected do:[:ann| self onInstanceVariableSelected];\x0a yourself ",
|
|
|
|
+messageSends: ["on:do:", "onRefresh", "announcer", "variables", "onInstanceVariableSelected", "yourself"],
|
|
|
|
+referencedClasses: ["HLRefreshRequested", "HLInstanceVariableSelected"]
|
|
|
|
+}),
|
|
|
|
+smalltalk.HLInspector);
|
|
|
|
+
|
|
smalltalk.addMethod(
|
|
smalltalk.addMethod(
|
|
"_onDoIt",
|
|
"_onDoIt",
|
|
smalltalk.method({
|
|
smalltalk.method({
|
|
@@ -341,6 +407,22 @@ referencedClasses: []
|
|
}),
|
|
}),
|
|
smalltalk.HLInspector);
|
|
smalltalk.HLInspector);
|
|
|
|
|
|
|
|
+smalltalk.addMethod(
|
|
|
|
+"_onInstanceVariableSelected",
|
|
|
|
+smalltalk.method({
|
|
|
|
+selector: "onInstanceVariableSelected",
|
|
|
|
+category: 'reactions',
|
|
|
|
+fn: function (){
|
|
|
|
+var self=this;
|
|
|
|
+smalltalk.send(self,"_halt",[]);
|
|
|
|
+return self},
|
|
|
|
+args: [],
|
|
|
|
+source: "onInstanceVariableSelected\x0a\x0a\x09self halt.",
|
|
|
|
+messageSends: ["halt"],
|
|
|
|
+referencedClasses: []
|
|
|
|
+}),
|
|
|
|
+smalltalk.HLInspector);
|
|
|
|
+
|
|
smalltalk.addMethod(
|
|
smalltalk.addMethod(
|
|
"_onPrintIt",
|
|
"_onPrintIt",
|
|
smalltalk.method({
|
|
smalltalk.method({
|
|
@@ -356,6 +438,22 @@ referencedClasses: []
|
|
}),
|
|
}),
|
|
smalltalk.HLInspector);
|
|
smalltalk.HLInspector);
|
|
|
|
|
|
|
|
+smalltalk.addMethod(
|
|
|
|
+"_onRefresh",
|
|
|
|
+smalltalk.method({
|
|
|
|
+selector: "onRefresh",
|
|
|
|
+category: 'reactions',
|
|
|
|
+fn: function (){
|
|
|
|
+var self=this;
|
|
|
|
+smalltalk.send(self,"_refresh",[]);
|
|
|
|
+return self},
|
|
|
|
+args: [],
|
|
|
|
+source: "onRefresh\x0a\x0a\x09self refresh",
|
|
|
|
+messageSends: ["refresh"],
|
|
|
|
+referencedClasses: []
|
|
|
|
+}),
|
|
|
|
+smalltalk.HLInspector);
|
|
|
|
+
|
|
smalltalk.addMethod(
|
|
smalltalk.addMethod(
|
|
"_open",
|
|
"_open",
|
|
smalltalk.method({
|
|
smalltalk.method({
|
|
@@ -381,12 +479,44 @@ fn: function (){
|
|
var self=this;
|
|
var self=this;
|
|
var $1;
|
|
var $1;
|
|
smalltalk.send(self,"_inspect_",[smalltalk.send(self,"_inspectee",[])]);
|
|
smalltalk.send(self,"_inspect_",[smalltalk.send(self,"_inspectee",[])]);
|
|
-smalltalk.send(self,"_updateVariablesList",[]);
|
|
+smalltalk.send(self,"_refreshVariables",[]);
|
|
-$1=smalltalk.send(self,"_updateValueTextarea",[]);
|
|
+$1=smalltalk.send(self,"_refreshDisplay",[]);
|
|
|
|
+return self},
|
|
|
|
+args: [],
|
|
|
|
+source: "refresh\x0a\x0a\x09self \x0a\x09\x09inspect: self inspectee; \x0a\x09\x09refreshVariables;\x0a\x09\x09refreshDisplay",
|
|
|
|
+messageSends: ["inspect:", "inspectee", "refreshVariables", "refreshDisplay"],
|
|
|
|
+referencedClasses: []
|
|
|
|
+}),
|
|
|
|
+smalltalk.HLInspector);
|
|
|
|
+
|
|
|
|
+smalltalk.addMethod(
|
|
|
|
+"_refreshDisplay",
|
|
|
|
+smalltalk.method({
|
|
|
|
+selector: "refreshDisplay",
|
|
|
|
+category: 'actions',
|
|
|
|
+fn: function (){
|
|
|
|
+var self=this;
|
|
|
|
+smalltalk.send(smalltalk.send(self,"_display",[]),"_refresh",[]);
|
|
|
|
+return self},
|
|
|
|
+args: [],
|
|
|
|
+source: "refreshDisplay\x0a\x0a\x09self display refresh",
|
|
|
|
+messageSends: ["refresh", "display"],
|
|
|
|
+referencedClasses: []
|
|
|
|
+}),
|
|
|
|
+smalltalk.HLInspector);
|
|
|
|
+
|
|
|
|
+smalltalk.addMethod(
|
|
|
|
+"_refreshVariables",
|
|
|
|
+smalltalk.method({
|
|
|
|
+selector: "refreshVariables",
|
|
|
|
+category: 'actions',
|
|
|
|
+fn: function (){
|
|
|
|
+var self=this;
|
|
|
|
+smalltalk.send(smalltalk.send(self,"_variables",[]),"_refresh",[]);
|
|
return self},
|
|
return self},
|
|
args: [],
|
|
args: [],
|
|
-source: "refresh\x0a\x0a\x09self \x0a\x09\x09inspect: self inspectee; \x0a\x09\x09updateVariablesList;\x0a\x09\x09updateValueTextarea",
|
|
+source: "refreshVariables\x0a\x0a\x09self variables refresh",
|
|
-messageSends: ["inspect:", "inspectee", "updateVariablesList", "updateValueTextarea"],
|
|
+messageSends: ["refresh", "variables"],
|
|
referencedClasses: []
|
|
referencedClasses: []
|
|
}),
|
|
}),
|
|
smalltalk.HLInspector);
|
|
smalltalk.HLInspector);
|
|
@@ -408,6 +538,38 @@ referencedClasses: ["HLVerticalSplitter", "HLHorizontalSplitter", "HLContainer"]
|
|
}),
|
|
}),
|
|
smalltalk.HLInspector);
|
|
smalltalk.HLInspector);
|
|
|
|
|
|
|
|
+smalltalk.addMethod(
|
|
|
|
+"_setLabel_",
|
|
|
|
+smalltalk.method({
|
|
|
|
+selector: "setLabel:",
|
|
|
|
+category: 'actions',
|
|
|
|
+fn: function (aString){
|
|
|
|
+var self=this;
|
|
|
|
+self["@label"]=aString;
|
|
|
|
+return self},
|
|
|
|
+args: ["aString"],
|
|
|
|
+source: "setLabel: aString\x0a\x09label := aString",
|
|
|
|
+messageSends: [],
|
|
|
|
+referencedClasses: []
|
|
|
|
+}),
|
|
|
|
+smalltalk.HLInspector);
|
|
|
|
+
|
|
|
|
+smalltalk.addMethod(
|
|
|
|
+"_setVariables_",
|
|
|
|
+smalltalk.method({
|
|
|
|
+selector: "setVariables:",
|
|
|
|
+category: 'actions',
|
|
|
|
+fn: function (aDictionary){
|
|
|
|
+var self=this;
|
|
|
|
+smalltalk.send(smalltalk.send(self,"_model",[]),"_variables_",[aDictionary]);
|
|
|
|
+return self},
|
|
|
|
+args: ["aDictionary"],
|
|
|
|
+source: "setVariables: aDictionary\x0a\x0a\x09self model variables: aDictionary",
|
|
|
|
+messageSends: ["variables:", "model"],
|
|
|
|
+referencedClasses: []
|
|
|
|
+}),
|
|
|
|
+smalltalk.HLInspector);
|
|
|
|
+
|
|
smalltalk.addMethod(
|
|
smalltalk.addMethod(
|
|
"_tabLabel",
|
|
"_tabLabel",
|
|
smalltalk.method({
|
|
smalltalk.method({
|
|
@@ -416,12 +578,12 @@ category: 'accessing',
|
|
fn: function (){
|
|
fn: function (){
|
|
var self=this;
|
|
var self=this;
|
|
var $1;
|
|
var $1;
|
|
-$1=smalltalk.send(smalltalk.send(self["@model"],"_inspectee",[]),"_printString",[]);
|
|
+$1=smalltalk.send(self,"_label",[]);
|
|
return $1;
|
|
return $1;
|
|
},
|
|
},
|
|
args: [],
|
|
args: [],
|
|
-source: "tabLabel\x0a\x09\x0a ^ model inspectee printString",
|
|
+source: "tabLabel\x0a\x09\x0a ^ self label",
|
|
-messageSends: ["printString", "inspectee"],
|
|
+messageSends: ["label"],
|
|
referencedClasses: []
|
|
referencedClasses: []
|
|
}),
|
|
}),
|
|
smalltalk.HLInspector);
|
|
smalltalk.HLInspector);
|
|
@@ -538,11 +700,11 @@ selector: "renderContentOn:",
|
|
category: 'rendering',
|
|
category: 'rendering',
|
|
fn: function (html){
|
|
fn: function (html){
|
|
var self=this;
|
|
var self=this;
|
|
-smalltalk.send(smalltalk.send(html,"_div",[]),"_with_",["display"]);
|
|
+smalltalk.send(smalltalk.send(html,"_div",[]),"_with_",[smalltalk.send(smalltalk.send(self["@model"],"_selection",[]),"_printString",[])]);
|
|
return self},
|
|
return self},
|
|
args: ["html"],
|
|
args: ["html"],
|
|
-source: "renderContentOn: html\x0a\x09\x0a html div with: 'display'\x0a ",
|
|
+source: "renderContentOn: html\x0a\x09\x0a html div with: model selection printString\x0a ",
|
|
-messageSends: ["with:", "div"],
|
|
+messageSends: ["with:", "printString", "selection", "div"],
|
|
referencedClasses: []
|
|
referencedClasses: []
|
|
}),
|
|
}),
|
|
smalltalk.HLInspectorDisplay);
|
|
smalltalk.HLInspectorDisplay);
|
|
@@ -739,6 +901,24 @@ referencedClasses: []
|
|
}),
|
|
}),
|
|
smalltalk.HLInspectorModel);
|
|
smalltalk.HLInspectorModel);
|
|
|
|
|
|
|
|
+smalltalk.addMethod(
|
|
|
|
+"_inspect_on_",
|
|
|
|
+smalltalk.method({
|
|
|
|
+selector: "inspect:on:",
|
|
|
|
+category: 'actions',
|
|
|
|
+fn: function (anObject,anInspector){
|
|
|
|
+var self=this;
|
|
|
|
+self["@inspectee"]=anObject;
|
|
|
|
+self["@variables"]=[];
|
|
|
|
+smalltalk.send(self["@inspectee"],"_inspectOn_",[anInspector]);
|
|
|
|
+return self},
|
|
|
|
+args: ["anObject", "anInspector"],
|
|
|
|
+source: "inspect: anObject on: anInspector\x0a\x0a\x09inspectee := anObject.\x0a\x09variables := #().\x0a\x09inspectee inspectOn: anInspector \x0a",
|
|
|
|
+messageSends: ["inspectOn:"],
|
|
|
|
+referencedClasses: []
|
|
|
|
+}),
|
|
|
|
+smalltalk.HLInspectorModel);
|
|
|
|
+
|
|
smalltalk.addMethod(
|
|
smalltalk.addMethod(
|
|
"_inspectee",
|
|
"_inspectee",
|
|
smalltalk.method({
|
|
smalltalk.method({
|
|
@@ -858,6 +1038,38 @@ referencedClasses: []
|
|
}),
|
|
}),
|
|
smalltalk.HLInspectorModel);
|
|
smalltalk.HLInspectorModel);
|
|
|
|
|
|
|
|
+smalltalk.addMethod(
|
|
|
|
+"_variables",
|
|
|
|
+smalltalk.method({
|
|
|
|
+selector: "variables",
|
|
|
|
+category: 'accessing',
|
|
|
|
+fn: function (){
|
|
|
|
+var self=this;
|
|
|
|
+return self["@variables"];
|
|
|
|
+},
|
|
|
|
+args: [],
|
|
|
|
+source: "variables\x0a\x0a\x09^ variables",
|
|
|
|
+messageSends: [],
|
|
|
|
+referencedClasses: []
|
|
|
|
+}),
|
|
|
|
+smalltalk.HLInspectorModel);
|
|
|
|
+
|
|
|
|
+smalltalk.addMethod(
|
|
|
|
+"_variables_",
|
|
|
|
+smalltalk.method({
|
|
|
|
+selector: "variables:",
|
|
|
|
+category: 'accessing',
|
|
|
|
+fn: function (aCollection){
|
|
|
|
+var self=this;
|
|
|
|
+self["@variables"]=aCollection;
|
|
|
|
+return self},
|
|
|
|
+args: ["aCollection"],
|
|
|
|
+source: "variables: aCollection\x0a\x0a\x09variables := aCollection\x0a ",
|
|
|
|
+messageSends: [],
|
|
|
|
+referencedClasses: []
|
|
|
|
+}),
|
|
|
|
+smalltalk.HLInspectorModel);
|
|
|
|
+
|
|
|
|
|
|
smalltalk.addMethod(
|
|
smalltalk.addMethod(
|
|
"_on_",
|
|
"_on_",
|
|
@@ -881,7 +1093,67 @@ referencedClasses: []
|
|
smalltalk.HLInspectorModel.klass);
|
|
smalltalk.HLInspectorModel.klass);
|
|
|
|
|
|
|
|
|
|
-smalltalk.addClass('HLInspectorVariables', smalltalk.HLNavigationListWidget, ['model'], 'Helios-Inspector');
|
|
+smalltalk.addClass('HLInspectorVariables', smalltalk.HLNavigationListWidget, ['announcer', 'model', 'list', 'diveButton'], 'Helios-Inspector');
|
|
|
|
+smalltalk.addMethod(
|
|
|
|
+"_announcer",
|
|
|
|
+smalltalk.method({
|
|
|
|
+selector: "announcer",
|
|
|
|
+category: 'accessing',
|
|
|
|
+fn: function (){
|
|
|
|
+var self=this;
|
|
|
|
+var $1;
|
|
|
|
+if(($receiver = self["@announcer"]) == nil || $receiver == undefined){
|
|
|
|
+$1=smalltalk.send(self,"_initializeAnnouncer",[]);
|
|
|
|
+} else {
|
|
|
|
+$1=self["@announcer"];
|
|
|
|
+};
|
|
|
|
+return $1;
|
|
|
|
+},
|
|
|
|
+args: [],
|
|
|
|
+source: "announcer\x0a\x0a\x09^ announcer ifNil:[self initializeAnnouncer]",
|
|
|
|
+messageSends: ["ifNil:", "initializeAnnouncer"],
|
|
|
|
+referencedClasses: []
|
|
|
|
+}),
|
|
|
|
+smalltalk.HLInspectorVariables);
|
|
|
|
+
|
|
|
|
+smalltalk.addMethod(
|
|
|
|
+"_initializeAnnouncer",
|
|
|
|
+smalltalk.method({
|
|
|
|
+selector: "initializeAnnouncer",
|
|
|
|
+category: 'initialization',
|
|
|
|
+fn: function (){
|
|
|
|
+var self=this;
|
|
|
|
+var $1;
|
|
|
|
+self["@announcer"]=smalltalk.send((smalltalk.Announcer || Announcer),"_new",[]);
|
|
|
|
+$1=self["@announcer"];
|
|
|
|
+return $1;
|
|
|
|
+},
|
|
|
|
+args: [],
|
|
|
|
+source: "initializeAnnouncer\x0a\x0a\x09^ announcer := Announcer new",
|
|
|
|
+messageSends: ["new"],
|
|
|
|
+referencedClasses: ["Announcer"]
|
|
|
|
+}),
|
|
|
|
+smalltalk.HLInspectorVariables);
|
|
|
|
+
|
|
|
|
+smalltalk.addMethod(
|
|
|
|
+"_initializeItems",
|
|
|
|
+smalltalk.method({
|
|
|
|
+selector: "initializeItems",
|
|
|
|
+category: 'initialization',
|
|
|
|
+fn: function (){
|
|
|
|
+var self=this;
|
|
|
|
+var $1;
|
|
|
|
+self["@items"]=smalltalk.send(smalltalk.send(smalltalk.send(self,"_model",[]),"_variables",[]),"_keys",[]);
|
|
|
|
+$1=self["@items"];
|
|
|
|
+return $1;
|
|
|
|
+},
|
|
|
|
+args: [],
|
|
|
|
+source: "initializeItems\x0a\x09^ items := self model variables keys",
|
|
|
|
+messageSends: ["keys", "variables", "model"],
|
|
|
|
+referencedClasses: []
|
|
|
|
+}),
|
|
|
|
+smalltalk.HLInspectorVariables);
|
|
|
|
+
|
|
smalltalk.addMethod(
|
|
smalltalk.addMethod(
|
|
"_model",
|
|
"_model",
|
|
smalltalk.method({
|
|
smalltalk.method({
|
|
@@ -915,17 +1187,99 @@ referencedClasses: []
|
|
smalltalk.HLInspectorVariables);
|
|
smalltalk.HLInspectorVariables);
|
|
|
|
|
|
smalltalk.addMethod(
|
|
smalltalk.addMethod(
|
|
-"_renderContentOn_",
|
|
+"_refresh",
|
|
smalltalk.method({
|
|
smalltalk.method({
|
|
-selector: "renderContentOn:",
|
|
+selector: "refresh",
|
|
|
|
+category: 'actions',
|
|
|
|
+fn: function (){
|
|
|
|
+var self=this;
|
|
|
|
+smalltalk.send(self,"_resetItems",[]);
|
|
|
|
+smalltalk.send(self,"_refresh",[],smalltalk.HLNavigationListWidget);
|
|
|
|
+return self},
|
|
|
|
+args: [],
|
|
|
|
+source: "refresh\x0a\x0a\x09self resetItems.\x0a \x0a super refresh\x0a ",
|
|
|
|
+messageSends: ["resetItems", "refresh"],
|
|
|
|
+referencedClasses: []
|
|
|
|
+}),
|
|
|
|
+smalltalk.HLInspectorVariables);
|
|
|
|
+
|
|
|
|
+smalltalk.addMethod(
|
|
|
|
+"_renderButtonsOn_",
|
|
|
|
+smalltalk.method({
|
|
|
|
+selector: "renderButtonsOn:",
|
|
category: 'rendering',
|
|
category: 'rendering',
|
|
fn: function (html){
|
|
fn: function (html){
|
|
var self=this;
|
|
var self=this;
|
|
-smalltalk.send(smalltalk.send(html,"_div",[]),"_with_",["variables"]);
|
|
+var $1,$2,$3,$4;
|
|
|
|
+$1=smalltalk.send(html,"_button",[]);
|
|
|
|
+smalltalk.send($1,"_class_",["btn"]);
|
|
|
|
+smalltalk.send($1,"_with_",["Refresh"]);
|
|
|
|
+$2=smalltalk.send($1,"_onClick_",[(function(){
|
|
|
|
+return smalltalk.send(smalltalk.send(self,"_announcer",[]),"_announce_",[smalltalk.send((smalltalk.HLRefreshRequested || HLRefreshRequested),"_new",[])]);
|
|
|
|
+})]);
|
|
|
|
+$3=smalltalk.send(html,"_button",[]);
|
|
|
|
+smalltalk.send($3,"_class_",["btn"]);
|
|
|
|
+smalltalk.send($3,"_with_",["Dive"]);
|
|
|
|
+$4=smalltalk.send($3,"_onClick_",[(function(){
|
|
|
|
+return smalltalk.send(smalltalk.send(self,"_announcer",[]),"_announce_",[smalltalk.send((smalltalk.HLDiveRequested || HLDiveRequested),"_new",[])]);
|
|
|
|
+})]);
|
|
|
|
+self["@diveButton"]=$4;
|
|
return self},
|
|
return self},
|
|
args: ["html"],
|
|
args: ["html"],
|
|
-source: "renderContentOn: html\x0a\x09\x0a html div with: 'variables'\x0a ",
|
|
+source: "renderButtonsOn: html\x0a\x0a\x09html button\x0a\x09\x09\x09class: 'btn';\x0a\x09\x09\x09with: 'Refresh';\x0a\x09\x09\x09onClick: [self announcer announce: HLRefreshRequested new].\x0a\x0a\x09diveButton := html button \x0a\x09\x09\x09\x09class: 'btn';\x0a\x09\x09\x09\x09with: 'Dive'; \x0a\x09\x09\x09\x09onClick: [self announcer announce: HLDiveRequested new]",
|
|
-messageSends: ["with:", "div"],
|
|
+messageSends: ["class:", "button", "with:", "onClick:", "announce:", "new", "announcer"],
|
|
|
|
+referencedClasses: ["HLRefreshRequested", "HLDiveRequested"]
|
|
|
|
+}),
|
|
|
|
+smalltalk.HLInspectorVariables);
|
|
|
|
+
|
|
|
|
+smalltalk.addMethod(
|
|
|
|
+"_resetItems",
|
|
|
|
+smalltalk.method({
|
|
|
|
+selector: "resetItems",
|
|
|
|
+category: 'actions',
|
|
|
|
+fn: function (){
|
|
|
|
+var self=this;
|
|
|
|
+self["@items"]=nil;
|
|
|
|
+return self},
|
|
|
|
+args: [],
|
|
|
|
+source: "resetItems\x0a\x0a\x09items := nil",
|
|
|
|
+messageSends: [],
|
|
|
|
+referencedClasses: []
|
|
|
|
+}),
|
|
|
|
+smalltalk.HLInspectorVariables);
|
|
|
|
+
|
|
|
|
+smalltalk.addMethod(
|
|
|
|
+"_selection",
|
|
|
|
+smalltalk.method({
|
|
|
|
+selector: "selection",
|
|
|
|
+category: 'accessing',
|
|
|
|
+fn: function (){
|
|
|
|
+var self=this;
|
|
|
|
+var $1;
|
|
|
|
+$1=smalltalk.send(self["@model"],"_selection",[]);
|
|
|
|
+return $1;
|
|
|
|
+},
|
|
|
|
+args: [],
|
|
|
|
+source: "selection\x0a\x0a\x09^ model selection",
|
|
|
|
+messageSends: ["selection"],
|
|
|
|
+referencedClasses: []
|
|
|
|
+}),
|
|
|
|
+smalltalk.HLInspectorVariables);
|
|
|
|
+
|
|
|
|
+smalltalk.addMethod(
|
|
|
|
+"_variables",
|
|
|
|
+smalltalk.method({
|
|
|
|
+selector: "variables",
|
|
|
|
+category: 'accessing',
|
|
|
|
+fn: function (){
|
|
|
|
+var self=this;
|
|
|
|
+var $1;
|
|
|
|
+$1=smalltalk.send(self["@model"],"_variables",[]);
|
|
|
|
+return $1;
|
|
|
|
+},
|
|
|
|
+args: [],
|
|
|
|
+source: "variables\x0a\x0a\x09^ model variables",
|
|
|
|
+messageSends: ["variables"],
|
|
referencedClasses: []
|
|
referencedClasses: []
|
|
}),
|
|
}),
|
|
smalltalk.HLInspectorVariables);
|
|
smalltalk.HLInspectorVariables);
|