Mercurial > projects > dwt-addons
comparison dwtx/ui/internal/forms/widgets/BusyIndicator.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 | 26c6c9dfd13c |
children | 862b05e0334a |
comparison
equal
deleted
inserted
replaced
89:040da1cb0d76 | 90:7ffeace6c47f |
---|---|
24 import dwt.graphics.Point; | 24 import dwt.graphics.Point; |
25 import dwt.graphics.Rectangle; | 25 import dwt.graphics.Rectangle; |
26 import dwt.widgets.Canvas; | 26 import dwt.widgets.Canvas; |
27 import dwt.widgets.Composite; | 27 import dwt.widgets.Composite; |
28 import dwt.widgets.Display; | 28 import dwt.widgets.Display; |
29 // import dwtx.core.runtime.FileLocator; | |
30 // import dwtx.core.runtime.Path; | |
31 // import dwtx.core.runtime.Platform; | |
29 import dwtx.jface.resource.ImageDescriptor; | 32 import dwtx.jface.resource.ImageDescriptor; |
30 | 33 |
31 import dwt.dwthelper.utils; | 34 import dwt.dwthelper.utils; |
32 import dwt.dwthelper.Runnable; | 35 import dwt.dwthelper.Runnable; |
33 | 36 |
295 } | 298 } |
296 } | 299 } |
297 | 300 |
298 | 301 |
299 private ImageDescriptor createImageDescriptor(String relativePath) { | 302 private ImageDescriptor createImageDescriptor(String relativePath) { |
300 //DWT_TODO | 303 // Bundle bundle = Platform.getBundle("dwtx.ui.forms"); //$NON-NLS-1$ |
301 // Bundle bundle = Platform.getBundle("dwtx.ui.forms"); //$NON-NLS-1$ | 304 // URL url = FileLocator.find(bundle, new Path(relativePath),null); |
302 // URL url = FileLocator.find(bundle, new Path(relativePath),null); | 305 // if (url is null) return null; |
303 // if (url is null) return null; | 306 // try { |
304 // try { | 307 // url = FileLocator.resolve(url); |
305 // url = FileLocator.resolve(url); | 308 // return ImageDescriptor.createFromURL(url); |
306 // return ImageDescriptor.createFromURL(url); | 309 // } catch (IOException e) { |
307 // } catch (IOException e) { | 310 // return null; |
308 // return null; | 311 // } |
309 // } | |
310 return null; | 312 return null; |
311 } | 313 } |
312 | 314 |
313 private synchronized Image getImage(int index) { | 315 private synchronized Image getImage(int index) { |
314 if (imageCache is null) { | 316 if (imageCache is null) { |