Squeak Class Documentation category index | class index  
 
Inspector
  category: Tools-Inspector
  superclass: StringHolder
  subclasses: HtmlEntityInspector OrderedCollectionInspector ContextVariablesInspector DictionaryInspector InspectorBrowser ExternalStructureInspector

I represent a query path into the internal representation of an object. As a StringHolder, the string I represent is the value of the currently selected variable of the observed object.

instance methods
  accessing
  baseFieldList
fieldList
i1
i2
initialExtent
inspect:
modelWakeUpIn:
noteSelectionIndex:for:
object
object:
selectedClass
stepAt:in:
stepTimeIn:
timeOfLastListUpdate
trash
trash:
update
wantsSteps

  code
  doItReceiver

  menu commands
  addCollectionItemsTo:
browseFullProtocol
chasePointers
classOfSelection
classVarRefs
copyName
defsOfSelection
exploreSelection
fieldListMenu:
inspectBasic
inspectElement
inspectSelection
inspectorKey:from:
objectReferencesToSelection
referencesToSelection
spawnFullProtocol
spawnProtocol
tearOffTile
viewerForValue

  object fileIn
  convertToCurrentVersion:refStream:

  selecting
  accept:
contentsIsString
replaceSelectionValue:
selectedSlotName
selection
selectionIndex
selectionPrintString
selectionUnmodifiable
toggleIndex:

class methods
  instance creation
  horizontalDividerProportion
inspect:
openAsMorphOn:
openAsMorphOn:withEvalPane:withLabel:valueViewClass:
openAsMorphOn:withLabel:
openOn:withEvalPane:
openOn:withEvalPane:withLabel:
openOn:withEvalPane:withLabel:valueViewClass:
verticalDividerProportion

instance methods
  accessing top  
 

baseFieldList

Answer an Array consisting of 'self'
and the instance variable names of the inspected object.


 

fieldList

Answer the base field list plus an abbreviated list of indices.


 

i1

This is the max index shown before skipping to the
last i2 elements of very long arrays


 

i2

This is the number of elements to show at the end
of very long arrays


 

initialExtent

Answer the desired extent for the receiver when it is first opened on the screen.


 

inspect:

Initialize the receiver so that it is inspecting anObject. There is no
current selection.


 

modelWakeUpIn:

A window with me as model is being entered or expanded. Default response is no-op


 

noteSelectionIndex:for:

backstop


 

object

Answer the object being inspected by the receiver.


 

object:

Set anObject to be the object being inspected by the receiver.


 

selectedClass

Answer the class of the receiver's current selection


 

stepAt:in:


 

stepTimeIn:


 

timeOfLastListUpdate


 

trash

What goes in the bottom pane


 

trash:

Don't save it


 

update

Reshow contents, assuming selected value may have changed.


 

wantsSteps

Overridden by morphic classes whose instances want to be stepped,
or by model classes who want their morphic views to be stepped.


  code top  
 

doItReceiver

Answer the object that should be informed of the result of evaluating a
text selection.


  menu commands top  
 

addCollectionItemsTo:

If the current selection is an appropriate collection, add items to aMenu that cater to that kind of selection


 

browseFullProtocol

Open up a protocol-category browser on the value of the receiver's current selection. If in mvc, an old-style protocol browser is opened instead.


 

chasePointers


 

classOfSelection

Answer the class of the receiver's current selection


 

classVarRefs

Request a browser of methods that store into a chosen instance variable


 

copyName

Copy the name of the current variable, so the user can paste it into the window below and work with is. If collection, do (xxx at: 1).


 

defsOfSelection

Open a browser on all defining references to the selected instance variable, if that's what currently selected.


 

exploreSelection


 

fieldListMenu:

Arm the supplied menu with items for the field-list of the receiver


 

inspectBasic

Bring up a non-special inspector


 

inspectElement

Create and schedule an Inspector on an element of the receiver's model's currently selected collection.


 

inspectSelection

Create and schedule an Inspector on the receiver's model's currently selected object.


 

inspectorKey:from:

Respond to a Command key issued while the cursor is over my field list


 

objectReferencesToSelection

Open a list inspector on all the objects that point to the value of the selected instance variable, if any.


 

referencesToSelection

Open a browser on all references to the selected instance variable, if that's what currently selected. 1/25/96 sw


 

spawnFullProtocol

Spawn a window showing full protocol for the receiver's selection


 

spawnProtocol

Spawn a protocol on browser on the receiver's selection


 

tearOffTile

Tear off a tile that refers to the receiver's selection, and place it in the mophic hand


 

viewerForValue

Open up a viewer on the value of the receiver's current selection


  object fileIn top  
 

convertToCurrentVersion:refStream:

subclasses should implement if they wish to convert old instances to modern ones


  selecting top  
 

accept:


 

contentsIsString

Hacked so contents empty when deselected and = long printString when item 2


 

replaceSelectionValue:

The receiver has a list of variables of its inspected object. One of these
is selected. The value of the selected variable is set to the value,
anObject.


 

selectedSlotName


 

selection

The receiver has a list of variables of its inspected object.
One of these is selected. Answer the value of the selected variable.


 

selectionIndex

The receiver has a list of variables of its inspected object. One of these
is selected. Answer the index into the list of the selected variable.


 

selectionPrintString


 

selectionUnmodifiable

Answer if the current selected variable is modifiable via acceptance in the code pane. For most inspectors, no selection and a selection of self (selectionIndex = 1) are unmodifiable


 

toggleIndex:

The receiver has a list of variables of its inspected object. One of these
is selected. If anInteger is the index of this variable, then deselect it.
Otherwise, make the variable whose index is anInteger be the selected
item.


class methods
  instance creation top  
 

horizontalDividerProportion


 

inspect:

Answer an instance of me to provide an inspector for anObject.


 

openAsMorphOn:


 

openAsMorphOn:withEvalPane:withLabel:valueViewClass:

Note: for now, this always adds an eval pane, and ignores the valueViewClass


 

openAsMorphOn:withLabel:

(Inspector openAsMorphOn: SystemOrganization) openInMVC


 

openOn:withEvalPane:

Create and schedule an instance of me on the model, anInspector.


 

openOn:withEvalPane:withLabel:


 

openOn:withEvalPane:withLabel:valueViewClass:


 

verticalDividerProportion