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 #873415] Fri, 18 May 2012 03:32
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

[Updated on: Fri, 18 May 2012 03:33]

Report message to a moderator

Previous Topic:Makefile strangeness
Next Topic:[SOLVED] gtkmm & eclipse on ubuntu
Goto Forum:
  


Current Time: Fri Aug 29 22:33:30 EDT 2014

Powered by FUDForum. Page generated in 0.01855 seconds