Bug 119615 [PropertiesDialog] Can no longer change read-only property
I20051206-1200 1. open the properties for a file 2. change the read-only property 3. close 4. open the properties dialog again ==> state did not change
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/ResourceInfoPage.java
if (lineDelimiterEditor != null)
			lineDelimiterEditor.loadDefault();
	}
	/**
	 * Apply the read only state and the encoding to the resource.
	 */
	public boolean performOk() {
		IResource resource = (IResource) getElement();
		encodingEditor.store();
		
		if (lineDelimiterEditor != null)
			lineDelimiterEditor.store();
		try {
			
			if (editableBox != null && executableBox != null
					&& archiveBox != null) {
				boolean localReadOnlyValue = editableBox.getSelection();
				boolean localExecutableValue = executableBox.getSelection();
				boolean localArchiveValue = archiveBox.getSelection();
				ResourceAttributes attrs = resource.getResourceAttributes();
				if (attrs != null) {
					attrs.setExecutable(localExecutableValue);
					attrs.setReadOnly(localReadOnlyValue);
					attrs.setArchive(localArchiveValue);
					if (previousReadOnlyValue != localReadOnlyValue
							|| previousExecutableValue != localExecutableValue
							|| previousArchiveValue != localArchiveValue) {
						resource.setResourceAttributes(attrs);
						attrs = resource.getResourceAttributes();