home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
drsfileobj.tcl
< prev
next >
Wrap
Text File
|
1997-08-29
|
3KB
|
99 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1997
#
# File: @(#)drsfileobj.tcl /main/titanic/4
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)drsfileobj.tcl /main/titanic/4 29 Aug 1997 Copyright 1997 Cayenne Software Inc.
# Start user added include file section
# End user added include file section
require "drsgrouped.tcl"
require "drssmmodel.tcl"
Class DrsFileObject : {DrsGroupedObject DrsSMModelObject} {
method destructor
constructor
method getEditorTypes
method getPhase
method levelName
method levelType
method show
method getClassIdInPrevPhase
}
method DrsFileObject::destructor {this} {
# Start destructor user section
# End destructor user section
$this DrsGroupedObject::destructor
$this DrsSMModelObject::destructor
}
constructor DrsFileObject {class this file fileV system systemV} {
set this [DrsGroupedObject::constructor $class $this $file $fileV $system $systemV]
set this [DrsSMModelObject::constructor $class $this [$file fileVersions]]
return $this
}
method DrsFileObject::getEditorTypes {this} {
if ![[$this getLevelV] isA Diagram] {
return
}
return [[$this level] type]
}
method DrsFileObject::getPhase {this} {
set conf [$this getConfigVersion]
set file [$this level]
set system [$file system]
return [$system phase]
}
method DrsFileObject::levelName {this} {
set name [[$this level] qualifiedName :]
set type [$this levelType]
return "$name.$type"
}
method DrsFileObject::levelType {this} {
set type [[$this level] type]
return $type
}
method DrsFileObject::show {this majorOper minorOper} {
if {$minorOper != "Objects" && $minorOper != "ClassFeatures"} {
$this DrsGroupedObject::show $majorOper $minorOper
}
}
method DrsFileObject::getClassIdInPrevPhase {this imp_from} {
set conf [$this getConfigVersion]
set fileV [$this getLevelV]
set file [$fileV file]
set system [$file system]
set currPhase [$this getPhase]
set prevPhase [$currPhase previous]
if [$prevPhase isNil] {
return
}
set prevSystem [$prevPhase findSystem [$system name] [$system type]]
if [$prevSystem isNil] {
return
}
set prevSysV [$prevSystem selectedVersion $conf]
if [$prevSysV isNil] {
return
}
set classWorkItem [$prevSysV findDefinition [$file name] cl $conf]
if [$classWorkItem isNil] {
return
}
return [[$classWorkItem properties] getPropertyValue ${DrsDriver::FORMALMODULE}]
}
# Do not delete this line -- regeneration end marker