Better control af labels [message #557841] |
Thu, 09 September 2010 03:52  |
Eclipse User |
|
|
|
Originally posted by: formatzeh.gmx.de
I want to better control the presentation of values of model elements.
Recall, e.g., the class diagram from UML. A method will be presented in
the class box in the following way:
+doFoo(bar:String):Int
And everybody knows that the method's name is 'doFoo', it is public, has
a parameter of type String and returns a value of type Int. In this
single-line label 5 information are coded: name, modifier, parameter,
parameter type, return type. You can speak of some kind of syntax.
Another viewpoint could be that a textual DSL is integrated into the
graphical of UML class diagrams. I want to do some sort of this. My
question is whether it is possible to define some kind of those
composite label with arbitrary glue strings (like ':', '(', ')'...). Is
it possible to model this needs or do I have to register a new class at
some extension point and sub-class another class or something like this.
Is there any documentation about this problem/issue?
best regards,
Gilbert
|
|
|
|
Powered by
FUDForum. Page generated in 0.05469 seconds