javauis/eswt_qt/org.eclipse.swt/Eclipse SWT/qt/org/eclipse/swt/graphics/Image.java
equal
deleted
inserted
replaced
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 /** |