String filePath = url.getFile().trim(); filePath = URLDecoder.decode(filePath, "UTF-8"); //$NON-NLS-1$ IPath spec = new Path(filePath).makeRelative(); if (!spec.segment(0).equals(RESOURCE)) throw new IOException(NLS.bind(Messages.url_badVariant, url));
String filePath = url.getFile().trim(); filePath = URLDecoder.decode(filePath, "UTF-8"); //$NON-NLS-1$ IPath spec = new Path(filePath).makeRelative(); if (!spec.segment(0).equals(RESOURCE)) throw new IOException(NLS.bind(Messages.url_badVariant, url));
String filePath = url.getFile().trim(); filePath = URLDecoder.decode(filePath, "UTF-8"); //$NON-NLS-1$ IPath spec = new Path(filePath).makeRelative(); if (!spec.segment(0).equals(RESOURCE)) throw new IOException(NLS.bind(Messages.url_badVariant, url));
/** * @see org.eclipse.jdt.internal.debug.ui.launcher.WorkingDirectoryBlock#setDefaultWorkingDir() */ protected void setDefaultWorkingDir() { String outputDir = JavaRuntime.getProjectOutputDirectory(getLaunchConfiguration()); if (outputDir != null) { outputDir = new Path(outputDir).makeRelative().toOSString(); setDefaultWorkingDirectoryText("${workspace_loc:" + outputDir + "}"); //$NON-NLS-1$//$NON-NLS-2$ } else { super.setDefaultWorkingDir(); } }
if (branch != null) branchPath = new Path(branch).makeRelative();
if (branch != null) branchPath = new Path(branch).makeRelative();
IPath pkgPath= new Path(pkgName.replace('.', IPath.SEPARATOR)).makeRelative();
IPath pkgPath= new Path(pkgName.replace('.', IPath.SEPARATOR)).makeRelative();
IPath pkgPath= new Path(pkgName.replace('.', IPath.SEPARATOR)).makeRelative();