home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cayenne Software Inc. 1997
- #
- # File: @(#)extfvdbobj.tcl /main/titanic/5
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)extfvdbobj.tcl /main/titanic/5 16 Oct 1997 Copyright 1997 Cayenne Software Inc.
-
- # Start user added include file section
- # End user added include file section
-
- require "filevobj.tcl"
-
- Class ExtFVDbObj : {FileVObj ExternalFileVersion} {
- method destructor
- constructor
- method promoter
- method browserObjType
- method editFile
- method showFile
- method pathName
- }
-
- method ExtFVDbObj::destructor {this} {
- # Start destructor user section
- # End destructor user section
- $this FileVObj::destructor
- }
-
- constructor ExtFVDbObj {class this name} {
- set this [ExternalFileVersion::constructor $class $this $name]
- set this [FileVObj::constructor $class $this $name]
- return $this
- }
-
- selfPromoter ExternalFileVersion {this} {
- ExtFVDbObj promote $this
- }
-
- method ExtFVDbObj::promoter {this} {
- $this FileVObj::promoter
- module_promoter ExtFVDbObj $this
- }
-
- proc ExtFVDbObj::associations {} {
- return "[FileVObj::associations]"
- }
-
- method ExtFVDbObj::browserObjType {this} {
- return "ExtFVDbObj"
- }
-
- proc ExtFVDbObj::childTypes {assoc} {
- if {[lsearch -exact "[ExtFVDbObj::associations]" "$assoc"] == -1} {
- return ""
- }
- return "[BrowserProcs::childTypes $assoc]"
- }
-
- proc ExtFVDbObj::controlledLists {} {
- return "[FileVObj::controlledLists]"
- }
-
- proc ExtFVDbObj::infoProperties {} {
- return [concat \
- [FileVObj::infoProperties] \
- {Path} \
- ]
- }
-
- method ExtFVDbObj::editFile {this} {
- busy {
- $this synchWithFileSystem
- set file [$this file]
- $this edit
- $wmttoolObj startM4Command editor \
- "[$this path]" \
- "$this quit" \
- "[$file qualifiedName :].[$file type]"
- }
- }
-
- method ExtFVDbObj::showFile {this} {
- busy {
- $this synchWithFileSystem
- set file [$this file]
- $wmttoolObj startM4Command viewer \
- "[$this path]" "" "[$file qualifiedName :].[$file type]"
- }
- }
-
- method ExtFVDbObj::pathName {this} {
- if [catch {set path [$this path]}] {
- global errorInfo
- set errorInfo ""
- global errorCode
- set errorCode ""
- return ""
- }
- return $path
- }
-
- # Do not delete this line -- regeneration end marker
-
-