Bug 31170 Errors in outline view
build i0206, win2k, j9 I noticed that my outline view wasn't updating...it only displayed "a top level type not defined". I clicked on the "go into top level type" button a couple of times and got the following in my log. !ENTRY org.eclipse.jdt.ui 4 10001 Feb 06, 2003 16:50:27.383 !MESSAGE Template newtype not added: Variable 'package_statement' is unknown. !ENTRY org.eclipse.jdt.ui 4 10001 Feb 06, 2003 16:50:51.137 !MESSAGE Internal Error !STACK 1 Java Model Exception: Java Model Status [[Working copy] ResourcesPlugin.java [in org.eclipse.core.resources [in src [in org.eclipse.core.resources]]] does not exist.] Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V org/eclipse/core/runtime/CoreException.<init> (Lorg/eclipse/core/runtime/IStatus;)V org/eclipse/jdt/core/JavaModelException.<init> (Lorg/eclipse/jdt/core/IJavaModelStatus;)V org/eclipse/jdt/internal/core/JavaElement.newNotPresentException() Lorg/eclipse/jdt/core/JavaModelException; org/eclipse/jdt/internal/core/WorkingCopy.openBuffer (Lorg/eclipse/core/runtime/IProgressMonitor;)Lorg/eclipse/jdt/core/IBuffer; org/eclipse/jdt/internal/core/Openable.openWhenClosed (Lorg/eclipse/core/runtime/IProgressMonitor;)V org/eclipse/jdt/internal/core/JavaElement.openHierarchy()V org/eclipse/jdt/internal/core/JavaElement.getElementInfo() Lorg/eclipse/jdt/internal/core/JavaElementInfo; org/eclipse/jdt/internal/core/JavaElement.getChildren() [Lorg/eclipse/jdt/core/IJavaElement; org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage$ChildrenProvider.getChild ren(Ljava/lang/Object;)[Ljava/lang/Object; org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage$ChildrenProvider.getEleme nts(Ljava/lang/Object;)[Ljava/lang/Object; org/eclipse/jface/viewers/StructuredViewer.getRawChildren(Ljava/lang/Object;) [Ljava/lang/Object; org/eclipse/jface/viewers/AbstractTreeViewer.getRawChildren (Ljava/lang/Object;)[Ljava/lang/Object; org/eclipse/jface/viewers/StructuredViewer.getFilteredChildren (Ljava/lang/Object;)[Ljava/lang/Object; org/eclipse/jface/viewers/StructuredViewer.getSortedChildren (Ljava/lang/Object;)[Ljava/lang/Object; org/eclipse/jface/viewers/AbstractTreeViewer.updateChildren (Lorg/eclipse/swt/widgets/Widget;Ljava/lang/Object;[Ljava/lang/Object;)V org/eclipse/jface/viewers/AbstractTreeViewer.internalRefresh (Lorg/eclipse/swt/widgets/Widget;Ljava/lang/Object;Z)V org/eclipse/jface/viewers/AbstractTreeViewer.internalRefresh (Ljava/lang/Object;)V org/eclipse/jface/viewers/StructuredViewer$7.run()V org/eclipse/jface/viewers/StructuredViewer.preservingSelection (Ljava/lang/Runnable;)V org/eclipse/jface/viewers/StructuredViewer.refresh(Ljava/lang/Object;)V org/eclipse/jface/viewers/StructuredViewer.refresh()V org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage$ClassOnlyAction.setTopLev elTypeOnly(Z)V org/eclipse/jdt/internal/ui/javaeditor/JavaOutlinePage$ClassOnlyAction.run()V org/eclipse/jface/action/Action.runWithEvent(Lorg/eclipse/swt/widgets/Event;) V org/eclipse/jface/action/ActionContributionItem.handleWidgetSelection (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/jface/action/ActionContributionItem.handleWidgetEvent (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/jface/action/ActionContributionItem.access$0 (Lorg/eclipse/jface/action/ActionContributionItem;Lorg/eclipse/swt/widgets/Event ;)V org/eclipse/jface/action/ActionContributionItem$ActionListener.handleEvent (Lorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/EventTable.sendEvent(Lorg/eclipse/swt/widgets/Event;) V org/eclipse/swt/widgets/Widget.sendEvent(Lorg/eclipse/swt/widgets/Event;)V org/eclipse/swt/widgets/Display.runDeferredEvents()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop (Lorg/eclipse/jface/window/Window$IExceptionHandler;)V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String; [Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String; [Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Object; java/lang/reflect/AccessibleObject.invokeL(Ljava/lang/Object; [Ljava/lang/Object;)Ljava/lang/Object; java/lang/reflect/Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;) Ljava/lang/Object; org/eclipse/core/launcher/Main.basicRun([Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/launcher/Main.run([Ljava/lang/String;)Ljava/lang/Object; org/eclipse/core/launcher/Main.main([Ljava/lang/String;)V !ENTRY org.eclipse.jdt.core 4 969 Feb 06, 2003 16:50:51.137 !MESSAGE [Working copy] ResourcesPlugin.java [in org.eclipse.core.resources [in src [in org.eclipse.core.resources]]] does not exist. !ENTRY org.eclipse.jface 4 2 Feb 06, 2003 16:50:57.376 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface". !STACK 0 java.lang.NullPointerException Stack trace: java/lang/Throwable.<init>()V java/lang/Throwable.<init>(Ljava/lang/String;)V java/lang/NullPointerException.<init>(Ljava/lang/String;)V org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.setSelection (Lorg/eclipse/jdt/core/ISourceReference;Z)V org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.doSelectionChanged (Lorg/eclipse/jface/viewers/SelectionChangedEvent;)V org/eclipse/jdt/internal/ui/javaeditor/JavaEditor$SelectionChangedListener.selec tionChanged(Lorg/eclipse/jface/viewers/SelectionChangedEvent;)V org/eclipse/jface/viewers/StructuredViewer$3.run()V org/eclipse/core/internal/runtime/InternalPlatform.run (Lorg/eclipse/core/runtime/ISafeRunnable;)V org/eclipse/core/runtime/Platform.run (Lorg/eclipse/core/runtime/ISafeRunnable;)V org/eclipse/jface/viewers/StructuredViewer.firePostSelectionChanged (Lorg/eclipse/jface/viewers/SelectionChangedEvent;)V org/eclipse/jface/viewers/StructuredViewer.handlePostSelect (Lorg/eclipse/swt/events/SelectionEvent;)V org/eclipse/jface/viewers/StructuredViewer$5.widgetSelected (Lorg/eclipse/swt/events/SelectionEvent;)V org/eclipse/jface/util/OpenStrategy.firePostSelectionEvent (Lorg/eclipse/swt/events/SelectionEvent;)V org/eclipse/jface/util/OpenStrategy.access$4 (Lorg/eclipse/jface/util/OpenStrategy;Lorg/eclipse/swt/events/SelectionEvent;)V org/eclipse/jface/util/OpenStrategy$3.run()V org/eclipse/swt/widgets/RunnableLock.run()V org/eclipse/swt/widgets/Synchronizer.runAsyncMessages()Z org/eclipse/swt/widgets/Display.runAsyncMessages()Z org/eclipse/swt/widgets/Display.readAndDispatch()Z org/eclipse/ui/internal/Workbench.runEventLoop (Lorg/eclipse/jface/window/Window$IExceptionHandler;)V org/eclipse/ui/internal/Workbench.run(Ljava/lang/Object;)Ljava/lang/Object; org/eclipse/core/internal/boot/InternalBootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String; [Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Object; org/eclipse/core/boot/BootLoader.run (Ljava/lang/String;Ljava/net/URL;Ljava/lang/String; [Ljava/lang/String;Ljava/lang/Runnable;)Ljava/lang/Object; java/lang/reflect/AccessibleObject.invokeL(Ljava/lang/Object; [Ljava/lang/Object;)Ljava/lang/Object; java/lang/reflect/Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;) Ljava/lang/Object; org/eclipse/core/launcher/Main.basicRun([Ljava/lang/String;) Ljava/lang/Object; org/eclipse/core/launcher/Main.run([Ljava/lang/String;)Ljava/lang/Object; org/eclipse/core/launcher/Main.main([Ljava/lang/String;)V
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java
* Creates the outline page used with this editor.
	 */
	protected JavaOutlinePage createOutlinePage() {
		
		JavaOutlinePage page= new JavaOutlinePage(fOutlinerContextMenuId, this);
		
		page.addSelectionChangedListener(fSelectionChangedListener);
		setOutlinePageInput(page, getEditorInput());
		
		return page;
	}
	
	/**
	 * Informs the editor that its outliner has been closed.
	 */
	public void outlinePageClosed() {
		if (fOutlinePage != null) {
			fOutlinePage.removeSelectionChangedListener(fSelectionChangedListener);
			fOutlinePage= null;
			resetHighlightRange();
		}
	}
	
	/**
	 * Synchronizes the outliner selection with the actual cursor
	 * position in the editor.
	 */
	public void synchronizeOutlinePageSelection() {
		
		if (isEditingScriptRunning())