Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Plugin environment programmatically call right click action.
Plugin environment programmatically call right click action. [message #692690] Tue, 05 July 2011 03:21 Go to next message
ng  is currently offline ng Friend
Messages: 2
Registered: July 2011
Junior Member
Hi, i am facing some problem regarding
to trigger right click action of one of
my abc.hbm file.

Is there any way to trigger right click
action of a file?

The action can be execute by manually right click
on that file but i don't know the way to trigger
it programmatically.

Any ideas? Thanks..


Best regards,
Ng
Re: Plugin environment programmatically call right click action. [message #692739 is a reply to message #692690] Tue, 05 July 2011 06:51 Go to previous messageGo to next message
Martin Skorsky is currently offline Martin SkorskyFriend
Messages: 112
Registered: July 2009
Senior Member
Hello,

I've run such an action (implements IObjectActionDelegate) with the command framework.
Extend org.eclipse.core.commands.AbstractHandler and implement org.eclipse.core.commands.IHandler.

This can be invoked with the command framework. See http://wiki.eclipse.org/index.php/Platform_Command_Framework.

Regards,

Martin
Re: Plugin environment programmatically call right click action. [message #692753 is a reply to message #692739] Tue, 05 July 2011 07:18 Go to previous message
ng  is currently offline ng Friend
Messages: 2
Registered: July 2011
Junior Member
Hi, thanks for your reply.

But it is not a command but it is an action..
is it still possible to be trigger programmatically?

Is the command/action can be tie to particular file?
for instance,abc.hbm file..

Can you provide me some sample code regarding to this?
No idea where to start.

Thanks.

Ng

[Updated on: Tue, 05 July 2011 09:28]

Report message to a moderator

Previous Topic:How to obtain instances of IProxyService
Next Topic:Sign plugin
Goto Forum:
  


Current Time: Fri Aug 14 02:35:44 GMT 2020

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

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

Back to the top