2
0
Quellcode durchsuchen

Helios: Removed old inspector code related to refresh

Nicolas Petton vor 11 Jahren
Ursprung
Commit
7eb23122e4

+ 0 - 3
js/Helios-Announcements.deploy.js

@@ -322,9 +322,6 @@ smalltalk.addClass('HLPackageSelected', smalltalk.HLItemSelected, [], 'Helios-An
 smalltalk.addClass('HLProtocolSelected', smalltalk.HLItemSelected, [], 'Helios-Announcements');
 
 
-smalltalk.addClass('HLRefreshRequested', smalltalk.HLAnnouncement, [], 'Helios-Announcements');
-
-
 smalltalk.addClass('HLSaveSourceCode', smalltalk.HLAnnouncement, [], 'Helios-Announcements');
 
 

+ 0 - 3
js/Helios-Announcements.js

@@ -422,9 +422,6 @@ smalltalk.addClass('HLPackageSelected', smalltalk.HLItemSelected, [], 'Helios-An
 smalltalk.addClass('HLProtocolSelected', smalltalk.HLItemSelected, [], 'Helios-Announcements');
 
 
-smalltalk.addClass('HLRefreshRequested', smalltalk.HLAnnouncement, [], 'Helios-Announcements');
-
-
 smalltalk.addClass('HLSaveSourceCode', smalltalk.HLAnnouncement, [], 'Helios-Announcements');
 
 

+ 5 - 31
js/Helios-Inspector.deploy.js

@@ -185,21 +185,14 @@ smalltalk.method({
 selector: "observeVariablesWidget",
 fn: function (){
 var self=this;
-function $HLRefreshRequested(){return smalltalk.HLRefreshRequested||(typeof HLRefreshRequested=="undefined"?nil:HLRefreshRequested)}
 function $HLDiveRequested(){return smalltalk.HLDiveRequested||(typeof HLDiveRequested=="undefined"?nil:HLDiveRequested)}
 return smalltalk.withContext(function($ctx1) { 
-var $1,$2;
-$1=_st(_st(self)._variablesWidget())._announcer();
-_st($1)._on_do_($HLRefreshRequested(),(function(ann){
-return smalltalk.withContext(function($ctx2) {
-return _st(self)._onRefresh();
-}, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
-$2=_st($1)._on_do_($HLDiveRequested(),(function(){
+_st(_st(_st(self)._variablesWidget())._announcer())._on_do_($HLDiveRequested(),(function(){
 return smalltalk.withContext(function($ctx2) {
 return _st(self)._onDive();
 }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
 return self}, function($ctx1) {$ctx1.fill(self,"observeVariablesWidget",{},smalltalk.HLInspector)})},
-messageSends: ["on:do:", "onRefresh", "announcer", "variablesWidget", "onDive"]}),
+messageSends: ["on:do:", "onDive", "announcer", "variablesWidget"]}),
 smalltalk.HLInspector);
 
 smalltalk.addMethod(
@@ -256,17 +249,6 @@ return self}, function($ctx1) {$ctx1.fill(self,"onPrintIt",{},smalltalk.HLInspec
 messageSends: []}),
 smalltalk.HLInspector);
 
-smalltalk.addMethod(
-smalltalk.method({
-selector: "onRefresh",
-fn: function (){
-var self=this;
-return smalltalk.withContext(function($ctx1) { 
-_st(self)._refresh();
-return self}, function($ctx1) {$ctx1.fill(self,"onRefresh",{},smalltalk.HLInspector)})},
-messageSends: ["refresh"]}),
-smalltalk.HLInspector);
-
 smalltalk.addMethod(
 smalltalk.method({
 selector: "open",
@@ -918,25 +900,17 @@ smalltalk.method({
 selector: "renderButtonsOn:",
 fn: function (html){
 var self=this;
-function $HLRefreshRequested(){return smalltalk.HLRefreshRequested||(typeof HLRefreshRequested=="undefined"?nil:HLRefreshRequested)}
 function $HLDiveRequested(){return smalltalk.HLDiveRequested||(typeof HLDiveRequested=="undefined"?nil:HLDiveRequested)}
 return smalltalk.withContext(function($ctx1) { 
-var $1,$2,$3,$4;
+var $1,$2;
 $1=_st(html)._button();
 _st($1)._class_("btn");
-_st($1)._with_("Refresh");
+_st($1)._with_("Dive");
 $2=_st($1)._onClick_((function(){
 return smalltalk.withContext(function($ctx2) {
-return _st(_st(self)._announcer())._announce_(_st($HLRefreshRequested())._new());
-}, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
-$3=_st(html)._button();
-_st($3)._class_("btn");
-_st($3)._with_("Dive");
-$4=_st($3)._onClick_((function(){
-return smalltalk.withContext(function($ctx2) {
 return _st(_st(self)._announcer())._announce_(_st($HLDiveRequested())._new());
 }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
-self["@diveButton"]=$4;
+self["@diveButton"]=$2;
 return self}, function($ctx1) {$ctx1.fill(self,"renderButtonsOn:",{html:html},smalltalk.HLInspectorVariablesWidget)})},
 messageSends: ["class:", "button", "with:", "onClick:", "announce:", "new", "announcer"]}),
 smalltalk.HLInspectorVariablesWidget);

+ 9 - 40
js/Helios-Inspector.js

@@ -241,24 +241,17 @@ selector: "observeVariablesWidget",
 category: 'actions',
 fn: function (){
 var self=this;
-function $HLRefreshRequested(){return smalltalk.HLRefreshRequested||(typeof HLRefreshRequested=="undefined"?nil:HLRefreshRequested)}
 function $HLDiveRequested(){return smalltalk.HLDiveRequested||(typeof HLDiveRequested=="undefined"?nil:HLDiveRequested)}
 return smalltalk.withContext(function($ctx1) { 
-var $1,$2;
-$1=_st(_st(self)._variablesWidget())._announcer();
-_st($1)._on_do_($HLRefreshRequested(),(function(ann){
-return smalltalk.withContext(function($ctx2) {
-return _st(self)._onRefresh();
-}, function($ctx2) {$ctx2.fillBlock({ann:ann},$ctx1)})}));
-$2=_st($1)._on_do_($HLDiveRequested(),(function(){
+_st(_st(_st(self)._variablesWidget())._announcer())._on_do_($HLDiveRequested(),(function(){
 return smalltalk.withContext(function($ctx2) {
 return _st(self)._onDive();
 }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
 return self}, function($ctx1) {$ctx1.fill(self,"observeVariablesWidget",{},smalltalk.HLInspector)})},
 args: [],
-source: "observeVariablesWidget\x0a\x09self variablesWidget announcer \x0a    \x09on: HLRefreshRequested do: [ :ann | self onRefresh ];\x0a        on: HLDiveRequested do:[ self onDive ]\x0a        ",
-messageSends: ["on:do:", "onRefresh", "announcer", "variablesWidget", "onDive"],
-referencedClasses: ["HLRefreshRequested", "HLDiveRequested"]
+source: "observeVariablesWidget\x0a\x09self variablesWidget announcer \x0a        on: HLDiveRequested do:[ self onDive ]\x0a        ",
+messageSends: ["on:do:", "onDive", "announcer", "variablesWidget"],
+referencedClasses: ["HLDiveRequested"]
 }),
 smalltalk.HLInspector);
 
@@ -341,22 +334,6 @@ referencedClasses: []
 }),
 smalltalk.HLInspector);
 
-smalltalk.addMethod(
-smalltalk.method({
-selector: "onRefresh",
-category: 'reactions',
-fn: function (){
-var self=this;
-return smalltalk.withContext(function($ctx1) { 
-_st(self)._refresh();
-return self}, function($ctx1) {$ctx1.fill(self,"onRefresh",{},smalltalk.HLInspector)})},
-args: [],
-source: "onRefresh\x0a\x0a\x09self refresh",
-messageSends: ["refresh"],
-referencedClasses: []
-}),
-smalltalk.HLInspector);
-
 smalltalk.addMethod(
 smalltalk.method({
 selector: "open",
@@ -1239,30 +1216,22 @@ selector: "renderButtonsOn:",
 category: 'rendering',
 fn: function (html){
 var self=this;
-function $HLRefreshRequested(){return smalltalk.HLRefreshRequested||(typeof HLRefreshRequested=="undefined"?nil:HLRefreshRequested)}
 function $HLDiveRequested(){return smalltalk.HLDiveRequested||(typeof HLDiveRequested=="undefined"?nil:HLDiveRequested)}
 return smalltalk.withContext(function($ctx1) { 
-var $1,$2,$3,$4;
+var $1,$2;
 $1=_st(html)._button();
 _st($1)._class_("btn");
-_st($1)._with_("Refresh");
+_st($1)._with_("Dive");
 $2=_st($1)._onClick_((function(){
 return smalltalk.withContext(function($ctx2) {
-return _st(_st(self)._announcer())._announce_(_st($HLRefreshRequested())._new());
-}, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
-$3=_st(html)._button();
-_st($3)._class_("btn");
-_st($3)._with_("Dive");
-$4=_st($3)._onClick_((function(){
-return smalltalk.withContext(function($ctx2) {
 return _st(_st(self)._announcer())._announce_(_st($HLDiveRequested())._new());
 }, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
-self["@diveButton"]=$4;
+self["@diveButton"]=$2;
 return self}, function($ctx1) {$ctx1.fill(self,"renderButtonsOn:",{html:html},smalltalk.HLInspectorVariablesWidget)})},
 args: ["html"],
-source: "renderButtonsOn: html\x0a\x09html button\x0a\x09\x09class: 'btn';\x0a\x09\x09with: 'Refresh';\x0a\x09\x09onClick: [ self announcer announce: HLRefreshRequested new ].\x0a\x0a\x09diveButton := html button \x0a\x09\x09class: 'btn';\x0a\x09\x09with: 'Dive'; \x0a\x09\x09onClick: [ self announcer announce: HLDiveRequested new ]",
+source: "renderButtonsOn: html\x0a\x09diveButton := html button \x0a\x09\x09class: 'btn';\x0a\x09\x09with: 'Dive'; \x0a\x09\x09onClick: [ self announcer announce: HLDiveRequested new ]",
 messageSends: ["class:", "button", "with:", "onClick:", "announce:", "new", "announcer"],
-referencedClasses: ["HLRefreshRequested", "HLDiveRequested"]
+referencedClasses: ["HLDiveRequested"]
 }),
 smalltalk.HLInspectorVariablesWidget);
 

+ 0 - 4
st/Helios-Announcements.st

@@ -202,10 +202,6 @@ HLItemSelected subclass: #HLProtocolSelected
 	instanceVariableNames: ''
 	package: 'Helios-Announcements'!
 
-HLAnnouncement subclass: #HLRefreshRequested
-	instanceVariableNames: ''
-	package: 'Helios-Announcements'!
-
 HLAnnouncement subclass: #HLSaveSourceCode
 	instanceVariableNames: ''
 	package: 'Helios-Announcements'!

+ 0 - 11
st/Helios-Inspector.st

@@ -89,7 +89,6 @@ observeModel
 
 observeVariablesWidget
 	self variablesWidget announcer 
-    	on: HLRefreshRequested do: [ :ann | self onRefresh ];
         on: HLDiveRequested do:[ self onDive ]
 !
 
@@ -138,11 +137,6 @@ onInstanceVariableSelected
 !
 
 onPrintIt
-!
-
-onRefresh
-
-	self refresh
 ! !
 
 !HLInspector methodsFor: 'registration'!
@@ -405,11 +399,6 @@ selectItem: anObject
 !HLInspectorVariablesWidget methodsFor: 'rendering'!
 
 renderButtonsOn: html
-	html button
-		class: 'btn';
-		with: 'Refresh';
-		onClick: [ self announcer announce: HLRefreshRequested new ].
-
 	diveButton := html button 
 		class: 'btn';
 		with: 'Dive';