Bug 156989 - [IDE] IDE.getEditorDescriptor(name, infreContentType) uses wrong default editor
Summary: [IDE] IDE.getEditorDescriptor(name, infreContentType) uses wrong default editor
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2006-09-12 04:51 EDT by Konstantin Scheglov CLA
Modified: 2022-02-23 19:29 EST (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 Konstantin Scheglov CLA 2006-09-12 04:51:47 EDT
Compare these IDE methods:

public static IEditorDescriptor getEditorDescriptor(String name, boolean inferContentType)

and

public static IEditorDescriptor getDefaultEditor(IFile file, boolean determineContentType)

  JavaDoc for both says that: "The file is consulted for a persistent property named <code>IDE.EDITOR_KEY</code> containing the preferred editor id to be used."

  However only last one (getDefaultEditor) uses it:

            String editorID = file.getPersistentProperty(EDITOR_KEY);

  First fuction gets default editor using this code:

            editorReg.getDefaultEditor(name, contentType)


  So, I have problem. When Java file is opened in my editor, there is breakpoint in this Java file and it hits, Eclipse opens new editor - standard Java editor! IIRC this was not so in Eclipse 3.1... Can you fix this?
Comment 1 Eric Clayberg CLA 2007-03-22 08:15:35 EDT
Any news on this bug? It is still a problem in Eclipse 3.3M5eh. Eclipse will open a second editor (a standard Java editor) when enocuntering a breakpoint in a file already open in a custom editor.
Comment 2 Susan McCourt CLA 2009-07-15 12:07:26 EDT
"As per http://wiki.eclipse.org/Platform_UI/Bug_Triage_Change_2009"
Comment 3 Eclipse Webmaster CLA 2019-09-06 16:09:38 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.
Comment 4 Eclipse Genie CLA 2022-02-23 19:29:31 EST
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. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. 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.