diff options
author | Felipe Heidrich <fheidric> | 2003-10-30 23:11:35 +0000 |
---|---|---|
committer | Felipe Heidrich <fheidric> | 2003-10-30 23:11:35 +0000 |
commit | 03e46c38b47ff9998971e18bc378a5273d6e43f9 (patch) | |
tree | 45ac07e6ffdf9b40785b5687ca15239b05be5156 /bundles/org.eclipse.swt/Eclipse SWT OLE Win32 | |
parent | f2a990756ce685743056e19a5c5f319fa8dfc40c (diff) | |
download | eclipse.platform.swt-03e46c38b47ff9998971e18bc378a5273d6e43f9.tar.gz eclipse.platform.swt-03e46c38b47ff9998971e18bc378a5273d6e43f9.tar.xz eclipse.platform.swt-03e46c38b47ff9998971e18bc378a5273d6e43f9.zip |
8507
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT OLE Win32')
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleControlSite.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleControlSite.java b/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleControlSite.java index 4793e4100d..95f2ee1a75 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleControlSite.java +++ b/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleControlSite.java @@ -314,7 +314,7 @@ protected void addObjectReferences() { * <ul><li>ERROR_NULL_ARGUMENT when listener is null</li></ul> */ public void addPropertyListener(int propertyID, OleListener listener) { - if (listener == null) throw new SWTError (SWT.ERROR_NULL_ARGUMENT); + if (listener == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); olePropertyChangeSink.addListener(propertyID, listener); } @@ -621,7 +621,7 @@ protected void releaseObjectInterfaces() { */ public void removeEventListener(int eventID, OleListener listener) { checkWidget(); - if (listener == null) throw new SWTError (SWT.ERROR_NULL_ARGUMENT); + if (listener == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); GUID riid = getDefaultEventSinkGUID(objIUnknown); if (riid != null) { @@ -647,7 +647,7 @@ public void removeEventListener(int eventID, OleListener listener) { */ public void removeEventListener(OleAutomation automation, GUID guid, int eventID, OleListener listener) { checkWidget(); - if (automation == null || listener == null || guid == null) throw new SWTError (SWT.ERROR_NULL_ARGUMENT); + if (automation == null || listener == null || guid == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); removeEventListener(automation.getAddress(), guid, eventID, listener); } /** @@ -666,7 +666,7 @@ public void removeEventListener(OleAutomation automation, GUID guid, int eventID */ public void removeEventListener(OleAutomation automation, int eventID, OleListener listener) { checkWidget(); - if (automation == null || listener == null) throw new SWTError (SWT.ERROR_NULL_ARGUMENT); + if (automation == null || listener == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); int address = automation.getAddress(); IUnknown unknown = new IUnknown(address); GUID riid = getDefaultEventSinkGUID(unknown); @@ -675,7 +675,7 @@ public void removeEventListener(OleAutomation automation, int eventID, OleListen } } void removeEventListener(int iunknown, GUID guid, int eventID, OleListener listener) { - if (listener == null || guid == null) throw new SWTError (SWT.ERROR_NULL_ARGUMENT); + if (listener == null || guid == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); for (int i = 0; i < oleEventSink.length; i++) { if (COM.IsEqualGUID(oleEventSinkGUID[i], guid)) { if (iunknown == oleEventSinkIUnknown[i]) { @@ -720,7 +720,7 @@ void removeEventListener(int iunknown, GUID guid, int eventID, OleListener liste * <ul><li>ERROR_NULL_ARGUMENT when listener is null</li></ul> */ public void removePropertyListener(int propertyID, OleListener listener) { - if (listener == null) throw new SWTError (SWT.ERROR_NULL_ARGUMENT); + if (listener == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); olePropertyChangeSink.removeListener(propertyID, listener); } public void setBackground (Color color) { |