home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cayenne Software Inc. 1997
- #
- # File: @(#)mtphase.tcl /main/titanic/5
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)mtphase.tcl /main/titanic/5 12 Nov 1997 Copyright 1997 Cayenne Software Inc.
-
- # Start user added include file section
- # End user added include file section
-
- require "mtcontaine.tcl"
-
- Class MTPhase : {MTContainer} {
- constructor
- method destructor
- method associations
- method getOwners
- }
-
- constructor MTPhase {class this name fromRepObj toRepObj} {
- set this [MTContainer::constructor $class $this $name $fromRepObj $toRepObj]
- # Start constructor user section
- if [.main import] {
- $this setVersionableClass systemOnlyVersions MTSystem
- } else {
- $this setVersionableClass systemVersions MTSystem
- }
- $this selectFlag phaseVersion
- $this level Phase
- $this createConflictingObjects
- # End constructor user section
- return $this
- }
-
- method MTPhase::destructor {this} {
- # Start destructor user section
- # End destructor user section
- $this MTContainer::destructor
- }
-
- method MTPhase::associations {this} {
- if [.main import] {
- return {systemOnlyVersions customFileVersions}
- } else {
- return {systemVersions customFileVersions}
- }
- }
-
- method MTPhase::getOwners {this} {
-
- set owners ""
- lappend owners [[$this fromRepObj] configVersions]
- if {[$this toRepObj] != ""} {
- lappend owners [[$this toRepObj] configVersions]
- } else {
- lappend owners {}
- }
- return $owners
- }
-
- # Do not delete this line -- regeneration end marker
-
-