eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'ApplicationWithFileHistory':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: ApplicationWithFileHistory


Inheritance:

   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

Description:


Support code for applications with a persistent history of 
previously opened files.

copyright

COPYRIGHT (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.

Class protocol:

file history support
o  addToFileHistory: aFilename
remember a filename in this classes filehistory

o  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')

o  fileHistory
confusing: the first fetches my ref to the persistent store;
the second actually gets the list

o  fileHistoryFilteredForStillExistingFilesDo: aBlock removeNonExisting: aBoolean

o  fileHistorySize
defines the number of remembered files in the history

o  flushFileHistory
self withAllSubclassesDo:#flushFileHistory

o  initializeFileHistory

o  makeFileHistoryPersistent

o  registryKeyForApplication
HKEY_CURRENT_USER\Software\Exept\SmalltalkX\<appname>

Usage example(s):

     FileBrowserV2 registryKeyForApplication  
     FileBrowserV2 registryKeyForFileHistory   

o  registryKeyForFileHistory
HKEY_CURRENT_USER\Software\Exept\SmalltalkX\<appName>\History

Usage example(s):

     self registryKeyForFileHistory  

queries
o  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.



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sat, 27 Jul 2024 00:26:02 GMT