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 08:36
Sachin Nain is currently offline Sachin Nain
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 18 06:35:32 EDT 2014

Powered by FUDForum. Page generated in 0.01726 seconds