Title: Message
Hi Sam,
 
I'm not sure I understand your problem very well, but you seem to have stumped everyone else too, so I'll take a stab at it.  Independent of the current implementation what result are you trying to achieve?
 
I'm guessing that you want your own drawing tool and you want it to create a UML element with one or more applied stereotypes in a single step.  Correct?  Do you want it to have a different visual appearance (besides just the stereotype text)?  I suspect that creating a custom tool which builds composite elements will be much easier than changing the rendering with the current ArgoUML implementation.
 
There are outstanding enhancement requests for changing the appearance of a UML element based on applied stereotypes/profile.  One of them is
http://argouml.tigris.org/issues/show_bug.cgi?id=1396 
 
If you could clarify what you're trying to achieve perhaps others can offer some suggestions to help.  Perhaps you could walk through a simple concrete example from the user's point of view.
 
Tom
 
-----Original Message-----
From: Sam [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 01, 2006 7:36 AM
To: [email protected]
Subject: [argouml-dev] UML Profiles

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