mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Fix for bug 209614 - a cleaner fix that uses the default delimiter from the environment variable manager.
This commit is contained in:
parent
4f852d99c1
commit
188d419208
1 changed files with 4 additions and 5 deletions
|
@ -10,6 +10,7 @@
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
package org.eclipse.cdt.core.envvar;
|
package org.eclipse.cdt.core.envvar;
|
||||||
|
|
||||||
|
import org.eclipse.cdt.internal.core.envvar.EnvironmentVariableManager;
|
||||||
import org.eclipse.core.runtime.Platform;
|
import org.eclipse.core.runtime.Platform;
|
||||||
|
|
||||||
|
|
||||||
|
@ -65,12 +66,10 @@ public class EnvirinmentVariable implements IEnvironmentVariable, Cloneable {
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDelimiter(){
|
public String getDelimiter(){
|
||||||
if (fDelimiter != null)
|
if (fDelimiter == null)
|
||||||
return fDelimiter;
|
return EnvironmentVariableManager.getDefault().getDefaultDelimiter();
|
||||||
else if (Platform.getOS() == Platform.OS_WIN32)
|
|
||||||
return ";";
|
|
||||||
else
|
else
|
||||||
return ":";
|
return fDelimiter;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Object clone(){
|
public Object clone(){
|
||||||
|
|
Loading…
Add table
Reference in a new issue