OCInspView.st
changeset 23 3363884b8e9f
parent 18 850295468cac
child 29 8a72e10043f6
--- a/OCInspView.st	Sun Jan 16 05:00:29 1994 +0100
+++ b/OCInspView.st	Sun Jan 16 05:02:19 1994 +0100
@@ -11,10 +11,10 @@
 "
 
 InspectorView subclass:#OrderedCollectionInspectorView
-	 instanceVariableNames:''
-	 classVariableNames:''
-	 poolDictionaries:''
-	 category:'Interface-Inspector'
+         instanceVariableNames:''
+         classVariableNames:''
+         poolDictionaries:''
+         category:'Interface-Inspector'
 !
 
 !OrderedCollectionInspectorView methodsFor:'user interaction'!
@@ -31,8 +31,39 @@
         val := inspectedObject at:(lineNr - 1)
     ].
     string := val displayString.
-    workspace show:string.
+    workspace paste:string.
     selectedLine := lineNr
+!
+
+doAccept:theText
+    |value|
+
+    value := Compiler evaluate:theText
+                      receiver:inspectedObject 
+                     notifying:workspace.
+
+    inspectedValues isNil ifTrue:[
+        selectedLine notNil ifTrue:[
+            selectedLine == 1 ifFalse:[
+                inspectedObject at:selectedLine - 1 put:value.
+                inspectedObject changed
+            ]
+        ]
+    ].
+!
+
+doInspect
+    "user selected inspect-menu entry"
+
+    selectedLine notNil ifTrue:[
+        inspectedValues isNil ifTrue:[
+            (selectedLine == 1) ifTrue:[
+                inspectedObject inspect
+            ] ifFalse:[
+                (inspectedObject at:selectedLine - 1) inspect
+            ]
+        ].
+    ]
 ! !
 
 !OrderedCollectionInspectorView methodsFor:'accessing'!
@@ -61,4 +92,3 @@
     ].
     ^ aList
 ! !
-