Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 340940

Summary: To be able to view facet attributes and facet references in a table
Product: z_Archived Reporter: Nicolas Guyomar <nicolas.guyomar>
Component: EMF-FacetAssignee: Gregoire Dupe <gdupe>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: emft.facet-inbox, gdupe
Version: unspecifiedFlags: gdupe: indigo+
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 340941    
Bug Blocks:    
Attachments:
Description Flags
Patch for Bug 340940
gdupe: iplog+
Bug 340940 Additional changes
gdupe: iplog+
Patch for Bug 340940 Unit Test gdupe: iplog+

Description Nicolas Guyomar CLA 2011-03-25 05:51:13 EDT
Hi,

We should be able to see facet attributes and facet references when loading a facet model on a table.

Those feature could be represented as new column, added when the user choose to load a facet. To remove those column, the corresponding facets have to be unloaded.

Regards,
Nicolas Guyomar
Comment 1 Nicolas Guyomar CLA 2011-03-25 09:51:15 EDT
Created attachment 191908 [details]
Patch for Bug 340940

Hi,

In this patch I've added the two new requested columns, known as FacetAttributeColumn and FacetReferenceColumn

I've extracted the column instantiation from NatTableWidget class to the NatTableWidgetUtils one, created in Bug 340738.
This modification is performed in this bug because it is strongly linked with the additions of FacetReference and FacetAttribute Columns.

I've deleted TableElement and TableElementWithContext because since the creation of Row in TableInstance model, those classes were both duplicate beans of Row. (impacted class is BodyDataProvider)

I've modified the RemoveLineHandler which was not working anymore, this was due to a past modification in the Column selection mechanism.

I've modified the ExportCommandHandler because the user was still able to export a QueryResult from a table, but we are not ready for such a functionnality


There is an unexternalized string in org.eclipse.emf.facet.widgets.nattable.internal.NatTableWidget.getColumnName(Column) 
because 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)


(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-25 10:05:19 EDT
Created attachment 191909 [details]
Bug 340940 Additional changes

Hi,

I forgot to include the FacetContext class, in which I add to change a method visibility for performance matter.

(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-25 13:19:06 EDT
Comment on attachment 191909 [details]
Bug 340940 Additional changes


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 458.
Comment 4 Gregoire Dupe CLA 2011-03-25 13:19:13 EDT
Comment on attachment 191908 [details]
Patch for Bug 340940


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 458.
Comment 5 Nicolas Guyomar CLA 2011-04-15 09:21:36 EDT
Created attachment 193365 [details]
Patch for Bug 340940 Unit Test

Hi,

Please find attached a patch on existing loadFacets() unit test which had a cell's content validation on a FacetAttributeColumn.

(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.
(d) This contribution contains no Cryptography features.

Regards,
Nicolas Guyomar
Comment 6 Gregoire Dupe CLA 2011-04-19 03:57:59 EDT
Comment on attachment 193365 [details]
Patch for Bug 340940 Unit Test

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 525.
Comment 7 Gregoire Dupe CLA 2011-04-19 03:59:37 EDT
This bug can be marked as fixed.

Regards,
Gregoire Dupe
Comment 8 Gregoire Dupe CLA 2011-06-07 13:29:18 EDT
This bug can be closed.