Bug 3512 Reorg confirmation dialog (1G470GF)
- the title shouldn't be "Save". It should be more specific regarding the current reorg action. - ok should be the default button. NOTES: EG (11/17/00 12:38:48 PM) not critical
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/MoveAction.java
fShowPreview = showPreview;
	}
	
	private static boolean isOkToMoveReadOnly(ReorgRefactoring refactoring){
		for (Iterator iter= refactoring.getElementsToReorg().iterator(); iter.hasNext(); ){
			Object element= iter.next();
			if (ReorgUtils.shouldConfirmReadOnly(element)) {
				return  MessageDialog.openQuestion(
					JavaPlugin.getActiveWorkbenchShell(),
					ReorgMessages.getString("moveAction.checkMove"),  
					ReorgMessages.getString("moveAction.error.readOnly")); 
			}
		}
		return true;
	}
	
	/* non java-doc
	 * @see ReorgDestinationAction#doReorg(ReorgRefactoring) 
	 */
	void doReorg(ReorgRefactoring refactoring) throws JavaModelException{
		if (!fShowPreview){
			super.doReorg(refactoring);
			return;
		}	
		new RefactoringWizardDialog(JavaPlugin.getActiveWorkbenchShell(), new MoveWizard((MoveRefactoring)refactoring)).open();	
	}
	
	
		
	private static class MoveWizard extends RefactoringWizard{