Bug 25703 - Getting system icons for dialogs
Summary: Getting system icons for dialogs
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 2.1   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 3.0 M9   Edit
Assignee: Grant Gayed CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-04 16:50 EST by Nick Edgar CLA
Modified: 2004-05-10 10:58 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Edgar CLA 2002-11-04 16:50:46 EST
build 20021030

Can we get API to obtain the correct platform-specific icons to show 
in dialogs (e.g. Info / Warning / Error)?

We would like to be able to use these in JFace dialogs as well.

See bug 22621 for more context.
Comment 1 Veronika Irvine CLA 2004-05-03 11:47:02 EDT
Grant to investigate the possibility of doing this for 3.0.

API should be something like Display.getSystemImage(SWT.ICON_WARNING) and this 
should return an Image object or null.

Need this for SWT.ICON_*.
Comment 2 Grant Gayed CLA 2004-05-07 17:05:33 EDT
new Display.getSystemImage(int) api released > 0507
Comment 3 Michael Van Meekeren CLA 2004-05-10 10:51:30 EDT
I tried this and found that I did not get an image for the SWT.ICON_WORKING 
icon

see Display..


 * @see SWT#ICON_WORKING
 * 
 * @since 3.0
 */
public Image getSystemImage (int id) {
Comment 4 Grant Gayed CLA 2004-05-10 10:58:05 EDT
mvm, I assume you mean that it answered an image that matched your ICON_INFO 
image?  If so then this is by design, because only Motif defines a unique 
system image for WORKING.