Bug 31113 Don't offer to do a deep copy/move of linked resources
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/ReorgQueries.java
import org.eclipse.jdt.core.IPackageFragmentRoot;
import org.eclipse.jdt.core.JavaConventions;
import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jdt.internal.ui.IJavaStatusConstants;
import org.eclipse.jdt.internal.ui.JavaPlugin;
import org.eclipse.jdt.internal.corext.Assert;
import org.eclipse.jdt.internal.corext.refactoring.Checks;
import org.eclipse.jdt.internal.corext.refactoring.base.RefactoringStatus;
import org.eclipse.jdt.internal.corext.refactoring.rename.RenamePackageRefactoring;
import org.eclipse.jdt.internal.corext.refactoring.reorg.ICopyQueries;
import org.eclipse.jdt.internal.corext.refactoring.reorg.IDeepCopyQuery;
import org.eclipse.jdt.internal.corext.refactoring.reorg.INewNameQuery;
import org.eclipse.jdt.internal.corext.refactoring.reorg.ReorgUtils;
import org.eclipse.jdt.internal.corext.refactoring.util.ResourceUtil;
import org.eclipse.jdt.internal.corext.util.Resources;
public class ReorgQueries implements ICopyQueries {
	private static final String EMPTY= " "; 
	private IDeepCopyQuery fDeepCopyQuery;
	public ReorgQueries() {
		
		fDeepCopyQuery= new DeepCopyQuery(); 
	}
	private static String removeTrailingJava(String name) {
		Assert.isTrue(name.endsWith(".java")); 
		return name.substring(0, name.length() - ".java".length()); 
	}
	public INewNameQuery createNewCompilationUnitNameQuery(ICompilationUnit cu) {
		String[] keys= {removeTrailingJava(cu.getElementName())};
		String message= ReorgMessages.getFormattedString("ReorgQueries.enterNewNameQuestion", keys); 
		return createStaticQuery(createCompilationUnitNameValidator(cu), message, removeTrailingJava(cu.getElementName()));