| Summary: | Double click on a history entry results in 'Could not open the editor: Invalid Input: Must be IFileEditorInput' | ||
|---|---|---|---|
| Product: | [Technology] EGit | Reporter: | Bernard Leach <leachbj> |
| Component: | Core | Assignee: | Mathias Kinzler <mathias.kinzler> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | matthias.sohn, remy.suen, stefan.lay |
| Version: | 0.9.0 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux-GTK | ||
| Whiteboard: | |||
|
Description
Bernard Leach
Sometimes an error dialog is shown; "Trying to execute the disabled command org.eclipse.egit.ui.history.ShowVersions" This seems to occur if I try double clicking on another revision shortly after the first error occurs. (In reply to comment #0) > Actual: > An error editor is displayed with the message 'Could not open the editor: > Invalid Input: Must be IFileEditorInput' and the following details. > > org.eclipse.ui.PartInitException: Invalid Input: Must be IFileEditorInput > at > com.springsource.sts.config.ui.editors.SpringConfigEditor.init(SpringConfigEditor.java:446) This is an issue with the Spring editor not being capable of opening files that are not known by the workspace. Actually, EGit has some fallback coding that would try to open a text editor if opening of the "default" editor for a file fails. Unfortunately, the PartInitException is not thrown in that case, as an error editor is displayed instead. This behavior is described extensively in bug 90582 (see in particular comment #46). We don't want to use internals in our code, so we can't code the workaround described there. Unless bug 90582 is fixed, as it seems, there are two options: either the SpringConfig editor must be able to use IEditorInput instead of IFileEditorInput, or we need to have an explicit action "Open in Text Editor" in the history view. Code review at http://egit.eclipse.org/r/#change,1697. This adds a "Open in Text Editor" action to the history view. merged as 644bbbc5fb660ee2598fc9ae3025285dff8a04be |