javauis/eswt_qt/org.eclipse.swt/Eclipse SWT/qt/org/eclipse/swt/graphics/Image.java
changeset 79 2f468c1958d0
parent 76 4ad59aaee882
equal deleted inserted replaced
76:4ad59aaee882 79:2f468c1958d0
   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     /**