Community
Participate
Working Groups
Eclipse Platform Version: 2.0 Build id: 200209240928 (Integration build) ============================================ If a source file (e.g. Foo.java) is deleted when its open in an Java editor, a JavaModelException is being silently logged in PDE Runtime's Error Log: Java Model Exception: Java Model Status [Foo.java does not exist.] at org.eclipse.jdt.internal.core.Openable.getUnderlyingResource (Openable.java(Compiled Code)) at org.eclipse.jdt.internal.core.Openable.getUnderlyingResource (Openable.java(Compiled Code)) at org.eclipse.jdt.internal.core.CompilationUnit.getCorrespondingResource (CompilationUnit.java(Compiled Code)) at org.eclipse.jdt.ui.actions.ShowInNavigatorViewAction.getResource (ShowInNavigatorViewAction.java:175) at org.eclipse.jdt.ui.actions.ShowInNavigatorViewAction.getResource (ShowInNavigatorViewAction.java:154) at org.eclipse.jdt.ui.actions.ShowInNavigatorViewAction.selectionChanged (ShowInNavigatorViewAction.java:93) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged (SelectionDispatchAction.java(Compiled Code)) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged (SelectionDispatchAction.java(Compiled Code)) ... A complete stack trace will be attached. It seems that the selection change listener cannot handle selection change events for a resource that does not exist anymore. Of course, if I don't open the Error Log view, everything will be ok (since the user is not notified)... but in my opinion, the Java Editor should close without issuing any "Internal Error" entries.
Created attachment 2137 [details] JavaModelException stack trace
*** This bug has been marked as a duplicate of 23361 ***