[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
[platform-swt-dev] SWT/GTK Widget problem?
|
- From: Jeffrey Morgan <kuzman@xxxxxxxxxxxxxxxx>
- Date: 11 Jul 2002 21:06:47 -0400
- Delivered-to: platform-swt-dev@eclipse.org
In the error() method of the Widget class in SWT/GTK the
code is throwing a SWTError exception. This causes the
wrong exception to be thrown from the constructor. It
would appear that the method should be calling the static
error method on the SWT class. I have attached a patch
that applies this change.
-Jeff
Index: Widget.java
===================================================================
RCS file: /home/eclipse/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java,v
retrieving revision 1.30
diff -u -r1.30 Widget.java
--- Widget.java 10 Jul 2002 19:16:33 -0000 1.30
+++ Widget.java 12 Jul 2002 00:58:34 -0000
@@ -287,7 +287,7 @@
}
void error (int code) {
- throw new SWTError (code);
+ SWT.error(code);
}
/**