javauis/eswt_qt/org.eclipse.swt/Eclipse SWT/qt/org/eclipse/swt/graphics/Image.java
changeset 72 1f0034e370aa
parent 67 63b81d807542
child 80 d6dafc5d983f
equal deleted inserted replaced
67:63b81d807542 72:1f0034e370aa
   121     /**
   121     /**
   122      * Prevents uninitialized instances from being created outside the package.
   122      * Prevents uninitialized instances from being created outside the package.
   123      * @param device Device
   123      * @param device Device
   124      */
   124      */
   125     Image(Device device) {
   125     Image(Device device) {
       
   126         if (device == null) device = Internal_PackageSupport.getDisplayInstance();
   126         if (device == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);
   127         if (device == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);
   127         this.device = device;
   128         this.device = device;
   128     }
   129     }
   129 
   130 
   130     /**
   131     /**