Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 340681 - Facet column implementation
Summary: Facet column implementation
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EMF-Facet (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Gregoire Dupe CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 340976 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-03-22 12:32 EDT by Nicolas Guyomar CLA
Modified: 2020-05-01 11:27 EDT (History)
2 users (show)

See Also:
gdupe: indigo+


Attachments
Patch for Bug 340681 (32.21 KB, patch)
2011-03-22 12:36 EDT, Nicolas Guyomar CLA
no flags Details | Diff
Patch for Bug 340681 (26.06 KB, patch)
2011-03-22 12:56 EDT, Nicolas Guyomar CLA
gdupe: iplog+
Details | Diff
Patch for Bug 340681 update (26.71 KB, patch)
2011-03-29 05:04 EDT, Nicolas Guyomar CLA
gdupe: iplog+
Details | Diff
Bug 340681 modifications needed for tests (14.73 KB, patch)
2011-03-29 06:08 EDT, Nicolas Guyomar CLA
gdupe: iplog+
Details | Diff
New Plug-in : org.eclipse.emf.facet.widgets.nattable.tests (19.22 KB, application/x-zip-compressed)
2011-03-29 06:09 EDT, Nicolas Guyomar CLA
gdupe: iplog+
Details
Patch Bug 340681 example plugin for tests (24.79 KB, patch)
2011-03-29 08:48 EDT, Nicolas Guyomar CLA
gdupe: iplog+
Details | Diff
updated documentation.patch (1.95 KB, patch)
2011-03-29 09:09 EDT, Nicolas Guyomar CLA
gdupe: iplog+
Details | Diff
new_user_documentation_icons.zip (79.70 KB, application/x-zip-compressed)
2011-03-29 09:11 EDT, Nicolas Guyomar CLA
gdupe: iplog+
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Guyomar CLA 2011-03-22 12:32:29 EDT
Hi,

It would be an interesting feature for the EMF Facet table to be able to display FacetReference and FacetAttribute on some elements.

We could chose which facets we want to apply on the table, then one column would be added to the table for each FacetReference or FacetAttribute

Regards,
Nicolas Guyomar
Comment 1 Nicolas Guyomar CLA 2011-03-22 12:36:02 EDT
Created attachment 191697 [details]
Patch for Bug 340681

Hi,

I have implemented such a feature in the attached patch. Thank to bug , I was able to get the tableInstance facet registration mechanism to work.

We can now apply facets on table, and see FacetAttributes and FacetReferences as new columns.

This patch impacts the following projects:

org.eclipse.emf.facet.infra.browser
org.eclipse.emf.facet.infra.facet.core
org.eclipse.emf.facet.widgets.nattable
org.eclipse.emf.facet.widgets.nattable.instance
org.eclipse.emf.facet.widgets.nattable.workbench

(a) I, Nicolas Guyomar, wrote 100% of the code I've provided.
(b) I have the right to contribute the code to Eclipse.
(c) I contribute the content under the EPL.

Regards,
Nicolas Guyomar
Comment 2 Nicolas Guyomar CLA 2011-03-22 12:56:09 EDT
Created attachment 191699 [details]
Patch for Bug 340681

(In reply to comment #1)

I forgot to include one plug-in in my patch : org.eclipse.emf.facet.infra.browser.custom.ui

Please find attached an updated version

(a) I, Nicolas Guyomar, wrote 100% of the code I've provided.
(b) I have the right to contribute the code to Eclipse.
(c) I contribute the content under the EPL.

Regards,
Nicolas Guyomar
Comment 3 Gregoire Dupe CLA 2011-03-23 05:31:20 EDT
Comment on attachment 191699 [details]
Patch for Bug 340681

Here is a contribution from one employee of Mia-Software, targeting future
Indigo release. The company has signed a Member Commiter Agreement. The
contribution does not need a CQ (see bug 322327).

I've committed this contribution.

Committed revision 444.
Comment 4 Gregoire Dupe CLA 2011-03-23 05:32:04 EDT
This bug can be marked has fixed.
Comment 5 Gregoire Dupe CLA 2011-03-25 09:22:41 EDT
I reopen this bug to not forget to externalize strings from:
 - org.eclipse.emf.facet.widgets.nattable.internal.actions.LoadCustomizationsAction
 - org.eclipse.emf.facet.widgets.nattable.internal.actions.LoadFacetsAction

We are waiting for an answer from Babel to know the process to externalize strings after M6. (http://www.eclipse.org/forums/index.php?t=msg&th=206622&start=0&S=27354c8f22cdb29136360e096646dc78)

Regards,
Gregoire
Comment 6 Gregoire Dupe CLA 2011-03-25 09:23:46 EDT
I've fixed the string externalization warnings and add a TODO comment to not forget to externalize string in conformance with the Babel process.
Comment 7 Gregoire Dupe CLA 2011-03-25 09:24:03 EDT
(In reply to comment #6)
Committed revision 453.
Comment 8 Gregoire Dupe CLA 2011-03-25 09:40:49 EDT
We also have to externalize strings form:
 - org.eclipse.emf.facet.widgets.nattable.internal.NatTableWidget

I've added a TODO comment to remind them. (Committed revision 456.)

Regards,
Gregoire Dupe
Comment 9 Nicolas Guyomar CLA 2011-03-29 05:04:43 EDT
Created attachment 192069 [details]
Patch for Bug 340681 update

Hi,

Please find attached a new patch in order to update the FacetColumn implementation.

In this patch I have added icon in the FacetReferenceColumn and FacetAttributeColumn header.
It is now possible to set the applied facet using the table contextual menu

I have extracted some static methods from NatTableWidget java class to NatTableWidgetInternalUtils

I have also modified the tableConfiguration loading, so that whenever a referenced does not exist in the FacetCatalog, the framework does not try to apply it but log an error


(a) I, Nicolas Guyomar, wrote 100% of the code I've provided.
(b) I have the right to contribute the code to Eclipse.
(c) I contribute the content under the EPL.

Regards,
Nicolas Guyomar
Comment 10 Gregoire Dupe CLA 2011-03-29 05:29:58 EDT
Comment on attachment 192069 [details]
Patch for Bug 340681 update

Here is a contribution from one employee of Mia-Software, targeting future
Indigo release. The company has signed a Member Commiter Agreement. The
contribution does not need a CQ (see bug 322327).

I've committed this contribution.

Committed revision 464.
Comment 11 Nicolas Guyomar CLA 2011-03-29 06:08:21 EDT
Created attachment 192073 [details]
Bug 340681 modifications needed for tests

Hi,

Please find attached some new x-friends, as well as a new method selectDefaultLabelCell() in INatTableWidget2 needed fo the upcoming test plug-in

(a) I, Nicolas Guyomar, wrote 100% of the code I've provided.
(b) I have the right to contribute the code to Eclipse.
(c) I contribute the content under the EPL.

Regards,
Nicolas Guyomar
Comment 12 Nicolas Guyomar CLA 2011-03-29 06:09:35 EDT
Created attachment 192074 [details]
New Plug-in : org.eclipse.emf.facet.widgets.nattable.tests

Hi,

Please find attached a new test plug-in for NatTable.

(a) I, Nicolas Guyomar, wrote 100% of the code I've provided.
(b) I have the right to contribute the code to Eclipse.
(c) I contribute the content under the EPL.

Regards,
Nicolas Guyomar
Comment 13 Gregoire Dupe CLA 2011-03-29 08:11:40 EDT
Comment on attachment 192073 [details]
Bug 340681 modifications needed for tests

Here is a contribution from one employee of Mia-Software, targeting future
Indigo release. The company has signed a Member Commiter Agreement. The
contribution does not need a CQ (see bug 322327).

I've committed this contribution.

Committed revision 465.
Comment 14 Nicolas Guyomar CLA 2011-03-29 08:48:13 EDT
Created attachment 192082 [details]
Patch Bug 340681 example plugin for tests

Hi,

Please find attached some new test material for table testing.

(a) I, Nicolas Guyomar, wrote 100% of the code I've provided.
(b) I have the right to contribute the code to Eclipse.
(c) I contribute the content under the EPL.

Regards,
Nicolas Guyomar
Comment 15 Gregoire Dupe CLA 2011-03-29 08:59:58 EDT
*** Bug 340976 has been marked as a duplicate of this bug. ***
Comment 16 Nicolas Guyomar CLA 2011-03-29 09:09:36 EDT
Created attachment 192084 [details]
updated documentation.patch

Hi,

Please find attached an updated version of the table documentation, images are attached in the next attachment.

(a) I, Nicolas Guyomar, wrote 100% of the code I've provided.
(b) I have the right to contribute the code to Eclipse.
(c) I contribute the content under the EPL.

Regards,
Nicolas Guyomar
Comment 17 Nicolas Guyomar CLA 2011-03-29 09:11:54 EDT
Created attachment 192085 [details]
new_user_documentation_icons.zip

Hi,

Please find attached some new images for the table user documentation

(a) I, Nicolas Guyomar, authored 100% of the images I've provided.
(b) I have the right to contribute the image to Eclipse.
(c) I contribute the content under the EPL.

Regards,
Nicolas Guyomar
Comment 18 Gregoire Dupe CLA 2011-03-29 10:36:27 EDT
Comment on attachment 192082 [details]
Patch Bug 340681 example plugin for tests

Here is a contribution from one employee of Mia-Software, targeting future
Indigo release. The company has signed a Member Commiter Agreement. The
contribution does not need a CQ (see bug 322327).

I've committed this contribution.

Committed revision 467.
Comment 19 Gregoire Dupe CLA 2011-03-29 10:55:58 EDT
Comment on attachment 192074 [details]
New Plug-in : org.eclipse.emf.facet.widgets.nattable.tests

Here is a contribution from one employee of Mia-Software, targeting future
Indigo release. The company has signed a Member Commiter Agreement. The
contribution does not need a CQ (see bug 322327).

I've committed this contribution.

Committed revision 470.
Comment 20 Gregoire Dupe CLA 2011-03-29 11:26:19 EDT
Comment on attachment 192084 [details]
updated documentation.patch

Here is a contribution from one employee of Mia-Software, targeting future
Indigo release. The company has signed a Member Commiter Agreement. The
contribution does not need a CQ (see bug 322327).

I've committed this contribution.

Committed revision 473.
Comment 21 Gregoire Dupe CLA 2011-03-29 11:26:24 EDT
Comment on attachment 192085 [details]
new_user_documentation_icons.zip

Here is a contribution from one employee of Mia-Software, targeting future
Indigo release. The company has signed a Member Commiter Agreement. The
contribution does not need a CQ (see bug 322327).

I've committed this contribution.

Committed revision 473.
Comment 22 Gregoire Dupe CLA 2011-05-20 10:30:39 EDT
This bug can be closed.