home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cayenne Software Inc. 1997
- #
- # File: @(#)mtfile.tcl /main/titanic/6
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)mtfile.tcl /main/titanic/6 11 Sep 1997 Copyright 1997 Cayenne Software Inc.
-
- # Start user added include file section
- # End user added include file section
-
- require "mtitemkeep.tcl"
- require "mtversion.tcl"
-
- Class MTFile : {MTItemKeeper MTVersion} {
- constructor
- method destructor
- method associations
- method createConflictingObjects
- method getOwners
- }
-
- constructor MTFile {class this name fromRepObj toRepObj} {
- set this [MTItemKeeper::constructor $class $this $name]
- set this [MTVersion::constructor $class $this $name $fromRepObj $toRepObj]
- # Start constructor user section
- $this level File
- $this selectFlag fileVersion
- $this copyCommand "SystemVersion::copy -fileVersion"
- $this createConflictingObjects
- # End constructor user section
- return $this
- }
-
- method MTFile::destructor {this} {
- # Start destructor user section
- # End destructor user section
- $this MTItemKeeper::destructor
- $this MTVersion::destructor
- }
-
- method MTFile::associations {this} {
- return {}
- }
-
- method MTFile::createConflictingObjects {this} {
- $this MTVersion::createConflictingObjects
- if [[$this fromRepObj] isA Diagram] {
- $this createConflictingItemObjects
- }
- }
-
- method MTFile::getOwners {this} {
- set owners ""
- lappend owners [[$this fromRepObj] systemVersions]
- if {[$this toRepObj] != ""} {
- lappend owners [[$this toRepObj] systemVersions]
- } else {
- lappend owners {}
- }
- return $owners
- }
-
- # Do not delete this line -- regeneration end marker
-
-