Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 4643 - [Program] API to get the icon from a .exe file
Summary: [Program] API to get the icon from a .exe file
Status: CLOSED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P4 enhancement with 2 votes (vote)
Target Milestone: 4.7 M4   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 1944
  Show dependency tree
 
Reported: 2001-10-11 14:20 EDT by Tod Creasey CLA
Modified: 2016-11-10 11:10 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 Tod Creasey CLA 2001-10-11 14:20:28 EDT
With the change over from ProgramSupport we lost the ability to get the icon for a .exe
from the OS that does not show up as one of the programs.

We need a replacement for
	ProgramSupport.loadSmallIcon(display, fileName, index)

that does not require a Program

NOTES:

SN (5/3/01 12:35:18 PM)
	This will be a hint on platforms that do not store icons in their executable.

	McQ (09/05/2001 3:20:35 PM) -
		No time for this.
Comment 1 DJ Houghton CLA 2001-10-29 16:27:44 EST
PRODUCT VERSION: 0.103


Comment 2 Alexander Ilyin CLA 2003-10-03 06:30:17 EDT
Please add to Program class
public Program findProgramByName(String programFullName) 
to get the icon for the file. F.g. each executable has it's own icon not common
for the *.exe extension. 
May be graphics files like ico, gif, jpg can be represented by the subnail icon
not the common extension icon.
Comment 3 Steve Northover CLA 2005-05-10 15:04:03 EDT
BB owns Program now.
Comment 4 Mickael Istria CLA 2016-11-10 11:10:17 EST
Seems to work with recent Eclipse Platform.