Mercurial > projects > dwt-addons
comparison dwtx/jface/resource/FileImageDescriptor.d @ 90:7ffeace6c47f
Update 3.4M7 to 3.4
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 06 Jul 2008 23:30:07 +0200 |
parents | 6787ae179808 |
children |
comparison
equal
deleted
inserted
replaced
89:040da1cb0d76 | 90:7ffeace6c47f |
---|---|
23 import dwt.DWT; | 23 import dwt.DWT; |
24 import dwt.DWTException; | 24 import dwt.DWTException; |
25 import dwt.graphics.Device; | 25 import dwt.graphics.Device; |
26 import dwt.graphics.Image; | 26 import dwt.graphics.Image; |
27 import dwt.graphics.ImageData; | 27 import dwt.graphics.ImageData; |
28 import dwtx.core.runtime.Path; | 28 // import dwtx.core.runtime.FileLocator; |
29 // import dwtx.core.runtime.Path; | |
29 | 30 |
30 import dwt.dwthelper.utils; | 31 import dwt.dwthelper.utils; |
31 import dwt.dwthelper.InputStream; | 32 import dwt.dwthelper.InputStream; |
32 import dwt.dwthelper.FileInputStream; | 33 import dwt.dwthelper.FileInputStream; |
33 import dwt.dwthelper.BufferedInputStream; | 34 import dwt.dwthelper.BufferedInputStream; |
219 // | 220 // |
220 // URL resource = location.getResource(name); | 221 // URL resource = location.getResource(name); |
221 // | 222 // |
222 // if (resource is null) | 223 // if (resource is null) |
223 // return null; | 224 // return null; |
224 // try { | 225 // try { |
225 // if (JFaceActivator.getBundleContext() is null) {// Stand-alone case | 226 // if (JFaceActivator.getBundleContext() is null) {// Stand-alone case |
226 // | 227 // |
227 // return new Path(resource.getFile()).toOSString(); | 228 // return new Path(resource.getFile()).toOSString(); |
228 // } | 229 // } |
229 // return new Path(FileLocator.toFileURL(resource).getPath()).toOSString(); | 230 // return new Path(FileLocator.toFileURL(resource).getPath()).toOSString(); |
231 // } catch (IOException e) { | |
232 // Policy.logException(e); | |
230 return null; | 233 return null; |
231 // } catch (IOException e) { | 234 // } |
232 // Policy.logException(e); | |
233 // return null; | |
234 // } | |
235 } | 235 } |
236 } | 236 } |