Community
Participate
Working Groups
1. Select any .java file in Package Explorer and press the right button of the mouse. 2. Select 'Open With' -> 'Text Editor' in the popup menu. Then the file opens with Text Editor and Text Editor becomes the default editor of the file. 3. Therefore, after closing the file, double-clicking the same file in Package Explorer opens it with Text Editor. 4. After closing the file, do the same operation again. That is, select the same .java file in Package Explorer, press the right button of the mouse and select 'Open With' -> 'Text Editor' in the popup menu. 5. Then the file opens with Text Editor. However, the default editor of the file changes to Java Editor. 6. Therefore, after closing the file, double-clicking the same file in Package Explorer opens it with Java Editor, not Text Editor. After the above operation, the default editor should remain Text Editor. This happens only on Eclipse 2.0.1. Eclipse 2.0 does not have the problem. (I used eclipse-SDK-2.0-win32.zip and eclipse-SDK-2.0.1-win32.zip to check the behavior.)
This may be a duplicate of 21486.
*** Bug 24692 has been marked as a duplicate of this bug. ***
*** Bug 25034 has been marked as a duplicate of this bug. ***
Should fix this for 2.0.2 (and also in the 2.1 stream).
Fix released to the HEAD stream. Must be released to the 2.0.2 stream.
Released in the 202 stream.
Thank you for your quick response. Could you tell me which files were modified for this fix? I'd like to try to apply the fix into 2.0.1, too.
One line in EditorManager.java. Instead of calling getDefaultEditor(file) we call getDefaultEditor(file.getName()).
*** Bug 25844 has been marked as a duplicate of this bug. ***