|
Class: ApplicationWithFileHistory
Object
|
+--Model
|
+--ApplicationModel
|
+--ApplicationWithFileHistory
|
+--AbstractFileBrowser
- Package:
- stx:libview2
- Category:
- Interface-Framework
- Version:
- rev:
1.9
date: 2022/03/24 14:34:21
- user: cg
- file: ApplicationWithFileHistory.st directory: libview2
- module: stx stc-classLibrary: libview2
Support code for applications with a persistent history of
previously opened files.
copyrightCOPYRIGHT (c) 2013 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.
file history support
-
addToFileHistory: aFilename
-
remember a filename in this classes filehistory
-
directoryForFileHistory
-
the filename where the history is made persistent
Usage example(s):
self directoryForFileHistory
=> UnixFilename('/Users/exept/.smalltalk/ApplicationWithFileHistory')
(PersistentFileHistory newForClass:self) directoryForFileHistory
=> UnixFilename('/Users/exept/.smalltalk/ApplicationWithFileHistory')
|
-
fileHistory
-
confusing: the first fetches my ref to the persistent store;
the second actually gets the list
-
fileHistoryFilteredForStillExistingFilesDo: aBlock removeNonExisting: aBoolean
-
-
fileHistorySize
-
defines the number of remembered files in the history
-
flushFileHistory
-
self withAllSubclassesDo:#flushFileHistory
-
initializeFileHistory
-
-
makeFileHistoryPersistent
-
-
registryKeyForApplication
-
HKEY_CURRENT_USER\Software\Exept\SmalltalkX\<appname>
Usage example(s):
FileBrowserV2 registryKeyForApplication
FileBrowserV2 registryKeyForFileHistory
|
-
registryKeyForFileHistory
-
HKEY_CURRENT_USER\Software\Exept\SmalltalkX\<appName>\History
Usage example(s):
self registryKeyForFileHistory
|
queries
-
isAbstract
-
Return if this class is an abstract class.
True is returned here for myself only; false for subclasses.
Abstract subclasses must redefine this again.
|