Bug 5915 Renaming a resource brings up Java rename refactoring
1) rename xxx.html in the packages view ->the rename refactoring wizard comes up ->the preview page shows a simple rename change For non-Java resources we should not show the refactoring wizard but only a dialog
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/reorg/RefactoringSupportFactory.java
RefactoringAction.activateRefactoringWizard((Refactoring)fRefactoring, wizard, "Rename", true);
			fRefactoring= null;
		}
		
		abstract IRenameRefactoring createRefactoring(Object element) throws JavaModelException;
		abstract RefactoringWizard createWizard(IRenameRefactoring ref);
		
		abstract boolean canAddToMenu(IRenameRefactoring refactoring) throws JavaModelException;
		
	}
	
	private static RefactoringWizard createRenameWizard(IRenameRefactoring ref, String title, String message, String wizardPageHelp, String errorPageHelp, ImageDescriptor image){
		RenameRefactoringWizard w= new RenameRefactoringWizard(ref, title, message, wizardPageHelp, errorPageHelp);
		w.setInputPageImageDescriptor(image);
		return w;
	}
	
	private static RenameSupport createJavaProjectRename(){
		return new RenameSupport(){
			IRenameRefactoring createRefactoring(Object element) {
				return new RenameJavaProjectRefactoring((IJavaProject)element);
			}
			public boolean canAddToMenu(IRenameRefactoring refactoring) throws JavaModelException{
				return ((RenameJavaProjectRefactoring)refactoring).checkActivation(new NullProgressMonitor()).isOK();
			}
			RefactoringWizard createWizard(IRenameRefactoring refactoring) {
				String title= "Rename Java Project";
				String message= "Enter the new name for this Java project.";
				
				String wizardPageHelp= IJavaHelpContextIds.RENAME_JPRJ_WIZARD_PAGE;