Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Get Eclipse variables Programaticly
Get Eclipse variables Programaticly [message #1859051] Tue, 09 May 2023 07:31 Go to next message
Tim Schmid is currently offline Tim SchmidFriend
Messages: 2
Registered: May 2023
Junior Member
I develop a plugin, for that I need to read some of the predefined eclipse variables like ${eclipse_home} and ${project_name} and ${project_loc} and that programmatically.

I mean that variables.:

https://help.eclipse.org/latest/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Fconcepts%2Fconcepts-exttools.htm

In the program code, I want to do something like that

String activeProjektName = ${project_name

to get the path of the out file of the project, what you can see in the picture.
Re: Get Eclipse variables Programaticly [message #1859068 is a reply to message #1859051] Wed, 10 May 2023 08:24 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 32866
Registered: July 2009
Senior Member
I think you use org.eclipse.core.variables.VariablesPlugin.getStringVariableManager().performStringSubstitution(...) though I'm not sure you're really trying to use them for the best of reasons. I.e., IProject.getName and such work too.

Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:help->install new software error in Eclipse Oxygen 4.7
Next Topic:Cannot install eclipse
Goto Forum:
  


Current Time: Thu Jul 13 03:42:42 GMT 2023

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

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

Back to the top