home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cayenne Software Inc. 1997
- #
- # File: @(#)graphvdbob.tcl /main/titanic/7
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)graphvdbob.tcl /main/titanic/7 19 Nov 1997 Copyright 1997 Cayenne Software Inc.
-
- # Start user added include file section
- require otherude.tcl
- # End user added include file section
-
- require "filevobj.tcl"
-
- Class GraphVDbObj : {FileVObj Graph} {
- method destructor
- constructor
- method promoter
- method browserObjType
- method editFile
- method showFile
- method esFile
- }
-
- method GraphVDbObj::destructor {this} {
- # Start destructor user section
- # End destructor user section
- $this FileVObj::destructor
- }
-
- constructor GraphVDbObj {class this name} {
- set this [Graph::constructor $class $this $name]
- set this [FileVObj::constructor $class $this $name]
- return $this
- }
-
- selfPromoter Graph {this} {
- GraphVDbObj promote $this
- }
-
- method GraphVDbObj::promoter {this} {
- $this FileVObj::promoter
- module_promoter GraphVDbObj $this
- }
-
- proc GraphVDbObj::associations {} {
- return "[FileVObj::associations]"
- }
-
- method GraphVDbObj::browserObjType {this} {
- return "GraphVDbObj"
- }
-
- proc GraphVDbObj::childTypes {assoc} {
- if {[lsearch -exact "[GraphVDbObj::associations]" "$assoc"] == -1} {
- return ""
- }
- return "[BrowserProcs::childTypes $assoc]"
- }
-
- proc GraphVDbObj::controlledLists {} {
- return "[FileVObj::controlledLists]"
- }
-
- proc GraphVDbObj::infoProperties {} {
- return "[FileVObj::infoProperties]"
- }
-
- method GraphVDbObj::editFile {this {levelPath ""}} {
- $this esFile $levelPath
- }
-
- method GraphVDbObj::showFile {this {levelPath ""}} {
- $this esFile $levelPath -r
- }
-
- method GraphVDbObj::esFile {this {levelPath ""} {ro ""}} {
- set file [$this file]
- set fName [$file qualifiedName :].[$file type]
- if {$levelPath == ""} {
- set cc [ClientContext::global]
- set levelPath [$cc currentLevelIdString]
- }
- set lvlPath $levelPath/[$this identity]
-
- set script "SystemUtilities::fork otk \
- ude -c [list [get_comm_name]] $ro $lvlPath"
- set noScr "$wmttoolObj startCommand tcl \
- \"$script\" \"\" \
- \"Starting diagram editor for '$fName'\" \
- {0 0} 1"
-
- openOtherUde [LevelPath new $lvlPath] $fName "" $noScr
- }
-
- # Do not delete this line -- regeneration end marker
-
-