Bug 211204 - [ActionSets] [editor] Exception when opening editor using the navigate action
Summary: [ActionSets] [editor] Exception when opening editor using the navigate action
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-28 07:37 EST by Fedronic valere CLA
Modified: 2019-09-06 15:36 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fedronic valere CLA 2007-11-28 07:37:49 EST
Build ID: I20071101-2000

Steps To Reproduce:
1) Open a new project
2) Create a new File
3) Open the file
4) Close the file
5) Delete the project (+delete content)
6) Click on the 'navigate back' button (alt+left) 

More information:
*Description* :

After using the back action (alt+left) the editors failed to open (an error dialog pops' up), and then editor area displays this stack trace :

org.eclipse.core.runtime.CoreException: The file does not exist.
    at org.eclipse.core.internal.filebuffers.ResourceFileBuffer.create(ResourceFileBuffer.java:237)
    at org.eclipse.core.internal.filebuffers.TextFileBufferManager.connect(TextFileBufferManager.java:109)
    at org.eclipse.ui.editors.text.TextFileDocumentProvider.createFileInfo(TextFileDocumentProvider.java:552)
...
...
at org.eclipse.ui.internal.NavigationHistoryEntry.restoreLocation(NavigationHistoryEntry.java:66)
    at org.eclipse.ui.internal.NavigationHistory.gotoEntry(NavigationHistory.java:452)
    at org.eclipse.ui.internal.NavigationHistory.shiftEntry(NavigationHistory.java:517)
    at org.eclipse.ui.internal.NavigationHistory.backward(NavigationHistory.java:501)


*Expected*
The editor should use the 'status control' (StatusTextEditor) to display the error message.
Comment 1 Dani Megert CLA 2007-11-28 07:59:49 EST
Note that with latest I-builds it's now shown inside the editor - no dialog.

Looks like the history is only update when the file gets deleted but not when its parent disappears.
Comment 2 Fedronic valere CLA 2008-01-10 09:23:30 EST
I have checked on 3.4M4, the popup dialog doesn't appear anymore.
It was related to the bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=185838 .

Nevertheless it would be great if, when a project or file is deleted, that the navigation's history related entries are removed? or to check that the file is accessible before restoring it?
Comment 3 Eclipse Webmaster CLA 2019-09-06 15:36:28 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.