Bug 572473 - Assign a editor to a certain file type via the Open With > Other does not work properly
Summary: Assign a editor to a certain file type via the Open With > Other does not wor...
Status: ASSIGNED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.20   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-31 03:35 EDT by Martin Coufal CLA
Modified: 2021-04-01 02:29 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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