How to hook widgets in editor to global cut/copy/paste? [message #635165] |
Mon, 25 October 2010 20:09 |
Ryan Messages: 74 Registered: July 2009 Location: Indiana |
Member |
|
|
I've got an editor that uses the FormsAPI for the contents of the editor. It's a single page editor, but uses a master/details setup, similar to the extensions page of the PDE editor. I'd like to link the jFace viewers, text boxes, etc. to the global cut/copy/paste, but am unsure how to do it. I've looked through the PDE code, and ended up fairly confused as to how they do it (seems like somehow each field is linked to a canCopy(), canPaste(), etc.). Any tips or examples on how this would be done? It seems like you'd want to link the control with the global actions when the control gets focus, but again, I'm not sure the best way to do that.
Thanks,
Ryan
|
|
|
|
Powered by
FUDForum. Page generated in 0.03404 seconds