Code example for URI

Methods: getSchemeSpecificPart, isAbsolute

0
		IPath value = getValue(path.segment(0));
		return value == null ? path : value.append(path.removeFirstSegments(1));
	} 
 
	public URI resolveURI(URI uri) {
		if (uri == null || uri.isAbsolute())
			return uri;
		if (uri.getSchemeSpecificPart() == null)
			return uri;
		IPath raw = new Path(uri.getSchemeSpecificPart());
		IPath resolved = resolvePath(raw);
		return raw == resolved ? uri : URIUtil.toURI(resolved);
	} 
 
	/** 
	 * @see org.eclipse.core.resources.IPathVariableManager#setValue(String, IPath) 
	 */ 
	public void setValue(String varName, IPath newValue) throws CoreException {
		checkIsValidName(varName);
		//convert path value to canonical form 
		if (newValue != null && newValue.isAbsolute())