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

Bug 331410

Summary: add an extensible context menu on the NatTable view
Product: z_Archived Reporter: Nicolas Bros <nicolas.bros>
Component: EMF-FacetAssignee: Nicolas Bros <nicolas.bros>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P1 CC: emft.facet-inbox, gdupe, nicolas.guyomar
Version: unspecifiedFlags: gdupe: indigo+
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 331203    
Bug Blocks:    
Attachments:
Description Flags
patch (zip) gdupe: iplog-

Description Nicolas Bros CLA 2010-11-30 05:28:15 EST
Created attachment 184104 [details]
patch (zip)

Here is a patch to add an extensible context menu on the NatTable view
Comment 1 Nicolas Bros CLA 2010-11-30 05:33:16 EST
And a patch for the editor:


Index: NatTableEditor.java
===================================================================
--- NatTableEditor.java	(revision 9133)
+++ NatTableEditor.java	(working copy)
@@ -88,7 +88,7 @@
 
 		// registerOpenListeners(this.natTableWidget);
 		getSite().setSelectionProvider(this.natTableWidget);
-		createContextMenuFor(this.natTableWidget);
+		createContextMenuFor(this.natTableWidget.getControl());
 	}
 
 	/**
Comment 2 Nicolas Guyomar CLA 2011-02-18 10:53:17 EST
Hi,

This enhancement has been included in Bug 335020

Regards,
Nicolas Guyomar
Comment 3 Gregoire Dupe CLA 2011-02-18 10:58:50 EST
This bug can then be marked as fixed.
Comment 4 Vincent Lorenzo CLA 2011-02-22 04:04:41 EST
Done, I close the bug.