Bug 37648 Exceptions after one of the compare viewer inputs got deleted
Build I20030513 1. Select two folders 2. Compare With > Each Other 3. Delete one of the folders 4. In the compare viewer select a child which was contained in the deleted folder and which was also present in the other folder !SESSION Mai 15, 2003 15:12:10.492 --------------------------------------------- java.version=1.4.0_01-ea java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_CH Command-line arguments: -os win32 -ws win32 -arch x86 -install file:C:/eclipse/drops/I20030507/ !ENTRY org.eclipse.jdt.ui 4 10001 Mai 15, 2003 15:12:10.492 !MESSAGE Internal Error !STACK 1 org.eclipse.core.internal.resources.ResourceException: Resource /JUnit/junit/runner2/TestCaseClassLoader.java does not exist. at org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:302) at org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:174) at org.eclipse.core.internal.resources.File.getContents(File.java:212) at org.eclipse.core.internal.resources.File.getContents(File.java:204) at org.eclipse.compare.ResourceNode.createStream(ResourceNode.java:178) at org.eclipse.compare.BufferedContent.getContents(BufferedContent.java:49) at org.eclipse.compare.ResourceNode.getContents(ResourceNode.java:66) at org.eclipse.jdt.internal.ui.compare.JavaStructureCreator.getStructure(JavaStructureCreator.java:144) at org.eclipse.compare.structuremergeviewer.StructureDiffViewer.compareInputChanged(StructureDiffViewer.java:215) at org.eclipse.jdt.internal.ui.compare.JavaStructureDiffViewer.compareInputChanged(JavaStructureDiffViewer.java:86) at org.eclipse.compare.structuremergeviewer.StructureDiffViewer.inputChanged(StructureDiffViewer.java:146) at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:238) at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:991) at org.eclipse.compare.CompareViewerSwitchingPane.setInput(CompareViewerSwitchingPane.java:302) at org.eclipse.compare.CompareEditorInput$12.run(CompareEditorInput.java:503) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69) at org.eclipse.compare.CompareEditorInput.feedDefault1(CompareEditorInput.java:499) at org.eclipse.compare.CompareEditorInput.access$2(CompareEditorInput.java:498) at org.eclipse.compare.CompareEditorInput$8.doubleClick(CompareEditorInput.java:435) at org.eclipse.compare.CompareViewerSwitchingPane.doubleClick(CompareViewerSwitchingPane.java:235) at org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredViewer.java:372) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:889) at org.eclipse.core.runtime.Platform.run(Platform.java:413) at org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(StructuredViewer.java:370) at org.eclipse.jface.viewers.StructuredViewer.handleDoubleSelect(StructuredViewer.java:589) at org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSelected(StructuredViewer.java:684) at org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(OpenStrategy.java:187) at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.java:184) at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:231) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:81) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:848) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1938) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1645) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385) at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:845) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.core.launcher.Main.basicRun(Main.java:291) at org.eclipse.core.launcher.Main.run(Main.java:747) at org.eclipse.core.launcher.Main.main(Main.java:583) !ENTRY org.eclipse.core.resources 4 368 Mai 15, 2003 15:12:10.502 !MESSAGE Resource /JUnit/junit/runner2/TestCaseClassLoader.java does not exist.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaStructureCreator.java
/*******************************************************************************
 * Copyright (c) 2000, 2003 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials 
 * are made available under the terms of the Common Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/cpl-v10.html
 * 
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.jdt.internal.ui.compare;
import java.io.UnsupportedEncodingException;
import java.util.*;
import org.eclipse.jface.text.*;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.jdt.core.*;
import org.eclipse.jdt.core.compiler.*;
import org.eclipse.jdt.internal.compiler.*;
import org.eclipse.jdt.internal.compiler.impl.CompilerOptions;
import org.eclipse.jdt.internal.compiler.problem.DefaultProblem;
import org.eclipse.jdt.internal.ui.JavaPlugin;
import org.eclipse.compare.*;
import org.eclipse.compare.internal.DocumentManager;
import org.eclipse.compare.structuremergeviewer.*;
public class JavaStructureCreator implements IStructureCreator {