Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » where is the resource locator?
where is the resource locator? [message #211477] Mon, 15 March 2004 12:46 Go to next message
Eclipse UserFriend
I try to implement a launch ILaunchConfigurationDelegate.

how can i get the path to the current selected file in the editor?
because i like to start a compiler for the code in the editor.

if i configure an ExternalTool I can use the Variables "${resource_loc}"
in the arguments-field, but how can i get the value of this at runtime
and how can i get this value automatic, without a variable in the
arguments?

thanks,
tobias
Re: where is the resource locator? [message #211784 is a reply to message #211477] Tue, 16 March 2004 01:09 Go to previous message
Eclipse UserFriend
See the
org.eclipse.core.variables.VariablesPlugin.getStringVariable Manager()
Then retrieve the dynamic variable resource_loc

HTH
Darins

"Tobias Lindig" <snoopy_aus_k@gmx.de> wrote in message
news:c34ptk$b56$1@eclipse.org...
> I try to implement a launch ILaunchConfigurationDelegate.
>
> how can i get the path to the current selected file in the editor?
> because i like to start a compiler for the code in the editor.
>
> if i configure an ExternalTool I can use the Variables "${resource_loc}"
> in the arguments-field, but how can i get the value of this at runtime
> and how can i get this value automatic, without a variable in the
> arguments?
>
> thanks,
> tobias
Previous Topic:Difference between setReadOnly and setEditable()
Next Topic:Annotation for line related markers
Goto Forum:
  


Current Time: Thu Jul 24 07:32:24 EDT 2025

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

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

Back to the top