|
Class: FileBrowser
Object
|
+--GraphicsMedium
|
+--DisplaySurface
|
+--SimpleView
|
+--View
|
+--TopView
|
+--StandardSystemView
|
+--FileBrowser
- Package:
- stx:libtool
- Category:
- Interface-Tools-File
- Version:
- rev:
1.743
date: 2024/03/26 12:59:54
- user: cg
- file: FileBrowser.st directory: libtool
- module: stx stc-classLibrary: libtool
Notice: this is the old (V1) FileBrowser, which has now been
more or less obsoleted by the FileBrowserV2
(which is the default file browser now)
this used to be a very simple demo application,
but migrated into a quite nice tool, includes all kinds of
warning and information boxes, background processes for directory-
reading and internationalized strings.
A good example for beginners, on how to do things ....
(and maybe how not to do things ;-, since some
stuff is historic and was implemented at times when better mechanisms
were not available)
See additional information in 'doc/misc/fbrowser.doc'.
WARNING: files edited with FileBrowser will have leading spaces (multiple-8)
being replaced by tabs. If tabs are to be preserved at other
positions (for example, sendmail-config files) they will be
corrupt after being written.
[instance variables]:
checkDelta <Integer> number of seconds of check interval
(looks ever so often if shown directory
has changed). You may make this number
higher, if your network-times are
incorrect and thus, the filebrowser
checks too often.
compressTabs <Boolean> if true, leading spaces will be
replaced by tabs when saving text
some of the defaults (long/short list etc.) can be set by the resource file;
see FileBrowser>>initialize for more details..
copyrightCOPYRIGHT (c) 1991 by Claus Gittinger
All Rights Reserved
This software is furnished under a license and may be used
only in accordance with the terms of that license and with the
inclusion of the above copyright notice. This software may not
be provided or otherwise made available to, or used by, any
other person. No title to or ownership of the software is
hereby transferred.
aspects
-
directoryBookmarks
-
-
directoryHistory
-
a global visitedDirectories list
defaults
-
default
-
the class to be used for file browsing (from the preferences).
This is now usually FileBrowserV2, but may also be AppSpecificFileBrowser
in end user apps (eg. expecco)
Usage example(s):
-
defaultIcon
-
return the file browsers default window icon
fileList user interaction
-
goodRenameDefaultForFile: oldName lastOld: lastOldName lastNew: lastNewName
-
history
-
addToCommandHistory: aCommandString for: aFilename
-
-
addToVisitedFileHistory: path
-
already been there before; move the entry to
the beginning, so it will fall out later.
instance creation
-
on: aDirectoryPath
-
return a new FileBrowser in a pathname
Usage example(s):
(FileBrowser on:'/usr/local/bin') open
(FileBrowser on:'/etc' ) open
(FileBrowser on:'..' ) open
(FileBrowser on:'.' ) open
|
-
openOn: aDirectoryPath
-
start a new FileBrowser in a pathname
Usage example(s):
FileBrowser openOn:'/etc'
FileBrowser openOn:'..'
FileBrowser openOn:'.'
|
-
openOn: aDirectoryPath withExtent: extent
-
start a new FileBrowser in a pathname
Usage example(s):
FileBrowser openOn:'/etc' withExtent:200@300
FileBrowser openOn:'..' withExtent:200@300
FileBrowser openOn:'.' withExtent:200@300
|
-
openOnDirectory: aDirectoryPath
-
start a new FileBrowser in a pathname
-
openOnFileNamed: aFilename
-
start a new FileBrowser on a file
Usage example(s):
FileBrowser openOnFileNamed:'Makefile'
FileBrowser openOnFileNamed:'../Makefile'
FileBrowser openOnFileNamed:'/tmp/foo'
|
interface specs
-
fileSearchDialogSpec
-
This resource specification was automatically generated
by the UIPainter of ST/X.
Usage example(s):
UIPainter new openOnClass:FileBrowser andSelector:#fileSearchDialogSpec
|
menu specs
-
baseBookmarksMenuSpec
-
This resource specification was automatically generated
by the MenuEditor of ST/X.
Usage example(s):
MenuEditor new openOnClass:FileBrowser andSelector:#baseBookmarksMenuSpec
(Menu new fromLiteralArrayEncoding:(FileBrowser baseBookmarksMenuSpec)) startUp
|
-
baseDirectoryMenuSpec
-
This resource specification was automatically generated
by the MenuEditor of ST/X.
Usage example(s):
MenuEditor new openOnClass:FileBrowser andSelector:#baseDirectoryMenuSpec
(Menu new fromLiteralArrayEncoding:(FileBrowser baseDirectoryMenuSpec)) startUp
|
-
bookmarksMenuSpec
-
add the history items ...
-
cvsMenuSpec
-
This resource specification was automatically generated
by the MenuEditor of ST/X.
Usage example(s):
MenuEditor new openOnClass:FileBrowser andSelector:#cvsMenuSpec
(Menu new fromLiteralArrayEncoding:(FileBrowser cvsMenuSpec)) startUp
|
-
directoryMenuSpec
-
This resource specification was automatically generated
by the MenuEditor of ST/X.
Usage example(s):
MenuEditor new openOnClass:FileBrowser andSelector:#directoryMenuSpec
(Menu new fromLiteralArrayEncoding:(FileBrowser directoryMenuSpec)) startUp
|
-
editMenuSpec
-
This resource specification was automatically generated
by the MenuEditor of ST/X.
Usage example(s):
MenuEditor new openOnClass:FileBrowser andSelector:#editMenuSpec
(Menu new fromLiteralArrayEncoding:(FileBrowser editMenuSpec)) startUp
|
-
fileMenuSpec
-
This resource specification was automatically generated
by the MenuEditor of ST/X.
Usage example(s):
MenuEditor new openOnClass:FileBrowser andSelector:#fileMenuSpec
(Menu new fromLiteralArrayEncoding:(FileBrowser fileMenuSpec)) startUp
|
-
helpMenuSpec
-
This resource specification was automatically generated
by the MenuEditor of ST/X.
Usage example(s):
MenuEditor new openOnClass:FileBrowser andSelector:#helpMenuSpec
(Menu new fromLiteralArrayEncoding:(FileBrowser helpMenuSpec)) startUp
|
-
historyMenuSpec
-
This resource specification was automatically generated
by the MenuEditor of ST/X.
-
menuPopUp
-
This resource specification was automatically generated
by the MenuEditor of ST/X.
Usage example(s):
MenuEditor new openOnClass:FileBrowser andSelector:#menuPopUp
(Menu new fromLiteralArrayEncoding:(FileBrowser menuPopUp)) startUp
|
-
menuSpec
-
This resource specification was automatically generated
by the MenuEditor of ST/X.
Usage example(s):
MenuEditor new openOnClass:FileBrowser andSelector:#menuSpec
(Menu new fromLiteralArrayEncoding:(FileBrowser menuSpec)) startUp
|
-
toolsMenuSpec
-
This resource specification was automatically generated
by the MenuEditor of ST/X.
Usage example(s):
MenuEditor new openOnClass:FileBrowser andSelector:#toolsMenuSpec
(Menu new fromLiteralArrayEncoding:(FileBrowser toolsMenuSpec)) startUp
|
-
viewMenuSpec
-
This resource specification was automatically generated
by the MenuEditor of ST/X.
Usage example(s):
MenuEditor new openOnClass:FileBrowser andSelector:#viewMenuSpec
(Menu new fromLiteralArrayEncoding:(FileBrowser viewMenuSpec)) startUp
|
-
visitedFileMenuSpec
-
add the history items ...
queries
-
isVisualStartable
-
return true, if this application can be started via #open.
(to allow start of a change browser via double-click in the browser)
aspects
-
anyFilesPresentWithSuffix: suffix
-
-
anySTFilesPresent
-
-
autoUpdate
-
-
canAddToClassPath
-
-
canAddToSourcePath
-
-
canCreateNewProject
-
-
canDoTerminal
-
-
canDoTerminalAndSystemIsDOS
-
-
canDoTerminalAndSystemIsUnix
-
-
canReadAbbrevFile
-
-
canRemoveCVSContainer
-
-
canRemoveFromClassPath
-
-
canRemoveFromSourcePath
-
-
currentDirectoryIsNotTop
-
-
directoryHistory
-
a global visitedDirectories list
-
dosEOLMode
-
-
hasASN1
-
-
hasASN1AndSelection
-
-
hasBookmarks
-
-
hasBookmarksToRemove
-
-
hasCBrowser
-
-
hasFilenameSelectionInCodeView
-
-
hasJava
-
-
hasJavaAndSelection
-
-
hasMD5
-
-
hasMP3Player
-
-
hasMP3PlayerAndSelection
-
-
hasSelection
-
aspect holding true, if a file is selected
-
hasSnapshotSelection
-
-
hasVisitHistory
-
-
hasZipFileSelected
-
-
hasZipFileSelectedHolder
-
-
javaSupportLoaded
-
-
showingBigImagePreview
-
-
showingDetails
-
-
showingHiddenFiles
-
-
showingTimeAndDate
-
-
singleSelectedFile
-
-
singleSelectedFileOrCurrentDirectory
-
-
sortByWhat
-
-
sortCaseless
-
aspect for sort caseless
-
systemIsDOS
-
-
systemIsUnix
-
-
systemIsVMS
-
change & update
-
update: what with: someArgument from: changedObject
-
system wants to shut down this
- if text was modified, pop up, and ask user and save if requested.
drag & drop
-
canDropObjects: aCollectionOfDropObjects
-
I accept file- and textObjects only
-
dropObjects: aCollectionOfDropObjects at: aPoint
-
handle drops
-
dropSingleObject: someObject at: aPoint
-
handle drops; if it's a directory, change to it.
If it's a file, change to its directory and select the file.
If it's text, paste it into the codeView.
events
-
handlesKeyPress: key inView: view
-
this method is reached via delegation: are we prepared to handle
a keyPress in some other view ?
-
keyPress: key x: x y: y view: view
-
this method is reached via delegation from the fileListView
-
mapped
-
whant to know about changed history
-
visibilityChange: how
-
start checking again
fileList user interaction
-
bigImagePreviewSettingChanged
-
invoked, when big image preview flag changed
-
changeDisplayMode
-
toggle from long to short listing (and vice-versa)
-
changeDotFileVisibility
-
turn on/off visibility of files whose name starts with '.'
-
confirmAndRemove: fileNames
-
remove fileNames with user confirmation.
TODO: Should be enhanced, to look for a ~/.trash directory
and move files there if it exists (without asking in this case).
-
convertImageToGIF
-
-
detailsSettingChanged
-
invoked, when detail (i.e. long / short) listing flag changed
-
fileDoubleClick: lineNr
-
double click on a file - get its contents
** This is an obsolete interface - do not use it (it may vanish in future versions) **
-
fileEncoding
-
open a dialog to allow change of the file's character encoding.
Files are converted to internal encoding when read, and converted back
to this encoding when saved.
The default encoding is nil, which means that files are already in
the internal encoding (which is iso8859).
Notice: currently, not too many encodings are supported by the system.
-
fileExecute
-
if text was modified show a queryBox,
otherwise pop up execute box immediately
-
fileFileIn
-
fileIn the selected file(s)
-
fileFileIn: fileName lazy: lazy
-
fileIn fileName
-
fileFileInLazy
-
fileIn the selected file(s). Do a quick load (no compilation)
-
fileFileInLazy: lazy
-
fileIn the selected file(s)
-
fileFileInToNameSpace
-
fileIn the selected file(s)<into a nameSpace
-
fileFindAllDuplicates
-
scan directory and all subdirs for duplicate files
-
fileFindDuplicates
-
scan directory for duplicate files; show info in codeView
-
fileFindFile
-
The following is tricky:
the pauseToggle & killButton will
be handled by their own windowGroup process.
This means, that they respond to events even though
I myself am reading the commands output.
-
fileGet
-
get contents of selected file into subView.
If text was modified show a queryBox,
otherwise get it immediately
-
fileGet: viaDoubleClick
-
get contents of selected file into subView.
If text was modified show a queryBox,
otherwise get it immediately
-
fileGetInfo
-
show short file (stat)-info
-
fileGetInfo: longInfo
-
get info on selected file - show it in a box
-
fileGetLongInfo
-
show long stat (file)-info
-
fileHexDump
-
show a hex dump (similar to od -x)
Only needed with non-Unix systems.
-
fileInsert
-
insert contents of file at the cursor position
-
fileListDoubleClick: lineNr
-
double click on a file - get its contents
-
fileListMenu
-
return the menu to show in the fileList
-
fileListMenu_old
-
return the menu to show in the fileList
-
filePrint
-
send a files contents to the printer (not in the menu)
-
fileRemove
-
remove the selected file(s).
Query if user really wants to remove the file, except if
shift-key is pressed.
TODO: Should be enhanced, to look for a ~/.trash directory
and move files there if it exists (without asking in this case).
-
fileRename
-
rename the selected file(s)
-
fileSelect: lineNr
-
selected a file - do nothing here
-
fileSpawn
-
start another FileBrowser on the selected directory or
on the same directory if none is selected.
-
hasSlideShow
-
-
installAllAsAutoloaded
-
install all classes found here as autoloaded classes
-
installAsAutoloaded: aFilename
-
install aFilename as autoloaded class
-
loadImageThenDo: aBlock
-
-
newDirectory
-
ask for and create a new directory
-
newFile
-
ask for and create a new file
-
newHardLink
-
ask for and create a hard link (unix only)
-
newLinkWithType: hardOrSoftSymbol
-
ask for and create a link (unix only)
-
newSoftLink
-
ask for and create a soft link (unix only)
-
openASN1Browser
-
-
openAppletViewer
-
Java markAllClassesUninitialized.
-
openCBrowser
-
-
openChangesBrowser
-
open a change browser on the selected file(s)
-
openDiffView
-
open a diff-view
-
openEditor
-
-
openHTMLReader
-
-
openImageEditor
-
-
openImageInspector
-
-
openImagePreview
-
-
openMP3Player
-
-
openSelectedFilename
-
-
openSlideShow
-
-
openSnapshotImageBrowser
-
Sorry, for now, only the old browser can handle snapShotImages.
-
openTerminal
-
-
openTool: aToolClass
-
open a tool on the selected file(s)
-
openTool: aToolClass ignoreDirectories: ignoreDirs
-
open a tool on the selected file(s)
-
openTool: aToolClass with: aSelector ignoreDirectories: ignoreDirs
-
open a tool on the selected file(s)
-
openZipTool
-
-
readAbbrevFile
-
read the abbrev file and install classes found there as autoloaded classes
-
revisitFile: aFileName
-
-
showOrHideTabView
-
depending on the showLongList setting, show or hde the tabSpec view
help
-
helpTextFor: aComponent
-
(comment from inherited method)
this will vanish - it's temporarily here to allow for stdSysViews to be
used as a masterApp for dialogs
initialization & release
-
createTabRulerIn: topFrame
-
self is3D
-
currentDirectory: aDirectoryPath
-
set the directory to be browsed
-
destroy
-
destroy view and boxes
-
initEvents
-
-
initialize
-
native ST/X encoding
-
initializeCommandViewIn: frame
-
set up the command view - can be redefined in subclasses as empty,
if no commandView is wanted
-
initializeFilterPattern
-
set an initial matchpattern - can be redefined in subclasses
-
initializeInfoViewsFor: aTextView
-
set up the contents view - can be redefined in subclasses for
different view types (SoundFileBrowser/ImageBrowsers etc.)
-
initializeSubViewIn: frame
-
set up the contents view - can be redefined in subclasses for
different view types (SoundFileBrowser/ImageBrowsers etc.)
-
postRealize
-
(comment from inherited method)
postRealize actions - tell the application (if any).
menu actions
-
addBookmark
-
-
addBookmark: path
-
-
copyCommandHistory
-
copy the command history to the clipBoard
-
copyFileList
-
copy fileList (names only) to the clipBoard
-
copySelectedFileName
-
copy the selected filename to the clipBoard (for easy paste)
-
copySelectedPathName
-
copy the selected files pathname to the clipBoard (for easy paste)
-
createProjectAndOpenProjectBrowser
-
-
menuExit
-
-
menuOSCommand
-
-
menuShowFileBrowserDocumentation
-
-
openAboutThisApplication
-
opens an about box for this application.
-
pullDownMenu
-
return the top (pullDown) menu
-
removeBookmark
-
-
showAboutSTX
-
-
sortChanged
-
Transcript show:'fBrowser:'; showCR:sortByWhat value.
menu actions-cvs
-
cvsAddAndCommitSelection
-
add files (or all in current directory) and commit
-
cvsAddSelection
-
add files (or all in current directory)
-
cvsAddSelectionWithCommit: withCommit
-
add files (or all in current directory) with optional commit
-
cvsCommitSelection
-
commit files (or all in current directory)
-
cvsRemoveFileAndContainer
-
remove the selected file(s) and their CVS containers.
Query if user really wants to really remove them.
-
cvsUpdateDirectoryLocal
-
update this directory
-
cvsUpdateDirectoryRecursive
-
update this directory
-
cvsUpdateSelection
-
update selected files
-
doRemoveAndRemoveFromCVS: filesToRemove
-
remove the selected file(s) and their CVS containers - no questions asked
misc user interaction
-
closeRequest
-
asks for permission before closing
-
discardChangesDialog
-
ask the user if changes should be discarded,
return true if changes should be discarded, false otherwise
-
entryCompletion: contents
-
find the last word.
-
filterPatternChanged
-
pathField user interaction
-
addDirToJavaClassPath
-
add the current path to javas classPath
(only available with ST/J System
-
addDirToJavaSourcePath
-
add the current path to java's sourcePath
(only available with ST/J System
-
bookmarksMenu
-
return the bookmarksMenu for the path label
-
changeCurrentDirectory
-
if text was modified show a queryBox,
otherwise ask for & change to that directory
-
changeDirectoryTo: aDirectoryName
-
sent from label menu to change back to a previous directory
-
changeToDefaultDirectory
-
if text was modified show a queryBox,
otherwise change immediately to the default directory
-
changeToHomeDirectory
-
if text was modified show a queryBox,
otherwise change immediately to the home directory
-
changeToParentDirectory
-
if text was modified show a queryBox,
otherwise change immediately to the parent directory
-
copyPath
-
copy current path into cut & paste buffer
-
fileAddToJavaClassPath
-
add the current path to javas classPath
(only available with ST/J System
-
fileAddToJavaSourcePath
-
add the current path to java's sourcePath
(only available with ST/J System
-
fileRemoveFromJavaClassPath
-
remove the current path from javas classPath
(only available with ST/J System
-
fileRemoveFromJavaSourcePath
-
remove the current path from javas sourcePath
(only available with ST/J System
-
historyMenuSpec
-
return the historyMenu for the path label
-
labelMenu
-
return the popUpMenu for the path label
-
labelMenu_old
-
return the popUpMenu for the path label
-
pathChanged: newPath
-
change directory to newPath. If newPath is a filename, change
to its directory and get get the file.
-
queryForDirectoryToChange
-
query for new directory
-
removeDirFromJavaClassPath
-
remove the current path from javas classPath
(only available with ST/J System
-
removeDirFromJavaSourcePath
-
remove the current path from javas sourcePath
(only available with ST/J System
private
-
ask: question yesButton: yesButtonText
-
common method to ask a yes/no question; return true or false
-
ask: question yesButton: yesButtonText noButton: noButtonText
-
common method to ask a yes/no question
-
askForCommandFor: fileName thenDo: aBlock
-
marked as obsolete by exept MBP at 01-06-2023
** This is an obsolete interface - do not use it (it may vanish in future versions) **
-
askIfModified: question yesButton: yesButtonText
-
tell user, that code has been modified - let her confirm
-
getSelectedFileName
-
returns the currently selected file; shows an error if
multiple files are selected
-
onlyOneSelection
-
show a warning, that only one file must be selected for
this operation
-
scheduleCheckBlock
-
not yet opened
-
selectFile: aFilename
-
-
selectedFilesDo: aBlock
-
evaluate aBlock on all selected files;
show a wait cursor while doing this
-
show: something
-
show something in subview and undef acceptAction
-
showAlert: aString with: anErrorString
-
show an alertbox, displaying the last Unix-error
-
withoutHiddenFiles: aCollection
-
remove hidden files (i.e. those that start with '.') from
the list in aCollection
private-actions & command execution
-
binaryFileAction: aFilename
-
for some binary files, if double clicked, we can do some useful
action ...
-
doExecuteCommand: commandArg replace: replace
-
execute a unix command inserting the output of the command.
If replace is true, all text is replaced by the commands output;
otherwise, its inserted as selected text at the cursor position.
-
imageAction: aFilename
-
for some image files, if double clicked, we can do some useful
action ...
-
initialCommandFor: fileName into: aBox
-
set a useful initial command in execute-command box.
-
nonBinaryFileAction: aFilename
-
for some nonBinary files, if double clicked, we can do some useful
action ...
private-directory stuff
-
changeToPreviousDirectory
-
if text was modified show a queryBox,
otherwise change immediately to previous directory.
-
checkIfDirectoryHasChanged
-
every checkDelta secs, check if directoy has changed and update the list if so.
Also, we check if the file shown has been touched in the meanwhile (for example,
from another browser) and say 'outdated' in the label if so.
This avoids confusion if the same file is being edited by two browsers. (or other editors).
If the text shown in the codeView has been edited, 'modified' is shown.
-
doChangeCurrentDirectoryTo: fileName updateHistory: updateHistory
-
verify argument is name of a readable & executable directory
and if so, go there
-
doChangeToDefaultDirectory
-
go to the default (= current) directory
-
doChangeToHomeDirectory
-
go to home directory
-
doChangeToParentDirectory
-
go to parent directory
-
doCreateDirectory: newName
-
-
setCurrentDirectory: aPathName
-
setup for another directory
-
updateCurrentDirectoryIfChanged
-
workaround: DOS has no directory modifiation time ...
private-file I/O
-
readFile: fileName
-
read in the file, answer its contents as StringCollection
-
readFile: fileName lineDelimiter: aCharacter encoding: encoding
-
read in the file, return its contents as StringCollection.
The file's lines are delimited by aCharacter.
If encoding is nonNil, the file is assumed to be coded according to
that symbol, and #decodeString: should be able to convert it.
-
readStream: aStream
-
read in from aStream, answer its contents as StringCollection
-
readStream: aStream lineDelimiter: aCharacter encoding: fileEncodingArg
-
read from aStream, answer its contents as StringCollection.
The file's lines are delimited by aCharacter.
If encoding is nonNil, the file is assumed to be coded according to
that symbol, and #decodeString: should be able to convert it.
-
showFile: fileName
-
show contents of fileName in subView
-
showFile: fileName insert: insert encoding: encoding
-
show/insert contents of fileName in subView
-
showFile: fileNameString insert: insert encoding: encoding doubleClick: viaDoubleClick
-
show/insert contents of fileName in subView
-
writeFile: fileName text: someText encoding: encoding
-
must do it lineWise ...
private-file stuff
-
doCreateFile: newName
-
create an empty file
-
doFileGet: viaDoubleClick
-
get selected file - show contents in subView.
This is invoked either by the 'get file' menu item, or via double click.
When invoked via the menu (viaDoubleClick argument is false),
the automatic file action is not performed - instead, the file is always
shown in the codeView (if possible).
This distinction was done to allow xpm or xbm files (which have an automatic
action) to be edited.
-
doFindFileNamed: namePatterns ignoreCase: ignCaseInName containingString: contentsString ignoreCaseInContents: ignCaseInString sameContentsAsFile: filenameToCompareContentsOrNil sameContentsAs: bytesToCompareContentsOrNil in: aDirectory
-
contents compare ...
-
doOpenFile: fileName viaDoubleClick: viaDoubleClick
-
get selected file - show contents in subView.
This is invoked either by the 'get file' menu item, or via double click.
When invoked via the menu (viaDoubleClick argument is false),
the automatic file action is not performed - instead, the file is always
shown in the codeView (if possible).
This distinction was done to allow xpm or xbm files (which have an automatic
action) to be edited.
-
doRemove: filesToRemove
-
remove the selected file(s) - no questions asked
-
doRename: oldName to: newName
-
rename a file (or directory)
private-file type & info
-
fileTypeSpecificActions
-
any special fileTypeSpecific actions are done here,
when a new file is selected
-
getFileInfoString: longInfo
-
get stat info on selected file - return a string which can be
shown in a box
-
getInfoFile
-
get filename of a description-file (.dir.info, README etc.);
This file is automatically shown when a directory is entered.
You can add more names below if you like.
-
showInfo
-
show directory info when dir has changed
-
sizePrintString: size
-
helper for update-directory to return a string with a files size.
This one gives the size in byte, Kb or Mb depending on size.
If you don't like this, just uncomment the first statement below.
private-presentation
-
defineTabulatorsForLongList
-
define the tabs for the long list
-
defineTabulatorsForShortList
-
define the tabs for the short list
-
iconForFile: aFilename
-
given a fileName, return an appropriate icon
-
iconForKeyMatching: mimeTypeOrKey
-
global icons
-
stopImageRenderProcess
-
-
stopUpdateProcess
-
-
updateCurrentDirectory
-
update listView with directory contents
queries
-
fileName
-
return my current fileName - during fileIn, the file
which is being loaded is returned.
This is provided for VW fileIn scripts, which walk the
context hierarchy and ask the fileBrowser for the name.
Usage example(s):
(FileBrowser openOnFileNamed:'Makefile') fileName
|
-
path
-
return my currentDirectories pathName;
sent from the pathField to acquire the pathname when I changed directory
|