Skip to main content



      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
Eclipse UserFriend


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] by Moderator

Previous Topic:Makefile strangeness
Next Topic:Managed Make multiple targets Q
Goto Forum:
  


Current Time: Tue Jun 24 19:58:14 EDT 2025

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

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

Back to the top