Mercurial > projects > dwt-addons
diff 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 |
line wrap: on
line diff
--- a/dwtx/jface/resource/FileImageDescriptor.d Sun Jun 22 22:57:31 2008 +0200 +++ b/dwtx/jface/resource/FileImageDescriptor.d Sun Jul 06 23:30:07 2008 +0200 @@ -25,7 +25,8 @@ import dwt.graphics.Device; import dwt.graphics.Image; import dwt.graphics.ImageData; -import dwtx.core.runtime.Path; +// import dwtx.core.runtime.FileLocator; +// import dwtx.core.runtime.Path; import dwt.dwthelper.utils; import dwt.dwthelper.InputStream; @@ -221,16 +222,15 @@ // // if (resource is null) // return null; -// try { -// if (JFaceActivator.getBundleContext() is null) {// Stand-alone case +// try { +// if (JFaceActivator.getBundleContext() is null) {// Stand-alone case // -// return new Path(resource.getFile()).toOSString(); -// } -// return new Path(FileLocator.toFileURL(resource).getPath()).toOSString(); +// return new Path(resource.getFile()).toOSString(); +// } +// return new Path(FileLocator.toFileURL(resource).getPath()).toOSString(); +// } catch (IOException e) { +// Policy.logException(e); return null; -// } catch (IOException e) { -// Policy.logException(e); -// return null; -// } +// } } }