Bug 572473

Summary: Assign a editor to a certain file type via the Open With > Other does not work properly
Product: [Eclipse Project] Platform Reporter: Martin Coufal <mcoufal>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: ASSIGNED --- QA Contact:
Severity: normal    
Priority: P3 CC: jjohnstn, vkadlcik
Version: 4.20   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Martin Coufal CLA 2021-03-31 03:35:55 EDT
When using the context menu of a file (e.g. Foo.java) 'Open With' > 'Other...' and checkbox "Use it for all '*.java' files", the setting is not remembered and all Java files are opened in the default editor, instead of the chosen one.

How to reproduce:
1. create a new Java project
2. create 2 new classes 'Foo.java' and 'Boo.java', close all editors
3. in Package Explorer, right-click 'Foo.java' and select 'Open With' > 'Other...'
4. instead of default editor, select different one (e.g. Text Editor)
5. make sure checkbox 'Use it for all *.java files' is checked
6. click 'OK'
7. double-click 'Boo.java' to open the editor

The default editor instead of editor selected for all *.java files is opened. No file type association was added to 'Preferences' > 'General' > 'Editors' > 'File Associations'.

My Configuration:
Eclipse Platform 2021-06 (4.20), I20210329-0200
org.eclipse.jdt.feature.group 3.18.800.v20210329-1909