diff dwt/accessibility/Accessible.d @ 71:295b29fc7d13

Renamed SWT to DWT
author Frank Benoit <benoit@tionex.de>
date Tue, 15 Jan 2008 06:44:34 +0100
parents 8cec8f536af3
children 5899e0b43e5d
line wrap: on
line diff
--- a/dwt/accessibility/Accessible.d	Tue Jan 15 06:38:45 2008 +0100
+++ b/dwt/accessibility/Accessible.d	Tue Jan 15 06:44:34 2008 +0100
@@ -17,7 +17,7 @@
 import dwt.accessibility.AccessibleFactory;
 import dwt.accessibility.AccessibleObject;
 import tango.core.Thread;
-import dwt.SWT;
+import dwt.DWT;
 //import dwt.events.*;
 import dwt.internal.gtk.OS;
 import dwt.widgets.Control;
@@ -76,7 +76,7 @@
      * @exception IllegalArgumentException <ul>
      *    <li>ERROR_NULL_ARGUMENT - if the listener is null</li>
      * </ul>
-     * @exception SWTException <ul>
+     * @exception DWTException <ul>
      *    <li>ERROR_WIDGET_DISPOSED - if the receiver's control has been disposed</li>
      *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver's control</li>
      * </ul>
@@ -86,7 +86,7 @@
      */
     public void addAccessibleListener (AccessibleListener listener) {
         checkWidget ();
-        if (listener is null) SWT.error (SWT.ERROR_NULL_ARGUMENT);
+        if (listener is null) DWT.error (DWT.ERROR_NULL_ARGUMENT);
         accessibleListeners ~= listener;
     }
 
@@ -103,7 +103,7 @@
      * @exception IllegalArgumentException <ul>
      *    <li>ERROR_NULL_ARGUMENT - if the listener is null</li>
      * </ul>
-     * @exception SWTException <ul>
+     * @exception DWTException <ul>
      *    <li>ERROR_WIDGET_DISPOSED - if the receiver's control has been disposed</li>
      *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver's control</li>
      * </ul>
@@ -113,7 +113,7 @@
      */
     public void addAccessibleControlListener (AccessibleControlListener listener) {
         checkWidget ();
-        if (listener is null) SWT.error (SWT.ERROR_NULL_ARGUMENT);
+        if (listener is null) DWT.error (DWT.ERROR_NULL_ARGUMENT);
         controlListeners ~= listener;
     }
 
@@ -130,7 +130,7 @@
      * @exception IllegalArgumentException <ul>
      *    <li>ERROR_NULL_ARGUMENT - if the listener is null</li>
      * </ul>
-     * @exception SWTException <ul>
+     * @exception DWTException <ul>
      *    <li>ERROR_WIDGET_DISPOSED - if the receiver's control has been disposed</li>
      *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver's control</li>
      * </ul>
@@ -142,7 +142,7 @@
      */
     public void addAccessibleTextListener (AccessibleTextListener listener) {
         checkWidget ();
-        if (listener is null) SWT.error (SWT.ERROR_NULL_ARGUMENT);
+        if (listener is null) DWT.error (DWT.ERROR_NULL_ARGUMENT);
         textListeners ~= listener;
     }
 
@@ -158,8 +158,8 @@
 
     /* checkWidget was copied from Widget, and rewritten to work in this package */
     void checkWidget () {
-        if (!isValidThread ()) SWT.error (SWT.ERROR_THREAD_INVALID_ACCESS);
-        if (control.isDisposed ()) SWT.error (SWT.ERROR_WIDGET_DISPOSED);
+        if (!isValidThread ()) DWT.error (DWT.ERROR_THREAD_INVALID_ACCESS);
+        if (control.isDisposed ()) DWT.error (DWT.ERROR_WIDGET_DISPOSED);
     }
 
     AccessibleListener[] getAccessibleListeners () {
@@ -186,7 +186,7 @@
      * <p>
      * <b>IMPORTANT:</b> This method is <em>not</em> part of the public
      * API for <code>Accessible</code>. It is marked public only so that it
-     * can be shared within the packages provided by SWT. It is not
+     * can be shared within the packages provided by DWT. It is not
      * available on all platforms, and should never be called from
      * application code.
      * </p>
@@ -224,7 +224,7 @@
      * @exception IllegalArgumentException <ul>
      *    <li>ERROR_NULL_ARGUMENT - if the listener is null</li>
      * </ul>
-     * @exception SWTException <ul>
+     * @exception DWTException <ul>
      *    <li>ERROR_WIDGET_DISPOSED - if the receiver's control has been disposed</li>
      *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver's control</li>
      * </ul>
@@ -234,7 +234,7 @@
      */
     public void removeAccessibleControlListener (AccessibleControlListener listener) {
         checkWidget ();
-        if (listener is null) SWT.error (SWT.ERROR_NULL_ARGUMENT);
+        if (listener is null) DWT.error (DWT.ERROR_NULL_ARGUMENT);
         remove( controlListeners, listener, delegate bool(AccessibleControlListener a1, AccessibleControlListener a2 ){ return a1 is a2; });
     }
 
@@ -249,7 +249,7 @@
      * @exception IllegalArgumentException <ul>
      *    <li>ERROR_NULL_ARGUMENT - if the listener is null</li>
      * </ul>
-     * @exception SWTException <ul>
+     * @exception DWTException <ul>
      *    <li>ERROR_WIDGET_DISPOSED - if the receiver's control has been disposed</li>
      *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver's control</li>
      * </ul>
@@ -259,7 +259,7 @@
      */
     public void removeAccessibleListener (AccessibleListener listener) {
         checkWidget ();
-        if (listener is null) SWT.error (SWT.ERROR_NULL_ARGUMENT);
+        if (listener is null) DWT.error (DWT.ERROR_NULL_ARGUMENT);
         remove( accessibleListeners, listener, delegate bool( AccessibleListener a1, AccessibleListener a2 ){ return a1 is a2; });
     }
 
@@ -274,7 +274,7 @@
      * @exception IllegalArgumentException <ul>
      *    <li>ERROR_NULL_ARGUMENT - if the listener is null</li>
      * </ul>
-     * @exception SWTException <ul>
+     * @exception DWTException <ul>
      *    <li>ERROR_WIDGET_DISPOSED - if the receiver's control has been disposed</li>
      *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver's control</li>
      * </ul>
@@ -286,7 +286,7 @@
      */
     public void removeAccessibleTextListener (AccessibleTextListener listener) {
         checkWidget ();
-        if (listener is null) SWT.error (SWT.ERROR_NULL_ARGUMENT);
+        if (listener is null) DWT.error (DWT.ERROR_NULL_ARGUMENT);
         remove( textListeners, listener, delegate bool(AccessibleTextListener a1, AccessibleTextListener a2 ){ return a1 is a2; });
     }
 
@@ -294,7 +294,7 @@
      * Sends a message to accessible clients that the child selection
      * within a custom container control has changed.
      *
-     * @exception SWTException <ul>
+     * @exception DWTException <ul>
      *    <li>ERROR_WIDGET_DISPOSED - if the receiver's control has been disposed</li>
      *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver's control</li>
      * </ul>
@@ -314,7 +314,7 @@
      *
      * @param childID an identifier specifying a child of the control
      *
-     * @exception SWTException <ul>
+     * @exception DWTException <ul>
      *    <li>ERROR_WIDGET_DISPOSED - if the receiver's control has been disposed</li>
      *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver's control</li>
      * </ul>
@@ -332,7 +332,7 @@
      *
      * @param index the new caret index within the control
      *
-     * @exception SWTException <ul>
+     * @exception DWTException <ul>
      *    <li>ERROR_WIDGET_DISPOSED - if the receiver's control has been disposed</li>
      *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver's control</li>
      * </ul>
@@ -355,7 +355,7 @@
      * @param startIndex the text index within the control where the insertion or deletion begins
      * @param length the non-negative length in characters of the insertion or deletion
      *
-     * @exception SWTException <ul>
+     * @exception DWTException <ul>
      *    <li>ERROR_WIDGET_DISPOSED - if the receiver's control has been disposed</li>
      *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver's control</li>
      * </ul>
@@ -376,7 +376,7 @@
      * Sends a message to accessible clients that the text
      * selection has changed within a custom control.
      *
-     * @exception SWTException <ul>
+     * @exception DWTException <ul>
      *    <li>ERROR_WIDGET_DISPOSED - if the receiver's control has been disposed</li>
      *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver's control</li>
      * </ul>