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
fQualifiedNameCheckbox.addSelectionListener(new SelectionAdapter() {
				public void widgetSelected(SelectionEvent e) {
					boolean enabled= ((Button)e.widget).getSelection();
					fQualifiedNameComponent.setEnabled(enabled);
					fRefactoring.setUpdateQualifiedNames(enabled);
					updateOKStatus();
				}
			});
		}
		
		protected IDialogSettings getRefactoringSettings() {
			IDialogSettings settings= JavaPlugin.getDefault().getDialogSettings();
			if (settings == null)
				return null;
			IDialogSettings result= settings.getSection(RefactoringWizardPage.REFACTORING_SETTINGS);
			if (result == null) {
				result= new DialogSettings(RefactoringWizardPage.REFACTORING_SETTINGS);
				settings.addSection(result); 
			}
			return result;
		}			
	}
	
	public static IPackageFragmentRootManipulationQuery createUpdateClasspathQuery(Shell shell){
		String messagePattern= ReorgMessages.getString("JdtMoveAction.referenced") + 
			ReorgMessages.getString("JdtMoveAction.update_classpath"); 
		return new PackageFragmentRootManipulationQuery(shell, ReorgMessages.getString("JdtMoveAction.Move"), messagePattern); 
	}
}