Bug 300502 Add UI for finer grained file permissions
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ResourceInfoPage.java
PathVariableDialog dialog = new PathVariableDialog(getShell(),
				PathVariableDialog.EDIT_LINK_LOCATION, resource.getType(),
				resource.getProject().getPathVariableManager(), null);
		dialog.setLinkLocation(location);
		dialog.setResource(resource);
		
		if (dialog.open() == Window.CANCEL) {
			return;
		}
		location = Path.fromOSString(dialog.getVariableValue());
		newResourceLocation = location;
		refreshLinkLocation();
	}
	private void refreshLinkLocation() {
		IResource resource = (IResource) getElement().getAdapter(
				IResource.class);
		locationValue.setText(newResourceLocation.toPortableString());
		URI resolvedURI = resource.getProject().getPathVariableManager()
				.resolveURI(URIUtil.toURI(newResourceLocation), resource);
		IPath resolved = URIUtil.toPath(resolvedURI);
		if (!IDEResourceInfoUtils.exists(resolved.toOSString())) {
			resolvedLocationValue
					.setText(IDEWorkbenchMessages.ResourceInfo_undefinedPathVariable);
			if (sizeValue != null)
				sizeValue.setText(IDEWorkbenchMessages.ResourceInfo_notExist);
		} else {
			resolvedLocationValue.setText(resolved.toPortableString());
			if (sizeValue != null) {
				IFileInfo info = IDEResourceInfoUtils.getFileInfo(resolved
						.toPortableString());