Community
Participate
Working Groups
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.
Not for R2.0.
*** Bug 4632 has been marked as a duplicate of this bug. ***
Moving from Later.
BB owns program now.