Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 378485

Summary: "Open With > Other..." should allow to store as default
Product: [Eclipse Project] Platform Reporter: Markus Keller <markus.kell.r>
Component: IDEAssignee: Andrey Loskutov <loskutov>
Status: VERIFIED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: daniel_megert, Lars.Vogel, loskutov, milesparker, pwebster
Version: 3.8Keywords: noteworthy
Target Milestone: 4.5 M7Flags: daniel_megert: pmc_approved+
Hardware: All   
OS: All   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=460555
https://git.eclipse.org/r/42388
https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=5f5655a94e574f0e4496f89a1506be82edd0ef2c
https://git.eclipse.org/r/45499
https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=2b259c72877e72bbef6e020cf9a2b58b53f54c4c
https://bugs.eclipse.org/bugs/show_bug.cgi?id=468906
Whiteboard:
Bug Depends on:    
Bug Blocks: 463262, 486859    
Attachments:
Description Flags
Updated dialog screenshot none

Description Markus Keller CLA 2012-05-04 08:38:06 EDT
The "Open With > Other..." dialog should allow me to store the selected editor as default for this file type.

A problem is that the Editors > File Associations preferences allow two kinds of file name patterns: name.ext and *.ext.

UI could look like this:

<editors list>
[Browse...]

[ ] Always use this editor for:           // checkbox; *unchecked* by default
    (o) *.ext    ( ) name.ext             // radios; first selected by default
Comment 1 Andrey Loskutov CLA 2015-02-22 19:15:39 EST
I have a fix, based on fixed dialog from bug 460555. 
Gerrit review follows.
Comment 2 Eclipse Genie CLA 2015-02-22 19:16:34 EST
New Gerrit change created: https://git.eclipse.org/r/42388
Comment 3 Andrey Loskutov CLA 2015-02-22 19:17:07 EST
Created attachment 251006 [details]
Updated dialog screenshot
Comment 5 Andrey Loskutov CLA 2015-03-26 01:59:59 EDT
.
Comment 6 Dani Megert CLA 2015-03-27 04:49:10 EDT
(In reply to Eclipse Genie from comment #4)
> Gerrit change https://git.eclipse.org/r/42388 was merged to [master].
> Commit:
> http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=5f5655a94e574f0e4496f89a1506be82edd0ef2c
 
See http://download.eclipse.org/eclipse/downloads/drops4/N20150326-2000/apitools/freeze_report.html

This change added new API. After M7 API changes, including additions, can only be added if approved by the PMC.

Andrey, please quickly explain why the new API is needed or revert the changes.

I filed bug 463262 to polish the radio button(s).
Comment 7 Andrey Loskutov CLA 2015-03-27 05:17:23 EDT
(In reply to Dani Megert from comment #6)
> (In reply to Eclipse Genie from comment #4)
> > Gerrit change https://git.eclipse.org/r/42388 was merged to [master].
> > Commit:
> > http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=5f5655a94e574f0e4496f89a1506be82edd0ef2c
>  
> See
> http://download.eclipse.org/eclipse/downloads/drops4/N20150326-2000/apitools/
> freeze_report.html
> 
> This change added new API. After M7 API changes, including additions, can
> only be added if approved by the PMC.
> 
> Andrey, please quickly explain why the new API is needed or revert the
> changes.
> 
> I filed bug 463262 to polish the radio button(s).

Oops, sorry, the change was made at M5 time.

The EditorSelectionDialog.setFileName() is needed to allow us remember the editor mapping for the file name.
Comment 8 Dani Megert CLA 2015-03-27 05:26:12 EDT
(In reply to Andrey Loskutov from comment #7)
> The EditorSelectionDialog.setFileName() is needed to allow us remember the
> editor mapping for the file name.

Approved. I added the change to the exception list.
Comment 9 Markus Keller CLA 2015-03-27 17:36:19 EDT
*** Bug 195596 has been marked as a duplicate of this bug. ***
Comment 10 Andrey Loskutov CLA 2015-04-08 14:43:54 EDT
With I20150407-0800 (and probably from very beginning) the "Use for all "*.XYZ" files" setting is valid for the current Eclipse session ONLY, and lost after restart.
Comment 11 Eclipse Genie CLA 2015-04-08 16:55:48 EDT
New Gerrit change created: https://git.eclipse.org/r/45499
Comment 13 Andrey Loskutov CLA 2015-04-08 17:37:37 EDT
(In reply to Eclipse Genie from comment #12)
> Gerrit change https://git.eclipse.org/r/45499 was merged to [master].
> Commit:
> http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/
> ?id=2b259c72877e72bbef6e020cf9a2b58b53f54c4c
Comment 14 Lars Vogel CLA 2015-04-08 17:44:12 EDT
Committers are not allowed to claim "greatfix"es. :-)
Comment 15 Andrey Loskutov CLA 2015-04-28 16:55:16 EDT
Verified in I20150428-0800