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/packageview/SelectionTransferDropAdapter.java
}
	
	private static ICompilationUnit getCompilationUnit(Object target){
		if (target instanceof ISourceReference)
			return SourceReferenceUtil.getCompilationUnit((ISourceReference)target);
		else
			return null;	
	}
	
	private boolean canPasteSourceReferences(Object target) throws JavaModelException{
		ISourceReference[] elements= getDragableSourceReferences();
		if (elements.length != fElements.size())
			return false;
		SelectionDispatchAction pasteAction= ReorgActionFactory.createPasteAction(elements, target);
		pasteAction.update(pasteAction.getSelection());
		return pasteAction.isEnabled();
	}
	
	private ISourceReference[] getDragableSourceReferences(){
		List result= new ArrayList(fElements.size());
		for(Iterator iter= fElements.iterator(); iter.hasNext();){
			Object each= iter.next();
			if (isDragableSourceReferences(each))
				result.add(each);
		}
		return (ISourceReference[])result.toArray(new ISourceReference[result.size()]);
	}
	
	private static boolean isDragableSourceReferences(Object element) {
		if (!(element instanceof ISourceReference))