Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Popup menu for Editting Text Cell
Popup menu for Editting Text Cell [message #897492] Tue, 24 July 2012 05:36 Go to next message
Domenic Lee is currently offline Domenic Lee
Messages: 11
Registered: July 2012
Junior Member
Hi,

Please refer the URL: farm8.staticflickr.com/7270/7635872716_f6e9e24b3f.jpg (I have to do this because I donot know how to upload my scren shot).

How to add a menu item for the original popup menu of the editting text cell?

Thanks,
Domenic


www.senkakus.com
Re: Popup menu for Editting Text Cell [message #897553 is a reply to message #897492] Tue, 24 July 2012 09:24 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk Fauth
Messages: 1066
Registered: July 2012
Senior Member
Hi Domenic,

this has nothing to do with NatTable. The context menu you are seeing when performing a right-click on the text in a TextEditor is the default context menu for the org.eclipse.swt.widgets.Text class. As far as I know you can not add items there. But maybe you can change it.

http:// stackoverflow.com/questions/7038904/swt-text-widget-how-to-insert-own-menuitems-into-the-default-context-menu

But I haven't tried that before.

Greez,
Dirk
Re: Popup menu for Editting Text Cell [message #897760 is a reply to message #897553] Wed, 25 July 2012 04:33 Go to previous messageGo to next message
Domenic Lee is currently offline Domenic Lee
Messages: 11
Registered: July 2012
Junior Member
Oh,oh... Can I add hot key for editting text cell?

Thanks,
Domenic


www.senkakus.com
Re: Popup menu for Editting Text Cell [message #897768 is a reply to message #897760] Wed, 25 July 2012 04:43 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk Fauth
Messages: 1066
Registered: July 2012
Senior Member
Hi Domenic,

I'm not sure what you mean. In fact there is already a hotkey to enable editing of a cell (press F2 to open the cell editor of the current focused cell).

If you want to add some custom functionality on an open cell editor, you have to search on how to do this in the org.eclipse.swt.widgets.Text widget. The open cell editor is an eclipse text editor and not specific to NatTable.

Maybe this can help (http://help.eclipse.org/helios/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Fguide%2FwrkAdv_keyBindings_accelSet.htm), but I'm not quite sure. Haven't tried to adjust a text editor.

Greez,
Dirk
Re: Popup menu for Editting Text Cell [message #904212 is a reply to message #897768] Mon, 27 August 2012 22:37 Go to previous message
Domenic Lee is currently offline Domenic Lee
Messages: 11
Registered: July 2012
Junior Member
Hi Dirk,

Thank you very much, I've resolved the problem according to your opinion.

Thanks,
Domenic


www.senkakus.com
Previous Topic:collapse column groups
Next Topic:Tooltips
Goto Forum:
  


Current Time: Sun Apr 20 03:04:36 EDT 2014

Powered by FUDForum. Page generated in 0.01685 seconds