|Interface viewmap of Component Diagram [message #622601]
||Mon, 11 August 2008 14:56
| Niels Brouwers
Registered: July 2009
as you might have guessed from me previous posts, I am trying to customize
an UML2 diagram generated by the UML2Tools to suit our needs. Are wish is
to add some elements to the element, which allows the user to add domain
specific elements to a standard UML2 structure diagram. Domain specific
elements actually are realized by applying a stereotype from our profile.
Currently, I have come this far that I have created my own diagram plugin
with a customized palette, preference page, property page etc etc. I have
based the diagram on the UML2 Component diagram. As such, it shows all the
elements of the Component diagram + plus some domain specific elements.
These elements are:
- customized component
- customized interface
- customized operation
Now, I would like to be able to add customized operations to a customized
interface. Unfortunately, adding operations to an interface is currently
not supported (UML2Tools RC4) by the component diagram. I have noticed
that it is possible to do this on the Class diagram. I suspect the biggest
problem is that the component diagram does not support the interface from
having a rectangular shape.
So, at this point I am trying to reverse engineer the way UML2 Class
diagram deal with interfaces and try to copy this to the customized
component diagram. To start simple, I have placed a node mapping in the
gmfmap model to realize a Rectangle shape figure Interface node when I
click on the customized interface on the palette. Later on, I would like
to make it exactly as implemented in the class diagram (dynamically
changeable between circle figure and rectangle figure by means of the
- when I try to place a rectangle figure on the diagram using the palette,
It is still showing a circle figure.
- how to implement the dynamically changeable context menu action in the
In general, why are there separate structure diagrams such as component
and class diagrams? Why not making a general structure diagram?
Thank you for your answers!
Powered by FUDForum
. Page generated in 0.22587 seconds