home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1997 November
/
PCWorld_1997-11_cd.bin
/
software
/
programy
/
komix
/
DATA.Z
/
clbrowser.tcl
< prev
next >
Wrap
Text File
|
1996-08-15
|
1KB
|
68 lines
#---------------------------------------------------------------------------
#
# (c) Westmount Technology 1995
#
# File: @(#)clbrowser.tcl /main/hindenburg/1
# Author: voyager
# Description: Instantiation of the class browser
#---------------------------------------------------------------------------
# SccsId = @(#)clbrowser.tcl /main/hindenburg/1 15 Aug 1996 Copyright 1995 Westmount Technology
OtkRegister::extGui
OtkRegister::semanticModel
source [m4_path_name tcl libocl.tcl]
require "platform.tcl"
require "procs.tcl"
require "messagehdl.tcl"
require "cbutils.tcl"
require "classbrows.tcl"
proc usage {} {
error "Usage: otk clbrowser.tcl \[-- -c caller\]"
}
set argc 0
set status INITIAL
set caller ""
foreach arg $argv {
case $arg in {
{-c} {
if {$status != "INITIAL"} {
usage
}
set status CALLER
}
{default} {
case $status in {
{CALLER} {
set caller $arg
set status END
}
{default} {
usage
}
}
}
}
incr argc 1
}
if {$status != "INITIAL" && $status != "END"} {
usage
}
sourceOptional u_clbrowse
set cc [ClientContext::global]
set phaseV [$cc currentPhase]
if {[$phaseV isNil]} {
error "Need more context (at least down to Phase level)"
}
global classBrowser
set classBrowser [ClassBrowser new .main $cc -caller "$caller" \
-firstExposed ".main initView"]
$classBrowser popUp