Community
Participate
Working Groups
+++ This bug was initially created as a clone of Bug #90292 +++ Bug 90292 introduced different strategies for selecting the editor. I suggest to use the "Text Editor" as default, using the System Editor as default (as before the solution in Bug 90292) is IMHO a bad choice.
(In reply to Lars Vogel from comment #0) > +++ This bug was initially created as a clone of Bug #90292 +++ > > Bug 90292 introduced different strategies for selecting the editor. I > suggest to use the "Text Editor" as default, using the System Editor as > default (as before the solution in Bug 90292) is IMHO a bad choice. That would be very bad. It would open e.g. GIFs in the Text Editor.
Few points: * Windows "enterprise" users expect they xls files to be opened with Excel. Hard to argue against this expectation. * One can at least try to "guess" the text file type (either by magic byte or whatever API we have in Eclipse, see bug 90292 comment 4) and if we *know* it is text, open text editor.
(In reply to Dani Megert from comment #1) > That would be very bad. It would open e.g. GIFs in the Text Editor. True. What about "Ask the User" as new default?
(In reply to Lars Vogel from comment #3) > (In reply to Dani Megert from comment #1) > > That would be very bad. It would open e.g. GIFs in the Text Editor. > > True. What about "Ask the User" as new default? Hard question. There are two camps: - Some do not want that system editors are opened without asking (bug 142228) - Others expect that files known in the OS will be opened by the corresponding editors (current behavior) I'll bring it up in the next PMC call.
I agree there is no absolutely best solution for everyone, and I tend to believe that among the 3 available strategies, the "System Editor or Text if none" is satisfying in many cases. A compromise would be to use the "Ask the user" configured to store the assocation by default, and showing the best system editor as default selection if one is found. So people opening .xls file would see the suggestion about Excel, press OK once, and the setting would be stored. On the other hand, people opening a .json file would see the proposal and may decide to use the Eclipse Text editor as default.
(In reply to Mickael Istria from comment #5) > I agree there is no absolutely best solution for everyone, and I tend to > believe that among the 3 available strategies, the "System Editor or Text if > none" is satisfying in many cases. > A compromise would be to use the "Ask the user" configured to store the > assocation by default, and showing the best system editor as default > selection if one is found. So people opening .xls file would see the > suggestion about Excel, press OK once, and the setting would be stored. On > the other hand, people opening a .json file would see the proposal and may > decide to use the Eclipse Text editor as default. The only thing that bugs me about this is that often these files are opened in a competing product. Xcode opens many of these file types. I believe the same is true for Visual Studio. That's pretty embarrassing.
(In reply to Doug Schaefer from comment #6) > The only thing that bugs me about this is that often these files are opened > in a competing product. Xcode opens many of these file types. I believe the > same is true for Visual Studio. That's pretty embarrassing. Well, it's a fair behavior: if Eclipse IDE doesn't support a technology and Visual Studio or XCode does; then Visual Studio or XCode is the best thing for the user, and Eclipse IDE has for mission to do the best recommendation for users. However, I believe the story you mention drives us to the importance of bug 480176 which is the super-bug above all issues related to unknown types. IMO, it's the only one that should require effort/attention currently.
(In reply to Dani Megert from comment #4) > (In reply to Lars Vogel from comment #3) > > (In reply to Dani Megert from comment #1) > > > That would be very bad. It would open e.g. GIFs in the Text Editor. > > > > True. What about "Ask the User" as new default? > > Hard question. There are two camps: > - Some do not want that system editors are opened without asking (bug 142228) > - Others expect that files known in the OS will be opened by the > corresponding > editors (current behavior) > > I'll bring it up in the next PMC call. No plans to change this, see https://wiki.eclipse.org/Eclipse/PMC#Meeting_Minutes
Note that if some would like to have the Text Editor as default in their RCP application/specific IDE package, the choice of the strategy is a regular preference that can be tweaked via plugin_customization.ini.