Bug 201595

Summary: API to associate programs with a file type
Product: [Eclipse Project] Platform Reporter: Matthew Hall <qualidafial>
Component: SWTAssignee: Steve Northover <steve_northover>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: alex.blewitt, bpasero, sgunturi
Version: 3.4   
Target Milestone: ---   
Hardware: All   
OS: Windows XP   
Whiteboard:

Description Matthew Hall CLA 2007-08-29 11:54:37 EDT
Please add API to the Program class for associating a program with a file extension.  This will allow SWT programs to include functionality such as the oft-seen "Do you want to make X the default program for opening Y files?" dialog.  

Possible APIs:

1) Program.associateProgram(programFilename, extension);
2) Program.createProgram(programName, programFilename).associateExtension(extension);

There might need to be a way of specifying whether to make the program the default handler for the file type.  On Windows XP, this is the difference between double-clicking a file (invokes the default handler) versus right clicking the file, and selecting a program under the "Open With" context menu.
Comment 1 Grant Gayed CLA 2007-08-30 10:16:10 EDT
SN to consider.
Comment 2 Matthew Hall CLA 2008-12-09 15:15:07 EST
Ping.

This is still something that would be very useful.  Currently to create file associations I have to deploy through JWS which is not always an option.

Any chance that some resources could be given to this issue?
Comment 3 Eclipse Webmaster CLA 2019-09-06 15:33:17 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.