From 03e46c38b47ff9998971e18bc378a5273d6e43f9 Mon Sep 17 00:00:00 2001 From: Felipe Heidrich Date: Thu, 30 Oct 2003 23:11:35 +0000 Subject: 8507 --- .../win32/org/eclipse/swt/ole/win32/OleControlSite.java | 12 ++++++------ 1 file 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() { * */ 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 * */ 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) { -- cgit