Bug 5019

Summary: [Program] API on Program class to uniquely identify a program
Product: [Eclipse Project] Platform Reporter: Karice McIntyre <Karice_McIntyre>
Component: SWTAssignee: Billy Biggs <billy.biggs>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: powerkangza, steve_northover, Tod_Creasey
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Karice McIntyre CLA 2001-10-16 11:17:38 EDT
Version: 203

Description:
In the org.eclipse.swt.program.Program class, the api getName() returns the 
name of the program.  Unfortunately, this is not sufficient to uniquely 
identify a program because it is possible that two or more registered programs 
can have the same name.  In the editor selection dialog, the UI needs to be 
able to uniquely identify a program (perhaps by its path?).  Perhaps a 
getCommand() api will do the trick?

An example of where the UI uses the info returned from Program.getPrograms() is 
in the Editor Selection dialog on the File Editors preference page.

Steps:
*Window-> Preferences
*Expand Workbench; select File Editors
*Next to the associated editors table, click the Add button
  This is the editor selection dialog.  
*On my machine, I have 3 'AIFF Audio' programs that appear in the editor 
selection dialog.  When I select the first one, click OK then bring up the 
editor selection dialog again (by clicking Add on the File Edtitors pref page) 
there is now 1 AIFF Audio selection in the list.  There should either be 2 or 
none.  The UI has no way of uniquely identifying these 3 programs with the same 
name.  Currently, the editor selection dialog uses Program.getName() to 
determine uniqueness, but that is not sufficient.
Comment 1 Mike Wilson CLA 2002-05-24 19:36:22 EDT
Not for R2.0.
Comment 2 Mike Wilson CLA 2002-05-29 14:05:02 EDT
*** Bug 4632 has been marked as a duplicate of this bug. ***
Comment 3 Veronika Irvine CLA 2002-09-11 14:08:07 EDT
Moving from Later.
Comment 4 Steve Northover CLA 2005-05-10 15:05:17 EDT
BB owns program now.