Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 288250 - [All diagram] editing a comment
Summary: [All diagram] editing a comment
Status: RESOLVED WONTFIX
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: Patrick Tessier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 300164 300165 300166 300167 300168 300169
Blocks:
  Show dependency tree
 
Reported: 2009-09-01 09:35 EDT by Patrick Tessier CLA
Modified: 2013-02-01 04:12 EST (History)
1 user (show)

See Also:


Attachments
EPF dependency (733 bytes, application/xml)
2010-01-20 06:03 EST, Remi Schnekenburger CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Tessier CLA 2009-09-01 09:35:01 EDT
It is impossible to edit graphically a comment in class and use case diagram.
Moreover the figure of the comment is not multi-line.
Comment 1 Remi Schnekenburger CLA 2010-01-13 09:02:18 EST
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.
Comment 2 Thibault Landré CLA 2010-01-15 09:34:57 EST
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).
Comment 3 Remi Schnekenburger CLA 2010-01-20 06:03:28 EST
Created attachment 156621 [details]
EPF dependency

These are the four plugins required for the plugin org.eclipse.papyrus.tabbedproperties.comment
Comment 4 Remi Schnekenburger CLA 2010-01-20 06:23:11 EST
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.
Comment 5 Patrick Tessier CLA 2011-07-28 05:41:56 EDT
Change the bug to normal
Comment 6 Patrick Tessier CLA 2013-02-01 04:12:45 EST
already done