[javasim-general] File->Refresh Library <--callback-- DrclClassChooser()
REDIMERIO, Joseph
joseph.redimerio@baesystems.com.au
Mon, 13 May 2002 17:17:45 +0930
Hi,
I've been going over the GUI Editor source code to see what I'm doing wrong.
I assume that DrclClassChooser() is the callback function when
"File->Refresh Lib" is
selected.
DrclClassChooser in turn calls :
DrclClassChooser.init(), which calls
DrclClassChooser.findAllClasses() and DrclClassChooser.createTree();
DrclClassChooser.findAllClasses() seems to check whether "classes.dat"
exists, and
if so jump to DrclClassChooser.createTree() staight away. Otherwise, it
recreates the
tree, and saves it to new "classes.dat" file.
DrclClassChooser.findAllClasses() seems to search the CLASSPATH to recreate
the tree.
I believe it searches for all the *.class files under all the paths in
CLASSPATH.
Question: I did a "Find" for all of the *.class files under
C:\Tools\JavaSim\javasim\classes
directory, and found most of the files that appear during componentAdd.
However, the following
classes/directories are not present in the tree but are in the file system
...
C:\Tools\JavaSim\javasim\classes\drcl\comp\contract\PropertyContract.class
C:\Tools\JavaSim\javasim\classes\drcl\comp\contract\GarbageContract.class
C:\Tools\JavaSim\javasim\classes\drcl\comp\contract\EventContract.class
C:\Tools\JavaSim\javasim\classes\drcl\comp\lib\bytestream\ByteStreamConstant
s.class
C:\Tools\JavaSim\javasim\classes\drcl\comp\lib\bytestream\ByteStreamContract
.class
C:\Tools\JavaSim\javasim\classes\drcl\data\*
C:\Tools\JavaSim\javasim\classes\drcl\sim\*
C:\Tools\JavaSim\javasim\classes\drcl\util\*
Should all these classes/dirs "also" appear in componentAdd tree, after
"File->RefreshLib" is selected ?
Regards,
Joseph.
PS: I've checked my CLASSPATH and it does contain the
"C:\Tools\JavaSim\javasim\classes" path.
I checked it by typing "set" at the DOS prompt, where I launch the GUI
Editor from.