home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cayenne Software Inc. 1997
- #
- # File: @(#)stfilehand.tcl /main/hindenburg/2
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)stfilehand.tcl /main/hindenburg/2 25 Apr 1997 Copyright 1997 Cayenne Software Inc.
-
- # Start user added include file section
- # End user added include file section
-
- require "filehandle.tcl"
-
- # This class is responsible for Smalltalk
- # specific file handling.
-
- Class STFileHandler : {FileHandler} {
- constructor
- method destructor
- method getSpecialFiles
- method getFileTypes
- method getImportFileName
- method getExportFileName
- method sourceTclFiles
-
- # The Smalltalk file type. All methods using
- # the Smalltalk file type query this attribute.
- #
- attribute stType
- }
-
- constructor STFileHandler {class this} {
- set this [FileHandler::constructor $class $this]
- # Start constructor user section
- $this stType "st"
- # End constructor user section
- return $this
- }
-
- method STFileHandler::destructor {this} {
- # Start destructor user section
- # End destructor user section
- $this FileHandler::destructor
- }
-
-
- # Returns a list with special file names for Smalltalk: the import
- # and the export file.
- #
- method STFileHandler::getSpecialFiles {this} {
- set list [List new]
- $list append [$this getImportFileName]
- $list append [$this getExportFileName]
- return $list
- }
-
-
- # Returns a list with Smalltalk file types: stType.
- #
- method STFileHandler::getFileTypes {this} {
- set list [List new]
- $list append [$this stType]
- return $list
- }
-
-
- # Returns the file name for the file with the import script.
- #
- method STFileHandler::getImportFileName {this} {
- return "vwimport.[$this stType]"
-
- }
-
-
- # Returns the file name for the file with the export script.
- #
- method STFileHandler::getExportFileName {this} {
- return "vwexport.[$this stType]"
- }
-
-
- #
- # Source u_genst.tcl if it exists.
- # Call FileHandler::sourceTclFiles.
- #
- method STFileHandler::sourceTclFiles {this} {
- set cc [ClientContext::global]
-
- if {[$cc customFileExists u_genst tcl "" 0]} {
- require u_genst.tcl
- }
-
- $this FileHandler::sourceTclFiles
- }
-
- # Do not delete this line -- regeneration end marker
-
-