Bug 34315 Refactoring lost source folder property on Java Project [refactoring]
RC2 In the process of "just working'. Renaming Java projects and contained java packages and classes I eventually go an error that a particular "path" could not be found and a bunch of stuff in my .log file. After all this the source folder in the refactored Java project is no longer a source folder. I will work on steps to reproduce but can not get to it until after I to the copyright updating. For now I will give you the general flavour of what I was doing and I will attach my .log file. 1) I had a Java project that was orignally created with the New Project Plugin Development - > Plug-in Project wizard (plug-in with a popup menu). 2) Several days development in this project under an older (pre RC2 build. Probably RC1). 3) Delete everything in Eclipse directory except Workspace 4) Unzip RC2. 5) Do more work in project 6) Refactor project doing the following: a) Refactor-Rename project (Noticed oddnesss is a Meta-Inf folder was created in new place 7) Renamed several classes in the project. 8) Deleted the Meta-Inf folder as uninteresting. Just one simple text file in it. 9) Renamed some more classes. On a class rename got an error dialog stating it could not find the class and output sent to .log.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/SearchUtil.java
public static IJavaElement getJavaElement(ISearchResultViewEntry entry) {
		if (entry != null)
			return getJavaElement(entry.getSelectedMarker());
		return null;
	}
	public static boolean isSearchPlugInActivated() {
		return Platform.getPluginRegistry().getPluginDescriptor("org.eclipse.search").isPluginActivated(); 
	}
	public static boolean isISearchResultViewEntry(Object object) {
		return object != null && isSearchPlugInActivated() && (object instanceof ISearchResultViewEntry);
	}
	
	private static boolean isBinary(IJavaElement jElement) {
		
		if (jElement instanceof IMember)
			return ((IMember)jElement).isBinary();
		IPackageFragmentRoot pkgRoot= (IPackageFragmentRoot)jElement.getAncestor(IJavaElement.PACKAGE_FRAGMENT_ROOT);
		if (pkgRoot != null && pkgRoot.isArchive())
			return true;
		return false;
	}
	/** 
	 * Returns the working copy of the given java element.
	 * @param javaElement the javaElement for which the working copyshould be found
	 * @param reconcile indicates whether the working copy must be reconcile prior to searching it
	 * @return the working copy of the given element or <code>null</code> if none
	 */	
	private static IJavaElement findInWorkingCopy(IWorkingCopy workingCopy, IJavaElement element, boolean reconcile) throws JavaModelException {
		if (workingCopy != null) {
			if (reconcile) {