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

Bug 359145

Summary: [Table] Typo in expression with property tester causing issues with handler enablement
Product: z_Archived Reporter: Alain Le Guennec <alain.leguennec>
Component: EMF-FacetAssignee: Nicolas Bros <nicolas.bros>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P2 CC: eclipse-bugzilla, emft.facet-inbox, gdupe, nicolas.bros
Version: unspecifiedFlags: gdupe: kepler+
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Patch to fix the issue. gdupe: iplog+

Description Alain Le Guennec CLA 2011-09-27 17:12:43 EDT
There seems to be a typo in org.eclipse.emf.facet.widgets.nattable/plugin.xml in the enableWith expression for the loadFacetCommand handler:
It currently reads:
property="org.eclipse.emf.facet.widgets.nattable.workbencattable.workbench.tableSelectionTester.isTable"
                                                 ^^^^^^^^^^^^^^^
The strange "workbencattable" part should be removed.
Otherwise, this cause the right property tester not to be found.
Comment 1 Alain Le Guennec CLA 2011-09-27 17:14:04 EDT
Created attachment 204119 [details]
Patch to fix the issue.
Comment 2 Nicolas Bros CLA 2011-09-30 10:17:47 EDT
Thank you for this bug.
Fixed in revisions 893 & 895 on trunk and branch 0_1.
Comment 3 Alain Le Guennec CLA 2011-10-02 11:53:27 EDT
Actually, my patch was slightly wrong:
To test against the "activePart" property, one should not use property tester "org.eclipse.emf.facet.widgets.nattable.workbench.tableSelectionTester.isTable", but "org.eclipse.emf.facet.widgets.nattable.workbench.tablePartTester.isTableEditor",
otherwise expression evaluation will fail with some CoreExceptions being raised..
Sorry for misleading you with a wrong patch.
Comment 4 Nicolas Bros CLA 2011-10-03 03:45:04 EDT
The fix seems to work for me: I don't see any error and the "Load Facet" action is enabled when the table editor is active.

What do you do to trigger a CoreException?
Comment 5 Gregoire Dupe CLA 2013-05-23 07:55:55 EDT
Comment on attachment 204119 [details]
Patch to fix the issue.

This patch has been committed by Nicolas Bros.
Comment 6 Gregoire Dupe CLA 2013-05-23 09:16:10 EDT
I've to close this bug to be able to the contribution in the IP log.

If needed, please, open another bug.