Bug 399853 - [Widgets] Papyrus shall enable to edit the comment body with a rich-text editor
Summary: [Widgets] Papyrus shall enable to edit the comment body with a rich-text editor
Status: RESOLVED FIXED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Views (show other bugs)
Version: 1.0.0   Edit
Hardware: All All
: P3 enhancement with 1 vote (vote)
Target Milestone: SR2   Edit
Assignee: Mickael ADAM CLA
QA Contact:
URL:
Whiteboard: Usability
Keywords: plan
Depends on:
Blocks:
 
Reported: 2013-02-04 07:52 EST by Camille Letavernier CLA
Modified: 2016-02-11 11:32 EST (History)
10 users (show)

See Also:
rschnekenburger: kepler+
cletavernier: luna+


Attachments
Extension of Rich text (1.91 MB, application/x-zip-compressed)
2013-11-28 03:30 EST, Yves YANG CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Camille Letavernier CLA 2013-02-04 07:52:36 EST
Papyrus shall provide a Rich Text Editor to be able to edit UML Comments (And other text elements). This editor shall support basic text-formatting properties, such as font, size, colors, ...
Comment 1 Yves YANG CLA 2013-11-28 03:30:27 EST
Created attachment 237778 [details]
Extension of Rich text

This extension supports more enhanced features for the requirements of Papyrus.
Comment 2 Robert Lundbäck CLA 2014-06-26 03:41:28 EDT
When using Papyrus for system modeling, i.e. as a way to describe a system then formatting possibilities of descriptive text are essential. For example bullet or numbered lists, headings, tables, bold-italic-underline characters etc are currently used in our model made by "other UML modeling tool". This modeling tool supports rich text editing and when the model is imported into Papyrus the tags are imported. But currently it seems that only a limited set of tags are interpreted by the diagram editor. Bold characters are shows in the diagram editor whereas italic isn't.

The rich text editing capabilities should preferably work also on Diagram notes (support currently missing in Papyrus, see Bugzilla 438049) appart from in UML Comments.
Comment 3 Mickael ADAM CLA 2015-01-09 04:48:49 EST
Has been merged on an Extra plugin. Can be close.
Comment 4 Camille Letavernier CLA 2015-01-09 05:00:08 EST
> Has been merged on an Extra plugin. Can be close.

I close the task
Comment 5 Alain Le Guennec CLA 2016-02-11 11:32:13 EST
(In reply to Camille Letavernier from comment #4)
> > Has been merged on an Extra plugin. Can be close.
> 
> I close the task

I find it a bit strange that this task be closed while only half of the work is done.
I checked out the rich text integration extra plugin,
and while the integration of the rich text editor in the property page for editing the comment body is working nicely (with support for links, images, and even HTML tables working in preview), the rendering by the comment figure itself on diagrams (as implemented by class org.eclipse.papyrus.uml.diagram.common.figure.node.HTMLCornerBentFigure) is very very limited, as noted by Robert Lundbäck in comment #2.
Links and images could probably be implemented reasonable easily on top of draw2d.text (tables are probably much harder to do).

I googled for existing draw2d.text-based HTML renderer, to no avail.. Too bad.