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

Bug 22752

Summary: [Editor Mgmt]Using batch and command files as external editors
Product: [Eclipse Project] Platform Reporter: mobilae <studnev>
Component: UIAssignee: Tod Creasey <Tod_Creasey>
Status: VERIFIED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: emark, support
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description mobilae CLA 2002-08-23 03:31:26 EDT
Menu Window>Preferences>Workbench>File Associations.

i want to associate my command file (which is Magic Draw command file)
with specific file type (*.xmi).
When i click Browse for external program, i may select only *.exe files.

Workaround here is to type batch file  name manually and it works. Why i can not
select it in the file selection then?
Comment 1 Tod Creasey CLA 2002-08-27 08:49:59 EDT
This is a list that we get from an OS query provided by SWT. I believe the 
query only gives .exe files.

Moving to SWT for comment.
Comment 2 Veronika Irvine CLA 2002-08-27 11:43:04 EDT
Actually, on Windows, SWT returns a list of all programs in the Windows 
HKEY_CLASSES_ROOT registry that have registered the key shell\open\command.  
Extension is irrelevant.
Comment 3 mobilae CLA 2002-08-27 12:01:50 EDT
true,
but i can also Browse for every executable on disk in that menu
Comment 4 Veronika Irvine CLA 2002-08-27 15:50:03 EDT
The fact that the filter *.exe is applied to the FileDialog launched by the 
Browse button is up to the application.  Tod, sending this back to you - 
perhaps you should add more filters or include *.* as one of the filters.
Comment 5 Tod Creasey CLA 2002-08-28 12:46:18 EDT
*** Bug 16089 has been marked as a duplicate of this bug. ***
Comment 6 Tod Creasey CLA 2002-09-20 15:33:26 EDT
We get this value from Program.getPrograms(). No FileDialog is used for this 
at all. Moving to SWT as Program is owned by them.
Comment 7 Steve Northover CLA 2002-09-23 08:50:21 EDT
Tod, it still sounds like an Eclipse thing.  I think what the guy is asking for 
is some way to type in any program name instead of only being able to select 
programs from the list.
Comment 8 Tod Creasey CLA 2002-09-23 09:37:09 EDT
Added *.* and *.bat as filter options in the dialog for Windows. Released in 
build >20020923
Comment 9 Sonia Dimitrov CLA 2002-12-18 09:28:05 EST
*** Bug 28581 has been marked as a duplicate of this bug. ***