|
|
Class: DoWhatIMeanSupport
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)
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
code completion
-
codeCompletionForClass: cls codeView: codeView
-
-
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
-
askUserForCompletion: what for: codeView from: allTheBest
-
-
codeCompletionForLiteralSymbol: node inClass: cls codeView: codeView
-
-
codeCompletionForMessage: node inClass: cls codeView: codeView
-
-
codeCompletionForMethod: node inClass: cls codeView: codeView
-
completion in a methods selector pattern
-
codeCompletionForVariable: node inClass: cls codeView: codeView
-
-
findNodeForInterval: interval in: source
-
-
findNodeForInterval: interval in: source allowErrors: allowErrors
-
-
findNodeForInterval: interval inParseTree: parseTree
-
-
findNodeIn: tree forInterval: interval
-
-
lookupClassForMessage: node inClass: classProvidingNamespace
-
-
treeForCode: source allowErrors: allowErrors
-
input completion support
-
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
-
classNameEntryCompletionBlock
-
this block can be used in a dialog to perform className completion
-
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
-
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
-
entryCompletionBlockFor: completionSelector
-
this block can be used in a dialog to perform className completion
-
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
-
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
-
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
-
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
-
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
-
packageNameEntryCompletionBlock
-
this block can be used in a dialog to perform className completion
-
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
-
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
-
goodRenameDefaultFor: oldName lastOld: lastOldName lastNew: lastNewName
-
generate a reasonable default for a rename operation.
(used for rename category etc.)
-
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
-
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.
-
isKey: k1 nextTo: k2 onKeyboard: keys
-
return true, if k1 and k2 are adjacent keys on the keyboard defined by keys
-
keyboard
-
the keyboard layout (to find possible typing errors)
InputCompletionResult
|