Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] modify build variables


                I added a build variable (with variable name "Path", variable value "C:\IFX_Tools") for one c project, how can I modify it in Java code
                IWorkspace workspace = ResourcesPlugin.getWorkspace();
    pathVariableManager = workspace.getRoot().getWorkspace().getPathVariableManager();
    ICdtVariable path = CdtVariableManager.fBuildSystemVariableSupplier.getVariable("Path", null);
   
    System.out.println("Is fBuildSystemVariableSupplier?"+path.getStringValue());

I've tried all types: fBuildSystemVariableSupplier ,fEnvironmentMacroSupplier,fCdtMacroSupplier, fEclipseVariablesMacroSupplier

but I always got "null".
Is the problem of null parameter in "CdtVariableManager.fBuildSystemVariableSupplier.getVariable("Path", null); "?


thanks in advance





Votre messagerie et bien plus où que vous soyez. Passez à Windows Live Hotmail, c'est gratuit ! Inscrivez-vous

Back to the top