Execute any Eclipse actions [message #195623] |
Thu, 22 February 2007 16:48 |
Eclipse User |
|
|
|
Originally posted by: phatrick.caramail.com
Hello!
I'm trying to develop an Eclipse plugin.
I want in my code to execute any action of Eclipse described in the
WorkbenchActionBuilder class which use the ActionFactory class.
For instance, a real test to execute what i want is :
1) i'm in my Eclipse workspace and I want to save my workspace by clicking
on an icon.
2) i'm in my Eclipse workspace and I want to change my perspective view by
clicking on an icon.
...
These actions are already defined by Eclipse, but i want to execute them
in my plugin. A method i thought was to execute the keybindings :
example: in the 1), i can execute "CTRL+S" when the icon is clicked on.
Another way would be to use the ActionFactory method ...
If you have a code sample that make what I want it would be great!
I'm working on but I don't have the solution yet!
Thanks!
Jo
|
|
|
Powered by
FUDForum. Page generated in 0.07907 seconds