Hooking existing clipboard commands [message #330598] |
Tue, 05 August 2008 08:03 |
Eclipse User |
|
|
|
Originally posted by: mba.cosmigo.ru
Hi everyone,
I'm trying to create a plugin like MultiClipboard. I'm a bit new to the
JFace concepts so please bear with me.
What I want to do is to is to add my custom handlers to the
cut/copy/paste commands wrapping the default handlers in them.
Something like this:
case1:
handleCopyCommand()
{
runCopyCommandAsIfThereNoMyPlugin();
doMySpecificCopyHandling();
}
or maybe something like this:
case2:
handleMyCustomCopyCommand()
{
fireStabdardCopyCommand();
doMySpecificCopyHandling();
}
As far as I understand the whole thing after reading docs, I need to
play around the org.eclipse.ui.commands extension point, but there are
things I still don't understand:
1. How to add a global command which would be active everywhere? My
plugin does not provide the editor. It provides a view, but it might be
closed. And I still want to have some key combination registered in the
workbench to fire my custom command (case2).
2. How to programmable initiate the command which was defined already
(case2)?
3. Is it possible at all to hook to the command like in case1?
I've tried to search the newsgroups but it seems that I cannot invent
the proper request.. Will be grateful for any help.
--
Best regards
Mikhail Barg
ICQ: 132560784
|
|
|
|
Powered by
FUDForum. Page generated in 0.02715 seconds