Bug 31298 move of read-only java file gives error dialog after confirmation
- 'move' read-only java file - uncheck all options - choose dest package - press ok - confirm the movement of a read-only file -> error dialog
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/JdtMoveAction.java
protected void buttonPressed(int buttonId) {
			super.buttonPressed(buttonId);
			if (buttonId == PREVIEW_ID) {
				setReturnCode(PREVIEW_ID);
				close();
			}
		}
		
		protected void configureShell(Shell newShell) {
			super.configureShell(newShell);
			WorkbenchHelp.setHelp(newShell, IJavaHelpContextIds.MOVE_DESTINATION_DIALOG);
		}
		protected void createButtonsForButtonBar(Composite parent) {
			fPreview= createButton(parent, PREVIEW_ID, ReorgMessages.getString("JdtMoveAction.preview"), false); 
			super.createButtonsForButtonBar(parent);
		}
		
		protected Control createDialogArea(Composite parent) {
			Composite result= (Composite)super.createDialogArea(parent);
			addUpdateReferenceComponent(result);
			addUpdateQualifiedNameComponent(result, ((GridLayout)result.getLayout()).marginWidth);
			return result;
		}
		private void addUpdateReferenceComponent(Composite result) {
			fReferenceCheckbox= new Button(result, SWT.CHECK);
			fReferenceCheckbox.setText(ReorgMessages.getString("JdtMoveAction.update_references")); 
			fReferenceCheckbox.setSelection(fRefactoring.getUpdateReferences());
			fReferenceCheckbox.setEnabled(canUpdateReferences());
			
			fReferenceCheckbox.addSelectionListener(new SelectionAdapter() {