kenshiro55
Joined: 21 Mar 2007 Posts: 3
|
Posted: Thu Aug 16, 2007 1:01 am Post subject: File icon |
|
|
I'm developing an application that display a list of files in a table. I would like to display the standard file icon of these files.
I have the SWT java code that do that:
Code: |
Program program = Program.findProgram(extension);
ImageData imageData = (program == null ? null : program.getImageData());
if (imageData != null) {
image = new Image(Display.getCurrent(), imageData);
}
|
The DWT code:
Code: |
Program program = Program.findProgram(ext);
ImageData imageData = (program is null ? null : program.getImageData());
if(imageData !is null) {
image = new Image(Display.getCurrent(), imageData);
}
|
My problem is that program.getImageData() is always null. Is there another way to do that? |
|