eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'DoWhatIMeanSupport':

Home

everywhere
www.exept.de
for:
[back]

Class: DoWhatIMeanSupport


Inheritance:

   Object
   |
   +--DoWhatIMeanSupport

Package:
stx:libwidg2
Category:
System-Support
Version:
rev: 1.70 date: 2010/04/27 17:04:44
user: cg
file: DoWhatIMeanSupport.st directory: libwidg2
module: stx stc-classLibrary: libwidg2
Author:
Claus Gittinger (cg@exept.de)

Description:


misc collected UI support (functional)
These used to be in the Smalltalk and SystemBrowser class; 
however, they are only needed for programmers, and some of the stuff is useful in multiple
places. 
Therefore it is:
    1) not needed for standalone executables
    2) published here to avoid multiple implementations


Class protocol:

code completion
o  codeCompletionForClass: cls codeView: codeView

o  codeCompletionForClass: cls context: contextOrNil codeView: codeView
contextOrNil is the current context, if this is calledfrom the debugger;
nil, if called from the browser.
If nonNil, we can make better guesses, because we actually know what a variables type
is. This is not yet done, sigh

code completion-helpers
o  askUserForCompletion: what for: codeView from: allTheBest

o  codeCompletionForLiteralSymbol: node inClass: cls codeView: codeView

o  codeCompletionForMessage: node inClass: cls codeView: codeView

o  codeCompletionForMethod: node inClass: cls codeView: codeView
completion in a methods selector pattern

o  codeCompletionForVariable: node inClass: cls codeView: codeView

o  findNodeForInterval: interval in: source

o  findNodeForInterval: interval in: source allowErrors: allowErrors

o  findNodeForInterval: interval inParseTree: parseTree

o  findNodeIn: tree forInterval: interval

o  lookupClassForMessage: node inClass: classProvidingNamespace

o  treeForCode: source allowErrors: allowErrors

input completion support
o  classCategoryCompletion: aPartialCategory inEnvironment: anEnvironment
given a partial class category name, return an array consisting of
2 entries: 1st: the best (longest) match
2nd: collection consisting of matching categories

o  classNameEntryCompletionBlock
this block can be used in a dialog to perform className completion

o  classnameCompletion: aPartialClassName filter: filterBlock inEnvironment: anEnvironment
given a partial classname, return an array consisting of
2 entries: 1st: the best (longest) match
2nd: collection consisting of matching names

o  classnameCompletion: aPartialClassName inEnvironment: anEnvironment
given a partial classname, return an array consisting of
2 entries: 1st: the best (longest) match
2nd: collection consisting of matching names

o  entryCompletionBlockFor: completionSelector
this block can be used in a dialog to perform className completion

o  globalNameCompletion: aPartialGlobalName inEnvironment: anEnvironment
given a partial globalName, return an array consisting of
2 entries: 1st: the best (longest) match
2nd: collection consisting of matching names

o  globalNameCompletion: aPartialGlobalName inEnvironment: anEnvironment match: doMatch
given a partial globalName, return an array consisting of
2 entries: 1st: the best (longest) match
2nd: collection consisting of matching names

o  methodProtocolCompletion: aPartialProtocolName inEnvironment: anEnvironment
given a partial method protocol name, return an array consisting of
2 entries: 1st: the best (longest) match
2nd: collection consisting of matching protocols

o  nameSpaceCompletion: aPartialClassName inEnvironment: anEnvironment
given a partial name, return an array consisting of
2 entries: 1st: the best (longest) match
2nd: collection consisting of matching names

o  packageCompletion: aPartialPackage inEnvironment: anEnvironment
given a partial package name, return an array consisting of
2 entries: 1st: the best (longest) match
2nd: collection consisting of matching packages

o  packageNameEntryCompletionBlock
this block can be used in a dialog to perform className completion

o  selectorCompletion: aPartialSymbolName inEnvironment: anEnvironment
given a partial selector, return an array consisting of
2 entries: 1st: the longest match
2nd: collection consisting of matching implemented selectors

o  selectorCompletion: aPartialSymbolName inEnvironment: anEnvironment match: doMatch
given a partial selector, return an array consisting of
2 entries: 1st: the longest match
2nd: collection consisting of matching implemented selectors

rename support
o  goodRenameDefaultFor: oldName lastOld: lastOldName lastNew: lastNewName
generate a reasonable default for a rename operation.
(used for rename category etc.)

o  goodRenameDefaultForFile: oldName lastOld: lastOldName lastNew: lastNewName
generate a reasonable default for a file rename operation.
(Try to rename multiple files in the new fileBrowser,
to see what this is doing)

typing distance
o  isKey: k1 nextTo: k2
return true, if k1 and k2 are adjacent keys on the keyboard.
This is used to specially priorize plausible typing errors of adjacent keys.
CAVEAT: hard coded us- and german keyboards here.

o  isKey: k1 nextTo: k2 onKeyboard: keys
return true, if k1 and k2 are adjacent keys on the keyboard defined by keys

o  keyboard
the keyboard layout (to find possible typing errors)


Private classes:

    InputCompletionResult


ST/X 6.1.1; WebServer 1.620 at exept:8081; Mon, 21 May 2012 16:12:43 GMT