Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Global Actions on the RCP - writing my own implementations for COPY, PASTE, SELE
Global Actions on the RCP - writing my own implementations for COPY, PASTE, SELE [message #170942] Thu, 14 September 2006 05:36
Eclipse UserFriend
Originally posted by: jonas.ruettimann.ntb.ch

I'm writing an RCP Application and would like to overwrite the
functionality of COPY, PASTE, SELECT ALL, etc. Eclipse has reserved
several Shortcut Keys for that purpose:
CTRL+C, CTRL+V, CTRL+A, CTRL+S, CTRL+O, etc.


Now, how do I implement my own CTRL+C Action?

I already tried this:

IActionBars actionBars = getViewSite().getActionBars();
actionBars.setGlobalActionHandler(ActionFactory.COPY.getId() , new Action()
{
@Override
void run() {
System.out.println("myAction");
}
});

But this only works for Plugins, not for RCP Applications!
So what's the way to go???
Previous Topic:Debug Error! at Eclipse logout
Next Topic:exporting jar files
Goto Forum:
  


Current Time: Fri Apr 26 10:24:05 GMT 2024

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

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

Back to the top