Community
Participate
Working Groups
Build Identifier: 20110301-1815 If a MultiEditor is started using a extension point of org.eclipse.ui.editors using a concrete MultiEditor class and a file as input leads to a ClassCastException because the MultiEditor expects a MultiEditorInput. More precisely, the EditorReference calls the method openMultiEditor(...) of the EditorManager and there is never any method triggered of the MultiEditor where it is possible to change the input. This problem can be bypassed if you are using an IEditorLauncher where you can change the the FileEditorInput to MultiEditorInput. An easier way would be if the EditorReference would check the IEditorInput and if the part is a MultiEditor but the editorInput not a MultiEditorInput that it would call a method editorInput=((MultiEditor)part).convertInput(editorInput) and to extend the MultiEditor by abstract public IEditorInput convertInput(IEditorInput input) which returns a MultiEditorInput. Reproducible: Always
The javadoc needs to be updated on MultiEditor that a MultiEditorInput needs to be supplied (it has always worked this way and I thought that it was documented, but I can't see it in the doc) PW
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. If the bug is still relevant, please remove the "stalebug" whiteboard tag.