FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

File icon

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> DWT
View previous topic :: View next topic  
Author Message
kenshiro55



Joined: 21 Mar 2007
Posts: 3

PostPosted: Thu Aug 16, 2007 1:01 am    Post subject: File icon Reply with quote

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?
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.     Forum Index -> DWT All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group