|
|
Re: Get a file from the workspace? [message #492479 is a reply to message #492472] |
Tue, 20 October 2009 15:03 |
Erwan Messages: 8 Registered: October 2009 |
Junior Member |
|
|
Hi Brian,
Thank you for your response. I will look at the pointers you gave me.
To give details about what I am trying to do: I'm writing a plugin for a web framework. In some Java classes there are calls to a "render()" method that will render a template. I want to give an easy access to the template file from the line that contains the call to the render method.
So when the user calls my command (actually it is a command, not an action), I parse the code of the Java file (from the current editor window) and determine the relative URL of my template, for example "templates/index.html". I have that working. Now all I need to do is open automatically that file in a new editor (or focus the existing editor if already open).
Also, while I can walk the open projects, I'm not sure if I can easily identify the one who owns the file the user was interacting when invoking the command...
[Updated on: Tue, 20 October 2009 15:05] Report message to a moderator
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04668 seconds