if (fObject instanceof IJavaElement) { final IJavaElement element= (IJavaElement) fObject; final ResourceMapping mapping= JavaElementResourceMapping.create(element); return fLog.getNewName(mapping); } else if (fObject instanceof JavaElementResourceMapping) { final JavaElementResourceMapping mapping= (JavaElementResourceMapping) fObject; return fLog.getNewName(mapping); } else if (fObject instanceof IResource) { final IResource resource= (IResource) fObject; return fLog.getNewName(resource); }
String name= null; if (fObject instanceof ICompilationUnit) name= getCompilationUnitName(); else name= fLog.getNewName(fObject); if (name == null) name= fName;
		public String getNewName() {			if (fObject instanceof IJavaElement) {				final IJavaElement element= (IJavaElement) fObject;				final ResourceMapping mapping= JavaElementResourceMapping.create(element);				return fLog.getNewName(mapping);			} else if (fObject instanceof JavaElementResourceMapping) {				final JavaElementResourceMapping mapping= (JavaElementResourceMapping) fObject;				return fLog.getNewName(mapping);			} else if (fObject instanceof IResource) {				final IResource resource= (IResource) fObject;				return fLog.getNewName(resource);			}			return fName;		}