Community
Participate
Working Groups
It is impossible to edit graphically a comment in class and use case diagram. Moreover the figure of the comment is not multi-line.
I changed the comment figure to add several features: - the comment figure is now multiline - the comment figure is now a bit more "sexy": it is able to display formatted text (bold, underline, italic, etc.) using html tags. It stays compatible with old comments. - an advanced editor using the epf html wysiwyg editor is provided in a new plugin. it is placed in another plugin as it introduces a dependency to a part of the epf plugins. What does it imply for diagram plugins developers? - change the viewmap for the comment node: It was an inner class (CornerBenDescriptor), which is replaced by a standard figure: (Figure ViewMap) which is implemented by org.eclipse.papyrus.diagram.common.figure.node.HTMLCornerBentFigure - for the comment body edit part, the viewmap is a parent assigned view map, as before, but the accessor is: getCornerBentFigure, the figure class is org.eclipse.papyrus.diagram.common.figure.node.HTMLCornerBentFigure As an example, you can look in the class diagram gmfgen to see how it done.
How does it work ? I tried to edit a comment directly in the diagram without success. Do I have to install EPF ? (I work on a Modeling Galilieo).
Created attachment 156621 [details] EPF dependency These are the four plugins required for the plugin org.eclipse.papyrus.tabbedproperties.comment
Yes, a specific feature of epf should be installed. As is is not exactly defined currently, i put an epf file as an attachment of this bug. I commit several file in r1002. This should be the last commit (unless bugs) for the update of the comment figure. A pop up menu has been added to the gmfgen, valid on selection of the GenEditorGenerator element (the main element of the gmfgen) . Using subtasks, i invite each diagram editor developer to update his own diagram gmfgen. This task will be closed as soon as everybody has updated his diagram.
Change the bug to normal
already done