Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » How to get Resource from Handler?
How to get Resource from Handler? [message #1001757] Thu, 17 January 2013 10:33
Marco Naddeo is currently offline Marco NaddeoFriend
Messages: 62
Registered: November 2012
Hi Smile

I have to implement a handler for a context menu command, activable from the opened editor.

In this way:

public Object execute(ExecutionEvent event) throws ExecutionException {

  return null;


I print on the console the name of opened (and selected) file in the editor.

But how can I obtain the corresponding Resource?

Is there a way to obtain it using, for example, HandlerUtil?

Thanks in advance. Smile

Previous Topic:How to get IWorkspace object from the path?
Next Topic:How to debug a plug-in project?
Goto Forum:

Current Time: Fri Oct 09 05:08:12 GMT 2015

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

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