Esempio n. 1
0
 public ImageProgressBar createImageProgressBar(
     Composite parent, int flags, int x, int y, int width, int height, String imageFileName) {
   ImageProgressBar slider = new ImageProgressBar(parent, flags);
   slider.setBounds(getScaledBounds(x, y, width, height));
   slider.setImage(getSizedImageForWidget(imageFileName, slider));
   return slider;
 }
Esempio n. 2
0
 public void disposeImageProgressBarImage(ImageProgressBar imageProgressBar) {
   disposeRegion(imageProgressBar);
   Image image = imageProgressBar.getImage();
   if (image != null) {
     imageProgressBar.setImage(null);
     image.dispose();
   }
 }