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 09:36 Go to next message
Domenic Lee is currently offline Domenic LeeFriend
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 13:24 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 1431
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 08:33 Go to previous messageGo to next message
Domenic Lee is currently offline Domenic LeeFriend
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 08:43 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 1431
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] Tue, 28 August 2012 02:37 Go to previous message
Domenic Lee is currently offline Domenic LeeFriend
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: Thu Dec 18 19:31:54 GMT 2014

Powered by FUDForum. Page generated in 0.08016 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software