home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
clbrowser.tcl
< prev
next >
Wrap
Text File
|
1996-09-12
|
1KB
|
68 lines
#---------------------------------------------------------------------------
#
# (c) Westmount Technology 1995
#
# File: @(#)clbrowser.tcl /main/titanic/1
# Author: voyager
# Description: Instantiation of the class browser
#---------------------------------------------------------------------------
# SccsId = @(#)clbrowser.tcl /main/titanic/1 12 Sep 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