Squeak Class Documentation category index | class index  
 
StringHolder
  category: Kernel-ST80 Remnants
  superclass: Model
  subclasses: SyntaxError FileList WonderlandActorBrowser SelectorBrowser ApplescriptError FillInTheBlank Inspector ChatNotes Workspace CodeHolder

I am a kind of Model that includes a piece of text. In some cases, the text can be edited, and in some the text is a method.

Categories 'code pane menu' and 'message list menu' are messages that may be called by my menus when the text is a method, and when some pane is a list of methods. Other of my subclasses may ignore these two catagories altogether.

instance methods
  accessing
  acceptContents:
contents
contents:
contentsSelection
noteAcceptanceOfCodeFor:
reformulateList
reformulateListNoting:
selectedClassName
selectedClassOrMetaClass
selectedMessageName
textContents:

  code pane menu
  codePaneMenu:shifted:
perform:orSendTo:
showBytecodes
spawn:

  evaluation
  doItContext
doItReceiver

  initialize-release
  defaultContents
embeddedInMorphicWindowLabeled:
initialize
openAsMorphLabel:
openAsMorphLabel:inWorld:
openLabel:
openLabel:andTerminate:

  message list menu
  browseAllMessages
browseClass
browseClassRefs
browseClassVarRefs
browseClassVariables
browseFullProtocol
browseInstVarDefs
browseInstVarRefs
browseLocalImplementors
browseLocalSendersOfMessages
browseMessages
browseMethodFull
browseSendersOfMessages
browseUnusedMethods
browseVersions
buildMessageBrowser
classHierarchy
classListKey:from:
copyName
fetchDocPane
fileOutMessage
findMethodInChangeSets
inspectInstances
inspectSubInstances
makeIsolatedCodePane
messageListKey:from:
messageListSelectorTitle
methodHierarchy
offerDurableMenuFrom:shifted:
offerMenuFrom:shifted:
openSingleMessageBrowser
packageListKey:from:
printOutMessage
removeFromCurrentChanges
revertAndForget
revertToPreviousVersion
selectMessageAndEvaluate:
systemCatListKey:from:
timeStamp

  optional panes
  wantsAnnotationPane
wantsOptionalButtons

  tiles
  openSyntaxView

  user edits
  clearUserEditFlag
okToChange

class methods
  class initialization
  initialize

  instance creation
  new
open
openLabel:

instance methods
  accessing top  
 

acceptContents:

Set aString to be the contents of the receiver. Return true cuz happy


 

contents

Answer the contents that the receiver is holding--presumably a string.


 

contents:

Set textOrString to be the contents of the receiver.


 

contentsSelection

Return the interval of text in the code pane to select when I set the pane's contents


 

noteAcceptanceOfCodeFor:

A method has possibly been submitted for the receiver with aSelector as its selector; If the receiver wishes to take soem action here is a chance for it to do so


 

reformulateList

If the receiver has a way of reformulating its message list, here is a chance for it to do so


 

reformulateListNoting:

A method has possibly been submitted for the receiver with newSelector as its selector; If the receiver has a way of reformulating its message list, here is a chance for it to do so


 

selectedClassName

I may know what class is currently selected


 

selectedClassOrMetaClass


 

selectedMessageName


 

textContents:

Set aStringOrText to be the contents of the receiver.


  code pane menu top  
 

codePaneMenu:shifted:

Note that unless we override perform:orSendTo:, PluggableTextController will respond to all menu items in a text pane


 

perform:orSendTo:

Selector was just chosen from a menu by a user. If can respond, then
perform it on myself. If not, send it to otherTarget, presumably the
editPane from which the menu was invoked.


 

showBytecodes

We don't know how to do this


 

spawn:


  evaluation top  
 

doItContext

Answer the context in which a text selection can be evaluated.


 

doItReceiver

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


  initialize-release top  
 

defaultContents


 

embeddedInMorphicWindowLabeled:


 

initialize

Initialize the state of the receiver with its default contents.


 

openAsMorphLabel:

Workspace new openAsMorphLabel: 'Workspace'


 

openAsMorphLabel:inWorld:

Workspace new openAsMorphLabel: 'Workspace'


 

openLabel:

Create a standard system view of the model, me, a StringHolder and open it. If in mvc, terminate the active controller so that the new window will immediately be activated.


 

openLabel:andTerminate:

Create a standard system view of the model, me, a StringHolder and open it.; do not terminate the active process if in mvc


  message list menu top  
 

browseAllMessages

Create and schedule a message set browser on all implementors of all the messages sent by the current method.


 

browseClass

Open an class browser on this class and method


 

browseClassRefs


 

browseClassVarRefs

1/17/96 sw: devolve responsibility to the class, so that the code that does the real work can be shared


 

browseClassVariables

Browse the class varialbes of the selected class. 2/5/96 sw


 

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. Someone who still uses mvc might wish to make the protocol-category-browser work there too, thanks.


 

browseInstVarDefs


 

browseInstVarRefs

1/26/96 sw: real work moved to class, so it can be shared


 

browseLocalImplementors

Present a menu of all messages sent by the currently selected message.
Open a message set browser of all implementors of the message chosen in or below
the selected class.
Do nothing if no message is chosen.


 

browseLocalSendersOfMessages

Present a menu of the currently selected message, as well as all
messages sent by it. Open a message set browser of all implementors
of the message chosen in or below the selected class


 

browseMessages

Present a menu of all messages sent by the currently selected message.
Open a message set browser of all implementors of the message chosen.


 

browseMethodFull

Create and schedule a full Browser and then select the current class and message.


 

browseSendersOfMessages

Present a menu of the currently selected message, as well as all messages sent by it. Open a message set browser of all senders of the selector chosen.


 

browseUnusedMethods


 

browseVersions

Create and schedule a message set browser on all versions of the currently selected message selector.


 

buildMessageBrowser

Create and schedule a message browser.


 

classHierarchy

Create and schedule a class list browser on the receiver's hierarchy.


 

classListKey:from:

Respond to a Command key. I am a model with a list of classes and a
code pane, and I also have a listView that has a list of methods. The
view knows how to get the list and selection.


 

copyName

Copy the current selector to the clipboard


 

fetchDocPane

Look on servers to see if there is documentation pane for the selected message. Take into account the current update number. If not, ask the user if she wants to create one.


 

fileOutMessage

Put a description of the selected message on a file


 

findMethodInChangeSets

Find and open a changeSet containing the current method.


 

inspectInstances

Inspect all instances of the selected class.


 

inspectSubInstances

Inspect all instances of the selected class and all its subclasses


 

makeIsolatedCodePane


 

messageListKey:from:

Respond to a Command key. I am a model with a code pane, and I also
have a listView that has a list of methods. The view knows how to get
the list and selection.


 

messageListSelectorTitle


 

methodHierarchy

Create and schedule a method browser on the hierarchy of implementors.


 

offerDurableMenuFrom:shifted:

Pop up (morphic only) a menu whose target is the receiver and whose contents are provided by sending the menuRetriever to the receiver. The menuRetriever takes two arguments: a menu, and a boolean representing the shift state; put a stay-up item at the top of the menu.


 

offerMenuFrom:shifted:

Pop up, in morphic or mvc as the case may be, a menu whose target is the receiver and whose contents are provided by sending the menuRetriever to the receiver. The menuRetriever takes two arguments: a menu, and a boolean representing the shift state.


 

openSingleMessageBrowser

Create and schedule a message list browser populated only by the currently selected message


 

packageListKey:from:

Respond to a Command key in the package pane in the PackageBrowser


 

printOutMessage

Write a file with the text of the selected message, for printing by a web browser


 

removeFromCurrentChanges

Tell the changes mgr to forget that the current msg was changed.


 

revertAndForget

Revert to the previous version of the current method, and tell the changes mgr to forget that it was ever changed. Danger! Use only if you really know what you're doing!


 

revertToPreviousVersion

Revert to the previous version of the current method


 

selectMessageAndEvaluate:

Allow the user to choose one selector, chosen from the currently selected message's selector, as well as those of all messages sent by it, and evaluate aBlock on behalf of chosen selector. If there is only one possible choice, simply make it; if there are multiple choices, put up a menu, and evaluate aBlock on behalf of the the chosen selector, doing nothing if the user declines to choose any


 

systemCatListKey:from:

Respond to a Command key. I am a model with a code pane, and I also have a listView that has a list of methods. The view knows how to get the list and selection.


 

timeStamp

Answer the time stamp for the chosen class and method, if any, else an empty string


  optional panes top  
 

wantsAnnotationPane

Answer whether the receiver, seen in some browser window, would like to have the so-called annotationpane included. By default, various browsers defer to the global preference 'optionalButtons' -- but individual subclasses can insist to the contrary.


 

wantsOptionalButtons

Answer whether the receiver, seen in some browser window, would like to have the so-called optional button pane included. By default, various browsers defer to the global preference 'optionalButtons' -- but individual subclasses can insist to the contrary.


  tiles top  
 

openSyntaxView

Open a syntax view on the current method


  user edits top  
 

clearUserEditFlag

Clear the hasUnacceptedEdits flag in all my dependent views.


 

okToChange

Allows a controller to ask this of any model


class methods
  class initialization top  
 

initialize

The class variables were initialized once, and subsequently filled with
information. Re-executing this method is therefore dangerous.


  instance creation top  
 

new

Answer a new instance of the receiver (which is a class) with no indexable variables. Fail if the class is indexable.


 

open


 

openLabel: