Bug 300502 Add UI for finer grained file permissions
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ResourceInfoPage.java
}
		
		if (this.derivedBox != null) {
			this.derivedBox.setSelection(false);
		}
		encodingEditor.loadDefault();
		if (lineDelimiterEditor != null) {
			lineDelimiterEditor.loadDefault();
		}
	}
	/**
	 * Apply the read only state and the encoding to the resource.
	 */
	public boolean performOk() {
		IResource resource = (IResource) getElement().getAdapter(
				IResource.class);
		
		if (resource == null)
			return true;
		encodingEditor.store();
		if (lineDelimiterEditor != null) {
			lineDelimiterEditor.store();
		}
		try {
			if (newResourceLocation != null) {
				if (resource.getType() == IResource.FILE)
					((IFile)resource).createLink(newResourceLocation, IResource.REPLACE,
							new NullProgressMonitor());
				if (resource.getType() == IResource.FOLDER)
					((IFolder)resource).createLink(newResourceLocation, IResource.REPLACE,