Bug 19045 Not Present exception: when changing the output folder
1) create a JUnit project with a src and bin folder 2) open properties on the project 3) rename bin->bin2 ->get the following not present exception org.eclipse.core.internal.resources.ResourceException: Resource /junit/bin3/junit does not exist. at org.eclipse.core.internal.resources.Resource.checkExists (Resource.java:179) at org.eclipse.core.internal.resources.Container.members (Container.java:177) at org.eclipse.core.internal.resources.Container.members (Container.java:160) at org.eclipse.jdt.internal.ui.wizards.buildpaths.BuildPathsBlock.removeOldClassfil es(BuildPathsBlock.java:721) at org.eclipse.jdt.internal.ui.wizards.buildpaths.BuildPathsBlock.removeOldClassfil es(BuildPathsBlock.java:723) at org.eclipse.jdt.internal.ui.wizards.buildpaths.BuildPathsBlock.internalConfigure JavaProject(BuildPathsBlock.java:656) at org.eclipse.jdt.internal.ui.wizards.buildpaths.BuildPathsBlock.configureJavaProj ect(BuildPathsBlock.java:631) at org.eclipse.jdt.internal.ui.preferences.BuildPathsPropertyPage$1.run (BuildPathsPropertyPage.java:132) at org.eclipse.ui.actions.WorkspaceModifyDelegatingOperation.execute (WorkspaceModifyDelegatingOperation.java:39) at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run (WorkspaceModifyOperation.java:64) at org.eclipse.core.internal.resources.Workspace.run (Workspace.java:1361) at org.eclipse.ui.actions.WorkspaceModifyOperation.run (WorkspaceModifyOperation.java:78) at org.eclipse.jface.operation.ModalContext.runInCurrentThread (ModalContext.java:299) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:249) at org.eclipse.jface.dialogs.ProgressMonitorDialog.run (ProgressMonitorDialog.java:335) at org.eclipse.jdt.internal.ui.preferences.BuildPathsPropertyPage.performOk (BuildPathsPropertyPage.java:140) at org.eclipse.jface.preference.PreferenceDialog.okPressed (PreferenceDialog.java:577) at org.eclipse.jface.preference.PreferenceDialog.buttonPressed (PreferenceDialog.java:176) at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:398) at org.eclipse.swt.widgets.TypedListener.handleEvent (TypedListener.java:85) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.jface.window.Window.runEventLoop(Window.java:558) at org.eclipse.jface.window.Window.open(Window.java:538) at org.eclipse.ui.dialogs.PropertyDialogAction.run (PropertyDialogAction.java:159) at org.eclipse.jface.action.Action.runWithEvent(Action.java:749) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent (ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0 (ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent (ActionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:75) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1527) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1289) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1177) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1160) at org.eclipse.core.internal.boot.InternalBootLoader.run (InternalBootLoader.java:739) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:462) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:244) at org.eclipse.core.launcher.Main.run(Main.java:693) at org.eclipse.core.launcher.Main.main(Main.java:526) !ENTRY org.eclipse.core.resources 4 368 Jun 04, 2002 16:02:11.183 !MESSAGE Resource /junit/bin3/junit does not exist.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/BuildPathsBlock.java
ElementTreeSelectionDialog dialog= new ElementTreeSelectionDialog(getShell(), lp, cp);
		dialog.setTitle(NewWizardMessages.getString("BuildPathsBlock.ChooseOutputFolderDialog.title")); 
		dialog.setValidator(validator);
		dialog.setMessage(NewWizardMessages.getString("BuildPathsBlock.ChooseOutputFolderDialog.description")); 
		dialog.addFilter(filter);
		dialog.setInput(fWorkspaceRoot);
		dialog.setInitialSelection(initSelection);
		
		if (dialog.open() == dialog.OK) {
			return (IContainer)dialog.getFirstResult();
		}
		return null;
	}
	
	
	
	private void tabChanged(Widget widget) {
		if (widget instanceof TabItem) {
			BuildPathBasePage newPage= (BuildPathBasePage) ((TabItem) widget).getData();
			if (fCurrPage != null) {
				List selection= fCurrPage.getSelection();
				if (!selection.isEmpty()) {
					newPage.setSelection(selection);
				}
			}
			fCurrPage= newPage;
		}
	}		
}