[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.emf] Re: Limit Copy, Paste, Cut keyboard shortcuts to EMF tree only (not the entire editor)

Mircea Luchian wrote:
Hi Paul an Tom,

With some extra inspiration, I found the solution to my problem. Here it is:

org.eclipse.ui.actions.TextActionHandler

That's more or less how TextActionHandler works :-) You add multiple text controls to it, and your part-level actions (i.e. one part level cut + any of your text controls).


When the text control is active, it will use textControl.cut() and if no registered text control is active, it will use the part level cut.

Later,
PW


-- Paul Webster http://wiki.eclipse.org/Platform_Command_Framework http://wiki.eclipse.org/Command_Core_Expressions http://wiki.eclipse.org/Menu_Contributions http://wiki.eclipse.org/Menus_Extension_Mapping http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/workbench.htm