Hi,

I'm having a problem with the module I'm developping.
We're trying to add Story driven modeling ( Story diagrams )
which is based on uml profile on the uml metamodel.
This means we don't have our own uml elements like those
found in org.omg.uml.*

This brings us to the problem of building/displaying a node with
the GEF framework. When a button is pushed in the toolbar of a
diagram, the makeNode() function is called in the CmdCreateNode class,
which builds a node using ( in argouml ) Model.getUmlFactory().buildNode()
and returns the node to GEF. This node is created by calling functions in org.omg.uml.*
eg. org.omg.uml.behavioralelements.statemachines.SimpleStateClass . createSimpleState()
for a simple state.

The problem is that those functions don't exist in org.omg.uml for the
nodes that we need since they're recognised by uml classes with stereotypes
attatched to them. Of course we do have to return something to GEF or the whole
thing comes crashing down.

Currently whe're just "stealing" node object for other elements that do
exist in org.omg.uml. Is there a better way to do this in argouml?
Is there a way to build a diagram based on uml profiles instead of standard
uml elements?

I hope the problem is clearly stated.

Kind regards,
Sam Verboven

Reply via email to