ObeoNetwork / UML-Designer

OpenSource (EPL licensed) UML2 Graphical Modelers (Class, Composite, State, Activity, Sequence ...)
http://umldesigner.org
320 stars 123 forks source link

Label customization #467

Open mbats opened 10 years ago

mbats commented 10 years ago

It should be possible to customize labels. For example, in the class diagram, we would like to be able on a properties to select to view in its label the multiplicity , the uniqueness....

See the user related question on the obeo network : http://www.obeonetwork.com/group/uml-designer/forum/topic/show?id=6359481%3ATopic%3A59647&xg_source=msg

mbats commented 10 years ago

To implement this use the Sirius Feature Extension, an example is avaialble in the graal project : https://github.com/ObeoNetwork/InformationSystem/tree/master/designs/graal/plugins/org.obeonetwork.graal.design/src/org/obeonetwork/graal/design/extension https://github.com/ObeoNetwork/InformationSystem/blob/master/designs/graal/plugins/org.obeonetwork.graal.design/plugin.xml#L20

mbats commented 10 years ago

Is it possible to integrate these label customization to the Sirius Appearance view ?

mbats commented 10 years ago

Another possibility to implement this feature is to use the graphical filters : org.eclipse.sirius.diagram.GraphicalFilter. Implement a specific graphical filter for the labels and then from the computeUmlLabel service thanks to the view get the activated graphical filter and compute the label according to this information.