Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 331410 - add an extensible context menu on the NatTable view
Summary: add an extensible context menu on the NatTable view
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EMF-Facet (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P1 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Nicolas Bros CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 331203
Blocks:
  Show dependency tree
 
Reported: 2010-11-30 05:28 EST by Nicolas Bros CLA
Modified: 2020-05-01 11:27 EDT (History)
3 users (show)

See Also:
gdupe: indigo+


Attachments
patch (zip) (12.09 KB, application/x-zip-compressed)
2010-11-30 05:28 EST, Nicolas Bros CLA
gdupe: iplog-
Details

Note You need to log in before you can comment on or make changes to this bug.
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.