Integrating BeanShell into CASE Tool

[email protected]
Newsgroups gmane.comp.java.beanshell.devel
Message-ID <[email protected]>
Hi,

I am developing a tiny UML CASE tool, which will be used to teach basic concepts
of OO. The tool allows students to graphicaly design an objectmodel and to
test it.

The tool supports the drawing of UML Classes and UML Objects. The cool thing
about the tool is, that students can draw UML Objects and send messages to
them using drag and drop. The UML Objects perform the methods and everything
is visualized using animations on screen.

I have already done such a tool, but students couldn't enter methods, because
they were hardcoded in Java.
The tool is part of an online tutorial, available here (in German):
http://e-learning.fhz.ch/projekte/foto/index.html


Now I am working on a new version, and I would like to use BeanShell as the
programming language for methods.

But I am having trouble integrating BeanShell into my own UML Classes and
UML Objects. Initially I thought subclassing class NameSpace would do the
trick. I thought of creating an ObjectNameSpace class which hooks into my
UML objects, and of creating a ClassNameSpace class which hooks into my UML
classes.

Now I see, that instances of NameSpace do calls to package private methods
on other instances of NameSpace. So I guess I have to redesign class NameSpace
into an Interface and factor all package private dependencies out of it.

This sounds like a lot of work, and I wonder if I am approaching this correctly.

Has someone already done something like this, and/or is there a better approach?

TIA,
Werner



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.