Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » how to change an environment variable of USER:PREFS type to USER:CONFIG type in java programmaticall(how to change an environment variable of USER:PREFS type to USER:CONFIG type in java programmatically)
how to change an environment variable of USER:PREFS type to USER:CONFIG type in java programmaticall [message #873060] Thu, 17 May 2012 12:36
Sachin Nain is currently offline Sachin NainFriend
Messages: 3
Registered: April 2012
Junior Member
i m creating environment variables programatically by the code below....
UserDefinedEnvironmentSupplier fUserSupplier = EnvironmentVariableManager.fUserSupplier;
StorableEnvironment vars = fUserSupplier.getWorkspaceEnvironmentCopy();
vars.createVariable("PATH", pathVariableValue);

vars.createVariable("BUILD-CPU1", "Yes");
vars.createVariable("BUILD-PLATFORM1A", "No");
vars.createVariable("BUILD-DCP1D", "No");
projectLibPath = libfolder.getLocation().toString() + "/RTOS-CPU1";
vars.createVariable("CYGOS-CPU1", projectLibPath);
vars.createVariable("CYGOS-PLATFORM1A", "");
vars.createVariable("CYGOS-DCP1D", ""); fUserSupplier.setWorkspaceEnvironment(vars);

when i open Environment tab property and see these environment variables, i find Origin type of these environment variables is USER:PREFS. But i want Origin type should be either USER:CONFIG or BUILD SYSTEM. How could this will be achieved? Pls Help. Thanks
Previous Topic:Need Eclipse CDT to Implement Interface
Next Topic:Makefile strangeness
Goto Forum:
  


Current Time: Fri Apr 26 17:42:04 GMT 2024

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

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

Back to the top