Search in sources :

Example 6 with IEnvironmentVariableManager

use of org.eclipse.cdt.core.envvar.IEnvironmentVariableManager in project arduino-eclipse-plugin by Sloeber.

the class Common method setBuildEnvironmentVariable.

public static void setBuildEnvironmentVariable(ICConfigurationDescription confdesc, String key, String value) {
    IEnvironmentVariableManager envManager = CCorePlugin.getDefault().getBuildEnvironmentManager();
    IContributedEnvironment contribEnv = envManager.getContributedEnvironment();
    setBuildEnvironmentVariable(contribEnv, confdesc, key, value);
}
Also used : IContributedEnvironment(org.eclipse.cdt.core.envvar.IContributedEnvironment) IEnvironmentVariableManager(org.eclipse.cdt.core.envvar.IEnvironmentVariableManager)

Aggregations

IEnvironmentVariableManager (org.eclipse.cdt.core.envvar.IEnvironmentVariableManager)6 IContributedEnvironment (org.eclipse.cdt.core.envvar.IContributedEnvironment)5 InternalBoardDescriptor (io.sloeber.core.InternalBoardDescriptor)2 ICConfigurationDescription (org.eclipse.cdt.core.settings.model.ICConfigurationDescription)2 ICProjectDescription (org.eclipse.cdt.core.settings.model.ICProjectDescription)2 BoardDescriptor (io.sloeber.core.api.BoardDescriptor)1 CompileOptions (io.sloeber.core.api.CompileOptions)1 File (java.io.File)1 IOException (java.io.IOException)1 EnvironmentVariable (org.eclipse.cdt.core.envvar.EnvironmentVariable)1 IEnvironmentVariable (org.eclipse.cdt.core.envvar.IEnvironmentVariable)1 IFile (org.eclipse.core.resources.IFile)1 IProject (org.eclipse.core.resources.IProject)1 CoreException (org.eclipse.core.runtime.CoreException)1 IPath (org.eclipse.core.runtime.IPath)1 IStatus (org.eclipse.core.runtime.IStatus)1 Status (org.eclipse.core.runtime.Status)1