// uri can be platform-specific or not ...
if (oFileURI.isPlatform()) {
// leaving out the first ("resource") and the last (the file name)
StringBuffer sLocalDirectory = new StringBuffer();
for (int i = 1; i < oFileURI.segmentCount() - 1; ++i) {
sLocalDirectory.append(oFileURI.segment(i) + "/");
}
Configuration.setLocalSourceDirectory(sLocalDirectory.toString());
Configuration.setWorkspacePath(ResourcesPlugin.getWorkspace()