Bug 5019 - [Program] API on Program class to uniquely identify a program
Summary: [Program] API on Program class to uniquely identify a program
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Billy Biggs CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 4632 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-10-16 11:17 EDT by Karice McIntyre CLA
Modified: 2015-11-11 16:00 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.