IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
IPath testPath = new Path(targetDirectory);
- if (root.getLocation().isPrefixOf(testPath))
+ if (root.getFullPath().isPrefixOf(testPath))
return ObfuscatorExportMessages.getString("FileExport.rootName"); //$NON-NLS-1$
IProject[] projects = root.getProjects();
for (int i = 0; i < projects.length; i++) {
- if (projects[i].getLocation().isPrefixOf(testPath))
+ if (projects[i].getFullPath().isPrefixOf(testPath))
return projects[i].getName();
}