Bug 31957 Refactor/move doesn't remember non-java files
When refactoring with "rename", the list of non-java files is remembered from use to use. When using "move", the previous settings are ignored, and the last "rename" settings are used. This is based on the M5 build.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/JdtMoveAction.java
ReorgMessages.getString("moveAction.error.readOnly")); 
	}
	
	private static boolean hasReadOnlyElements(ReorgRefactoring refactoring){
		for (Iterator iter= refactoring.getElementsToReorg().iterator(); iter.hasNext(); ){
			if (ReorgUtils.shouldConfirmReadOnly(iter.next())) 
				return true;
		}
		return false;
	}
	
	protected Object openDialog(ElementTreeSelectionDialog dialog) {
		Object result= super.openDialog(dialog);
		if (dialog instanceof MoveDestinationDialog) {
			fShowPreview= dialog.getReturnCode() == PREVIEW_ID;
		} else {
			fShowPreview= false;
		}
		return result;
	}
		
	/* non java-doc
	 * @see ReorgDestinationAction#doReorg(ReorgRefactoring) 
	 */
	void reorg(ReorgRefactoring refactoring) throws JavaModelException{
		if (fShowPreview){		
			openWizard(getShell(), refactoring);
			return;
		} else
			super.reorg(refactoring);