Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 372644 - Create Customizable tooltips for the TreeViewer using a CustomizableLabelProvider
Summary: Create Customizable tooltips for the TreeViewer using a CustomizableLabelProv...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EMF-Facet (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P2 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Gregoire Dupe CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 357621
  Show dependency tree
 
Reported: 2012-02-27 08:36 EST by Vincent Lorenzo CLA
Modified: 2020-05-01 11:26 EDT (History)
4 users (show)

See Also:
gdupe: juno+


Attachments
This patch adds several fields in the Customization metamodel in order to custom the tooltips. (57.63 KB, patch)
2012-02-27 08:44 EST, Vincent Lorenzo CLA
no flags Details | Diff
This patch enables the tooltips on the TreeViewer (1.48 KB, patch)
2012-02-27 09:30 EST, Vincent Lorenzo CLA
gdupe: iplog+
gdupe: review+
Details | Diff
This patch replaces the DefaultLabelProvider by the ICustomizableLabelProvider for the action Change Allowed Contents (20.54 KB, patch)
2012-02-29 05:24 EST, Vincent Lorenzo CLA
gdupe: review-
Details | Diff
This patch adds the possibility to customize the tooltip in the TreeViewer dialog (76.94 KB, patch)
2012-02-29 09:03 EST, Vincent Lorenzo CLA
no flags Details | Diff
This patch adds the possibility to customize the tooltip in the TreeViewer dialog (76.56 KB, patch)
2012-03-01 10:51 EST, Vincent Lorenzo CLA
no flags Details | Diff
This patch replaces the DefaultLabelProvider by the ICustomizableLabelProvider for the action Change Allowed Contents (20.53 KB, patch)
2012-03-01 10:58 EST, Vincent Lorenzo CLA
gdupe: iplog+
gdupe: review+
Details | Diff
This patch adds the possibility to customize the tooltip in the TreeViewer dialog (68.77 KB, patch)
2012-03-05 08:07 EST, Vincent Lorenzo CLA
Patrick.Tessier: iplog+
gdupe: review+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vincent Lorenzo CLA 2012-02-27 08:36:18 EST
The tooltips should be customizable. The following fields should be customizable for tooltip : 
- text
- background
- foreground
- image
- overlay for the image (top left/middle/right and bottom left/middle/right)
- bold
- italic
- font name
- font size
- time displayed
- display delay time
- shadow (SWT.SHADOW_NONE, SWT.SHADOW_IN and SWT.SHADOW_OUT)
- aligment (SWT.LEFT, SWT.RIGHT, SWT.CENTER)
Comment 1 Vincent Lorenzo CLA 2012-02-27 08:44:50 EST
Created attachment 211664 [details]
This patch adds several fields in the Customization metamodel in order to custom the tooltips.

(1) I, Vincent Lorenzo, wrote 100% of the code I've provided.
(2) This code contains no cryptography
(3) I have the right to contribute the code to Eclipse.
(4) I contribute the content under the EPL.
Comment 2 Vincent Lorenzo CLA 2012-02-27 09:30:49 EST
Created attachment 211668 [details]
This patch enables the tooltips on the TreeViewer

(1) I, Vincent Lorenzo, wrote 100% of the code I've provided.
(2) This code contains no cryptography
(3) I have the right to contribute the code to Eclipse.
(4) I contribute the content under the EPL.
Comment 3 Vincent Lorenzo CLA 2012-02-27 10:12:45 EST
I mark the patch as obsolete, because I forgot to implement a class!
Comment 4 Gregoire Dupe CLA 2012-02-28 04:57:08 EST
Comment on attachment 211668 [details]
This patch enables the tooltips on the TreeViewer

This patch is smaller than 250 lines (3 lines).

I've committed it.

Committed revision 1676.
Comment 5 Vincent Lorenzo CLA 2012-02-29 05:24:35 EST
Created attachment 211788 [details]
This patch replaces the DefaultLabelProvider by the ICustomizableLabelProvider for the action Change Allowed Contents

(1) I, Vincent Lorenzo, wrote 100% of the code I've provided.
(2) This code contains no cryptography
(3) I have the right to contribute the code to Eclipse.
(4) I contribute the content under the EPL.
Comment 6 Vincent Lorenzo CLA 2012-02-29 09:03:00 EST
Created attachment 211798 [details]
This patch adds the possibility to customize the tooltip in the TreeViewer dialog

This patch adds : 
    - custom emf-facet primitive types (used for tooltip) : 
    	- Alignment
    	- Shadow
    - a new facet for the tooltip customization
    - adapt the CustomizedLabelProvider in order to manage these new customizations, a new interface has been created (a kind of TooltipLabelProvider)
    - TableLabelProviderimplements these new methods too, 
    	but currently, in the table, the cells don't support tooltips
    	
(1) I, Vincent Lorenzo, wrote 100% of the code I've provided.
(2) This code contains no cryptography
(3) I have the right to contribute the code to Eclipse.
(4) I contribute the content under the EPL.
Comment 7 Gregoire Dupe CLA 2012-03-01 07:53:59 EST
Comment on attachment 211788 [details]
This patch replaces the DefaultLabelProvider by the ICustomizableLabelProvider for the action Change Allowed Contents

Hello,

This patch is not applicable on a regular EMF Facet workspace.

Please, send us a new patch based on projects having the same name than the plug-in.

Regards,
Grégoire
Comment 8 Vincent Lorenzo CLA 2012-03-01 10:51:04 EST
Created attachment 211890 [details]
This patch adds the possibility to customize the tooltip in the TreeViewer dialog

This patch adds : 
- custom emf-facet primitive types (used for tooltip) : 
- Alignment
- Shadow
- a new facet for the tooltip customization
- adapt the CustomizedLabelProvider in order to manage these new customizations, a new interface has been created (a kind of TooltipLabelProvider)
- TableLabelProviderimplements these new methods too, 
but currently, in the table, the cells don't support tooltips

(1) I, Vincent Lorenzo, wrote 100% of the code I've provided.
(2) This code contains no cryptography
(3) I have the right to contribute the code to Eclipse.
(4) I contribute the content under the EPL.
Comment 9 Vincent Lorenzo CLA 2012-03-01 10:58:57 EST
Created attachment 211893 [details]
This patch replaces the DefaultLabelProvider by the ICustomizableLabelProvider for the action Change Allowed Contents

(1) I, Vincent Lorenzo, wrote 100% of the code I've provided.
(2) This code contains no cryptography
(3) I have the right to contribute the code to Eclipse.
(4) I contribute the content under the EPL.
Comment 10 Gregoire Dupe CLA 2012-03-01 12:37:45 EST
Comment on attachment 211893 [details]
This patch replaces the DefaultLabelProvider by the ICustomizableLabelProvider for the action Change Allowed Contents

This patch is smaller than 250 lines (55 lines).

I've committed this patch (with some improvement of the code quality).

Committed revision 1695.
Comment 11 Vincent Lorenzo CLA 2012-03-05 08:07:46 EST
Created attachment 212061 [details]
This patch adds the possibility to customize the tooltip in the TreeViewer dialog

This patch adds : 
- custom emf-facet primitive types (used for tooltip) : 
- Alignment
- Shadow
- a new facet for the tooltip customization
- adapt the CustomizedLabelProvider in order to manage these new customizations, a new interface has been created (a kind of TooltipLabelProvider)
- TableLabelProviderimplements these new methods too, 
but currently, in the table, the cells don't support tooltips

(1) I, Vincent Lorenzo, wrote 100% of the code I've provided.
(2) This code contains no cryptography
(3) I have the right to contribute the code to Eclipse.
(4) I contribute the content under the EPL.
Comment 12 Gregoire Dupe CLA 2012-03-05 08:34:01 EST
Comment on attachment 212061 [details]
This patch adds the possibility to customize the tooltip in the TreeViewer dialog

Patrick, please, can you commit this patch.

Regards,
Grégoire
Comment 13 Patrick Tessier CLA 2012-03-05 10:56:44 EST
Comment on attachment 212061 [details]
This patch adds the possibility to customize the tooltip in the TreeViewer dialog

Here is a contribution from one employee of CEA. The company has signed a Member Commiter Agreement. The contribution does not need a CQ. (http://dev.eclipse.org/mhonarc/lists/modeling-pmc/msg01997.html)
I've committed this contribution.
Committed revision 1733.
Comment 14 Gregoire Dupe CLA 2012-03-23 05:21:43 EDT
This bug can marked as fixed.

Vincent, please, can you check that your contribution has been properly
integrated and close this bug ?
Comment 15 Nicolas Bros CLA 2012-04-02 04:57:45 EDT
CustomizedToolTipEObject was missing the "bottomRightOverlay" FacetOperation. I added it in revision 2007.
Comment 16 Gregoire Dupe CLA 2012-05-23 06:32:14 EDT
Hello Vincent,

Please, can you close this bug, if your problem has been solved ?

Regards,
Grégoire
Comment 17 Gregoire Dupe CLA 2012-05-23 12:32:11 EDT
Sorry Vincent but this bug has to be closed for the IP log generation.
Comment 18 Gregoire Dupe CLA 2012-05-23 15:08:46 EDT
(In reply to comment #17)
> Sorry Vincent but this bug has to be closed for the IP log generation.

So, closing.