Community
Participate
Working Groups
In EditorUtility.getEditorID(IEditorInput) only the simple file name is passed on to IDE.getEditorDescriptor(name). As a result clients of the IEditorAssociationOverride extension point get insufficient information about the to be opened type, as it's not possible to make a decision for simple name conflicts. It should rather pass on the EditorInput such that org.eclipse.ui.ide.IEditorAssociationOverride.overrideDefaultEditor(IEditorInput, IContentType, IEditorDescriptor) get's called.
EditorUtility#getEditorID is an internal method. Are you calling that method? Please provide steps that show the issue.
we try to implement the extension point org.eclipse.ui.ide.IEditorAssociationOverride.overrideDefaultEditor(String, IContentType, IEditorDescriptor) to open a custom editor instead of the default class file editor here is the stack OriginalEditorSelector.findJavaTypeForSimpleFileName(String) line: 185 OriginalEditorSelector.findXbaseEditor(String, boolean) line: 111 OriginalEditorSelector.overrideDefaultEditor(String, IContentType, IEditorDescriptor) line: 96 IDE.overrideDefaultEditorAssociation(String, IContentType, IEditorDescriptor) line: 917 IDE.getEditorDescriptor(String, boolean) line: 1069 IDE.getEditorDescriptor(String) line: 1016 EditorUtility.getEditorID(IEditorInput) line: 435 EditorUtility.openInEditor(Object, boolean) line: 179 JavaUI.openInEditor(IJavaElement, boolean, boolean) line: 734 OpenTypeAction.runWithEvent(Event) line: 90 to be able to decide sufficiently which if our custom editor can handle a particular class file the simple name is not sufficient enhough
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. -- The automated Eclipse Genie.
problem is still there