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.:

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: 33179
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:
Previous Topic:help->install new software error in Eclipse Oxygen 4.7
Next Topic:Cannot install eclipse
Goto Forum:

Current Time: Sat Jul 13 22:56:19 GMT 2024

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

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

Back to the top