home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1997 November
/
PCWorld_1997-11_cd.bin
/
software
/
programy
/
komix
/
DATA.Z
/
msumldesk.mnu
< prev
next >
Wrap
Text File
|
1997-06-03
|
3KB
|
123 lines
registerObject {
scope {* *}
name .utilities.menu.user_4
type CustMenuSeparator
visible {0 0 1 1 0}
objSpec {
}
}
registerObject {
scope {* * {Analysis SystemDesign ObjectDesign}}
name .utilities.menu.exporttomsrepository
type CustMenuPushButton
visible {0 0 0 1 0}
objSpec {
label {Export to MS Repository}
hintText {Export to MS Repository.}
activated {
#CTGENCommandScript
if ![isCommand MsRepChooser] {
set home [m4_var get M4_home]/contrib/ObjectTeamMsRepUml/tcl
source $home/msrepchoos.tcl
source $home/msimportco.tcl
source $home/msexportco.tcl
}
set selSet ""
set selectedObjSet [.main selectedObjSet]
foreach obj [.main selectedObjSet] {
if [$obj isA PhaseVersion] {
foreach sv [$obj systemVersions] {
lappend selSet [$sv identity]
}
#only one phase version can be exp.
break
}
lappend selSet [$obj identity]
}
MsExportControl new .main.msExportChooser "" "" $selSet
.main.msExportChooser popUp
[.main messageArea] message ""
#CTGENEndCommandScript
}
selCount many
checkOn selectionChange
selIsATypes SSysVDbObj
}
}
registerObject {
scope {* *}
name .utilities.menu.exporttomsrepository
type CustMenuPushButton
visible {0 0 1 0 0}
objSpec {
label {Export to MS Repository}
hintText {Export to MS Repository.}
activated {
#CTGENCommandScript
if ![isCommand MsRepChooser] {
set home [m4_var get M4_home]/contrib/ObjectTeamMsRepUml/tcl
source $home/msrepchoos.tcl
source $home/msimportco.tcl
source $home/msexportco.tcl
}
set selSet ""
set selectedObjSet [.main selectedObjSet]
if ![llength $selectedObjSet] {
wmtkerror "No system selected"
return
}
foreach obj [.main selectedObjSet] {
if [$obj isA PhaseVersion] {
foreach sv [$obj systemVersions] {
lappend selSet [$sv identity]
}
#only one phase version can be exp.
break
}
lappend selSet [$obj identity]
}
MsExportControl new .main.msExportChooser "" "" $selSet
.main.msExportChooser popUp
[.main messageArea] message ""
#CTGENEndCommandScript
}
selCount 1
checkOn selectionChange
selIsATypes PhaseVersion
selTypes {Analysis ObjectDesign SystemDesign}
}
}
registerObject {
scope {* * {Analysis SystemDesign ObjectDesign}}
name .utilities.menu.importfrommsrepository
type CustMenuPushButton
visible {0 0 0 1 0}
objSpec {
label {Import from MS Repository}
mnemonic I
hintText {Import from MS Repository.}
activated {
busy {
#CTGENCommandScript
if ![isCommand MsRepChooser] {
set home [m4_var get M4_home]/contrib/ObjectTeamMsRepUml/tcl
source $home/msrepchoos.tcl
source $home/msimportco.tcl
source $home/msexportco.tcl
}
[.main messageArea] message "Reading models in repository ..."
MsImportControl new .main.msImportChooser "" ""
.main.msImportChooser popUp
[.main messageArea] message ""
#CTGENEndCommandScript
}
}
}
}