I am using Eclipse 3.6 on Linux and wants to convert the Windows specific path ("src\Test.java") to Linux path ("src/Test.java"). I tried to convert this by the following method
IPath path = new Path("src\\Test.java");
String result = path.toOSString();
But I am getting the result as "src\Test.java" whereas I expected "src/Test.java".