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
private static LRUWorkingSetsList fgLRUWorkingSets;
	
	private static final String DIALOG_SETTINGS_KEY= "JavaElementSearchActions"; 
	private static final String STORE_LRU_WORKING_SET_NAMES= "lastUsedWorkingSetNames"; 
	
	private static final JavaElementTypeComparator fgJavaElementTypeComparator= new JavaElementTypeComparator();
	private static IDialogSettings fgSettingsStore;
	private static final String BIN_PRIM_CONST_WARN_DIALOG_ID= "BinaryPrimitiveConstantWarningDialog"; 
	public static IJavaElement getJavaElement(IMarker marker) {
		if (marker == null || !marker.exists())
			return null;
		try {
			String handleId= (String)marker.getAttribute(IJavaSearchUIConstants.ATT_JE_HANDLE_ID);
			IJavaElement je= JavaCore.create(handleId);
			if (je == null)
				return null;
			if (!marker.getAttribute(IJavaSearchUIConstants.ATT_IS_WORKING_COPY, false)) {
				if (je != null && je.exists())
					return je;
			}
			if (isBinary(je) || fgJavaElementTypeComparator.compare(je, IJavaElement.COMPILATION_UNIT) > 0)
				return je;
			
			ICompilationUnit cu= findCompilationUnit(je);
			if (cu == null || !cu.exists()) {
				cu= (ICompilationUnit)JavaCore.create(marker.getResource());
			}
			
			IWorkingCopy[] workingCopies= JavaUI.getSharedWorkingCopiesOnClasspath();
			int i= 0;