diff options
141 files changed, 931 insertions, 1030 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Accessibility/emulated/org/eclipse/swt/accessibility/Accessible.java b/bundles/org.eclipse.swt/Eclipse SWT Accessibility/emulated/org/eclipse/swt/accessibility/Accessible.java index 6d5d601b7d..2d8a6afd25 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Accessibility/emulated/org/eclipse/swt/accessibility/Accessible.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Accessibility/emulated/org/eclipse/swt/accessibility/Accessible.java @@ -1,7 +1,7 @@ package org.eclipse.swt.accessibility;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -27,8 +27,7 @@ import org.eclipse.swt.widgets.Control; * @see AccessibleControlEvent
*
* @since 2.0
- */
-
+ */ public class Accessible {
Accessible(Control control) {
@@ -48,8 +47,7 @@ public class Accessible { * @return the platform specific accessible object
*
* @private
- */
-
+ */ public static Accessible internal_new_Accessible(Control control) {
return new Accessible(control);
}
@@ -74,7 +72,7 @@ public class Accessible { *
* @see AccessibleListener
* @see #removeAccessibleListener
- */
+ */ public void addAccessibleListener(AccessibleListener listener) {
}
@@ -96,7 +94,7 @@ public class Accessible { *
* @see AccessibleListener
* @see #addDisposeListener
- */
+ */ public void removeAccessibleListener(AccessibleListener listener) {
}
@@ -120,7 +118,7 @@ public class Accessible { *
* @see AccessibleControlListener
* @see #removeAccessibleControlListener
- */
+ */ public void addAccessibleControlListener(AccessibleControlListener listener) {
}
@@ -142,7 +140,7 @@ public class Accessible { *
* @see AccessibleControlListener
* @see #addAccessibleControlListener
- */
+ */ public void removeAccessibleControlListener(AccessibleControlListener listener) {
}
@@ -156,7 +154,7 @@ public class Accessible { * <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>
- */
+ */ public void setFocus(int childID) {
}
@@ -171,8 +169,7 @@ public class Accessible { * </p>
*
* @private
- */
-
+ */ public void internal_dispose_Accessible() {
}
@@ -187,7 +184,7 @@ public class Accessible { * </p>
*
* @private
- */
+ */ public int internal_WM_GETOBJECT (int wParam, int lParam) {
return 0;
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/ByteArrayTransfer.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/ByteArrayTransfer.java index 8a31b794c1..0790248fd8 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/ByteArrayTransfer.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/ByteArrayTransfer.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd; /* - * (c) Copyright IBM Corp. 2000, 2001. + * (c) Copyright IBM Corp. 2000, 2001, 2002. * All Rights Reserved */ @@ -19,7 +19,6 @@ package org.eclipse.swt.dnd; * <code>byte[]</code>, you should sub-class <code>Transfer</code> directly * and do your own mapping to a platform data type.</p> */ - public abstract class ByteArrayTransfer extends Transfer { public TransferData[] getSupportedTypes(){ return null; diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/Clipboard.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/Clipboard.java index e959f0cce7..df42700225 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/Clipboard.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/Clipboard.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd; /* - * (c) Copyright IBM Corp. 2000, 2001. + * (c) Copyright IBM Corp. 2000, 2001, 2002. * All Rights Reserved */ @@ -14,7 +14,6 @@ import org.eclipse.swt.widgets.*; * * <p>IMPORTANT: This class is <em>not</em> intended to be subclassed.</p> */ - public class Clipboard { private Display display; @@ -68,7 +67,6 @@ public void dispose () { * * @return the data obtained from the clipboard or null if no data of this type is available */ - public Object getContents(Transfer transfer) { if (display.isDisposed() || !(transfer instanceof TextTransfer)) return null; return display.getData("TextTransfer"); @@ -109,7 +107,6 @@ public Object getContents(Transfer transfer) { * otherwise unavailable</li> * </ul> */ - public void setContents(Object[] data, Transfer[] transferAgents){ if (data == null) { @@ -140,7 +137,6 @@ public void setContents(Object[] data, Transfer[] transferAgents){ * @returns a platform specific list of the data types currently available on the * system clipboard */ - /* * Note: getAvailableTypeNames is a tool for writing a Transfer sub-class only. It should * NOT be used within an application because it provides platform specfic diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/DragSource.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/DragSource.java index 57b51c6dd7..ccd053b798 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/DragSource.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/DragSource.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd; /* - * (c) Copyright IBM Corp. 2000, 2001. + * (c) Copyright IBM Corp. 2000, 2001, 2002. * All Rights Reserved */ @@ -88,7 +88,6 @@ public final class DragSource extends Widget { * @see DND#DROP_MOVE * @see DND#DROP_LINK */ - public DragSource(Control control, int style) { super (control, style); } diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/DropTarget.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/DropTarget.java index aecb8d283a..71f5f2b4ae 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/DropTarget.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/DropTarget.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd; /* - * (c) Copyright IBM Corp. 2000, 2001. + * (c) Copyright IBM Corp. 2000, 2001, 2002. * All Rights Reserved */ @@ -76,7 +76,6 @@ public final class DropTarget extends Widget { * @see DND#DROP_MOVE * @see DND#DROP_LINK */ - public DropTarget(Control control, int style) { super(control, style); } @@ -112,7 +111,7 @@ public Display getDisplay () { * * @return the list of data types that can be transferred to this DropTarget * - */ + */ public Transfer[] getTransfer() { return null; } public void notifyListener (int eventType, Event event) {} /** diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/FileTransfer.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/FileTransfer.java index ba39b3ade9..2978bdc35c 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/FileTransfer.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/FileTransfer.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd; /* - * (c) Copyright IBM Corp. 2000, 2001. + * (c) Copyright IBM Corp. 2000, 2001, 2002. * All Rights Reserved */ @@ -11,7 +11,6 @@ package org.eclipse.swt.dnd; * platform specific representation of the data and vice versa. * See <code>Transfer</code> for additional information. */ - public class FileTransfer extends ByteArrayTransfer { private FileTransfer() {} diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/RTFTransfer.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/RTFTransfer.java index fc76ff7b1a..047851d8c0 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/RTFTransfer.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/RTFTransfer.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd; /* - * (c) Copyright IBM Corp. 2000, 2001. + * (c) Copyright IBM Corp. 2000, 2001, 2002. * All Rights Reserved */ @@ -17,7 +17,6 @@ package org.eclipse.swt.dnd; * String rtfData = "{\\rtf1{\\colortbl;\\red255\\green0\\blue0;}\\uc1\\b\\i Hello World}"; * </code></pre> */ - public class RTFTransfer extends ByteArrayTransfer { private static RTFTransfer _instance = new RTFTransfer(); diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/TableDragUnderEffect.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/TableDragUnderEffect.java index 4daef44c2d..6a660a16f8 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/TableDragUnderEffect.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/TableDragUnderEffect.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd; /* - * (c) Copyright IBM Corp. 2000, 2001. + * (c) Copyright IBM Corp. 2000, 2001, 2002. * All Rights Reserved */ diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/TextTransfer.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/TextTransfer.java index f92367ba05..491d8ac41b 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/TextTransfer.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/TextTransfer.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd; /* - * (c) Copyright IBM Corp. 2000, 2001. + * (c) Copyright IBM Corp. 2000, 2001, 2002. * All Rights Reserved */ @@ -11,7 +11,6 @@ package org.eclipse.swt.dnd; * to a platform specific representation of the data and vice versa. See * <code>Transfer</code> for additional information. */ - public class TextTransfer extends ByteArrayTransfer { private static TextTransfer _instance = new TextTransfer(); diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/Transfer.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/Transfer.java index bf4b88d5a6..93c05119b2 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/Transfer.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/Transfer.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd; /* - * (c) Copyright IBM Corp. 2000, 2001. + * (c) Copyright IBM Corp. 2000, 2001, 2002. * All Rights Reserved */ @@ -20,7 +20,6 @@ import org.eclipse.swt.widgets.Display; * * @see ByteArrayTransfer */ - public abstract class Transfer { /** * Returns a list of the platform specific data types that can be converted using diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/TransferData.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/TransferData.java index d36e392c0b..3441afb78a 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/TransferData.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/TransferData.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd; /* - * (c) Copyright IBM Corp. 2000, 2001. + * (c) Copyright IBM Corp. 2000, 2001, 2002. * All Rights Reserved */ @@ -19,7 +19,6 @@ package org.eclipse.swt.dnd; * are implementing a Transfer subclass and you are unable to subclass the * ByteArrayTransfer class.</p> */ - public class TransferData { /** * The type is a unique identifier of a system format or user defined format. diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/TreeDragUnderEffect.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/TreeDragUnderEffect.java index b75361f926..8ababa1bcc 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/TreeDragUnderEffect.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/TreeDragUnderEffect.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd; /* - * (c) Copyright IBM Corp. 2000, 2001. + * (c) Copyright IBM Corp. 2000, 2001, 2002. * All Rights Reserved */ diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/ByteArrayTransfer.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/ByteArrayTransfer.java index 954166f452..0790248fd8 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/ByteArrayTransfer.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/ByteArrayTransfer.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd; /* - * (c) Copyright IBM Corp. 2000, 2001. + * (c) Copyright IBM Corp. 2000, 2001, 2002. * All Rights Reserved */ @@ -19,7 +19,6 @@ package org.eclipse.swt.dnd; * <code>byte[]</code>, you should sub-class <code>Transfer</code> directly * and do your own mapping to a platform data type.</p> */ - public abstract class ByteArrayTransfer extends Transfer { public TransferData[] getSupportedTypes(){ return null; diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/Clipboard.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/Clipboard.java index 5e2396ac29..df42700225 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/Clipboard.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/Clipboard.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd; /* - * (c) Copyright IBM Corp. 2000, 2001. + * (c) Copyright IBM Corp. 2000, 2001, 2002. * All Rights Reserved */ @@ -14,7 +14,6 @@ import org.eclipse.swt.widgets.*; * * <p>IMPORTANT: This class is <em>not</em> intended to be subclassed.</p> */ - public class Clipboard { private Display display; diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/DragSource.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/DragSource.java index 27b5b336bf..ccd053b798 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/DragSource.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/DragSource.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd; /* - * (c) Copyright IBM Corp. 2000, 2001. + * (c) Copyright IBM Corp. 2000, 2001, 2002. * All Rights Reserved */ diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/DropTarget.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/DropTarget.java index 71d50a9366..71f5f2b4ae 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/DropTarget.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/DropTarget.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd; /* - * (c) Copyright IBM Corp. 2000, 2001. + * (c) Copyright IBM Corp. 2000, 2001, 2002. * All Rights Reserved */ @@ -111,7 +111,7 @@ public Display getDisplay () { * * @return the list of data types that can be transferred to this DropTarget * - */ + */ public Transfer[] getTransfer() { return null; } public void notifyListener (int eventType, Event event) {} /** diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/FileTransfer.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/FileTransfer.java index ba39b3ade9..2978bdc35c 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/FileTransfer.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/FileTransfer.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd; /* - * (c) Copyright IBM Corp. 2000, 2001. + * (c) Copyright IBM Corp. 2000, 2001, 2002. * All Rights Reserved */ @@ -11,7 +11,6 @@ package org.eclipse.swt.dnd; * platform specific representation of the data and vice versa. * See <code>Transfer</code> for additional information. */ - public class FileTransfer extends ByteArrayTransfer { private FileTransfer() {} diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/RTFTransfer.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/RTFTransfer.java index fc76ff7b1a..047851d8c0 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/RTFTransfer.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/RTFTransfer.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd; /* - * (c) Copyright IBM Corp. 2000, 2001. + * (c) Copyright IBM Corp. 2000, 2001, 2002. * All Rights Reserved */ @@ -17,7 +17,6 @@ package org.eclipse.swt.dnd; * String rtfData = "{\\rtf1{\\colortbl;\\red255\\green0\\blue0;}\\uc1\\b\\i Hello World}"; * </code></pre> */ - public class RTFTransfer extends ByteArrayTransfer { private static RTFTransfer _instance = new RTFTransfer(); diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/TableDragUnderEffect.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/TableDragUnderEffect.java index 4daef44c2d..6a660a16f8 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/TableDragUnderEffect.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/TableDragUnderEffect.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd; /* - * (c) Copyright IBM Corp. 2000, 2001. + * (c) Copyright IBM Corp. 2000, 2001, 2002. * All Rights Reserved */ diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/TextTransfer.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/TextTransfer.java index f92367ba05..491d8ac41b 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/TextTransfer.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/TextTransfer.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd; /* - * (c) Copyright IBM Corp. 2000, 2001. + * (c) Copyright IBM Corp. 2000, 2001, 2002. * All Rights Reserved */ @@ -11,7 +11,6 @@ package org.eclipse.swt.dnd; * to a platform specific representation of the data and vice versa. See * <code>Transfer</code> for additional information. */ - public class TextTransfer extends ByteArrayTransfer { private static TextTransfer _instance = new TextTransfer(); diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/Transfer.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/Transfer.java index bf4b88d5a6..93c05119b2 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/Transfer.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/Transfer.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd; /* - * (c) Copyright IBM Corp. 2000, 2001. + * (c) Copyright IBM Corp. 2000, 2001, 2002. * All Rights Reserved */ @@ -20,7 +20,6 @@ import org.eclipse.swt.widgets.Display; * * @see ByteArrayTransfer */ - public abstract class Transfer { /** * Returns a list of the platform specific data types that can be converted using diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/TransferData.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/TransferData.java index d36e392c0b..3441afb78a 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/TransferData.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/TransferData.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd; /* - * (c) Copyright IBM Corp. 2000, 2001. + * (c) Copyright IBM Corp. 2000, 2001, 2002. * All Rights Reserved */ @@ -19,7 +19,6 @@ package org.eclipse.swt.dnd; * are implementing a Transfer subclass and you are unable to subclass the * ByteArrayTransfer class.</p> */ - public class TransferData { /** * The type is a unique identifier of a system format or user defined format. diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/TreeDragUnderEffect.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/TreeDragUnderEffect.java index b75361f926..8ababa1bcc 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/TreeDragUnderEffect.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/TreeDragUnderEffect.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd; /* - * (c) Copyright IBM Corp. 2000, 2001. + * (c) Copyright IBM Corp. 2000, 2001, 2002. * All Rights Reserved */ diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/ByteArrayTransfer.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/ByteArrayTransfer.java index 5f59e8c249..ee0cfce83d 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/ByteArrayTransfer.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/ByteArrayTransfer.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd; /* - * (c) Copyright IBM Corp. 2000, 2001. + * (c) Copyright IBM Corp. 2000, 2001, 2002. * All Rights Reserved */ @@ -21,7 +21,6 @@ import org.eclipse.swt.internal.gtk.OS; * <code>byte[]</code>, you should sub-class <code>Transfer</code> directly * and do your own mapping to a platform data type.</p> */ - public abstract class ByteArrayTransfer extends Transfer { public TransferData[] getSupportedTypes(){ diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/Clipboard.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/Clipboard.java index c0676828a5..62aef89c62 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/Clipboard.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/Clipboard.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd; /* - * (c) Copyright IBM Corp. 2000, 2001. + * (c) Copyright IBM Corp. 2000, 2001, 2002. * All Rights Reserved */ @@ -17,7 +17,6 @@ import org.eclipse.swt.widgets.Display; * * <p>IMPORTANT: This class is <em>not</em> intended to be subclassed.</p> */ - public class Clipboard { Display display; diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DragSource.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DragSource.java index 27b5b336bf..ccd053b798 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DragSource.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DragSource.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd; /* - * (c) Copyright IBM Corp. 2000, 2001. + * (c) Copyright IBM Corp. 2000, 2001, 2002. * All Rights Reserved */ diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DropTarget.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DropTarget.java index 71d50a9366..d1e06f9dc0 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DropTarget.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DropTarget.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd; /* - * (c) Copyright IBM Corp. 2000, 2001. + * (c) Copyright IBM Corp. 2000, 2001, 2002. * All Rights Reserved */ @@ -98,7 +98,6 @@ public void addDropListener(DropTargetListener listener) { * user positions the cursor to drop the data. * * @return the Control which is registered for this DropTarget - * */ public Control getControl () { return null; @@ -110,8 +109,7 @@ public Display getDisplay () { * Returns the list of data types that can be transferred to this DropTarget. * * @return the list of data types that can be transferred to this DropTarget - * - */ + */ public Transfer[] getTransfer() { return null; } public void notifyListener (int eventType, Event event) {} /** diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/FileTransfer.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/FileTransfer.java index 12e72ddf2f..3a0ebe3714 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/FileTransfer.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/FileTransfer.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd; /* - * (c) Copyright IBM Corp. 2000, 2001. + * (c) Copyright IBM Corp. 2000, 2001, 2002. * All Rights Reserved */ import org.eclipse.swt.internal.Converter; @@ -12,7 +12,6 @@ import org.eclipse.swt.internal.Converter; * platform specific representation of the data and vice versa. * See <code>Transfer</code> for additional information. */ - public class FileTransfer extends ByteArrayTransfer { private static FileTransfer _instance = new FileTransfer(); diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/RTFTransfer.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/RTFTransfer.java index dbdc127dfd..52b3c0efba 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/RTFTransfer.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/RTFTransfer.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd; /* - * (c) Copyright IBM Corp. 2000, 2001. + * (c) Copyright IBM Corp. 2000, 2001, 2002. * All Rights Reserved */ @@ -19,7 +19,6 @@ import org.eclipse.swt.internal.Converter; * String rtfData = "{\\rtf1{\\colortbl;\\red255\\green0\\blue0;}\\uc1\\b\\i Hello World}"; * </code></pre> */ - public class RTFTransfer extends ByteArrayTransfer { private static RTFTransfer _instance = new RTFTransfer(); diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TextTransfer.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TextTransfer.java index 82849c7187..13647ec919 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TextTransfer.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TextTransfer.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd; /* - * (c) Copyright IBM Corp. 2000, 2001. + * (c) Copyright IBM Corp. 2000, 2001, 2002. * All Rights Reserved */ @@ -12,7 +12,6 @@ import org.eclipse.swt.internal.Converter; * to a platform specific representation of the data and vice versa. See * <code>Transfer</code> for additional information. */ - public class TextTransfer extends ByteArrayTransfer { private static TextTransfer _instance = new TextTransfer(); diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/Transfer.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/Transfer.java index 7ba12d5586..3e63146ebc 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/Transfer.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/Transfer.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd; /* - * (c) Copyright IBM Corp. 2000, 2001. + * (c) Copyright IBM Corp. 2000, 2001, 2002. * All Rights Reserved */ @@ -20,7 +20,6 @@ import org.eclipse.swt.internal.gtk.OS; * * @see ByteArrayTransfer */ - public abstract class Transfer { /** * Returns a list of the platform specific data types that can be converted using diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TransferData.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TransferData.java index d36e392c0b..3441afb78a 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TransferData.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/TransferData.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd; /* - * (c) Copyright IBM Corp. 2000, 2001. + * (c) Copyright IBM Corp. 2000, 2001, 2002. * All Rights Reserved */ @@ -19,7 +19,6 @@ package org.eclipse.swt.dnd; * are implementing a Transfer subclass and you are unable to subclass the * ByteArrayTransfer class.</p> */ - public class TransferData { /** * The type is a unique identifier of a system format or user defined format. diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/motif/org/eclipse/swt/dnd/ByteArrayTransfer.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/motif/org/eclipse/swt/dnd/ByteArrayTransfer.java index 1619ea08d2..68244b1f88 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/motif/org/eclipse/swt/dnd/ByteArrayTransfer.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/motif/org/eclipse/swt/dnd/ByteArrayTransfer.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -20,8 +20,7 @@ import org.eclipse.swt.internal.motif.OS; * <p>If the data you are converting <b>does not</b> map to a
* <code>byte[]</code>, you should sub-class <code>Transfer</code> directly
* and do your own mapping to a platform data type.</p>
- */
-
+ */ public abstract class ByteArrayTransfer extends Transfer {
public TransferData[] getSupportedTypes(){
int[] types = getTypeIds();
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/motif/org/eclipse/swt/dnd/Clipboard.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/motif/org/eclipse/swt/dnd/Clipboard.java index 036e5658a5..a6bba574ad 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/motif/org/eclipse/swt/dnd/Clipboard.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/motif/org/eclipse/swt/dnd/Clipboard.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -16,7 +16,6 @@ import org.eclipse.swt.widgets.*; *
* <p>IMPORTANT: This class is <em>not</em> intended to be subclassed.</p>
*/
-
public class Clipboard {
private Display display;
@@ -56,7 +55,7 @@ protected void checkSubclass () { *
* <p>NOTE: On some platforms the data will not be available once the application
* has exited or the display has been disposed.</p>
- */
+ */ public void dispose () {
if (shellHandle != 0) OS.XtDestroyWidget (shellHandle);
shellHandle = 0;
@@ -79,7 +78,7 @@ public void dispose () { * @param transfer the transfer agent for the type of data being requested
*
* @return the data obtained from the clipboard or null if no data of this type is available
- */
+ */ public Object getContents(Transfer transfer) {
if (display.isDisposed() ) return null;
int xDisplay = OS.XtDisplay (shellHandle);
@@ -176,7 +175,7 @@ public Object getContents(Transfer transfer) { * <li>ERROR_CANNOT_SET_CLIPBOARD - if the clipboard is locked or
* otherwise unavailable</li>
* </ul>
- */
+ */ public void setContents(Object[] data, Transfer[] dataTypes){
if (data == null || dataTypes == null || data.length != dataTypes.length) {
@@ -245,7 +244,7 @@ public void setContents(Object[] data, Transfer[] dataTypes){ *
* @returns a platform specific list of the data types currently available on the
* system clipboard
- */
+ */ /*
* Note: getAvailableTypeNames is a tool for writing a Transfer sub-class only. It should
* NOT be used within an application because it provides platform specfic
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/motif/org/eclipse/swt/dnd/DragSource.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/motif/org/eclipse/swt/dnd/DragSource.java index c4031c2367..9db2ea676f 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/motif/org/eclipse/swt/dnd/DragSource.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/motif/org/eclipse/swt/dnd/DragSource.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -74,7 +74,6 @@ import org.eclipse.swt.internal.motif.*; * <dt><b>Events</b> <dd>DND.DragEnd, DND.DragSetData
* </dl>
*/
-
public class DragSource extends Widget {
private Callback convertProc;
@@ -137,8 +136,7 @@ public DragSource(Control control, int style) { * <ul><li>ERROR_THREAD_INVALID_ACCESS when called from the wrong thread</li>
* <li>ERROR_WIDGET_DISPOSED when the widget has been disposed</li>
* <li>ERROR_NULL_ARGUMENT when listener is null</li></ul>
- */
-
+ */ public void addDragListener(DragSourceListener listener) {
if (listener == null) DND.error (SWT.ERROR_NULL_ARGUMENT);
DNDListener typedListener = new DNDListener (listener);
@@ -393,9 +391,6 @@ private int dropFinishCallback(int widget, int client_data, int call_data) { public Control getControl () {
return control;
}
-/**
-* Gets the Display.
-*/
public Display getDisplay () {
if (control == null) DND.error(SWT.ERROR_WIDGET_DISPOSED);
@@ -463,7 +458,7 @@ private int osOpToOp(byte osOperation){ * <ul><li>ERROR_THREAD_INVALID_ACCESS when called from the wrong thread</li>
* <li>ERROR_WIDGET_DISPOSED when the widget has been disposed</li>
* <li>ERROR_NULL_ARGUMENT when listener is null</li></ul>
- */
+ */ public void removeDragListener(DragSourceListener listener) {
if (listener == null) DND.error (SWT.ERROR_NULL_ARGUMENT);
removeListener (DND.DragStart, listener);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/motif/org/eclipse/swt/dnd/DropTarget.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/motif/org/eclipse/swt/dnd/DropTarget.java index f3b98b731f..b7268a60d1 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/motif/org/eclipse/swt/dnd/DropTarget.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/motif/org/eclipse/swt/dnd/DropTarget.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -62,7 +62,6 @@ import org.eclipse.swt.widgets.*; * DND.Drop, DND.DropAccept
* </dl>
*/
-
public class DropTarget extends Widget {
private Callback dropProc;
@@ -166,7 +165,7 @@ public DropTarget(Control control, int style) { * <ul><li>ERROR_THREAD_INVALID_ACCESS when called from the wrong thread</li>
* <li>ERROR_WIDGET_DISPOSED when the widget has been disposed</li>
* <li>ERROR_NULL_ARGUMENT when listener is null</li></ul>
- */
+ */ public void addDropListener(DropTargetListener listener) {
if (listener == null) DND.error (SWT.ERROR_NULL_ARGUMENT);
DNDListener typedListener = new DNDListener (listener);
@@ -459,7 +458,7 @@ private int dropProcCallback(int widget, int client_data, int call_data) { *
* @return the Control which is registered for this DropTarget
*
- */
+ */ public Control getControl () {
return control;
}
@@ -473,7 +472,7 @@ public Display getDisplay () { *
* @return the list of data types that can be transferred to this DropTarget
*
- */
+ */ public Transfer[] getTransfer(){
return transferAgents;
}
@@ -550,7 +549,7 @@ private void releaseDropInfo(){ * <ul><li>ERROR_THREAD_INVALID_ACCESS when called from the wrong thread</li>
* <li>ERROR_WIDGET_DISPOSED when the widget has been disposed</li>
* <li>ERROR_NULL_ARGUMENT when listener is null</li></ul>
- */
+ */ public void removeDropListener(DropTargetListener listener) {
if (listener == null) DND.error (SWT.ERROR_NULL_ARGUMENT);
removeListener (DND.DragEnter, listener);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/motif/org/eclipse/swt/dnd/FileTransfer.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/motif/org/eclipse/swt/dnd/FileTransfer.java index c6ca7c7cc9..9786380b6e 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/motif/org/eclipse/swt/dnd/FileTransfer.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/motif/org/eclipse/swt/dnd/FileTransfer.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
import org.eclipse.swt.internal.Converter;
@@ -11,8 +11,7 @@ import org.eclipse.swt.internal.Converter; * for converting a list of files represented as a java <code>String[]</code> to a
* platform specific representation of the data and vice versa.
* See <code>Transfer</code> for additional information.
- */
-
+ */ public class FileTransfer extends ByteArrayTransfer {
private static FileTransfer _instance = new FileTransfer();
@@ -24,7 +23,7 @@ private FileTransfer() {} * Returns the singleton instance of the FileTransfer class.
*
* @return the singleton instance of the FileTransfer class
- */
+ */ public static FileTransfer getInstance () {
return _instance;
}
@@ -39,7 +38,7 @@ public static FileTransfer getInstance () { * converted
* @param transferData an empty <code>TransferData</code> object; this
* object will be filled in on return with the platform specific format of the data
- */
+ */ public void javaToNative(Object object, TransferData transferData) {
if (object == null || !(object instanceof String[])) return;
// build a byte array from data
@@ -64,7 +63,7 @@ public void javaToNative(Object object, TransferData transferData) { * been converted
* @return a java <code>String[]</code> containing a list of file names if the
* conversion was successful; otherwise null
- */
+ */ public Object nativeToJava(TransferData transferData) {
byte[] data = (byte[])super.nativeToJava(transferData);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/motif/org/eclipse/swt/dnd/RTFTransfer.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/motif/org/eclipse/swt/dnd/RTFTransfer.java index e336b4f3dd..807ab4a824 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/motif/org/eclipse/swt/dnd/RTFTransfer.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/motif/org/eclipse/swt/dnd/RTFTransfer.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -18,8 +18,7 @@ import org.eclipse.swt.internal.Converter; * <code><pre>
* String rtfData = "{\\rtf1{\\colortbl;\\red255\\green0\\blue0;}\\uc1\\b\\i Hello World}";
* </code></pre>
- */
-
+ */ public class RTFTransfer extends ByteArrayTransfer {
private static RTFTransfer _instance = new RTFTransfer();
@@ -36,7 +35,7 @@ private RTFTransfer() { * Returns the singleton instance of the RTFTransfer class.
*
* @return the singleton instance of the RTFTransfer class
- */
+ */ public static RTFTransfer getInstance () {
return _instance;
}
@@ -48,7 +47,7 @@ public static RTFTransfer getInstance () { * @param object a java <code>String</code> containing RTF text
* @param transferData an empty <code>TransferData</code> object; this
* object will be filled in on return with the platform specific format of the data
- */
+ */ public void javaToNative (Object object, TransferData transferData){
if (object == null || !(object instanceof String)) return;
byte [] buffer = Converter.wcsToMbcs (null, (String)object, true);
@@ -63,7 +62,7 @@ public void javaToNative (Object object, TransferData transferData){ * been converted
* @return a java <code>String</code> containing RTF text if the
* conversion was successful; otherwise null
- */
+ */ public Object nativeToJava(TransferData transferData){
// get byte array from super
byte[] buffer = (byte[])super.nativeToJava(transferData);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/motif/org/eclipse/swt/dnd/TableDragUnderEffect.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/motif/org/eclipse/swt/dnd/TableDragUnderEffect.java index 7b9e962ca3..a7544523ab 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/motif/org/eclipse/swt/dnd/TableDragUnderEffect.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/motif/org/eclipse/swt/dnd/TableDragUnderEffect.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/motif/org/eclipse/swt/dnd/TextTransfer.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/motif/org/eclipse/swt/dnd/TextTransfer.java index ced4beafe6..6a5415e418 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/motif/org/eclipse/swt/dnd/TextTransfer.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/motif/org/eclipse/swt/dnd/TextTransfer.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -11,8 +11,7 @@ import org.eclipse.swt.internal.Converter; * for converting plain text represented as a java <code>String</code>
* to a platform specific representation of the data and vice versa. See
* <code>Transfer</code> for additional information.
- */
-
+ */ public class TextTransfer extends ByteArrayTransfer {
private static TextTransfer _instance = new TextTransfer();
@@ -31,7 +30,7 @@ private TextTransfer() { * Returns the singleton instance of the TextTransfer class.
*
* @return the singleton instance of the TextTransfer class
- */
+ */ public static TextTransfer getInstance () {
return _instance;
}
@@ -43,7 +42,7 @@ public static TextTransfer getInstance () { * @param object a java <code>String</code> containing text
* @param transferData an empty <code>TransferData</code> object; this
* object will be filled in on return with the platform specific format of the data
- */
+ */ public void javaToNative (Object object, TransferData transferData){
if (object == null || !(object instanceof String)) return;
byte [] buffer = Converter.wcsToMbcs (null, (String)object, true);
@@ -58,7 +57,7 @@ public void javaToNative (Object object, TransferData transferData){ * been converted
* @return a java <code>String</code> containing text if the
* conversion was successful; otherwise null
- */
+ */ public Object nativeToJava(TransferData transferData){
// get byte array from super
byte[] buffer = (byte[])super.nativeToJava(transferData);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/motif/org/eclipse/swt/dnd/Transfer.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/motif/org/eclipse/swt/dnd/Transfer.java index 1dce5f8f1f..cfc96bb5f7 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/motif/org/eclipse/swt/dnd/Transfer.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/motif/org/eclipse/swt/dnd/Transfer.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -20,8 +20,7 @@ import org.eclipse.swt.widgets.Display; * ByteArrayTransfer class.</p>
*
* @see ByteArrayTransfer
- */
-
+ */ public abstract class Transfer {
/**
* Returns a list of the platform specific data types that can be converted using
@@ -31,7 +30,7 @@ public abstract class Transfer { * in.</p>
*
* @return a list of the data types that can be converted using this transfer agent
- */
+ */ abstract public TransferData[] getSupportedTypes();
/**
* Returns true if the <code>TransferData</code> data type can be converted
@@ -42,7 +41,7 @@ abstract public TransferData[] getSupportedTypes(); *
* @return true if the transferData data type can be converted using this transfer
* agent
- */
+ */ abstract public boolean isSupportedType(TransferData transferData);
abstract protected String[] getTypeNames();
abstract protected int[] getTypeIds();
@@ -61,7 +60,7 @@ abstract protected Object nativeToJava(TransferData transferData); * @param formatName the name of a data type
*
* @return the unique identifier associated with htis data type
- */
+ */ public static int registerType(String formatName){
// Use default display because we don't have a particular widget
int xDisplay = Display.getDefault().xDisplay;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/motif/org/eclipse/swt/dnd/TransferData.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/motif/org/eclipse/swt/dnd/TransferData.java index cfb27f4650..a55c835b8e 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/motif/org/eclipse/swt/dnd/TransferData.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/motif/org/eclipse/swt/dnd/TransferData.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -18,8 +18,7 @@ package org.eclipse.swt.dnd; * <p>You should only need to become familiar with the fields in this class if you
* are implementing a Transfer subclass and you are unable to subclass the
* ByteArrayTransfer class.</p>
- */
- + */ public class TransferData {
/**
* The type is a unique identifier of a system format or user defined format.
@@ -36,7 +35,7 @@ public class TransferData { * The result field contains the result of converting a java data type into a
* stgmedium value.
* (Warning: This field is platform dependent)
- */
+ */ int result;
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/motif/org/eclipse/swt/dnd/TreeDragUnderEffect.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/motif/org/eclipse/swt/dnd/TreeDragUnderEffect.java index 4dc65a9ae6..2c2af0618c 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/motif/org/eclipse/swt/dnd/TreeDragUnderEffect.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/motif/org/eclipse/swt/dnd/TreeDragUnderEffect.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
import org.eclipse.swt.graphics.*;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/ByteArrayTransfer.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/ByteArrayTransfer.java index 34ee5391aa..dfaafaa5ae 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/ByteArrayTransfer.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/ByteArrayTransfer.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -20,8 +20,7 @@ import org.eclipse.swt.internal.photon.*; * <p>If the data you are converting <b>does not</b> map to a
* <code>byte[]</code>, you should sub-class <code>Transfer</code> directly
* and do your own mapping to a platform data type.</p>
- */
- + */ public abstract class ByteArrayTransfer extends Transfer {
public TransferData[] getSupportedTypes(){
int[] types = getTypeIds();
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/Clipboard.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/Clipboard.java index a20fd83919..7c555a19a0 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/Clipboard.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/Clipboard.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -15,8 +15,7 @@ import org.eclipse.swt.widgets.*; * application to another or within an application.
*
* <p>IMPORTANT: This class is <em>not</em> intended to be subclassed.</p>
- */
- + */ public class Clipboard {
private Display display;
@@ -50,7 +49,7 @@ protected void checkSubclass () { *
* <p>NOTE: On some platforms the data will not be available once the application
* has exited or the display has been disposed.</p>
- */
+ */ public void dispose () {
display = null;
}
@@ -71,7 +70,7 @@ public void dispose () { * @param transfer the transfer agent for the type of data being requested
*
* @return the data obtained from the clipboard or null if no data of this type is available
- */
+ */ public Object getContents(Transfer transfer) {
if (display.isDisposed() ) return null;
@@ -139,7 +138,7 @@ public Object getContents(Transfer transfer) { * <li>ERROR_CANNOT_SET_CLIPBOARD - if the clipboard is locked or
* otherwise unavailable</li>
* </ul>
- */
+ */ public void setContents(Object[] data, Transfer[] transferAgents){
if (display.isDisposed() ) return;
@@ -206,7 +205,7 @@ public void setContents(Object[] data, Transfer[] transferAgents){ *
* @returns a platform specific list of the data types currently available on the
* system clipboard
- */
+ */ /*
* Note: getAvailableTypeNames is a tool for writing a Transfer sub-class only. It should
* NOT be used within an application because it provides platform specfic
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/DragSource.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/DragSource.java index 08ee73c2d3..19f8182ef8 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/DragSource.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/DragSource.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -73,7 +73,7 @@ import org.eclipse.swt.internal.photon.*; * <dt><b>Styles</b> <dd>DND.DROP_NONE, DND.DROP_COPY, DND.DROP_MOVE, DND.DROP_LINK
* <dt><b>Events</b> <dd>DND.DragEnd, DND.DragSetData
* </dl>
- */
+ */
public class DragSource extends Widget {
private Callback convertProc;
@@ -138,7 +138,7 @@ public DragSource(Control control, int style) { * <ul><li>ERROR_THREAD_INVALID_ACCESS when called from the wrong thread</li>
* <li>ERROR_WIDGET_DISPOSED when the widget has been disposed</li>
* <li>ERROR_NULL_ARGUMENT when listener is null</li></ul>
- */
+ */ public void addDragListener(DragSourceListener listener) {
if (listener == null) DND.error (SWT.ERROR_NULL_ARGUMENT);
DNDListener typedListener = new DNDListener (listener);
@@ -164,9 +164,6 @@ static int checkStyle (int style) { public Control getControl () {
return control;
}
-/**
-* Gets the Display.
-*/
public Display getDisplay () {
if (control == null) DND.error(SWT.ERROR_WIDGET_DISPOSED);
@@ -192,7 +189,7 @@ public Transfer[] getTransfer(){ * <ul><li>ERROR_THREAD_INVALID_ACCESS when called from the wrong thread</li>
* <li>ERROR_WIDGET_DISPOSED when the widget has been disposed</li>
* <li>ERROR_NULL_ARGUMENT when listener is null</li></ul>
- */
+ */ public void removeDragListener(DragSourceListener listener) {
if (listener == null) DND.error (SWT.ERROR_NULL_ARGUMENT);
removeListener (DND.DragStart, listener);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/DropTarget.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/DropTarget.java index ea6960e34f..021cd4b36b 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/DropTarget.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/DropTarget.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -61,7 +61,7 @@ import org.eclipse.swt.internal.photon.*; * <dt><b>Events</b> <dd>DND.DragEnter, DND.DragLeave, DND.DragOver, DND.DragOperationChanged,
* DND.Drop, DND.DropAccept
* </dl>
- */
+ */
public class DropTarget extends Widget {
private Callback dropProc;
@@ -131,7 +131,7 @@ public DropTarget(Control control, int style) { * <ul><li>ERROR_THREAD_INVALID_ACCESS when called from the wrong thread</li>
* <li>ERROR_WIDGET_DISPOSED when the widget has been disposed</li>
* <li>ERROR_NULL_ARGUMENT when listener is null</li></ul>
- */
+ */ public void addDropListener(DropTargetListener listener) {
if (listener == null) DND.error (SWT.ERROR_NULL_ARGUMENT);
DNDListener typedListener = new DNDListener (listener);
@@ -154,8 +154,7 @@ static int checkStyle (int style) { * user positions the cursor to drop the data.
*
* @return the Control which is registered for this DropTarget
- *
- */
+ */ public Control getControl () {
return control;
}
@@ -168,8 +167,7 @@ public Display getDisplay () { * Returns the list of data types that can be transferred to this DropTarget.
*
* @return the list of data types that can be transferred to this DropTarget
- *
- */
+ */
public Transfer[] getTransfer(){
return transferAgents;
}
@@ -194,7 +192,7 @@ public void notifyListeners (int eventType, Event event) { * <ul><li>ERROR_THREAD_INVALID_ACCESS when called from the wrong thread</li>
* <li>ERROR_WIDGET_DISPOSED when the widget has been disposed</li>
* <li>ERROR_NULL_ARGUMENT when listener is null</li></ul>
- */
+ */ public void removeDropListener(DropTargetListener listener) {
if (listener == null) DND.error (SWT.ERROR_NULL_ARGUMENT);
removeListener (DND.DragEnter, listener);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/FileTransfer.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/FileTransfer.java index 4460c1cd13..672d366230 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/FileTransfer.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/FileTransfer.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
import org.eclipse.swt.internal.Converter;
@@ -11,8 +11,7 @@ import org.eclipse.swt.internal.Converter; * for converting a list of files represented as a java <code>String[]</code> to a
* platform specific representation of the data and vice versa.
* See <code>Transfer</code> for additional information.
- */
-
+ */ public class FileTransfer extends ByteArrayTransfer {
private static FileTransfer _instance = new FileTransfer();
@@ -24,7 +23,7 @@ private FileTransfer() {} * Returns the singleton instance of the FileTransfer class.
*
* @return the singleton instance of the FileTransfer class
- */
+ */ public static FileTransfer getInstance () {
return _instance;
}
@@ -39,7 +38,7 @@ public static FileTransfer getInstance () { * converted
* @param transferData an empty <code>TransferData</code> object; this
* object will be filled in on return with the platform specific format of the data
- */
+ */ public void javaToNative(Object object, TransferData transferData) {
if (object == null || !(object instanceof String[])) return;
// build a byte array from data
@@ -64,7 +63,7 @@ public void javaToNative(Object object, TransferData transferData) { * been converted
* @return a java <code>String[]</code> containing a list of file names if the
* conversion was successful; otherwise null
- */
+ */ public Object nativeToJava(TransferData transferData) {
byte[] data = (byte[])super.nativeToJava(transferData);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/RTFTransfer.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/RTFTransfer.java index 6f4acda572..b6c21337b0 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/RTFTransfer.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/RTFTransfer.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -19,8 +19,7 @@ import org.eclipse.swt.internal.photon.OS; * <code><pre>
* String rtfData = "{\\rtf1{\\colortbl;\\red255\\green0\\blue0;}\\uc1\\b\\i Hello World}";
* </code></pre>
- */
- + */ public class RTFTransfer extends ByteArrayTransfer {
private static RTFTransfer _instance = new RTFTransfer();
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/TableDragUnderEffect.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/TableDragUnderEffect.java index d9e566bb5d..d20d1c78ca 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/TableDragUnderEffect.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/TableDragUnderEffect.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/TextTransfer.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/TextTransfer.java index 16132ed3c4..4dbd1ff8c9 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/TextTransfer.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/TextTransfer.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -13,8 +13,7 @@ import org.eclipse.swt.internal.photon.OS; * for converting plain text represented as a java <code>String</code>
* to a platform specific representation of the data and vice versa. See
* <code>Transfer</code> for additional information.
- */
- + */ public class TextTransfer extends ByteArrayTransfer {
private static TextTransfer _instance = new TextTransfer();
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/Transfer.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/Transfer.java index 790834f66f..b714a49dc1 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/Transfer.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/Transfer.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -16,8 +16,7 @@ package org.eclipse.swt.dnd; * ByteArrayTransfer class.</p>
*
* @see ByteArrayTransfer
- */
- + */ public abstract class Transfer {
/**
* Returns a list of the platform specific data types that can be converted using
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/TransferData.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/TransferData.java index 9d5476f844..db6e7ed0fa 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/TransferData.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/TransferData.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -18,8 +18,7 @@ package org.eclipse.swt.dnd; * <p>You should only need to become familiar with the fields in this class if you
* are implementing a Transfer subclass and you are unable to subclass the
* ByteArrayTransfer class.</p>
- */
- + */ public class TransferData {
/**
* The type is a unique identifier of a system format or user defined format.
@@ -34,6 +33,6 @@ public class TransferData { * The result field contains the result of converting a java data type into a
* stgmedium value.
* (Warning: This field is platform dependent)
- */
+ */ int result;
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/TreeDragUnderEffect.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/TreeDragUnderEffect.java index d37961bda1..62a730ad1f 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/TreeDragUnderEffect.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/photon/org/eclipse/swt/dnd/TreeDragUnderEffect.java @@ -1,7 +1,7 @@ package org.eclipse.swt.dnd;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Printing/carbon/org/eclipse/swt/printing/PrintDialog.java b/bundles/org.eclipse.swt/Eclipse SWT Printing/carbon/org/eclipse/swt/printing/PrintDialog.java index a7c6daf358..acca016917 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Printing/carbon/org/eclipse/swt/printing/PrintDialog.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Printing/carbon/org/eclipse/swt/printing/PrintDialog.java @@ -1,7 +1,7 @@ package org.eclipse.swt.printing; /* - * (c) Copyright IBM Corp. 2000, 2001. + * (c) Copyright IBM Corp. 2000, 2001, 2002. * All Rights Reserved */ @@ -19,7 +19,6 @@ import org.eclipse.swt.widgets.*; * within the SWT implementation. * </p> */ - public class PrintDialog extends Dialog { int scope = PrinterData.ALL_PAGES; int startPage = -1, endPage = -1; diff --git a/bundles/org.eclipse.swt/Eclipse SWT Printing/carbon/org/eclipse/swt/printing/Printer.java b/bundles/org.eclipse.swt/Eclipse SWT Printing/carbon/org/eclipse/swt/printing/Printer.java index f92515a1c5..a595aadf00 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Printing/carbon/org/eclipse/swt/printing/Printer.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Printing/carbon/org/eclipse/swt/printing/Printer.java @@ -1,7 +1,7 @@ package org.eclipse.swt.printing; /* - * (c) Copyright IBM Corp. 2000, 2001. + * (c) Copyright IBM Corp. 2000, 2001, 2002. * All Rights Reserved */ diff --git a/bundles/org.eclipse.swt/Eclipse SWT Printing/gtk/org/eclipse/swt/printing/PrintDialog.java b/bundles/org.eclipse.swt/Eclipse SWT Printing/gtk/org/eclipse/swt/printing/PrintDialog.java index 15029c003e..36889b5c17 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Printing/gtk/org/eclipse/swt/printing/PrintDialog.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Printing/gtk/org/eclipse/swt/printing/PrintDialog.java @@ -1,7 +1,7 @@ package org.eclipse.swt.printing;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -18,8 +18,7 @@ import org.eclipse.swt.internal.gtk.*; * IMPORTANT: This class is intended to be subclassed <em>only</em>
* within the SWT implementation.
* </p>
- */
- + */ public class PrintDialog extends Dialog {
int scope = PrinterData.ALL_PAGES;
int startPage = -1, endPage = -1;
@@ -41,8 +40,7 @@ public class PrintDialog extends Dialog { * @see SWT
* @see Widget#checkSubclass
* @see Widget#getStyle
- */
- + */ public PrintDialog (Shell parent) {
this (parent, SWT.PRIMARY_MODAL);
}
@@ -73,8 +71,7 @@ public PrintDialog (Shell parent) { * @see SWT
* @see Widget#checkSubclass
* @see Widget#getStyle
- */
- + */ public PrintDialog (Shell parent, int style) {
super (parent, style);
checkSubclass ();
@@ -89,8 +86,7 @@ public PrintDialog (Shell parent, int style) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
- + */ public PrinterData open() {
/* Return the first printer in the list */
PrinterData[] printers = Printer.getPrinterList();
@@ -111,8 +107,7 @@ public PrinterData open() { * </dl>
*
* @return the scope setting that the user selected
- */
- + */ public int getScope() {
return scope;
}
@@ -130,8 +125,7 @@ public int getScope() { * </dl>
*
* @param int the scope setting when the dialog is opened
- */
- + */ public void setScope(int scope) {
this.scope = scope;
}
@@ -143,8 +137,7 @@ public void setScope(int scope) { * </p>
*
* @return the start page setting that the user selected
- */
- + */ public int getStartPage() {
return startPage;
}
@@ -153,8 +146,7 @@ public int getStartPage() { * is opened.
*
* @param int the startPage setting when the dialog is opened
- */
- + */ public void setStartPage(int startPage) {
this.startPage = startPage;
}
@@ -166,8 +158,7 @@ public void setStartPage(int startPage) { * </p>
*
* @return the end page setting that the user selected
- */
- + */ public int getEndPage() {
return endPage;
}
@@ -176,8 +167,7 @@ public int getEndPage() { * is opened.
*
* @param int the end page setting when the dialog is opened
- */
- + */ public void setEndPage(int endPage) {
this.endPage = endPage;
}
@@ -186,8 +176,7 @@ public void setEndPage(int endPage) { * before pressing OK in the dialog.
*
* @return the 'Print to file' setting that the user selected
- */
- + */ public boolean getPrintToFile() {
return printToFile;
}
@@ -196,8 +185,7 @@ public boolean getPrintToFile() { * when the dialog is opened.
*
* @param boolean the 'Print to file' setting when the dialog is opened
- */
- + */ public void setPrintToFile(boolean printToFile) {
this.printToFile = printToFile;
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Printing/gtk/org/eclipse/swt/printing/Printer.java b/bundles/org.eclipse.swt/Eclipse SWT Printing/gtk/org/eclipse/swt/printing/Printer.java index e203c1a679..2553986506 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Printing/gtk/org/eclipse/swt/printing/Printer.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Printing/gtk/org/eclipse/swt/printing/Printer.java @@ -1,7 +1,7 @@ package org.eclipse.swt.printing;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -300,7 +300,7 @@ public Rectangle computeTrim(int x, int y, int width, int height) { * target printer for this print job.
*
* @return a PrinterData object describing the receiver
- */
+ */ public PrinterData getPrinterData() {
return data;
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Printing/motif/org/eclipse/swt/printing/PrintDialog.java b/bundles/org.eclipse.swt/Eclipse SWT Printing/motif/org/eclipse/swt/printing/PrintDialog.java index c192a89bdf..ba3ce13deb 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT Printing/motif/org/eclipse/swt/printing/PrintDialog.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Printing/motif/org/eclipse/swt/printing/PrintDialog.java @@ -1,7 +1,7 @@ package org.eclipse.swt.printing;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -18,8 +18,7 @@ import org.eclipse.swt.internal.motif.*; * IMPORTANT: This class is intended to be subclassed <em>only</em>
* within the SWT implementation.
* </p>
- */
- + */ public class PrintDialog extends Dialog {
int scope = PrinterData.ALL_PAGES;
int startPage = -1, endPage = -1;
@@ -41,8 +40,7 @@ public class PrintDialog extends Dialog { * @see SWT
* @see Widget#checkSubclass
* @see Widget#getStyle
- */
- + */ public PrintDialog (Shell parent) {
this (parent, SWT.PRIMARY_MODAL);
}
@@ -73,8 +71,7 @@ public PrintDialog (Shell parent) { * @see SWT
* @see Widget#checkSubclass
* @see Widget#getStyle
- */
- + */ public PrintDialog (Shell parent, int style) {
super (parent, style);
checkSubclass ();
@@ -89,8 +86,7 @@ public PrintDialog (Shell parent, int style) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
- + */ public PrinterData open() {
/* Return the first printer in the list */
PrinterData[] printers = Printer.getPrinterList();
@@ -111,8 +107,7 @@ public PrinterData open() { * </dl>
*
* @return the scope setting that the user selected
- */
- + */ public int getScope() {
return scope;
}
@@ -130,8 +125,7 @@ public int getScope() { * </dl>
*
* @param int the scope setting when the dialog is opened
- */
- + */ public void setScope(int scope) {
this.scope = scope;
}
@@ -143,8 +137,7 @@ public void setScope(int scope) { * </p>
*
* @return the start page setting that the user selected
- */
- + */ public int getStartPage() {
return startPage;
}
@@ -153,8 +146,7 @@ public int getStartPage() { * is opened.
*
* @param int the startPage setting when the dialog is opened
- */
- + */ public void setStartPage(int startPage) {
this.startPage = startPage;
}
@@ -166,8 +158,7 @@ public void setStartPage(int startPage) { * </p>
*
* @return the end page setting that the user selected
- */
- + */ public int getEndPage() {
return endPage;
}
@@ -176,8 +167,7 @@ public int getEndPage() { * is opened.
*
* @param int the end page setting when the dialog is opened
- */
- + */ public void setEndPage(int endPage) {
this.endPage = endPage;
}
@@ -186,8 +176,7 @@ public void setEndPage(int endPage) { * before pressing OK in the dialog.
*
* @return the 'Print to file' setting that the user selected
- */
- + */ public boolean getPrintToFile() {
return printToFile;
}
@@ -196,8 +185,7 @@ public boolean getPrintToFile() { * when the dialog is opened.
*
* @param boolean the 'Print to file' setting when the dialog is opened
- */
- + */ public void setPrintToFile(boolean printToFile) {
this.printToFile = printToFile;
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Printing/motif/org/eclipse/swt/printing/Printer.java b/bundles/org.eclipse.swt/Eclipse SWT Printing/motif/org/eclipse/swt/printing/Printer.java index b93bc858b3..7ce3e3e1a9 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT Printing/motif/org/eclipse/swt/printing/Printer.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Printing/motif/org/eclipse/swt/printing/Printer.java @@ -1,7 +1,7 @@ package org.eclipse.swt.printing;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -500,7 +500,7 @@ public Rectangle computeTrim(int x, int y, int width, int height) { * target printer for this print job.
*
* @return a PrinterData object describing the receiver
- */
+ */ public PrinterData getPrinterData() {
return data;
}
@@ -524,7 +524,7 @@ public PrinterData getPrinterData() { * @exception SWTException <ul>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public Font getSystemFont () {
checkDevice ();
return defaultFont;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Printing/photon/org/eclipse/swt/printing/PrintDialog.java b/bundles/org.eclipse.swt/Eclipse SWT Printing/photon/org/eclipse/swt/printing/PrintDialog.java index 251f099a02..2f6c8dd6f6 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT Printing/photon/org/eclipse/swt/printing/PrintDialog.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Printing/photon/org/eclipse/swt/printing/PrintDialog.java @@ -1,7 +1,7 @@ package org.eclipse.swt.printing;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -18,8 +18,7 @@ import org.eclipse.swt.internal.photon.*; * IMPORTANT: This class is intended to be subclassed <em>only</em>
* within the SWT implementation.
* </p>
- */
- + */ public class PrintDialog extends Dialog {
int scope = PrinterData.ALL_PAGES;
int startPage = -1, endPage = -1;
@@ -41,8 +40,7 @@ public class PrintDialog extends Dialog { * @see SWT
* @see Widget#checkSubclass
* @see Widget#getStyle
- */
- + */ public PrintDialog (Shell parent) {
this (parent, SWT.PRIMARY_MODAL);
}
@@ -73,8 +71,7 @@ public PrintDialog (Shell parent) { * @see SWT
* @see Widget#checkSubclass
* @see Widget#getStyle
- */
- + */ public PrintDialog (Shell parent, int style) {
super (parent, style);
checkSubclass ();
@@ -89,8 +86,7 @@ public PrintDialog (Shell parent, int style) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
- + */ public PrinterData open() {
/* Return the first printer in the list */
PrinterData[] printers = Printer.getPrinterList();
@@ -111,8 +107,7 @@ public PrinterData open() { * </dl>
*
* @return the scope setting that the user selected
- */
- + */ public int getScope() {
return scope;
}
@@ -130,8 +125,7 @@ public int getScope() { * </dl>
*
* @param int the scope setting when the dialog is opened
- */
- + */ public void setScope(int scope) {
this.scope = scope;
}
@@ -143,8 +137,7 @@ public void setScope(int scope) { * </p>
*
* @return the start page setting that the user selected
- */
- + */ public int getStartPage() {
return startPage;
}
@@ -153,8 +146,7 @@ public int getStartPage() { * is opened.
*
* @param int the startPage setting when the dialog is opened
- */
- + */ public void setStartPage(int startPage) {
this.startPage = startPage;
}
@@ -166,8 +158,7 @@ public void setStartPage(int startPage) { * </p>
*
* @return the end page setting that the user selected
- */
- + */ public int getEndPage() {
return endPage;
}
@@ -176,8 +167,7 @@ public int getEndPage() { * is opened.
*
* @param int the end page setting when the dialog is opened
- */
- + */ public void setEndPage(int endPage) {
this.endPage = endPage;
}
@@ -186,8 +176,7 @@ public void setEndPage(int endPage) { * before pressing OK in the dialog.
*
* @return the 'Print to file' setting that the user selected
- */
- + */ public boolean getPrintToFile() {
return printToFile;
}
@@ -196,8 +185,7 @@ public boolean getPrintToFile() { * when the dialog is opened.
*
* @param boolean the 'Print to file' setting when the dialog is opened
- */
- + */ public void setPrintToFile(boolean printToFile) {
this.printToFile = printToFile;
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Printing/photon/org/eclipse/swt/printing/Printer.java b/bundles/org.eclipse.swt/Eclipse SWT Printing/photon/org/eclipse/swt/printing/Printer.java index 575c07297a..96c36cc038 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT Printing/photon/org/eclipse/swt/printing/Printer.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Printing/photon/org/eclipse/swt/printing/Printer.java @@ -1,7 +1,7 @@ package org.eclipse.swt.printing;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -300,7 +300,7 @@ public Rectangle computeTrim(int x, int y, int width, int height) { * target printer for this print job.
*
* @return a PrinterData object describing the receiver
- */
+ */ public PrinterData getPrinterData() {
return data;
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Program/carbon/org/eclipse/swt/program/Program.java b/bundles/org.eclipse.swt/Eclipse SWT Program/carbon/org/eclipse/swt/program/Program.java index 5687a71c0f..8b3a24e206 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Program/carbon/org/eclipse/swt/program/Program.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Program/carbon/org/eclipse/swt/program/Program.java @@ -1,7 +1,7 @@ package org.eclipse.swt.program; /* - * (c) Copyright IBM Corp. 2000, 2001. + * (c) Copyright IBM Corp. 2000, 2001, 2002. * All Rights Reserved */ diff --git a/bundles/org.eclipse.swt/Eclipse SWT Program/gtk/org/eclipse/swt/program/Program.java b/bundles/org.eclipse.swt/Eclipse SWT Program/gtk/org/eclipse/swt/program/Program.java index 04cf611eaa..e2c564a151 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Program/gtk/org/eclipse/swt/program/Program.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Program/gtk/org/eclipse/swt/program/Program.java @@ -1,7 +1,7 @@ package org.eclipse.swt.program; /* - * (c) Copyright IBM Corp. 2000, 2001. + * (c) Copyright IBM Corp. 2000, 2001, 2002. * All Rights Reserved */ diff --git a/bundles/org.eclipse.swt/Eclipse SWT Program/motif/org/eclipse/swt/program/Program.java b/bundles/org.eclipse.swt/Eclipse SWT Program/motif/org/eclipse/swt/program/Program.java index ae61927a3a..30cf85cf11 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT Program/motif/org/eclipse/swt/program/Program.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Program/motif/org/eclipse/swt/program/Program.java @@ -1,7 +1,7 @@ package org.eclipse.swt.program; /* - * (c) Copyright IBM Corp. 2000, 2001. + * (c) Copyright IBM Corp. 2000, 2001, 2002. * All Rights Reserved */ diff --git a/bundles/org.eclipse.swt/Eclipse SWT Program/photon/org/eclipse/swt/program/Program.java b/bundles/org.eclipse.swt/Eclipse SWT Program/photon/org/eclipse/swt/program/Program.java index f78397b888..cc1cc0b82d 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT Program/photon/org/eclipse/swt/program/Program.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Program/photon/org/eclipse/swt/program/Program.java @@ -1,7 +1,7 @@ package org.eclipse.swt.program;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -16,7 +16,7 @@ import java.io.*; * Instances of this class represent programs and
* their assoicated file extensions in the operating
* system.
- */
+ */ public final class Program {
String name;
String extension;
@@ -24,7 +24,7 @@ public final class Program { /**
* Prevents uninitialized instances from being created outside the package.
- */
+ */ Program () {
}
@@ -38,7 +38,7 @@ Program () { * @exception SWTError <ul>
* <li>ERROR_NULL_ARGUMENT when extension is null</li>
* </ul>
- */
+ */ public static Program findProgram (String extension) {
if (extension == null) SWT.error (SWT.ERROR_NULL_ARGUMENT);
if (extension.length () == 0) return null;
@@ -72,7 +72,7 @@ public static Program findProgram (String extension) { * Answer all program extensions in the operating system.
*
* @return an array of extensions
- */
+ */ public static String [] getExtensions () {
String[][] table = loadAssociationTable ();
if (table == null) return new String [0];
@@ -105,7 +105,7 @@ public static String [] getExtensions () { * Answers all available programs in the operating system.
*
* @return an array of programs
- */
+ */ public static Program [] getPrograms () {
String[][] table = loadAssociationTable ();
if (table == null) return new Program [0];
@@ -154,7 +154,7 @@ public static Program [] getPrograms () { * @exception SWTError <ul>
* <li>ERROR_NULL_ARGUMENT when fileName is null</li>
* </ul>
- */
+ */ public static boolean launch (String fileName) {
if (fileName == null) SWT.error (SWT.ERROR_NULL_ARGUMENT);
int index = fileName.lastIndexOf ('.');
@@ -261,7 +261,7 @@ static String [][] loadAssociationTable () { * @exception SWTError <ul> * <li>ERROR_NULL_ARGUMENT when fileName is null</li> * </ul> - */
+ */ public boolean execute (String fileName) {
if (fileName == null) SWT.error (SWT.ERROR_NULL_ARGUMENT);
int index = -1;
@@ -294,7 +294,7 @@ public boolean execute (String fileName) { * system.
*
* @return the image data for the program, may be null
- */
+ */ public ImageData getImageData () {
return null;
}
@@ -306,7 +306,7 @@ public ImageData getImageData () { * be the executable name, path or empty.
*
* @return an the name of the program
- */
+ */ public String getName () {
return name;
}
@@ -316,7 +316,7 @@ public String getName () { * the same program.
*
* @return true if the programs are the same
- */
+ */ public boolean equals(Object other) {
if (this == other) return true;
if (other instanceof Program) {
@@ -331,7 +331,7 @@ public boolean equals(Object other) { * Returns a hash code suitable for this object.
*
* @return a hash code
- */
+ */ public int hashCode() {
return extension.hashCode() ^ name.hashCode() ^ command.hashCode();
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Button.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Button.java index d1f9963a93..0640217c09 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Button.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Button.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -33,8 +33,7 @@ import org.eclipse.swt.events.*; * IMPORTANT: This class is intended to be subclassed <em>only</em> * within the SWT implementation. * </p> - */
-
+ */ public class Button extends Control {
Image image, bitmap, disabled;
static final byte [] ARM_AND_ACTIVATE;
@@ -84,7 +83,7 @@ public class Button extends Control { * @see SWT#CENTER * @see Widget#checkSubclass * @see Widget#getStyle - */
+ */ public Button (Composite parent, int style) {
super (parent, checkStyle (style));
}
@@ -111,7 +110,7 @@ public Button (Composite parent, int style) { * @see SelectionListener
* @see #removeSelectionListener
* @see SelectionEvent
- */
+ */ public void addSelectionListener(SelectionListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -135,9 +134,6 @@ static int checkStyle (int style) { void click () {
OS.XtCallActionProc (handle, ARM_AND_ACTIVATE, new XAnyEvent (), null, 0);
}
-/**
-* Computes the preferred size.
-*/
public Point computeSize (int wHint, int hHint, boolean changed) {
checkWidget();
int border = getBorderWidth ();
@@ -157,12 +153,12 @@ public Point computeSize (int wHint, int hHint, boolean changed) { OS.XtSetValues(handle, argList3, argList3.length / 2);
width += result.width;
height += result.height;
- /**
+ /*
* Feature in Motif. If a button's labelType is XmSTRING but it
* has no label set into it yet, recomputing the size will
* not take into account the height of the font, as we would
* like it to. Take care of this case.
- */
+ */ int [] argList = {OS.XmNlabelType, 0};
OS.XtGetValues (handle, argList, argList.length / 2);
if (argList [1] == OS.XmSTRING) {
@@ -312,7 +308,7 @@ int defaultForeground () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> - */
+ */ public int getAlignment () {
checkWidget();
if ((style & SWT.ARROW) != 0) {
@@ -349,7 +345,7 @@ boolean getDefault () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public Image getImage () {
checkWidget();
return image;
@@ -372,7 +368,7 @@ String getNameText () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> - */
+ */ public boolean getSelection () {
checkWidget();
if ((style & (SWT.CHECK | SWT.RADIO | SWT.TOGGLE)) == 0) return false;
@@ -390,7 +386,7 @@ public boolean getSelection () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public String getText () {
checkWidget();
if ((style & SWT.ARROW) != 0) return "";
@@ -514,7 +510,7 @@ void releaseWidget () { *
* @see SelectionListener
* @see #addSelectionListener
- */
+ */ public void removeSelectionListener(SelectionListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -553,7 +549,7 @@ void selectRadio () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> - */
+ */ public void setAlignment (int alignment) {
checkWidget();
if ((style & SWT.ARROW) != 0) {
@@ -634,7 +630,7 @@ void setDefault (boolean value) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setImage (Image image) {
checkWidget();
setBitmap (this.image = image);
@@ -654,7 +650,7 @@ public void setImage (Image image) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> - */
+ */ public void setSelection (boolean selected) {
checkWidget();
if ((style & (SWT.CHECK | SWT.RADIO | SWT.TOGGLE)) == 0) return;
@@ -677,7 +673,7 @@ public void setSelection (boolean selected) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setText (String string) {
checkWidget();
if (string == null) error (SWT.ERROR_NULL_ARGUMENT);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Canvas.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Canvas.java index 02afe7f709..bdbf82aae3 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Canvas.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Canvas.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -27,7 +27,7 @@ import org.eclipse.swt.graphics.*; * </p>
*
* @see Composite
- */
+ */ public class Canvas extends Composite {
Caret caret;
@@ -61,7 +61,7 @@ Canvas () { * @see SWT * @see Widget#checkSubclass * @see Widget#getStyle - */
+ */ public Canvas (Composite parent, int style) {
super (parent, style);
}
@@ -82,7 +82,7 @@ public Canvas (Composite parent, int style) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public Caret getCaret () {
checkWidget();
return caret;
@@ -150,7 +150,7 @@ void releaseWidget () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void scroll (int destX, int destY, int x, int y, int width, int height, boolean all) {
checkWidget();
if (width <= 0 || height <= 0) return;
@@ -215,7 +215,7 @@ public void scroll (int destX, int destY, int x, int y, int width, int height, b * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setCaret (Caret caret) {
checkWidget();
Caret newCaret = caret;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Caret.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Caret.java index 68f6ef76e9..e79f1f1cff 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Caret.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Caret.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -22,8 +22,7 @@ import org.eclipse.swt.graphics.*; * IMPORTANT: This class is intended to be subclassed <em>only</em>
* within the SWT implementation.
* </p>
- */
-
+ */ public class Caret extends Widget {
Canvas parent;
Image image;
@@ -58,7 +57,7 @@ public class Caret extends Widget { * @see SWT * @see Widget#checkSubclass * @see Widget#getStyle - */
+ */ public Caret (Canvas parent, int style) {
super (parent, style);
this.parent = parent;
@@ -113,7 +112,7 @@ boolean drawCaret () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public Rectangle getBounds () {
checkWidget();
if (image != null) {
@@ -122,9 +121,6 @@ public Rectangle getBounds () { }
return new Rectangle (x, y, width, height);
}
-/**
-* Gets the Display.
-*/
public Display getDisplay () {
Composite parent = this.parent;
if (parent == null) error (SWT.ERROR_WIDGET_DISPOSED);
@@ -139,7 +135,7 @@ public Display getDisplay () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public Font getFont () {
checkWidget();
return parent.getFont ();
@@ -153,7 +149,7 @@ public Font getFont () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public Image getImage () {
checkWidget();
return image;
@@ -168,7 +164,7 @@ public Image getImage () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public Point getLocation () {
checkWidget();
return new Point (x, y);
@@ -182,7 +178,7 @@ public Point getLocation () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public Canvas getParent () {
checkWidget();
return parent;
@@ -196,7 +192,7 @@ public Canvas getParent () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public Point getSize () {
checkWidget();
if (image != null) {
@@ -221,7 +217,7 @@ public Point getSize () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public boolean getVisible () {
checkWidget();
return isVisible;
@@ -249,7 +245,7 @@ boolean hideCaret () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public boolean isVisible () {
checkWidget();
return isVisible && parent.isVisible () && parent.hasFocus ();
@@ -293,7 +289,7 @@ void releaseWidget () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setBounds (int x, int y, int width, int height) {
checkWidget();
boolean samePosition, sameExtent, showing;
@@ -331,7 +327,7 @@ public void setBounds (int x, int y, int width, int height) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setBounds (Rectangle rect) {
checkWidget();
if (rect == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -357,7 +353,7 @@ void setFocus () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setFont (Font font) {
checkWidget();
if (font != null && font.isDisposed ()) {
@@ -378,7 +374,7 @@ public void setFont (Font font) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setImage (Image image) {
checkWidget();
if (image != null && image.isDisposed ()) {
@@ -400,7 +396,7 @@ public void setImage (Image image) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setLocation (int x, int y) {
checkWidget();
setBounds (x, y, width, height);
@@ -416,7 +412,7 @@ public void setLocation (int x, int y) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setLocation (Point location) {
checkWidget();
if (location == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -432,7 +428,7 @@ public void setLocation (Point location) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setSize (int width, int height) {
checkWidget();
setBounds (x, y, width, height);
@@ -450,7 +446,7 @@ public void setSize (int width, int height) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setSize (Point size) {
checkWidget();
if (size == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -471,7 +467,7 @@ public void setSize (Point size) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setVisible (boolean visible) {
checkWidget();
if (visible == isVisible) return;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/ColorDialog.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/ColorDialog.java index 4cb8c0094b..b58e78a71b 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/ColorDialog.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/ColorDialog.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -22,7 +22,7 @@ import org.eclipse.swt.layout.*; * IMPORTANT: This class is intended to be subclassed <em>only</em>
* within the SWT implementation.
* </p>
- */
+ */ public class ColorDialog extends Dialog {
private static final int DEPTH_4 = 0; // index for COLOR_SWATCH_EXTENTS
private static final int DEPTH_8 = 1; // index for COLOR_SWATCH_EXTENTS
@@ -63,7 +63,7 @@ public class ColorDialog extends Dialog { * @see SWT
* @see Widget#checkSubclass
* @see Widget#getStyle
- */
+ */ public ColorDialog(Shell parent) {
this(parent, SWT.NULL);
}
@@ -94,7 +94,7 @@ public ColorDialog(Shell parent) { * @see SWT * @see Widget#checkSubclass * @see Widget#getStyle - */
+ */ public ColorDialog(Shell parent, int style) {
super(parent, style | SWT.TITLE | SWT.BORDER | SWT.APPLICATION_MODAL);
checkSubclass ();
@@ -225,7 +225,7 @@ int getColorSwatchExtent() { * @return the RGB value for the selected color, may be null
*
* @see PaletteData#getRGBs
- */
+ */ public RGB getRGB() {
return rgb;
}
@@ -371,7 +371,7 @@ void mouseMove(Event event) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public RGB open() {
Color selectionColor;
Shell dialog = new Shell(getParent(), getStyle() | SWT.TITLE | SWT.BORDER | SWT.APPLICATION_MODAL);
@@ -425,13 +425,13 @@ void setColorDepth(int bits) { * open() is called
*
* @see PaletteData#getRGBs
- */
+ */ public void setRGB(RGB rgb) {
this.rgb = rgb;
}
/**
* Create the widgets of the dialog.
- */
+ */ void createOkCancel() {
Shell dialog = getDialogShell();
GridData gridData;
@@ -453,20 +453,20 @@ void createOkCancel() { }
/**
* Answer the cancel button
- */
+ */ Button getCancelButton() {
return cancel;
}
/**
* Answer the dialog shell.
- */
+ */ Shell getDialogShell() {
return shell;
}
/**
* Answer the ok button.
- */
+ */ Button getOKButton() {
return ok;
}
@@ -477,7 +477,7 @@ boolean isOkSelected() { /**
* Open the receiver and set its size to the size calculated by
* the layout manager.
- */
+ */ void openDialog() {
Shell dialog = getDialogShell();
@@ -513,7 +513,7 @@ void openDialog() { /**
* Initialize the widgets of the receiver, open the dialog
* and block the method until the dialog is closed by the user.
- */
+ */ void openModal() {
Shell dialog = getDialogShell();
Display display = dialog.getDisplay();
@@ -532,7 +532,7 @@ void setOkSelected(boolean newOkSelected) { }
/**
* Set the shell used as the dialog window.
- */
+ */ void setDialogShell(Shell shell) {
this.shell = shell;
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Combo.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Combo.java index 2957f4c0fb..e9695c8f27 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Combo.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Combo.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -46,12 +46,12 @@ import org.eclipse.swt.events.*; * </p>
*
* @see List
- */
+ */ public class Combo extends Composite {
/**
* the operating system limit for the number of characters
* that the text field in an instance of this class can hold
- */
+ */ public static int LIMIT;
/*
@@ -93,7 +93,7 @@ public class Combo extends Composite { * @see SWT#SIMPLE * @see Widget#checkSubclass * @see Widget#getStyle - */
+ */ public Combo (Composite parent, int style) {
super (parent, checkStyle (style));
}
@@ -114,7 +114,7 @@ public Combo (Composite parent, int style) { * </ul>
*
* @see #add(String,int)
- */
+ */ public void add (String string) {
checkWidget();
if (string == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -150,7 +150,7 @@ public void add (String string) { * </ul>
*
* @see #add(String)
- */
+ */ public void add (String string, int index) {
checkWidget();
if (string == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -191,7 +191,7 @@ public void add (String string, int index) { *
* @see ModifyListener
* @see #removeModifyListener
- */
+ */ public void addModifyListener (ModifyListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -221,7 +221,7 @@ public void addModifyListener (ModifyListener listener) { * @see SelectionListener
* @see #removeSelectionListener
* @see SelectionEvent
- */
+ */ public void addSelectionListener(SelectionListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -275,7 +275,7 @@ protected void checkSubclass () { * </ul>
*
* @see #deselectAll
- */
+ */ public void clearSelection () {
checkWidget();
int xDisplay = OS.XtDisplay (handle);
@@ -363,7 +363,7 @@ void createHandle (int index) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void deselect (int index) {
checkWidget();
if (index == -1) return;
@@ -393,7 +393,7 @@ public void deselect (int index) { * </ul>
*
* @see #clearSelection
- */
+ */ public void deselectAll () {
checkWidget();
int [] argList = {OS.XmNtextField, 0, OS.XmNlist, 0};
@@ -426,7 +426,7 @@ public void deselectAll () { * @exception SWTError <ul>
* <li>ERROR_CANNOT_GET_ITEM - if the operation fails because of an operating system failure</li>
* </ul>
- */
+ */ public String getItem (int index) {
checkWidget();
int [] argList = {OS.XmNitemCount, 0, OS.XmNitems, 0};
@@ -466,7 +466,7 @@ public String getItem (int index) { * @exception SWTError <ul>
* <li>ERROR_CANNOT_GET_COUNT - if the operation fails because of an operating system failure</li>
* </ul>
- */
+ */ public int getItemCount () {
checkWidget();
int [] argList = {OS.XmNitemCount, 0};
@@ -486,7 +486,7 @@ public int getItemCount () { * @exception SWTError <ul>
* <li>ERROR_CANNOT_GET_ITEM_HEIGHT - if the operation fails because of an operating system failure</li>
* </ul>
- */
+ */ public int getItemHeight () {
checkWidget();
int [] listHandleArgs = {OS.XmNlist, 0};
@@ -515,7 +515,7 @@ public int getItemHeight () { * @exception SWTError <ul>
* <li>ERROR_CANNOT_GET_ITEM - if the operation fails because of an operating system failure</li>
* </ul>
- */
+ */ public String [] getItems () {
checkWidget();
int [] argList = {OS.XmNitems, 0, OS.XmNitemCount, 0};
@@ -558,7 +558,7 @@ public String [] getItems () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public Point getSelection () {
checkWidget();
int [] start = new int [1], end = new int [1];
@@ -580,7 +580,7 @@ public Point getSelection () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int getSelectionIndex () {
checkWidget();
int [] argList = {OS.XmNlist, 0};
@@ -607,7 +607,7 @@ public int getSelectionIndex () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public String getText () {
checkWidget();
int [] argList = {OS.XmNtextField, 0};
@@ -633,7 +633,7 @@ public String getText () { * @exception SWTError <ul>
* <li>ERROR_CANNOT_GET_ITEM_HEIGHT - if the operation fails because of an operating system failure</li>
* </ul>
- */
+ */ public int getTextHeight () {
checkWidget();
if ((style & SWT.DROP_DOWN) != 0) {
@@ -679,7 +679,7 @@ public int getTextHeight () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int getTextLimit () {
checkWidget();
int [] argList = {OS.XmNtextField, 0};
@@ -714,7 +714,7 @@ void hookEvents () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int indexOf (String string) {
checkWidget();
if (string == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -747,7 +747,7 @@ public int indexOf (String string) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int indexOf (String string, int start) {
checkWidget();
if (string == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -799,7 +799,7 @@ int processSelection (int callData) { * @exception SWTError <ul>
* <li>ERROR_ITEM_NOT_REMOVED - if the operation fails because of an operating system failure</li>
* </ul>
- */
+ */ public void remove (int index) {
checkWidget();
if (index == -1) error (SWT.ERROR_INVALID_RANGE);
@@ -834,7 +834,7 @@ public void remove (int index) { * @exception SWTError <ul>
* <li>ERROR_ITEM_NOT_REMOVED - if the operation fails because of an operating system failure</li>
* </ul>
- */
+ */ public void remove (int start, int end) {
checkWidget();
if (start > end) return;
@@ -879,7 +879,7 @@ void register () { * @exception SWTError <ul>
* <li>ERROR_ITEM_NOT_REMOVED - if the operation fails because of an operating system failure</li>
* </ul>
- */
+ */ public void remove (String string) {
checkWidget();
if (string == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -903,7 +903,7 @@ public void remove (String string) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void removeAll () {
checkWidget();
int [] argList = {OS.XmNtextField, 0, OS.XmNlist, 0, OS.XmNitemCount, 0};
@@ -937,7 +937,7 @@ public void removeAll () { *
* @see ModifyListener
* @see #addModifyListener
- */
+ */ public void removeModifyListener (ModifyListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -960,7 +960,7 @@ public void removeModifyListener (ModifyListener listener) { *
* @see SelectionListener
* @see #addSelectionListener
- */
+ */ public void removeSelectionListener (SelectionListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -979,7 +979,7 @@ public void removeSelectionListener (SelectionListener listener) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void select (int index) {
checkWidget();
if (index == -1) {
@@ -1027,7 +1027,7 @@ boolean setBounds (int x, int y, int width, int height, boolean move, boolean re * <li>ERROR_ITEM_NOT_REMOVED - if the remove operation fails because of an operating system failure</li>
* <li>ERROR_ITEM_NOT_ADDED - if the add operation fails because of an operating system failure</li>
* </ul>
- */
+ */ public void setItem (int index, String string) {
checkWidget();
if (string == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -1057,7 +1057,7 @@ public void setItem (int index, String string) { * @exception SWTError <ul>
* <li>ERROR_ITEM_NOT_ADDED - if the operation fails because of an operating system failure</li>
* </ul>
- */
+ */ public void setItems (String [] items) {
checkWidget();
if (items == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -1101,7 +1101,7 @@ public void setItems (String [] items) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setSelection (Point selection) {
checkWidget();
@@ -1155,7 +1155,7 @@ public void setSelection (Point selection) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setText (String string) {
checkWidget();
if (string == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -1205,7 +1205,7 @@ public void setText (String string) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setTextLimit (int limit) {
checkWidget();
if (limit == 0) error (SWT.ERROR_CANNOT_BE_ZERO);
@@ -1240,7 +1240,7 @@ void enableWidget (boolean enabled) { * The solution is to add a space to empty strings or
* strings which are all spaces. This space is removed
* when answering the text of items which are all spaces.
- */
+ */ String encodeString(String string) {
for (int i = 0; i < string.length(); i++) {
if (string.charAt(i) != ' ') {
@@ -1259,7 +1259,7 @@ String encodeString(String string) { * The solution is to add a space to empty strings or
* strings which include only spaces. A space is removed
* when answering the text of items which are all spaces.
- */
+ */ String decodeString(String string) {
if (string.length() == 0) return string;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Composite.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Composite.java index 6e88504925..16cb6cccff 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Composite.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Composite.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -31,7 +31,7 @@ import org.eclipse.swt.graphics.*; * </p> * * @see Canvas - */
+ */ public class Composite extends Scrollable {
Layout layout;
int damagedRegion;
@@ -69,7 +69,7 @@ Composite () { * @see SWT#NO_REDRAW_RESIZE * @see SWT#NO_RADIO_GROUP * @see Widget#getStyle - */
+ */ public Composite (Composite parent, int style) {
super (parent, style);
}
@@ -116,9 +116,6 @@ Control [] _getTabList () { tabList = newList;
return tabList;
}
-/**
-* Computes the preferred size.
-*/
public Point computeSize (int wHint, int hHint, boolean changed) {
checkWidget();
Point size;
@@ -257,7 +254,7 @@ public boolean forceFocus () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public Control [] getChildren () {
checkWidget();
return _getChildren ();
@@ -281,7 +278,7 @@ int getChildrenCount () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public Layout getLayout () {
checkWidget();
return layout;
@@ -337,7 +334,7 @@ void hookEvents () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void layout () {
checkWidget();
layout (true);
@@ -358,7 +355,7 @@ public void layout () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void layout (boolean changed) {
checkWidget();
if (layout == null) return;
@@ -597,7 +594,7 @@ boolean setBounds (int x, int y, int width, int height, boolean move, boolean re * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> - */
+ */ public void setLayout (Layout layout) {
checkWidget();
this.layout = layout;
@@ -616,7 +613,7 @@ public void setLayout (Layout layout) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setTabList (Control [] tabList) {
checkWidget ();
if (tabList != null) {
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Control.java index 1a282d4e7a..03e9efdc59 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Control.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Control.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -26,7 +26,7 @@ import org.eclipse.swt.accessibility.*; * IMPORTANT: This class is intended to be subclassed <em>only</em>
* within the SWT implementation.
* </p>
- */
+ */ public abstract class Control extends Widget implements Drawable {
Composite parent;
Font font;
@@ -65,7 +65,7 @@ Control () { * @see SWT#BORDER * @see Widget#checkSubclass * @see Widget#getStyle - */
+ */ public Control (Composite parent, int style) {
super (parent, style);
this.parent = parent;
@@ -89,7 +89,7 @@ public Control (Composite parent, int style) { *
* @see ControlListener
* @see #removeControlListener
- */
+ */ public void addControlListener(ControlListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -115,7 +115,7 @@ public void addControlListener(ControlListener listener) { *
* @see FocusListener
* @see #removeFocusListener
- */
+ */ public void addFocusListener(FocusListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -141,7 +141,7 @@ public void addFocusListener(FocusListener listener) { * * @see HelpListener * @see #removeHelpListener - */
+ */ public void addHelpListener (HelpListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -166,7 +166,7 @@ public void addHelpListener (HelpListener listener) { *
* @see KeyListener
* @see #removeKeyListener
- */
+ */ public void addKeyListener(KeyListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -192,7 +192,7 @@ public void addKeyListener(KeyListener listener) { *
* @see MouseListener
* @see #removeMouseListener
- */
+ */ public void addMouseListener(MouseListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -219,7 +219,7 @@ public void addMouseListener(MouseListener listener) { *
* @see MouseTrackListener
* @see #removeMouseTrackListener
- */
+ */ public void addMouseTrackListener (MouseTrackListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -246,7 +246,7 @@ public void addMouseTrackListener (MouseTrackListener listener) { *
* @see MouseMoveListener
* @see #removeMouseMoveListener
- */
+ */ public void addMouseMoveListener(MouseMoveListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -271,7 +271,7 @@ public void addMouseMoveListener(MouseMoveListener listener) { *
* @see PaintListener
* @see #removePaintListener
- */
+ */ public void addPaintListener(PaintListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -296,7 +296,7 @@ public void addPaintListener(PaintListener listener) { *
* @see TraverseListener
* @see #removeTraverseListener
- */
+ */ public void addTraverseListener (TraverseListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -329,7 +329,7 @@ public void addTraverseListener (TraverseListener listener) { * @see #getSize * @see #pack * @see "computeTrim, getClientArea for controls that implement them" - */
+ */ public Point computeSize (int wHint, int hHint) {
return computeSize (wHint, hHint, true);
}
@@ -366,7 +366,7 @@ public Point computeSize (int wHint, int hHint) { * @see #getSize * @see #pack * @see "computeTrim, getClientArea for controls that implement them" - */
+ */ public Point computeSize (int wHint, int hHint, boolean changed) {
checkWidget();
int width = DEFAULT_WIDTH;
@@ -513,7 +513,7 @@ int fontHandle () { * </ul>
*
* @see #setFocus
- */
+ */ public boolean forceFocus () {
checkWidget();
Decorations shell = menuShell ();
@@ -538,7 +538,7 @@ public boolean forceFocus () { * @see Accessible#addAccessibleControlListener * * @since 2.0 - */
+ */ public Accessible getAccessible () {
checkWidget ();
if (accessible == null) {
@@ -556,7 +556,7 @@ public Accessible getAccessible () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public Color getBackground () {
checkWidget();
return Color.motif_new (getDisplay (), getXColor (getBackgroundPixel ()));
@@ -575,7 +575,7 @@ int getBackgroundPixel () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int getBorderWidth () {
checkWidget();
int topHandle = topHandle ();
@@ -593,7 +593,7 @@ public int getBorderWidth () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public Rectangle getBounds () {
checkWidget();
int topHandle = topHandle ();
@@ -621,7 +621,7 @@ String getCodePage () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public Display getDisplay () {
Composite parent = this.parent;
if (parent == null) error (SWT.ERROR_WIDGET_DISPOSED);
@@ -639,7 +639,7 @@ public Display getDisplay () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public boolean getEnabled () {
checkWidget();
int [] argList = {OS.XmNsensitive, 0};
@@ -655,7 +655,7 @@ public boolean getEnabled () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public Font getFont () {
checkWidget();
return font;
@@ -767,7 +767,7 @@ int getFontHeight () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public Color getForeground () {
checkWidget();
return Color.motif_new (getDisplay (), getXColor (getForegroundPixel ()));
@@ -789,7 +789,7 @@ short [] getIMECaretPos () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public Object getLayoutData () {
checkWidget();
return layoutData;
@@ -804,7 +804,7 @@ public Object getLayoutData () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public Point getLocation () {
checkWidget();
int topHandle = topHandle ();
@@ -826,7 +826,7 @@ public Point getLocation () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public Menu getMenu () {
checkWidget();
return menu;
@@ -847,7 +847,7 @@ int getNavigationType () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public Composite getParent () {
checkWidget();
return parent;
@@ -882,7 +882,7 @@ Control [] getPath () { * </ul>
*
* @see #getParent
- */
+ */ public Shell getShell () {
checkWidget();
return parent.getShell ();
@@ -899,7 +899,7 @@ public Shell getShell () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public Point getSize () {
checkWidget();
int topHandle = topHandle ();
@@ -918,7 +918,7 @@ public Point getSize () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public String getToolTipText () {
checkWidget();
return toolTipText;
@@ -939,7 +939,7 @@ public String getToolTipText () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public boolean getVisible () {
checkWidget();
int topHandle = topHandle ();
@@ -989,7 +989,7 @@ void hookEvents () { * @return the platform specific GC handle
*
* @private
- */
+ */ public int internal_new_GC (GCData data) {
checkWidget();
if (!OS.XtIsRealized (handle)) {
@@ -1031,7 +1031,7 @@ public int internal_new_GC (GCData data) { * @param data the platform specific GC data
*
* @private
- */
+ */ public void internal_dispose_GC (int xGC, GCData data) {
checkWidget ();
int xDisplay = 0;
@@ -1052,7 +1052,7 @@ public void internal_dispose_GC (int xGC, GCData data) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public boolean isEnabled () {
checkWidget();
return getEnabled () && parent.isEnabled ();
@@ -1075,7 +1075,7 @@ boolean isFocusAncestor () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public boolean isFocusControl () {
checkWidget();
return hasFocus ();
@@ -1090,7 +1090,7 @@ public boolean isFocusControl () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public boolean isReparentable () {
checkWidget();
return false;
@@ -1148,7 +1148,7 @@ boolean isTabItem () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public boolean isVisible () {
checkWidget();
return getVisible () && parent.isVisible ();
@@ -1213,7 +1213,7 @@ boolean mnemonicMatch (char key) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void moveAbove (Control control) {
checkWidget();
if (control != null) {
@@ -1238,7 +1238,7 @@ public void moveAbove (Control control) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void moveBelow (Control control) {
checkWidget();
if (control != null) {
@@ -1258,7 +1258,7 @@ public void moveBelow (Control control) { * </ul>
*
* @see #computeSize
- */
+ */ public void pack () {
checkWidget();
pack (true);
@@ -1281,7 +1281,7 @@ public void pack () { * </ul>
*
* @see #computeSize
- */
+ */ public void pack (boolean changed) {
checkWidget();
setSize (computeSize (SWT.DEFAULT, SWT.DEFAULT, changed));
@@ -1560,7 +1560,7 @@ void realizeChildren () { * </ul>
*
* @see #update
- */
+ */ public void redraw () {
checkWidget();
redrawWidget (0, 0, 0, 0, false);
@@ -1587,7 +1587,7 @@ public void redraw () { * </ul>
*
* @see #update
- */
+ */ public void redraw (int x, int y, int width, int height, boolean all) {
checkWidget ();
if (width <= 0 || height <= 0) return;
@@ -1637,7 +1637,7 @@ void releaseWidget () { *
* @see ControlListener
* @see #addControlListener
- */
+ */ public void removeControlListener (ControlListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -1661,7 +1661,7 @@ public void removeControlListener (ControlListener listener) { *
* @see FocusListener
* @see #addFocusListener
- */
+ */ public void removeFocusListener(FocusListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -1685,7 +1685,7 @@ public void removeFocusListener(FocusListener listener) { *
* @see HelpListener
* @see #addHelpListener
- */
+ */ public void removeHelpListener (HelpListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -1708,7 +1708,7 @@ public void removeHelpListener (HelpListener listener) { *
* @see KeyListener
* @see #addKeyListener
- */
+ */ public void removeKeyListener(KeyListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -1732,7 +1732,7 @@ public void removeKeyListener(KeyListener listener) { *
* @see MouseListener
* @see #addMouseListener
- */
+ */ public void removeMouseListener(MouseListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -1757,7 +1757,7 @@ public void removeMouseListener(MouseListener listener) { *
* @see MouseMoveListener
* @see #addMouseMoveListener
- */
+ */ public void removeMouseMoveListener(MouseMoveListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -1780,7 +1780,7 @@ public void removeMouseMoveListener(MouseMoveListener listener) { *
* @see MouseTrackListener
* @see #addMouseTrackListener
- */
+ */ public void removeMouseTrackListener(MouseTrackListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -1805,7 +1805,7 @@ public void removeMouseTrackListener(MouseTrackListener listener) { *
* @see PaintListener
* @see #addPaintListener
- */
+ */ public void removePaintListener(PaintListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -1827,7 +1827,7 @@ public void removePaintListener(PaintListener listener) { *
* @see TraverseListener
* @see #addTraverseListener
- */
+ */ public void removeTraverseListener(TraverseListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -1911,7 +1911,7 @@ void sendMouseEvent (int type, int button, XInputEvent xEvent) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setBackground (Color color) {
checkWidget();
if (color == null) {
@@ -1998,7 +1998,7 @@ boolean setBounds (int x, int y, int width, int height, boolean move, boolean re * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setBounds (int x, int y, int width, int height) {
checkWidget();
setBounds (x, y, width, height, true, true);
@@ -2020,7 +2020,7 @@ public void setBounds (int x, int y, int width, int height) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setBounds (Rectangle rect) {
checkWidget ();
if (rect == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -2037,7 +2037,7 @@ public void setBounds (Rectangle rect) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setCapture (boolean capture) {
checkWidget();
int display = OS.XtDisplay (handle);
@@ -2077,7 +2077,7 @@ public void setCapture (boolean capture) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setCursor (Cursor cursor) {
checkWidget();
int display = OS.XtDisplay (handle);
@@ -2109,7 +2109,7 @@ public void setCursor (Cursor cursor) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setEnabled (boolean enabled) {
checkWidget();
enableWidget (enabled);
@@ -2129,7 +2129,7 @@ public void setEnabled (boolean enabled) { * </ul>
*
* @see #forceFocus
- */
+ */ public boolean setFocus () {
checkWidget();
Decorations shell = menuShell ();
@@ -2151,7 +2151,7 @@ public boolean setFocus () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setFont (Font font) {
checkWidget();
if (font == null) font = defaultFont ();
@@ -2190,7 +2190,7 @@ public void setFont (Font font) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setForeground (Color color) {
checkWidget();
if (color == null) {
@@ -2218,7 +2218,7 @@ void setForegroundPixel (int pixel) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setLayoutData (Object layoutData) {
checkWidget();
this.layoutData = layoutData;
@@ -2235,7 +2235,7 @@ public void setLayoutData (Object layoutData) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setLocation (int x, int y) {
checkWidget();
setBounds (x, y, 0, 0, true, false);
@@ -2251,7 +2251,7 @@ public void setLocation (int x, int y) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setLocation (Point location) {
checkWidget ();
if (location == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -2276,7 +2276,7 @@ public void setLocation (Point location) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setMenu (Menu menu) {
checkWidget();
if (menu != null) {
@@ -2305,7 +2305,7 @@ public void setMenu (Menu menu) { * <li>ERROR_THREAD_INVALID_ACCESS when called from the wrong thread</li>
* <li>ERROR_WIDGET_DISPOSED when the widget has been disposed</li>
* </ul>
- */
+ */ public boolean setParent (Composite parent) {
checkWidget();
if (parent.isDisposed()) SWT.error(SWT.ERROR_INVALID_ARGUMENT);
@@ -2333,7 +2333,7 @@ public boolean setParent (Composite parent) { *
* @see #redraw
* @see #update
- */
+ */ public void setRedraw (boolean redraw) {
checkWidget();
}
@@ -2359,7 +2359,7 @@ boolean setTabItemFocus () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setSize (int width, int height) {
checkWidget();
setBounds (0, 0, width, height, false, true);
@@ -2382,7 +2382,7 @@ public void setSize (int width, int height) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setSize (Point size) {
checkWidget();
if (size == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -2398,7 +2398,7 @@ public void setSize (Point size) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setToolTipText (String string) {
checkWidget();
Display display = getDisplay ();
@@ -2419,7 +2419,7 @@ public void setToolTipText (String string) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setVisible (boolean visible) {
checkWidget();
int topHandle = topHandle ();
@@ -2506,7 +2506,7 @@ void setZOrder (Control control, boolean above, boolean fixChildren) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public Point toControl (Point point) {
checkWidget();
if (point == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -2528,7 +2528,7 @@ public Point toControl (Point point) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public Point toDisplay (Point point) {
checkWidget();
if (point == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -2670,7 +2670,7 @@ boolean traverse (Event event) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public boolean traverse (int traversal) {
checkWidget();
if (!isFocusControl () && !setFocus ()) return false;
@@ -2751,7 +2751,7 @@ boolean traverseReturn () { * </ul>
*
* @see #redraw
- */
+ */ public void update () {
checkWidget();
int display = OS.XtDisplay (handle);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Decorations.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Decorations.java index 03ae48c8d9..0b42cc6138 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Decorations.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Decorations.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -80,7 +80,7 @@ import org.eclipse.swt.graphics.*; * @see #getMaximized * @see Shell * @see SWT - */
+ */ public class Decorations extends Canvas {
String label;
Image image;
@@ -130,7 +130,7 @@ Decorations () { * @see SWT#TOOL * @see Widget#checkSubclass * @see Widget#getStyle - */
+ */ public Decorations (Composite parent, int style) {
super (parent, checkStyle (style));
}
@@ -233,7 +233,7 @@ int dialogHandle () { * </ul>
*
* @see #setDefaultButton
- */
+ */ public Button getDefaultButton () {
checkWidget();
return defaultButton;
@@ -258,7 +258,7 @@ public Button getDefaultButton () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public Image getImage () {
checkWidget();
return image;
@@ -276,7 +276,7 @@ public Image getImage () { * </ul>
*
* @see #setMaximized
- */
+ */ public boolean getMaximized () {
checkWidget();
return maximized;
@@ -291,7 +291,7 @@ public boolean getMaximized () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public Menu getMenuBar () {
checkWidget();
return menuBar;
@@ -309,7 +309,7 @@ public Menu getMenuBar () { * </ul>
*
* @see #setMinimized
- */
+ */ public boolean getMinimized () {
checkWidget();
return minimized;
@@ -329,7 +329,7 @@ String getNameText () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public String getText () {
checkWidget();
return label;
@@ -413,7 +413,7 @@ void remove (Menu menu) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setDefaultButton (Button button) {
checkWidget();
setDefaultButton (button, true);
@@ -452,7 +452,7 @@ void setDefaultButton (Button button, boolean save) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setImage (Image image) {
checkWidget();
int pixmap = 0, mask = 0;
@@ -500,7 +500,7 @@ public void setImage (Image image) { * </ul>
*
* @see #setMinimized
- */
+ */ public void setMaximized (boolean maximized) {
checkWidget();
this.maximized = maximized;
@@ -519,7 +519,7 @@ public void setMaximized (boolean maximized) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> - */
+ */ public void setMenuBar (Menu menu) {
checkWidget();
if (menuBar == menu) return;
@@ -599,7 +599,7 @@ public void setMenuBar (Menu menu) { * </ul>
*
* @see #setMaximized
- */
+ */ public void setMinimized (boolean minimized) {
checkWidget();
this.minimized = minimized;
@@ -622,7 +622,7 @@ void setSavedFocus (Control control) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setText (String string) {
checkWidget();
if (string == null) error (SWT.ERROR_NULL_ARGUMENT);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/DirectoryDialog.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/DirectoryDialog.java index 7aade792fb..7f2d9e4114 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/DirectoryDialog.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/DirectoryDialog.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -16,8 +16,7 @@ import org.eclipse.swt.*; * IMPORTANT: This class is intended to be subclassed <em>only</em>
* within the SWT implementation.
* </p>
- */
-
+ */ public class DirectoryDialog extends Dialog {
String filterPath = "";
boolean cancel = true;
@@ -43,7 +42,7 @@ public class DirectoryDialog extends Dialog { * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent</li>
* <li>ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass</li>
* </ul>
- */
+ */ public DirectoryDialog (Shell parent) {
this (parent, SWT.PRIMARY_MODAL);
}
@@ -76,7 +75,7 @@ public DirectoryDialog (Shell parent) { * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent</li> * <li>ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass</li> * </ul> - */
+ */ public DirectoryDialog (Shell parent, int style) {
super (parent, style);
checkSubclass ();
@@ -91,7 +90,7 @@ int activate (int widget, int client, int call) { * the directories it shows.
*
* @return the filter path
- */
+ */ public String getFilterPath () {
return filterPath;
}
@@ -101,7 +100,7 @@ public String getFilterPath () { * visible on the dialog while it is open.
*
* @return the message
- */
+ */ public String getMessage () {
return message;
}
@@ -116,7 +115,7 @@ public String getMessage () { * <li>ERROR_WIDGET_DISPOSED - if the dialog has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the dialog</li>
* </ul>
- */
+ */ public String open () {
/* Get the parent */
@@ -299,7 +298,7 @@ public String open () { * null.
*
* @param string the filter path
- */
+ */ public void setFilterPath (String string) {
filterPath = string;
}
@@ -309,7 +308,7 @@ public void setFilterPath (String string) { * visible on the dialog while it is open.
*
* @param string the message
- */
+ */ public void setMessage (String string) {
message = string;
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Display.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Display.java index c2cbb6e84d..797f74013c 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Display.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Display.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -84,7 +84,7 @@ import org.eclipse.swt.graphics.*; * @see #readAndDispatch * @see #sleep * @see #dispose - */
+ */ public class Display extends Device {
/* Motif Only Public Fields */
@@ -309,7 +309,7 @@ static void setDevice (Device device) { * @see #getDefault
* @see Widget#checkSubclass
* @see Shell
- */
+ */ public Display () {
this (null);
}
@@ -356,7 +356,7 @@ void addMouseHoverTimeOut (int handle) { * @see #removeListener
*
* @since 2.0
- */
+ */ public void addListener (int eventType, Listener listener) {
checkDevice ();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -373,7 +373,7 @@ public void addListener (int eventType, Listener listener) { * @param runnable code to run on the user-interface thread.
*
* @see #syncExec
- */
+ */ public void asyncExec (Runnable runnable) {
if (isDisposed ()) error (SWT.ERROR_DEVICE_DISPOSED);
synchronizer.asyncExec (runnable);
@@ -381,7 +381,7 @@ public void asyncExec (Runnable runnable) { /**
* Causes the system hardware to emit a short sound
* (if it supports this capability).
- */
+ */ public void beep () {
checkDevice ();
OS.XBell (xDisplay, 100);
@@ -451,7 +451,7 @@ protected void checkSubclass () { * @see #dispose
*
* @since 2.0
- */
+ */ public void close () {
checkDevice ();
Event event = new Event ();
@@ -572,7 +572,7 @@ void destroyDisplay () { * receiver is disposed.
*
* @param runnable code to run at dispose time.
- */
+ */ public void disposeExec (Runnable runnable) {
checkDevice ();
if (disposeList == null) disposeList = new Runnable [4];
@@ -656,7 +656,7 @@ boolean filterEvent (XAnyEvent event) { * @exception SWTException <ul>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public Widget findWidget (int handle) {
checkDevice ();
return WidgetTable.get (handle);
@@ -671,7 +671,7 @@ public Widget findWidget (int handle) { * @exception SWTException <ul>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public Shell getActiveShell () {
checkDevice ();
int [] buffer1 = new int [1], buffer2 = new int [1];
@@ -695,7 +695,7 @@ public Shell getActiveShell () { * running thread is not a user-interface thread for any display.
*
* @return the current display
- */
+ */ public static synchronized Display getCurrent () {
return findDisplay (Thread.currentThread ());
}
@@ -706,7 +706,7 @@ public static synchronized Display getCurrent () { *
* @param thread the user-interface thread
* @return the display for the given thread
- */
+ */ public static synchronized Display findDisplay (Thread thread) {
for (int i=0; i<Displays.length; i++) {
Display display = Displays [i];
@@ -726,7 +726,7 @@ public static synchronized Display findDisplay (Thread thread) { * @exception SWTException <ul>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public Control getCursorControl () {
checkDevice ();
int [] unused = new int [1], buffer = new int [1];
@@ -757,7 +757,7 @@ public Control getCursorControl () { * @exception SWTException <ul>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public Point getCursorLocation () {
checkDevice ();
int window = OS.XDefaultRootWindow (xDisplay);
@@ -771,7 +771,7 @@ public Point getCursorLocation () { * if it did not already exist.
*
* @return the default display
- */
+ */ public static synchronized Display getDefault () {
if (Default == null) Default = new Display ();
return Default;
@@ -799,7 +799,7 @@ public static synchronized Display getDefault () { *
* @see #setData
* @see #disposeExec
- */
+ */ public Object getData (String key) {
checkDevice ();
if (key == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -830,7 +830,7 @@ public Object getData (String key) { *
* @see #setData
* @see #disposeExec
- */
+ */ public Object getData () {
checkDevice ();
return data;
@@ -845,7 +845,7 @@ public Object getData () { * @exception SWTException <ul>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int getDoubleClickTime () {
checkDevice ();
return OS.XtGetMultiClickTime (xDisplay);
@@ -861,7 +861,7 @@ public int getDoubleClickTime () { * @exception SWTException <ul>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public Control getFocusControl () {
checkDevice ();
int [] buffer1 = new int [1], buffer2 = new int [1];
@@ -891,7 +891,7 @@ public Control getFocusControl () { * @exception SWTException <ul>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int getIconDepth () {
return getDepth ();
}
@@ -904,7 +904,7 @@ public int getIconDepth () { * @exception SWTException <ul>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public Shell [] getShells () {
checkDevice ();
/*
@@ -942,7 +942,7 @@ public Shell [] getShells () { * </p>
*
* @return the receiver's sync-interface thread
- */
+ */ public Thread getSyncThread () {
if (isDisposed ()) error (SWT.ERROR_DEVICE_DISPOSED);
return synchronizer.syncThread;
@@ -964,7 +964,7 @@ public Thread getSyncThread () { * </ul>
*
* @see SWT
- */
+ */ public Color getSystemColor (int id) {
checkDevice ();
XColor xColor = null;
@@ -1013,7 +1013,7 @@ public Color getSystemColor (int id) { * @exception SWTException <ul>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public Font getSystemFont () {
checkDevice ();
return defaultFont;
@@ -1022,7 +1022,7 @@ public Font getSystemFont () { * Returns the user-interface thread for the receiver.
*
* @return the receiver's user-interface thread
- */
+ */ public Thread getThread () {
if (isDisposed ()) error (SWT.ERROR_DEVICE_DISPOSED);
return thread;
@@ -1068,12 +1068,13 @@ void initializeButton () { OS.XtGetValues (widgetHandle, argList, argList.length / 2);
buttonForeground = argList [1]; buttonBackground = argList [3];
buttonShadowThickness = argList [5];
- /**
+ /*
* Feature in Motif. Querying the font list from the widget and
* then destroying the shell (and the widget) could cause the
* font list to be freed as well. The fix is to make a copy of
* the font list, then to free it when the display is disposed.
- */
+ */ +
buttonFont = Font.motif_new (this, OS.XmFontListCopy (argList [7]));
OS.XtDestroyWidget (shellHandle);
}
@@ -1225,12 +1226,13 @@ void initializeLabel () { int [] argList = {OS.XmNforeground, 0, OS.XmNbackground, 0, OS.XmNfontList, 0};
OS.XtGetValues (widgetHandle, argList, argList.length / 2);
labelForeground = argList [1]; labelBackground = argList [3];
- /**
+ /*
* Feature in Motif. Querying the font list from the widget and
* then destroying the shell (and the widget) could cause the
* font list to be freed as well. The fix is to make a copy of
* the font list, then to free it when the display is disposed.
- */
+ */ +
labelFont = Font.motif_new (this, OS.XmFontListCopy (argList [5]));
OS.XtDestroyWidget (shellHandle);
}
@@ -1247,15 +1249,16 @@ void initializeList () { listForeground = argList [1];
listBackground = argList [3];
- /**
+ /*
* Feature in Motif. Querying the font list from the widget and
* then destroying the shell (and the widget) could cause the
* font list to be freed as well. The fix is to make a copy of
* the font list, then to free it when the display is disposed.
- */
+ */ +
listFont = Font.motif_new (this, OS.XmFontListCopy (argList [5]));
- /**
+ /*
* Feature in Motif. If the value of resource XmNselectColor is
* XmDEFAULT_SELECT_COLOR then querying for this resource gives
* the value of the selection color to use, which is between the
@@ -1263,7 +1266,7 @@ void initializeList () { * that is returned is XmDEFAULT_SELECT_COLOR, and not the color,
* since there is no API to query the color, use the list foreground
* color.
- */
+ */ switch ((byte) argList [7]) {
case OS.XmDEFAULT_SELECT_COLOR:
case OS.XmREVERSED_GROUND_COLORS:
@@ -1353,12 +1356,13 @@ void initializeText () { OS.XtGetValues (widgetHandle, argList, argList.length / 2);
textForeground = argList [1]; textBackground = argList [3];
textHighlightThickness = argList[7];
- /**
+ /*
* Feature in Motif. Querying the font list from the widget and
* then destroying the shell (and the widget) could cause the
* font list to be freed as well. The fix is to make a copy of
* the font list, then to free it when the display is disposed.
- */
+ */ +
textFont = Font.motif_new (this, OS.XmFontListCopy (argList [5]));
OS.XtDestroyWidget (shellHandle);
@@ -1385,7 +1389,7 @@ void initializeTranslations () { * @return the platform specific GC handle
*
* @private
- */
+ */ public int internal_new_GC (GCData data) {
if (isDisposed()) SWT.error(SWT.ERROR_DEVICE_DISPOSED);
int xDrawable = OS.XDefaultRootWindow (xDisplay);
@@ -1416,7 +1420,7 @@ public int internal_new_GC (GCData data) { * @param data the platform specific GC data
*
* @private
- */
+ */ public void internal_dispose_GC (int gc, GCData data) {
OS.XFreeGC(xDisplay, gc);
}
@@ -1476,7 +1480,7 @@ void postEvent (Event event) { *
* @see #sleep
* @see #wake
- */
+ */ public boolean readAndDispatch () {
checkDevice ();
int xtContext = OS.XtDisplayToApplicationContext (xDisplay);
@@ -1644,7 +1648,7 @@ void removeMouseHoverTimeOut () { * @see #addListener
*
* @since 2.0
- */
+ */ public void removeListener (int eventType, Listener listener) {
checkDevice ();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -1710,7 +1714,7 @@ void sendEvent (int eventType, Event event) { * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* <li>ERROR_NULL_ARGUMENT - if the point is null
* </ul>
- */
+ */ public void setCursorLocation (Point point) {
checkDevice ();
if (point == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -1725,7 +1729,7 @@ public void setCursorLocation (Point point) { * to set the name used for resource lookup.
*
* @param name the new app name
- */
+ */ public static void setAppName (String name) {
APP_NAME = name;
}
@@ -1762,7 +1766,7 @@ void setCurrentCaret (Caret caret) { *
* @see #setData
* @see #disposeExec
- */
+ */ public void setData (String key, Object value) {
checkDevice ();
if (key == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -1831,7 +1835,7 @@ public void setData (String key, Object value) { *
* @see #getData
* @see #disposeExec
- */
+ */ public void setData (Object data) {
checkDevice ();
this.data = data;
@@ -1848,7 +1852,7 @@ public void setData (Object data) { * @exception SWTException <ul>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setSynchronizer (Synchronizer synchronizer) {
checkDevice ();
if (synchronizer == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -1935,7 +1939,7 @@ void showToolTip (int handle, String toolTipText) { * </ul>
*
* @see #wake
- */
+ */ public boolean sleep () {
checkDevice ();
/*
@@ -1975,7 +1979,7 @@ public boolean sleep () { * </ul>
*
* @see #asyncExec
- */
+ */ public void syncExec (Runnable runnable) {
if (isDisposed ()) error (SWT.ERROR_DEVICE_DISPOSED);
synchronizer.syncExec (runnable);
@@ -2007,7 +2011,7 @@ int textWidth (String string, Font font) { * </ul>
*
* @see #asyncExec
- */
+ */ public void timerExec (int milliseconds, Runnable runnable) {
checkDevice ();
if (runnable == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -2089,7 +2093,7 @@ public void update () { * method may be called from any thread.
*
* @see #sleep
- */
+ */ public void wake () {
if (isDisposed ()) error (SWT.ERROR_DEVICE_DISPOSED);
if (thread == Thread.currentThread ()) return;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/FileDialog.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/FileDialog.java index 1a6331aaa5..61dca45e75 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/FileDialog.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/FileDialog.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -22,7 +22,7 @@ import org.eclipse.swt.*; * IMPORTANT: This class is intended to be subclassed <em>only</em>
* within the SWT implementation.
* </p>
- */
+ */ public class FileDialog extends Dialog {
int dialog;
String [] filterNames = new String [0];
@@ -54,7 +54,7 @@ public class FileDialog extends Dialog { * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent</li>
* <li>ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass</li>
* </ul>
- */
+ */ public FileDialog (Shell parent) {
this (parent, SWT.PRIMARY_MODAL);
}
@@ -88,7 +88,7 @@ public FileDialog (Shell parent) { * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent</li> * <li>ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass</li> * </ul> - */
+ */ public FileDialog (Shell parent, int style) {
super (parent, style);
checkSubclass ();
@@ -155,7 +155,7 @@ void extractValues() { * or empty string if the dialog was cancelled. * * @return the relative path of the file - */
+ */ public String getFileName () {
return fileName;
}
@@ -166,7 +166,7 @@ public String getFileName () { * if none are available.
*
* @return the relative paths of the files
- */
+ */ public String [] getFileNames () {
return new String [] {fileName};
}
@@ -176,7 +176,7 @@ public String [] getFileNames () { * use to filter the files it shows.
*
* @return the file extensions filter
- */
+ */ public String [] getFilterExtensions () {
return filterExtensions;
}
@@ -186,7 +186,7 @@ public String [] getFilterExtensions () { * use to filter the files it shows.
*
* @return the file name filter
- */
+ */ public String [] getFilterNames () {
return filterNames;
}
@@ -199,7 +199,7 @@ public String [] getFilterNames () { * @return the directory path string * * @see #setFilterExtensions - */
+ */ public String getFilterPath () {
return filterPath;
}
@@ -235,7 +235,7 @@ int okPressed (int widget, int client, int call) { * <li>ERROR_WIDGET_DISPOSED - if the dialog has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the dialog</li>
* </ul>
- */
+ */ public String open () {
/* Get the parent */
@@ -360,7 +360,7 @@ public String open () { * the filter path when one is supplied.
*
* @param string the file name
- */
+ */ public void setFileName (String string) {
fileName = string;
}
@@ -371,7 +371,7 @@ public void setFileName (String string) { * which may be null.
*
* @param extensions the file extension filter
- */
+ */ public void setFilterExtensions (String [] extensions) {
filterExtensions = extensions;
}
@@ -382,7 +382,7 @@ public void setFilterExtensions (String [] extensions) { * which may be null.
*
* @param names the file name filter
- */
+ */ public void setFilterNames (String [] names) {
filterNames = names;
}
@@ -396,7 +396,7 @@ public void setFilterNames (String [] names) { * @param string the directory path * * @see #setFilterExtensions - */
+ */ public void setFilterPath (String string) {
filterPath = string;
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/FontDialog.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/FontDialog.java index 34a05d68b6..6ab08884f9 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/FontDialog.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/FontDialog.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -19,7 +19,7 @@ import java.util.*; * IMPORTANT: This class is intended to be subclassed <em>only</em>
* within the SWT implementation.
* </p>
- */
+ */ public class FontDialog extends Dialog {
/*
* Table containing all available fonts as FontData objects.
@@ -101,7 +101,7 @@ public class FontDialog extends Dialog { * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent</li>
* <li>ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass</li>
* </ul>
- */
+ */ public FontDialog (Shell parent) {
this (parent, SWT.NONE);
}
@@ -135,7 +135,7 @@ public FontDialog (Shell parent) { * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent</li> * <li>ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass</li> * </ul> - */
+ */ public FontDialog (Shell parent, int style) {
super (parent, style | SWT.TITLE | SWT.BORDER | SWT.APPLICATION_MODAL);
checkSubclass ();
@@ -147,7 +147,7 @@ public FontDialog (Shell parent, int style) { * set/face name combination there is one FontExtStyles object that
* captures the different extended styles and the sizes and styles
* available for that extended style.
- */
+ */ void addFonts (FontData fonts[]) {
for (int i = 0; i < fonts.length; i++) {
@@ -188,7 +188,7 @@ void addFonts (FontData fonts[]) { /**
* Create the widgets of the dialog.
- */
+ */ void createChildren () {
Label characterSetLabel = new Label (shell, SWT.NONE);
Label faceNameLabel = new Label (shell, SWT.NONE);
@@ -307,7 +307,7 @@ void createChildren () { * Fill one row in the grid layout with empty widgets.
* Used to achieve a bigger vertical spacing between separate
* groups of widgets (ie. new rows of Text/Combo combinations).
- */
+ */ void createEmptyRow () {
Label fillLabel = new Label (shell, SWT.NONE);
GridData gridData = new GridData ();
@@ -319,7 +319,7 @@ void createEmptyRow () { /**
* Create the widgets of the dialog.
- */
+ */ void createOkCancel () {
okButton = new Button (shell, SWT.PUSH);
okButton.setText (SWT.getMessage ("SWT_OK"));
@@ -352,7 +352,7 @@ Hashtable getFaces (String charsetName) { * selected in the dialog, or null if none is available.
*
* @return the FontData for the selected font, or null
- */
+ */ public FontData getFontData () {
if (sampleFont != null) {
return sampleFont.getFontData ()[0];
@@ -371,7 +371,7 @@ FontData getFontData (String charsetName, String faceName, String extStyle, int * receiver.
* See the class definition for an explanation of the structure
* of the returned Hashtable.
- */
+ */ Hashtable getFonts () {
return characterSets;
}
@@ -379,7 +379,7 @@ Hashtable getFonts () { /**
* Returns a FontData object that can be used to load the selected
* font.
- */
+ */ FontData getSelectionFontData () {
String charSetName = charSetCombo.getText ();
String faceName = faceNameCombo.getText ();
@@ -430,7 +430,7 @@ Hashtable getStyles (String charsetName, String faceName, String extStyle, int s /**
* Returns the character set found in 'fontData' prefixed
* with a string explaining the character set.
- */
+ */ String getTranslatedCharSet (FontData fontData) {
String characterSet = fontData.characterSetRegistry;
String translatedCharSet = null;
@@ -491,7 +491,7 @@ String getTranslatedCharSet (FontData fontData) { * on the face name and not by foundry. Once they've found the desired
* face name in the list they can compare the font variations from
* different foundries if available.
- */
+ */ String getTranslatedFaceName (FontData fontData) {
StringBuffer faceNameBuffer;
@@ -511,7 +511,7 @@ String getTranslatedFaceName (FontData fontData) { * Handle the events the receiver is listening to.
* Combo selections cause the downstream combos to be initialized
* with font data and the sample text to be updated.
- */
+ */ void handleEvent (Event event) {
if (ignoreEvents) return;
if (event.widget instanceof Combo) {
@@ -550,7 +550,7 @@ void handleEvent (Event event) { * Initialize the extended styles combo with the extended styles
* available for the selected font.
* Downstream combos are initialized as well (style and size).
- */
+ */ void initExtStyleCombo () {
String oldSelect = extStyleCombo.getText ();
extStyleCombo.removeAll ();
@@ -572,7 +572,7 @@ void initExtStyleCombo () { * Initialize the face name combo box with all font names
* available in the selected character set.
* Downstream combos are initialized as well (extended style).
- */
+ */ void initFaceNameCombo () {
String oldSelect = faceNameCombo.getText ();
faceNameCombo.removeAll ();
@@ -592,7 +592,7 @@ void initFaceNameCombo () { * all installed fonts.
* If the user specified a default font preselect that font in
* the combo boxes.
- */
+ */ void initializeWidgets () {
Display display = shell.getDisplay ();
addFonts (display.getFontList (null, false)); // get all fonts availabe on the current display
@@ -614,7 +614,7 @@ void initializeWidgets () { * is available in.
* If the selected font is scalable a selection of preset sizes
* is used.
- */
+ */ void initSizeCombo () {
String oldSelect = fontSizeCombo.getText ();
fontSizeCombo.removeAll ();
@@ -667,7 +667,7 @@ void initSizeCombo () { /**
* Initialize the styles combo with the styles the selected font
* is available in.
- */
+ */ void initStyleCombo () {
String oldSelect = fontStyleCombo.getText ();
fontStyleCombo.removeAll ();
@@ -700,7 +700,7 @@ void initStyleCombo () { /**
* Register the receiver to receive events.
- */
+ */ void installListeners () {
Listener listener = new Listener () {
public void handleEvent (Event event) {
@@ -728,7 +728,7 @@ void installListeners () { * <li>ERROR_WIDGET_DISPOSED - if the dialog has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the dialog</li>
* </ul>
- */
+ */ public FontData open () {
shell = new Shell (getParent (), getStyle () | SWT.TITLE | SWT.BORDER | SWT.APPLICATION_MODAL);
createChildren ();
@@ -751,7 +751,7 @@ public FontData open () { /**
* Open the receiver and set its size to the size calculated by
* the layout manager.
- */
+ */ void openDialog () {
// Start everything off by setting the shell size to its computed size.
Point pt = shell.computeSize(SWT.DEFAULT, SWT.DEFAULT, false);
@@ -786,7 +786,7 @@ void openDialog () { /**
* Initialize the combo boxes with the data of the preselected
* font specified by the user.
- */
+ */ void setFontCombos (FontData fontData) {
String characterSet = getTranslatedCharSet (fontData);
String faceName = getTranslatedFaceName (fontData);
@@ -817,7 +817,7 @@ void setFontCombos (FontData fontData) { * the platform choose one.
*
* @param fontData the FontData to use initially, or null
- */
+ */ public void setFontData (FontData fontData) {
initialFontData = fontData;
}
@@ -825,7 +825,7 @@ public void setFontData (FontData fontData) { /**
* Set the contents of 'combo' to the keys of 'items'.
* Keys are sorted in ascending order first and have to be Strings.
- */
+ */ void setItemsSorted (Combo combo, Hashtable items) {
Enumeration itemKeys = items.keys ();
String [] sortedItems = new String[items.size ()];
@@ -846,7 +846,7 @@ void setItemsSorted (Combo combo, Hashtable items) { /**
* Set the contents of the size combo to the keys of 'items'.
* Keys are sorted in ascending order first and have to be Integers.
- */
+ */ void setSizeItemsSorted (Enumeration itemsEnum) {
Vector items = new Vector ();
while (itemsEnum.hasMoreElements ()) {
@@ -865,7 +865,7 @@ void setSizeItemsSorted (Enumeration itemsEnum) { /**
* Sort 'items' in ascending order.
- */
+ */ void sort (Integer[] items) {
/* Shell Sort from K&R, pg 108 */
int length = items.length;
@@ -884,7 +884,7 @@ void sort (Integer[] items) { /**
* Sort 'items' in ascending order.
- */
+ */ void sort (String items[]) {
/* Shell Sort from K&R, pg 108 */
int length = items.length;
@@ -905,7 +905,7 @@ void sort (String items[]) { * Set the font of the sample text to the selected font.
* Display an error in place of the sample text if the selected
* font could not be loaded.
- */
+ */ void updateSampleFont () {
FontData selectionFontData = getSelectionFontData ();
/*
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Group.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Group.java index e8a86a0ecf..f8d7a40bf9 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Group.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Group.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -29,7 +29,7 @@ import org.eclipse.swt.*; * </p><p>
* IMPORTANT: This class is <em>not</em> intended to be subclassed.
* </p>
- */
+ */ public class Group extends Composite {
int labelHandle;
@@ -64,7 +64,7 @@ public class Group extends Composite { * @see SWT#SHADOW_NONE * @see Widget#checkSubclass * @see Widget#getStyle - */
+ */ public Group (Composite parent, int style) {
super (parent, checkStyle (style));
}
@@ -194,7 +194,7 @@ public Rectangle getClientArea () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public String getText () {
checkWidget();
int [] argList = {OS.XmNlabelString, 0};
@@ -254,7 +254,7 @@ void releaseHandle () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setText (String string) {
checkWidget();
if (string == null) error (SWT.ERROR_NULL_ARGUMENT);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Label.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Label.java index 3614fd14c6..ad97255658 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Label.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Label.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -32,7 +32,7 @@ import org.eclipse.swt.graphics.*; * IMPORTANT: This class is intended to be subclassed <em>only</em> * within the SWT implementation. * </p> - */
+ */ public class Label extends Control {
String text = "";
Image image, bitmap, disabled;
@@ -73,7 +73,7 @@ public class Label extends Control { * @see SWT#WRAP * @see Widget#checkSubclass * @see Widget#getStyle - */
+ */ public Label (Composite parent, int style) {
super (parent, checkStyle (style));
}
@@ -192,7 +192,7 @@ int defaultForeground () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int getAlignment () {
checkWidget();
if ((style & SWT.SEPARATOR) != 0) return SWT.LEFT;
@@ -214,7 +214,7 @@ public int getAlignment () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public Image getImage () {
checkWidget();
return image;
@@ -233,7 +233,7 @@ String getNameText () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public String getText () {
checkWidget();
if ((style & SWT.SEPARATOR) != 0) return "";
@@ -300,7 +300,7 @@ int separatorType () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setAlignment (int alignment) {
checkWidget();
if ((style & SWT.SEPARATOR) != 0) return;
@@ -375,7 +375,7 @@ public void setFont (Font font) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setImage (Image image) {
checkWidget();
setBitmap (this.image = image);
@@ -396,7 +396,7 @@ public void setImage (Image image) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setText (String string) {
checkWidget();
if (string == null) error (SWT.ERROR_NULL_ARGUMENT);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/List.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/List.java index af7e585363..bc2b74668f 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/List.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/List.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -28,7 +28,7 @@ import org.eclipse.swt.events.*; * </p><p>
* IMPORTANT: This class is <em>not</em> intended to be subclassed.
* </p>
- */
+ */ public class List extends Scrollable {
/** * Constructs a new instance of this class given its parent @@ -58,15 +58,15 @@ public class List extends Scrollable { * @see SWT#MULTI * @see Widget#checkSubclass * @see Widget#getStyle - */
+ */ public List (Composite parent, int style) {
- /**
+ /*
* Feature in Motif. It is not possible to create
* scrolled list that will never show the vertical
* scroll bar. Therefore, not matter what style
* bits are specified, set the V_SCROLL bits to
* match the widget Motif creates.
- */
+ */ super (parent, checkStyle (style | SWT.V_SCROLL));
}
/**
@@ -86,7 +86,7 @@ public List (Composite parent, int style) { * </ul>
*
* @see #add(String,int)
- */
+ */ public void add (String string) {
checkWidget();
if (string == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -121,7 +121,7 @@ public void add (String string) { * </ul>
*
* @see #add(String)
- */
+ */ public void add (String string, int index) {
checkWidget();
if (string == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -166,7 +166,7 @@ public void add (String string, int index) { * @see SelectionListener
* @see #removeSelectionListener
* @see SelectionEvent
- */
+ */ public void addSelectionListener(SelectionListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -214,10 +214,10 @@ public Rectangle computeTrim (int x, int y, int width, int height) { if (horizontalBar != null) {
int [] argList = {OS.XmNheight, 0};
OS.XtGetValues (horizontalBar.handle, argList, argList.length / 2);
- /**
+ /*
* Motif adds four pixels between the bottom of the
* list and the horizontal scroll bar. Add those now.
- */
+ */ trimHeight += argList [1] + 4;
trimY -= display.scrolledInsetY;
if (verticalBar != null) {
@@ -309,7 +309,7 @@ int defaultForeground () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void deselect (int index) {
checkWidget();
/*
@@ -332,7 +332,7 @@ public void deselect (int index) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void deselect (int start, int end) {
checkWidget();
if (start > end) return;
@@ -361,7 +361,7 @@ public void deselect (int start, int end) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void deselect (int [] indices) {
checkWidget();
if (indices == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -381,7 +381,7 @@ public void deselect (int [] indices) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void deselectAll () {
checkWidget();
OS.XmListDeselectAllItems (handle);
@@ -396,7 +396,7 @@ public void deselectAll () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int getFocusIndex () {
checkWidget();
return OS.XmListGetKbdItemPos (handle) - 1;
@@ -418,7 +418,7 @@ public int getFocusIndex () { * @exception SWTError <ul>
* <li>ERROR_CANNOT_GET_ITEM - if the operation fails because of an operating system failure</li>
* </ul>
- */
+ */ public String getItem (int index) {
checkWidget();
int [] argList = {OS.XmNitemCount, 0, OS.XmNitems, 0};
@@ -458,7 +458,7 @@ public String getItem (int index) { * @exception SWTError <ul>
* <li>ERROR_CANNOT_GET_COUNT - if the operation fails because of an operating system failure</li>
* </ul>
- */
+ */ public int getItemCount () {
checkWidget();
int [] argList = {OS.XmNitemCount, 0};
@@ -478,7 +478,7 @@ public int getItemCount () { * @exception SWTError <ul>
* <li>ERROR_CANNOT_GET_ITEM_HEIGHT - if the operation fails because of an operating system failure</li>
* </ul>
- */
+ */ public int getItemHeight () {
checkWidget();
int [] argList = {
@@ -510,7 +510,7 @@ public int getItemHeight () { * <li>ERROR_CANNOT_GET_ITEM - if the operation fails because of an operating system failure while getting an item</li>
* <li>ERROR_CANNOT_GET_COUNT - if the operation fails because of an operating system failure while getting the item count</li>
* </ul>
- */
+ */ public String [] getItems () {
checkWidget();
int [] argList = {OS.XmNitems, 0, OS.XmNitemCount, 0};
@@ -559,7 +559,7 @@ public String [] getItems () { * <li>ERROR_CANNOT_GET_SELECTION - if the operation fails because of an operating system failure while getting the selection</li>
* <li>ERROR_CANNOT_GET_ITEM - if the operation fails because of an operating system failure while getting an item</li>
* </ul>
- */
+ */ public String [] getSelection () {
checkWidget();
int [] argList = {OS.XmNselectedItems, 0, OS.XmNselectedItemCount, 0};
@@ -601,7 +601,7 @@ public String [] getSelection () { * @exception SWTError <ul>
* <li>ERROR_CANNOT_GET_COUNT - if the operation fails because of an operating system failure</li>
* </ul>
- */
+ */ public int getSelectionCount () {
checkWidget();
int [] argList = {OS.XmNselectedItemCount, 0};
@@ -621,7 +621,7 @@ public int getSelectionCount () { * @exception SWTError <ul>
* <li>ERROR_CANNOT_GET_SELECTION - if the operation fails because of an operating system failure</li>
* </ul>
- */
+ */ public int getSelectionIndex () {
checkWidget();
int index = OS.XmListGetKbdItemPos (handle);
@@ -652,7 +652,7 @@ public int getSelectionIndex () { * @exception SWTError <ul>
* <li>ERROR_CANNOT_GET_SELECTION - if the operation fails because of an operating system failure</li>
* </ul>
- */
+ */ public int [] getSelectionIndices () {
checkWidget();
int [] count = new int [1], positions = new int [1];
@@ -674,7 +674,7 @@ public int [] getSelectionIndices () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int getTopIndex () {
checkWidget();
int [] argList = {OS.XmNtopItemPosition, 0};
@@ -706,7 +706,7 @@ void hookEvents () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int indexOf (String string) {
checkWidget();
if (string == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -738,7 +738,7 @@ public int indexOf (String string) { * <li>ERROR_CANNOT_GET_COUNT - if the operation fails because of an operating system failure while getting the item count</li>
* <li>ERROR_CANNOT_GET_ITEM - if the operation fails because of an operating system failure while getting an item</li>
* </ul>
- */
+ */ public int indexOf (String string, int start) {
checkWidget();
if (string == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -773,7 +773,7 @@ public int indexOf (String string, int start) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public boolean isSelected (int index) {
checkWidget();
if (index == -1) return false;
@@ -795,7 +795,7 @@ public boolean isSelected (int index) { * @exception SWTError <ul>
* <li>ERROR_ITEM_NOT_REMOVED - if the operation fails because of an operating system failure</li>
* </ul>
- */
+ */ public void remove (int index) {
checkWidget();
if (index == -1) error (SWT.ERROR_INVALID_RANGE);
@@ -830,7 +830,7 @@ public void remove (int index) { * @exception SWTError <ul>
* <li>ERROR_ITEM_NOT_REMOVED - if the operation fails because of an operating system failure</li>
* </ul>
- */
+ */ public void remove (int start, int end) {
checkWidget();
if (start > end) return;
@@ -867,7 +867,7 @@ public void remove (int start, int end) { * @exception SWTError <ul>
* <li>ERROR_ITEM_NOT_REMOVED - if the operation fails because of an operating system failure</li>
* </ul>
- */
+ */ public void remove (String string) {
checkWidget();
if (string == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -895,7 +895,7 @@ public void remove (String string) { * @exception SWTError <ul>
* <li>ERROR_ITEM_NOT_REMOVED - if the operation fails because of an operating system failure</li>
* </ul>
- */
+ */ public void remove (int [] indices) {
checkWidget();
if (indices == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -924,7 +924,7 @@ public void remove (int [] indices) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void removeAll () {
checkWidget();
OS.XmListDeselectAllItems (handle);
@@ -955,7 +955,7 @@ public void removeAll () { *
* @see SelectionListener
* @see #addSelectionListener
- */
+ */ public void removeSelectionListener(SelectionListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -974,7 +974,7 @@ public void removeSelectionListener(SelectionListener listener) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void select (int index) {
checkWidget();
if (index == -1) return;
@@ -1017,7 +1017,7 @@ public void select (int index) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void select (int start, int end) {
checkWidget();
if (start > end) return;
@@ -1074,7 +1074,7 @@ public void select (int start, int end) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void select (int [] indices) {
checkWidget();
if (indices == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -1146,7 +1146,7 @@ void select (String [] items) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void selectAll () {
checkWidget();
if ((style & SWT.SINGLE) != 0) return;
@@ -1228,7 +1228,7 @@ void setFocusIndex (int index) { * <li>ERROR_ITEM_NOT_REMOVED - if the remove operation fails because of an operating system failure</li>
* <li>ERROR_ITEM_NOT_ADDED - if the add operation fails because of an operating system failure</li>
* </ul>
- */
+ */ public void setItem (int index, String string) {
checkWidget();
if (string == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -1258,7 +1258,7 @@ public void setItem (int index, String string) { * @exception SWTError <ul>
* <li>ERROR_ITEM_NOT_ADDED - if the operation fails because of an operating system failure</li>
* </ul>
- */
+ */ public void setItems (String [] items) {
checkWidget();
if (items == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -1317,7 +1317,7 @@ public void setItems (String [] items) { * </ul>
* @see List#deselectAll()
* @see List#select(int)
- */
+ */ public void setSelection (int index) {
if ((style & SWT.MULTI) != 0) deselectAll ();
select (index);
@@ -1336,7 +1336,7 @@ public void setSelection (int index) { *
* @see Table#deselectAll()
* @see Table#select(int,int)
- */
+ */ public void setSelection (int start, int end) {
if ((style & SWT.MULTI) != 0) deselectAll ();
select (start, end);
@@ -1357,7 +1357,7 @@ public void setSelection (int start, int end) { * * @see List#deselectAll() * @see List#select(int[]) - */
+ */ public void setSelection(int[] indices) {
if ((style & SWT.MULTI) != 0) deselectAll ();
select (indices);
@@ -1379,7 +1379,7 @@ public void setSelection(int[] indices) { *
* @see List#deselectAll()
* @see List#select(int)
- */
+ */ public void setSelection (String [] items) {
checkWidget();
if (items == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -1431,7 +1431,7 @@ public void setSelection (String [] items) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setTopIndex (int index) {
checkWidget();
int [] argList = {OS.XmNitemCount, 0, OS.XmNvisibleItemCount, 0};
@@ -1453,7 +1453,7 @@ public void setTopIndex (int index) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void showSelection () {
checkWidget();
int [] buffer = new int [1], positions = new int [1];
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Menu.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Menu.java index 1f103f9ea2..87c5adfa1a 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Menu.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Menu.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -23,7 +23,7 @@ import org.eclipse.swt.events.*; * </p><p>
* IMPORTANT: This class is <em>not</em> intended to be subclassed.
* </p>
- */
+ */ public class Menu extends Widget {
boolean hasLocation;
MenuItem cascade, defaultItem;
@@ -46,7 +46,7 @@ public class Menu extends Widget { * @see SWT#POP_UP * @see Widget#checkSubclass * @see Widget#getStyle - */
+ */ public Menu (Control parent) {
this (checkNull(parent).getShell (), SWT.POP_UP);
}
@@ -80,7 +80,7 @@ public Menu (Control parent) { * @see SWT#POP_UP * @see Widget#checkSubclass * @see Widget#getStyle - */
+ */ public Menu (Decorations parent, int style) {
super (parent, checkStyle (style));
this.parent = parent;
@@ -105,7 +105,7 @@ public Menu (Decorations parent, int style) { * @see SWT#DROP_DOWN * @see Widget#checkSubclass * @see Widget#getStyle - */
+ */ public Menu (Menu parentMenu) {
this (checkNull(parentMenu).parent, SWT.DROP_DOWN);
}
@@ -128,7 +128,7 @@ public Menu (Menu parentMenu) { * @see SWT#DROP_DOWN * @see Widget#checkSubclass * @see Widget#getStyle - */
+ */ public Menu (MenuItem parentItem) {
this (checkNull(parentItem).parent);
}
@@ -150,7 +150,7 @@ public Menu (MenuItem parentItem) { * * @see HelpListener * @see #removeHelpListener - */
+ */ public void addHelpListener (HelpListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -175,7 +175,7 @@ public void addHelpListener (HelpListener listener) { * * @see MenuListener * @see #removeMenuListener - */
+ */ public void addMenuListener(MenuListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -279,7 +279,7 @@ void createWidget (int index) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public MenuItem getDefaultItem () {
checkWidget();
return defaultItem;
@@ -301,7 +301,7 @@ public Display getDisplay () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public boolean getEnabled () {
checkWidget();
int [] argList = {OS.XmNsensitive, 0};
@@ -322,7 +322,7 @@ public boolean getEnabled () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public MenuItem getItem (int index) {
checkWidget();
int [] argList = {OS.XmNchildren, 0, OS.XmNnumChildren, 0};
@@ -352,7 +352,7 @@ public MenuItem getItem (int index) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int getItemCount () {
checkWidget();
int [] argList = {OS.XmNchildren, 0, OS.XmNnumChildren, 0};
@@ -381,7 +381,7 @@ public int getItemCount () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public MenuItem [] getItems () {
checkWidget();
int [] argList = {OS.XmNchildren, 0, OS.XmNnumChildren, 0};
@@ -423,7 +423,7 @@ String getNameText () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public Decorations getParent () {
checkWidget();
return parent;
@@ -439,7 +439,7 @@ public Decorations getParent () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public MenuItem getParentItem () {
checkWidget();
return cascade;
@@ -455,7 +455,7 @@ public MenuItem getParentItem () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public Menu getParentMenu () {
checkWidget();
if (cascade != null) return cascade.parent;
@@ -475,7 +475,7 @@ public Menu getParentMenu () { * </ul>
*
* @see #getParent
- */
+ */ public Shell getShell () {
checkWidget();
return parent.getShell ();
@@ -496,7 +496,7 @@ public Shell getShell () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public boolean getVisible () {
checkWidget();
return OS.XtIsManaged (handle);
@@ -523,7 +523,7 @@ void hookEvents () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int indexOf (MenuItem item) {
checkWidget();
int [] argList = {OS.XmNchildren, 0, OS.XmNnumChildren, 0};
@@ -551,7 +551,7 @@ public int indexOf (MenuItem item) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public boolean isEnabled () {
checkWidget();
Menu parentMenu = getParentMenu ();
@@ -574,7 +574,7 @@ public boolean isEnabled () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public boolean isVisible () {
checkWidget();
return getVisible ();
@@ -646,7 +646,7 @@ void releaseWidget () { *
* @see HelpListener
* @see #addHelpListener
- */
+ */ public void removeHelpListener (HelpListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -669,7 +669,7 @@ public void removeHelpListener (HelpListener listener) { *
* @see MenuListener
* @see #addMenuListener
- */
+ */ public void removeMenuListener(MenuListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -697,7 +697,7 @@ void sendHelpEvent (int callData) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setDefaultItem (MenuItem item) {
checkWidget();
if (item != null && item.isDisposed()) error(SWT.ERROR_INVALID_ARGUMENT);
@@ -715,7 +715,7 @@ public void setDefaultItem (MenuItem item) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setEnabled (boolean enabled) {
checkWidget();
int [] argList = {OS.XmNsensitive, enabled ? 1 : 0};
@@ -736,7 +736,7 @@ public void setEnabled (boolean enabled) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setLocation (int x, int y) {
checkWidget();
if ((style & (SWT.BAR | SWT.DROP_DOWN)) != 0) return;
@@ -759,7 +759,7 @@ public void setLocation (int x, int y) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setVisible (boolean visible) {
checkWidget();
if ((style & (SWT.BAR | SWT.DROP_DOWN)) != 0) return;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/MenuItem.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/MenuItem.java index 5f945c87db..86e0804919 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/MenuItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/MenuItem.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -26,7 +26,7 @@ import org.eclipse.swt.events.*; * </p><p> * IMPORTANT: This class is <em>not</em> intended to be subclassed. * </p> - */
+ */ public class MenuItem extends Item {
int accelerator;
Menu parent, menu;
@@ -64,7 +64,7 @@ public class MenuItem extends Item { * @see SWT#SEPARATOR * @see Widget#checkSubclass * @see Widget#getStyle - */
+ */ public MenuItem (Menu parent, int style) {
super (parent, checkStyle (style));
this.parent = parent;
@@ -105,7 +105,7 @@ public MenuItem (Menu parent, int style) { * @see SWT#SEPARATOR * @see Widget#checkSubclass * @see Widget#getStyle - */
+ */ public MenuItem (Menu parent, int style, int index) {
super (parent, checkStyle (style));
this.parent = parent;
@@ -131,7 +131,7 @@ public MenuItem (Menu parent, int style, int index) { *
* @see ArmListener
* @see #removeArmListener
- */
+ */ public void addArmListener (ArmListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -156,7 +156,7 @@ public void addArmListener (ArmListener listener) { *
* @see HelpListener
* @see #removeHelpListener
- */
+ */ public void addHelpListener (HelpListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -186,7 +186,7 @@ public void addHelpListener (HelpListener listener) { * @see SelectionListener
* @see #removeSelectionListener
* @see SelectionEvent
- */
+ */ public void addSelectionListener(SelectionListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -276,7 +276,7 @@ void destroyWidget () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int getAccelerator () {
checkWidget();
return accelerator;
@@ -298,7 +298,7 @@ public Display getDisplay () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public boolean getEnabled () {
checkWidget();
int [] argList = {OS.XmNsensitive, 0};
@@ -318,7 +318,7 @@ public boolean getEnabled () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public Menu getMenu () {
checkWidget();
return menu;
@@ -336,7 +336,7 @@ String getNameText () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public Menu getParent () {
checkWidget();
return parent;
@@ -354,7 +354,7 @@ public Menu getParent () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public boolean getSelection () {
checkWidget();
if ((style & (SWT.CHECK | SWT.RADIO)) == 0) return false;
@@ -390,7 +390,7 @@ void hookEvents () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public boolean isEnabled () {
return getEnabled ();
}
@@ -414,10 +414,10 @@ String keysymName (int keysym) { ('A' <= keysym && keysym <= 'Z')) {
return new String (new char [] {(char) keysym});
}
- /**
+ /*
* Note that XKeysymToString returns a value in a static
* area which must not be modified or freed.
- */
+ */ int ptr = OS.XKeysymToString (keysym);
if (ptr == 0) return "";
int length = OS.strlen (ptr);
@@ -495,7 +495,7 @@ void releaseWidget () { *
* @see ArmListener
* @see #addArmListener
- */
+ */ public void removeArmListener (ArmListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -518,7 +518,7 @@ public void removeArmListener (ArmListener listener) { *
* @see HelpListener
* @see #addHelpListener
- */
+ */ public void removeHelpListener (HelpListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -541,7 +541,7 @@ public void removeHelpListener (HelpListener listener) { *
* @see SelectionListener
* @see #addSelectionListener
- */
+ */ public void removeSelectionListener(SelectionListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -561,7 +561,7 @@ public void removeSelectionListener(SelectionListener listener) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setAccelerator (int accelerator) {
checkWidget();
this.accelerator = accelerator;
@@ -616,7 +616,7 @@ public void setAccelerator (int accelerator) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setEnabled (boolean enabled) {
checkWidget();
int [] argList = {OS.XmNsensitive, enabled ? 1 : 0};
@@ -641,7 +641,7 @@ public void setEnabled (boolean enabled) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> - */
+ */ public void setMenu (Menu menu) {
checkWidget();
/* Check to make sure the new menu is valid */
@@ -685,25 +685,13 @@ public void setMenu (Menu menu) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setSelection (boolean selected) {
checkWidget();
if ((style & (SWT.CHECK | SWT.RADIO)) == 0) return;
int [] argList = {OS.XmNset, selected ? 1 : 0};
OS.XtSetValues (handle, argList, argList.length / 2);
}
-/**
-* Sets the widget text.
-* <p>
-* @param string the widget text
-*
-* @exception SWTError(ERROR_THREAD_INVALID_ACCESS)
-* when called from the wrong thread
-* @exception SWTError(ERROR_WIDGET_DISPOSED)
-* when the widget has been disposed
-* @exception SWTError(ERROR_NULL_ARGUMENT)
-* when string is null
-*/
public void setText (String string) {
checkWidget();
if (string == null) error (SWT.ERROR_NULL_ARGUMENT);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/MessageBox.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/MessageBox.java index 5ed0e5efb1..9c95dab480 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/MessageBox.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/MessageBox.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -30,7 +30,7 @@ import org.eclipse.swt.graphics.*; * IMPORTANT: This class is intended to be subclassed <em>only</em>
* within the SWT implementation.
* </p>
- */
+ */ public class MessageBox extends Dialog {
int button;
String message = "";
@@ -56,7 +56,7 @@ public class MessageBox extends Dialog { * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent</li>
* <li>ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass</li>
* </ul>
- */
+ */ public MessageBox (Shell parent) {
this (parent, SWT.OK | SWT.ICON_INFORMATION | SWT.APPLICATION_MODAL);
}
@@ -90,7 +90,7 @@ public MessageBox (Shell parent) { * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent</li> * <li>ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass</li> * </ul> - */
+ */ public MessageBox (Shell parent, int style) {
super (parent, checkStyle (style));
checkSubclass ();
@@ -124,7 +124,7 @@ int createHandle (int parentHandle, int [] argList) { * visible on the dialog while it is open.
*
* @return the message
- */
+ */ public String getMessage () {
return message;
}
@@ -140,7 +140,7 @@ public String getMessage () { * <li>ERROR_WIDGET_DISPOSED - if the dialog has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the dialog</li>
* </ul>
- */
+ */ public int open () {
/* Create the dialog.*/
@@ -406,7 +406,7 @@ void setMessage (int dialogHandle) { * visible on the dialog while it is open.
*
* @param string the message
- */
+ */ public void setMessage (String string) {
message = string;
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/ProgressBar.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/ProgressBar.java index 4d6b7639c0..943224e845 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/ProgressBar.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/ProgressBar.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -25,8 +25,7 @@ import org.eclipse.swt.graphics.*; * IMPORTANT: This class is intended to be subclassed <em>only</em>
* within the SWT implementation.
* </p>
- */
-
+ */ public class ProgressBar extends Control {
/** @@ -58,7 +57,7 @@ public class ProgressBar extends Control { * @see SWT#VERTICAL * @see Widget#checkSubclass * @see Widget#getStyle - */
+ */ public ProgressBar (Composite parent, int style) {
/*
* Feature in Motif. If you set the progress bar's value to 0,
@@ -135,7 +134,7 @@ void disableTraversal () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int getMaximum () {
checkWidget();
int [] argList = {OS.XmNmaximum, 0};
@@ -151,7 +150,7 @@ public int getMaximum () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int getMinimum () {
checkWidget();
int [] argList = {OS.XmNminimum, 0};
@@ -167,7 +166,7 @@ public int getMinimum () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int getSelection () {
checkWidget();
int [] argList = {
@@ -206,7 +205,7 @@ void realizeChildren () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setMaximum (int value) {
checkWidget();
if (value < 0) return;
@@ -228,7 +227,7 @@ public void setMaximum (int value) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setMinimum (int value) {
checkWidget();
if (value < 0) return;
@@ -266,7 +265,7 @@ public void setMinimum (int value) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setSelection (int value) {
checkWidget();
if (value < 0) return;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Sash.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Sash.java index 9b2536df41..06f592baa5 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Sash.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Sash.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -26,7 +26,7 @@ import org.eclipse.swt.events.*; * IMPORTANT: This class is intended to be subclassed <em>only</em> * within the SWT implementation. * </p> - */
+ */ public class Sash extends Control {
boolean dragging;
int startX, startY, lastX, lastY;
@@ -64,7 +64,7 @@ public class Sash extends Control { * @see SWT#VERTICAL * @see Widget#checkSubclass * @see Widget#getStyle - */
+ */ public Sash (Composite parent, int style) {
super (parent, checkStyle (style));
}
@@ -93,7 +93,7 @@ public Sash (Composite parent, int style) { * @see SelectionListener
* @see #removeSelectionListener
* @see SelectionEvent
- */
+ */ public void addSelectionListener(SelectionListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -395,7 +395,7 @@ void releaseWidget () { *
* @see SelectionListener
* @see #addSelectionListener
- */
+ */ public void removeSelectionListener(SelectionListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Scale.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Scale.java index 3b6fd19b86..1d66fa7800 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Scale.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Scale.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -27,7 +27,7 @@ import org.eclipse.swt.graphics.*; * IMPORTANT: This class is intended to be subclassed <em>only</em> * within the SWT implementation. * </p> - */
+ */ public class Scale extends Control {
/** * Constructs a new instance of this class given its parent @@ -57,7 +57,7 @@ public class Scale extends Control { * @see SWT#VERTICAL * @see Widget#checkSubclass * @see Widget#getStyle - */
+ */ public Scale (Composite parent, int style) {
super (parent, checkStyle (style));
}
@@ -80,7 +80,7 @@ public Scale (Composite parent, int style) { *
* @see SelectionListener
* @see #removeSelectionListener
- */
+ */ public void addSelectionListener(SelectionListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -133,7 +133,7 @@ void createHandle (int index) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int getIncrement () {
checkWidget();
return 1;
@@ -147,7 +147,7 @@ public int getIncrement () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int getMaximum () {
checkWidget();
int [] argList = {OS.XmNmaximum, 0};
@@ -163,7 +163,7 @@ public int getMaximum () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int getMinimum () {
checkWidget();
int [] argList = {OS.XmNminimum, 0};
@@ -181,7 +181,7 @@ public int getMinimum () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int getPageIncrement () {
checkWidget();
int [] argList = {OS.XmNscaleMultiple, 0};
@@ -197,7 +197,7 @@ public int getPageIncrement () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int getSelection () {
checkWidget();
int [] argList = {OS.XmNvalue, 0};
@@ -226,7 +226,7 @@ void hookEvents () { *
* @see SelectionListener
* @see #addSelectionListener
- */
+ */ public void removeSelectionListener(SelectionListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -246,7 +246,7 @@ public void removeSelectionListener(SelectionListener listener) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setIncrement (int increment) {
checkWidget();
}
@@ -261,7 +261,7 @@ public void setIncrement (int increment) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setMaximum (int value) {
checkWidget();
if (value < 0) return;
@@ -283,7 +283,7 @@ public void setMaximum (int value) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setMinimum (int value) {
checkWidget();
if (value < 0) return;
@@ -306,7 +306,7 @@ public void setMinimum (int value) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setPageIncrement (int pageIncrement) {
checkWidget();
if (pageIncrement < 1) return;
@@ -328,7 +328,7 @@ public void setPageIncrement (int pageIncrement) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setSelection (int selection) {
checkWidget();
if (selection < 0) return;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/ScrollBar.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/ScrollBar.java index d538e1b222..71c7dab572 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/ScrollBar.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/ScrollBar.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -72,7 +72,7 @@ import org.eclipse.swt.events.*; * @see Scrollable * @see Scrollable#getHorizontalBar * @see Scrollable#getVerticalBar - */
+ */ public class ScrollBar extends Widget {
Scrollable parent;
ScrollBar () {
@@ -114,7 +114,7 @@ ScrollBar (Scrollable parent, int style) { * @see SelectionListener
* @see #removeSelectionListener
* @see SelectionEvent
- */
+ */ public void addSelectionListener(SelectionListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -137,9 +137,6 @@ void createHandle (int index) { handle = OS.XmCreateScrollBar (parentHandle, null, argList, argList.length / 2);
if (handle == 0) error (SWT.ERROR_NO_HANDLES);
}
-/**
-* Gets the Display.
-*/
public Display getDisplay () {
Scrollable parent = this.parent;
if (parent == null) error (SWT.ERROR_WIDGET_DISPOSED);
@@ -157,7 +154,7 @@ public Display getDisplay () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public boolean getEnabled () {
checkWidget();
int [] argList = {OS.XmNsensitive, 0};
@@ -175,7 +172,7 @@ public boolean getEnabled () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int getIncrement () {
checkWidget();
int [] argList = {OS.XmNincrement, 0};
@@ -191,7 +188,7 @@ public int getIncrement () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int getMaximum () {
checkWidget();
int [] argList = {OS.XmNmaximum, 0};
@@ -207,7 +204,7 @@ public int getMaximum () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int getMinimum () {
checkWidget();
int [] argList = {OS.XmNminimum, 0};
@@ -225,7 +222,7 @@ public int getMinimum () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int getPageIncrement () {
checkWidget();
int [] argList = {OS.XmNpageIncrement, 0};
@@ -241,7 +238,7 @@ public int getPageIncrement () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public Scrollable getParent () {
checkWidget();
return parent;
@@ -255,7 +252,7 @@ public Scrollable getParent () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int getSelection () {
checkWidget();
int [] argList = {OS.XmNvalue, 0};
@@ -274,7 +271,7 @@ public int getSelection () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public Point getSize () {
checkWidget();
int [] argList = {OS.XmNwidth, 0, OS.XmNheight, 0, OS.XmNborderWidth, 0};
@@ -294,7 +291,7 @@ public Point getSize () { * </ul>
*
* @see ScrollBar
- */
+ */ public int getThumb () {
checkWidget();
int [] argList = {OS.XmNsliderSize, 0};
@@ -317,7 +314,7 @@ public int getThumb () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public boolean getVisible () {
checkWidget();
return OS.XtIsManaged (handle);
@@ -350,7 +347,7 @@ void hookEvents () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public boolean isEnabled () {
checkWidget();
return getEnabled () && parent.isEnabled ();
@@ -371,7 +368,7 @@ public boolean isEnabled () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public boolean isVisible () {
checkWidget();
return getVisible () && parent.isVisible ();
@@ -444,7 +441,7 @@ void releaseWidget () { *
* @see SelectionListener
* @see #addSelectionListener
- */
+ */ public void removeSelectionListener(SelectionListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -464,7 +461,7 @@ public void removeSelectionListener(SelectionListener listener) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setEnabled (boolean enabled) {
checkWidget();
int [] argList = {OS.XmNsensitive, enabled ? 1 : 0};
@@ -482,7 +479,7 @@ public void setEnabled (boolean enabled) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setIncrement (int value) {
checkWidget();
if (value < 1) return;
@@ -500,7 +497,7 @@ public void setIncrement (int value) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setMaximum (int value) {
checkWidget();
if (value < 0) return;
@@ -522,7 +519,7 @@ public void setMaximum (int value) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setMinimum (int value) {
checkWidget();
if (value < 0) return;
@@ -564,7 +561,7 @@ public void setMinimum (int value) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setPageIncrement (int value) {
checkWidget();
if (value < 1) return;
@@ -582,7 +579,7 @@ public void setPageIncrement (int value) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setSelection (int selection) {
checkWidget();
if (selection < 0) return;
@@ -606,7 +603,7 @@ public void setSelection (int selection) { * </ul>
*
* @see ScrollBar
- */
+ */ public void setThumb (int value) {
checkWidget();
if (value < 1) return;
@@ -637,7 +634,7 @@ public void setThumb (int value) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setValues (int selection, int minimum, int maximum, int thumb, int increment, int pageIncrement) {
checkWidget();
if (selection < 0) return;
@@ -676,7 +673,7 @@ public void setValues (int selection, int minimum, int maximum, int thumb, int i * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setVisible (boolean visible) {
checkWidget();
/*
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Scrollable.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Scrollable.java index 734901d870..821efad355 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Scrollable.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Scrollable.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -22,7 +22,7 @@ import org.eclipse.swt.graphics.*; * IMPORTANT: This class is intended to be subclassed <em>only</em>
* within the SWT implementation.
* </p>
- */
+ */ public abstract class Scrollable extends Control {
int scrolledHandle, formHandle;
ScrollBar horizontalBar, verticalBar;
@@ -57,7 +57,7 @@ Scrollable () { * @see SWT#V_SCROLL * @see Widget#checkSubclass * @see Widget#getStyle - */
+ */ public Scrollable (Composite parent, int style) {
super (parent, style);
}
@@ -83,7 +83,7 @@ public Scrollable (Composite parent, int style) { * </ul>
*
* @see #getClientArea
- */
+ */ public Rectangle computeTrim (int x, int y, int width, int height) {
checkWidget();
int border = getBorderWidth ();
@@ -165,7 +165,7 @@ void enableWidget (boolean enabled) { * </ul>
*
* @see #computeTrim
- */
+ */ public Rectangle getClientArea () {
checkWidget();
int [] argList = {OS.XmNwidth, 0, OS.XmNheight, 0};
@@ -182,7 +182,7 @@ public Rectangle getClientArea () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public ScrollBar getHorizontalBar () {
checkWidget();
return horizontalBar;
@@ -197,7 +197,7 @@ public ScrollBar getHorizontalBar () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public ScrollBar getVerticalBar () {
checkWidget();
return verticalBar;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Shell.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Shell.java index cb3b970a9b..a7e73d33e9 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Shell.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Shell.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -92,7 +92,7 @@ import org.eclipse.swt.events.*; *
* @see Decorations
* @see SWT
- */
+ */ public class Shell extends Decorations {
Display display;
int shellHandle;
@@ -109,7 +109,7 @@ public class Shell extends Decorations { * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent</li>
* <li>ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass</li>
* </ul>
- */
+ */ public Shell () {
this ((Display) null);
}
@@ -147,7 +147,7 @@ public Shell () { * @see SWT#PRIMARY_MODAL * @see SWT#APPLICATION_MODAL * @see SWT#SYSTEM_MODAL - */
+ */ public Shell (int style) {
this ((Display) null, style);
}
@@ -169,7 +169,7 @@ public Shell (int style) { * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent</li>
* <li>ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass</li>
* </ul>
- */
+ */ public Shell (Display display) {
this (display, SWT.SHELL_TRIM);
}
@@ -215,7 +215,7 @@ public Shell (Display display) { * @see SWT#PRIMARY_MODAL * @see SWT#APPLICATION_MODAL * @see SWT#SYSTEM_MODAL - */
+ */ public Shell (Display display, int style) {
this (display, null, style, 0);
}
@@ -254,7 +254,7 @@ Shell (Display display, Shell parent, int style, int handle) { * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent</li>
* <li>ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass</li>
* </ul>
- */
+ */ public Shell (Shell parent) {
this (parent, SWT.DIALOG_TRIM);
}
@@ -299,7 +299,7 @@ public Shell (Shell parent) { * @see SWT#PRIMARY_MODAL * @see SWT#APPLICATION_MODAL * @see SWT#SYSTEM_MODAL - */
+ */ public Shell (Shell parent, int style) {
this (parent != null ? parent.getDisplay () : null, parent, style, 0);
}
@@ -336,7 +336,7 @@ public static Shell motif_new (Display display, int handle) { *
* @see ShellListener
* @see #removeShellListener
- */
+ */ public void addShellListener(ShellListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -374,10 +374,10 @@ void adjustTrim () { if (parent [0] == 0) return;
}
- /**
+ /*
* Translate the coordinates of the shell window to the
* coordinates of the direct child of the root window
- */
+ */ if (shellWindow == trimWindow) return;
/* Query the border width of the direct child of the root window */
@@ -460,7 +460,7 @@ void adjustTrim () { * </ul> * * @see #dispose - */
+ */ public void close () {
checkWidget();
closeWidget ();
@@ -667,7 +667,7 @@ void enableWidget (boolean enabled) { * @see Decorations#setDefaultButton
* @see Shell#open
* @see Shell#setActive
-*/
+ */ public void forceActive () {
checkWidget ();
bringToTop (true);
@@ -714,7 +714,7 @@ public Display getDisplay () { * </ul>
*
* @see SWT
- */
+ */ public int getImeInputMode () {
checkWidget();
return SWT.NONE;
@@ -743,7 +743,7 @@ public Shell getShell () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public Shell [] getShells () {
checkWidget();
int count = 0;
@@ -859,7 +859,7 @@ void manageChildren () { * @see Decorations#setDefaultButton
* @see Shell#setActive
* @see Shell#forceActive
-*/
+ */ public void open () {
checkWidget();
setVisible (true);
@@ -996,7 +996,7 @@ void releaseWidget () { *
* @see ShellListener
* @see #addShellListener
- */
+ */ public void removeShellListener(ShellListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -1041,7 +1041,7 @@ void saveBounds () { * @see Decorations#setDefaultButton
* @see Shell#open
* @see Shell#setActive
-*/
+ */ public void setActive () {
checkWidget ();
bringToTop (false);
@@ -1098,7 +1098,7 @@ void setActiveControl (Control control) { * </ul>
*
* @see SWT
- */
+ */ public void setImeInputMode (int mode) {
checkWidget();
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Slider.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Slider.java index 1589e17f09..24b7b736f1 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Slider.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Slider.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -57,7 +57,7 @@ import org.eclipse.swt.graphics.*; * </p>
*
* @see ScrollBar
- */
+ */ public class Slider extends Control {
/** * Constructs a new instance of this class given its parent @@ -87,7 +87,7 @@ public class Slider extends Control { * @see SWT#VERTICAL * @see Widget#checkSubclass * @see Widget#getStyle - */
+ */ public Slider (Composite parent, int style) {
super (parent, checkStyle (style));
}
@@ -122,7 +122,7 @@ public Slider (Composite parent, int style) { * @see SelectionListener
* @see #removeSelectionListener
* @see SelectionEvent
- */
+ */ public void addSelectionListener(SelectionListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -175,7 +175,7 @@ void createHandle (int index) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int getIncrement () {
checkWidget();
int [] argList = {OS.XmNincrement, 0};
@@ -191,7 +191,7 @@ public int getIncrement () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int getMaximum () {
checkWidget();
int [] argList = {OS.XmNmaximum, 0};
@@ -207,7 +207,7 @@ public int getMaximum () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int getMinimum () {
checkWidget();
int [] argList = {OS.XmNminimum, 0};
@@ -225,7 +225,7 @@ public int getMinimum () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int getPageIncrement () {
checkWidget();
int [] argList = {OS.XmNpageIncrement, 0};
@@ -241,7 +241,7 @@ public int getPageIncrement () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int getSelection () {
checkWidget();
int [] argList = {OS.XmNvalue, 0};
@@ -258,7 +258,7 @@ public int getSelection () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int getThumb () {
checkWidget();
int [] argList = {OS.XmNsliderSize, 0};
@@ -314,7 +314,7 @@ int processSelection (int callData) { *
* @see SelectionListener
* @see #addSelectionListener
- */
+ */ public void removeSelectionListener(SelectionListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -334,7 +334,7 @@ public void removeSelectionListener(SelectionListener listener) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setIncrement (int value) {
checkWidget();
if (value < 1) return;
@@ -352,7 +352,7 @@ public void setIncrement (int value) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setMaximum (int value) {
checkWidget();
if (value < 0) return;
@@ -374,7 +374,7 @@ public void setMaximum (int value) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setMinimum (int value) {
checkWidget();
if (value < 0) return;
@@ -416,7 +416,7 @@ public void setMinimum (int value) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setPageIncrement (int value) {
checkWidget();
if (value < 1) return;
@@ -434,7 +434,7 @@ public void setPageIncrement (int value) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setSelection (int value) {
checkWidget();
if (value < 0) return;
@@ -458,7 +458,7 @@ public void setSelection (int value) { * </ul>
*
* @see ScrollBar
- */
+ */ public void setThumb (int value) {
checkWidget();
if (value < 1) return;
@@ -489,7 +489,7 @@ public void setThumb (int value) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setValues (int selection, int minimum, int maximum, int thumb, int increment, int pageIncrement) {
checkWidget();
if (selection < 0) return;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Text.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Text.java index 367f301484..9312d7ae66 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Text.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Text.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -26,7 +26,7 @@ import org.eclipse.swt.events.*; * </p><p> * IMPORTANT: This class is <em>not</em> intended to be subclassed. * </p> - */
+ */ public class Text extends Scrollable {
char echoCharacter;
boolean ignoreChange;
@@ -77,7 +77,7 @@ public class Text extends Scrollable { * @see SWT#WRAP * @see Widget#checkSubclass * @see Widget#getStyle - */
+ */ public Text (Composite parent, int style) {
super (parent, checkStyle (style));
}
@@ -100,7 +100,7 @@ public Text (Composite parent, int style) { *
* @see ModifyListener
* @see #removeModifyListener
- */
+ */ public void addModifyListener (ModifyListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -130,7 +130,7 @@ public void addModifyListener (ModifyListener listener) { * @see SelectionListener
* @see #removeSelectionListener
* @see SelectionEvent
- */
+ */ public void addSelectionListener(SelectionListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -156,7 +156,7 @@ public void addSelectionListener(SelectionListener listener) { *
* @see VerifyListener
* @see #removeVerifyListener
- */
+ */ public void addVerifyListener (VerifyListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -179,7 +179,7 @@ public void addVerifyListener (VerifyListener listener) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void append (String string) {
checkWidget();
if (string == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -209,7 +209,7 @@ static int checkStyle (int style) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void clearSelection () {
checkWidget();
int xDisplay = OS.XtDisplay (handle);
@@ -306,7 +306,7 @@ public Rectangle computeTrim (int x, int y, int width, int height) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void copy () {
checkWidget();
int xDisplay = OS.XtDisplay (handle);
@@ -363,7 +363,7 @@ ScrollBar createScrollBar (int type) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void cut () {
checkWidget();
int xDisplay = OS.XtDisplay (handle);
@@ -394,7 +394,7 @@ int defaultForeground () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int getCaretLineNumber () {
checkWidget();
return getLineNumber (OS.XmTextGetInsertionPosition (handle));
@@ -411,7 +411,7 @@ public int getCaretLineNumber () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public Point getCaretLocation () {
checkWidget();
int position;
@@ -436,7 +436,7 @@ public Point getCaretLocation () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int getCaretPosition () {
checkWidget();
return OS.XmTextGetInsertionPosition (handle);
@@ -450,7 +450,7 @@ public int getCaretPosition () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int getCharCount () {
checkWidget();
return OS.XmTextGetLastPosition (handle);
@@ -467,7 +467,7 @@ public int getCharCount () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public boolean getDoubleClickEnabled () {
checkWidget();
int [] argList = {OS.XmNselectionArrayCount, 0};
@@ -486,7 +486,7 @@ public boolean getDoubleClickEnabled () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public char getEchoChar () {
checkWidget();
return echoCharacter;
@@ -498,7 +498,7 @@ public char getEchoChar () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public boolean getEditable () {
checkWidget();
/*
@@ -521,7 +521,7 @@ public boolean getEditable () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int getLineCount () {
checkWidget();
return getLineNumber (echoCharacter != '\0' ? hiddenText.length () : OS.XmTextGetLastPosition (handle));
@@ -535,7 +535,7 @@ public int getLineCount () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public String getLineDelimiter () {
checkWidget();
return "\n";
@@ -549,7 +549,7 @@ public String getLineDelimiter () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int getLineHeight () {
checkWidget();
return getFontHeight ();
@@ -622,7 +622,7 @@ int getNavigationType () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public Point getSelection () {
checkWidget();
if (textVerify != null) {
@@ -644,7 +644,7 @@ public Point getSelection () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int getSelectionCount () {
checkWidget();
if (textVerify != null) {
@@ -663,7 +663,7 @@ public int getSelectionCount () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public String getSelectionText () {
checkWidget();
if (echoCharacter != '\0' || textVerify != null) {
@@ -692,7 +692,7 @@ public String getSelectionText () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int getTabs () {
checkWidget();
/* Tabs are not supported in MOTIF. */
@@ -710,7 +710,7 @@ public int getTabs () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public String getText () {
checkWidget();
if (echoCharacter != '\0') return hiddenText;
@@ -738,7 +738,7 @@ public String getText () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public String getText (int start, int end) {
checkWidget();
int numChars = end - start + 1;
@@ -769,7 +769,7 @@ public String getText (int start, int end) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int getTextLimit () {
checkWidget();
return OS.XmTextGetMaxLength (handle);
@@ -787,7 +787,7 @@ public int getTextLimit () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int getTopIndex () {
checkWidget();
if ((style & SWT.SINGLE) != 0) return 0;
@@ -818,7 +818,7 @@ public int getTopIndex () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int getTopPixel () {
checkWidget();
return getTopIndex () * getLineHeight ();
@@ -852,7 +852,7 @@ int inputContext () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void insert (String string) {
checkWidget();
if (string == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -881,7 +881,7 @@ public void insert (String string) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void paste () {
checkWidget();
Display display = getDisplay ();
@@ -1004,7 +1004,7 @@ void releaseWidget () { *
* @see ModifyListener
* @see #addModifyListener
- */
+ */ public void removeModifyListener (ModifyListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -1027,7 +1027,7 @@ public void removeModifyListener (ModifyListener listener) { *
* @see SelectionListener
* @see #addSelectionListener
- */
+ */ public void removeSelectionListener(SelectionListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -1051,7 +1051,7 @@ public void removeSelectionListener(SelectionListener listener) { *
* @see VerifyListener
* @see #addVerifyListener
- */
+ */ public void removeVerifyListener (VerifyListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -1093,7 +1093,7 @@ byte [] sendIMEKeyEvent (int type, XKeyEvent xEvent) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void selectAll () {
checkWidget();
/* Clear the highlight before setting the selection. */
@@ -1165,7 +1165,7 @@ boolean setBounds (int x, int y, int width, int height, boolean move, boolean re * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setDoubleClickEnabled (boolean doubleClick) {
checkWidget();
int [] argList = {OS.XmNselectionArrayCount, doubleClick ? 4 : 1};
@@ -1190,7 +1190,7 @@ public void setDoubleClickEnabled (boolean doubleClick) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> - */
+ */ public void setEchoChar (char echo) {
checkWidget();
if (echoCharacter == echo) return;
@@ -1218,7 +1218,7 @@ public void setEchoChar (char echo) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setEditable (boolean editable) {
checkWidget();
OS.XmTextSetEditable (handle, editable);
@@ -1228,9 +1228,6 @@ public void setEditable (boolean editable) { int [] argList = {OS.XmNcursorPositionVisible, editable && hasFocus () ? 1 : 0};
OS.XtSetValues (handle, argList, argList.length / 2);
}
-/**
-* Sets the redraw flag.
-*/
public void setRedraw (boolean redraw) {
checkWidget();
if ((style & SWT.SINGLE) != 0) return;
@@ -1262,7 +1259,7 @@ public void setRedraw (boolean redraw) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> - */
+ */ public void setSelection (int start) {
checkWidget();
/* Clear the selection and highlight before moving the i-beam. */
@@ -1303,7 +1300,7 @@ public void setSelection (int start) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> - */
+ */ public void setSelection (int start, int end) {
checkWidget();
/* Clear the highlight before setting the selection. */
@@ -1359,13 +1356,13 @@ public void setSelection (int start, int end) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> - */
+ */ public void setSelection (Point selection) {
checkWidget();
if (selection == null) error (SWT.ERROR_NULL_ARGUMENT);
setSelection (selection.x, selection.y);
}
- /**
+/**
* Sets the number of tabs.
* <p>
* Tab stop spacing is specified in terms of the
@@ -1380,7 +1377,7 @@ public void setSelection (Point selection) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
-*/
+ */ public void setTabs (int tabs) {
checkWidget();
/* Do nothing. Tabs are not supported in MOTIF. */
@@ -1399,7 +1396,7 @@ public void setTabs (int tabs) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> - */
+ */ public void setText (String string) {
checkWidget();
if (string == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -1436,7 +1433,7 @@ public void setText (String string) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> - */
+ */ public void setTextLimit (int limit) {
checkWidget();
if (limit == 0) error (SWT.ERROR_CANNOT_BE_ZERO);
@@ -1453,7 +1450,7 @@ public void setTextLimit (int limit) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setTopIndex (int index) {
checkWidget();
if ((style & SWT.SINGLE) != 0) return;
@@ -1485,7 +1482,7 @@ void setWrap (boolean wrap) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void showSelection () {
checkWidget();
Display display = getDisplay ();
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/ToolBar.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/ToolBar.java index 40c5a653a1..8cf3a99a24 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/ToolBar.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/ToolBar.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -31,7 +31,7 @@ import org.eclipse.swt.graphics.*; * </p><p> * IMPORTANT: This class is <em>not</em> intended to be subclassed. * </p> - */
+ */ public class ToolBar extends Composite {
int drawCount, itemCount;
ToolItem [] items;
@@ -66,7 +66,7 @@ public class ToolBar extends Composite { * @see SWT#VERTICAL * @see Widget#checkSubclass * @see Widget#getStyle - */
+ */ public ToolBar (Composite parent, int style) {
super (parent, checkStyle (style));
@@ -155,7 +155,7 @@ void destroyItem (ToolItem item) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public ToolItem getItem (int index) {
checkWidget();
ToolItem [] items = getItems ();
@@ -179,7 +179,7 @@ public ToolItem getItem (int index) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public ToolItem getItem (Point pt) {
checkWidget();
ToolItem [] items = getItems ();
@@ -199,7 +199,7 @@ public ToolItem getItem (Point pt) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int getItemCount () {
checkWidget();
return itemCount;
@@ -219,7 +219,7 @@ public int getItemCount () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public ToolItem [] getItems () {
checkWidget();
ToolItem [] result = new ToolItem [itemCount];
@@ -238,7 +238,7 @@ public ToolItem [] getItems () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int getRowCount () {
checkWidget();
Rectangle rect = getClientArea ();
@@ -261,7 +261,7 @@ public int getRowCount () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int indexOf (ToolItem item) {
checkWidget();
if (item == null) error (SWT.ERROR_NULL_ARGUMENT);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/ToolItem.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/ToolItem.java index feee1694c8..ed7fcd7402 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/ToolItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/ToolItem.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -26,7 +26,7 @@ import org.eclipse.swt.events.*; * </p><p>
* IMPORTANT: This class is <em>not</em> intended to be subclassed.
* </p>
- */
+ */ public class ToolItem extends Item {
ToolBar parent;
Image hotImage, disabledImage;
@@ -71,7 +71,7 @@ public class ToolItem extends Item { * @see SWT#DROP_DOWN * @see Widget#checkSubclass * @see Widget#getStyle - */
+ */ public ToolItem (ToolBar parent, int style) {
super (parent, checkStyle (style));
this.parent = parent;
@@ -113,7 +113,7 @@ public ToolItem (ToolBar parent, int style) { * @see SWT#DROP_DOWN * @see Widget#checkSubclass * @see Widget#getStyle - */
+ */ public ToolItem (ToolBar parent, int style, int index) {
super (parent, checkStyle (style));
this.parent = parent;
@@ -145,7 +145,7 @@ public ToolItem (ToolBar parent, int style, int index) { * @see SelectionListener
* @see #removeSelectionListener
* @see SelectionEvent
- */
+ */ public void addSelectionListener(SelectionListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -290,7 +290,7 @@ public void dispose () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public Rectangle getBounds () {
checkWidget();
int [] argList = {OS.XmNx, 0, OS.XmNy, 0, OS.XmNwidth, 0, OS.XmNheight, 0};
@@ -307,7 +307,7 @@ public Rectangle getBounds () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public Control getControl () {
checkWidget();
return control;
@@ -325,7 +325,7 @@ public Control getControl () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> - */
+ */ public Image getDisabledImage () {
checkWidget();
return disabledImage;
@@ -344,7 +344,7 @@ public Image getDisabledImage () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public boolean getEnabled () {
checkWidget();
int [] argList = {OS.XmNsensitive, 0};
@@ -369,7 +369,7 @@ public Display getDisplay () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public Image getHotImage () {
checkWidget();
return hotImage;
@@ -383,7 +383,7 @@ public Image getHotImage () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public ToolBar getParent () {
checkWidget();
return parent;
@@ -404,7 +404,7 @@ public ToolBar getParent () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> - */
+ */ public boolean getSelection () {
checkWidget();
if ((style & (SWT.CHECK | SWT.RADIO)) == 0) return false;
@@ -419,7 +419,7 @@ public boolean getSelection () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public String getToolTipText () {
checkWidget();
return toolTipText;
@@ -433,7 +433,7 @@ public String getToolTipText () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int getWidth () {
checkWidget();
int [] argList = {OS.XmNwidth, 0};
@@ -480,7 +480,7 @@ void hookEvents () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public boolean isEnabled () {
checkWidget();
return getEnabled () && parent.isEnabled ();
@@ -524,7 +524,7 @@ void releaseWidget () { *
* @see SelectionListener
* @see #addSelectionListener
- */
+ */ public void removeSelectionListener(SelectionListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -577,7 +577,7 @@ void setBounds (int x, int y, int width, int height) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setControl (Control control) {
checkWidget();
if (control != null) {
@@ -632,7 +632,7 @@ public void setControl (Control control) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setEnabled (boolean enabled) {
checkWidget();
int [] argList = {OS.XmNsensitive, enabled ? 1 : 0};
@@ -654,7 +654,7 @@ public void setEnabled (boolean enabled) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setDisabledImage (Image image) {
checkWidget();
if (image != null && image.isDisposed()) error(SWT.ERROR_INVALID_ARGUMENT);
@@ -678,7 +678,7 @@ public void setDisabledImage (Image image) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setHotImage (Image image) {
checkWidget();
if (image != null && image.isDisposed()) error(SWT.ERROR_INVALID_ARGUMENT);
@@ -710,7 +710,7 @@ public void setImage (Image image) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> - */
+ */ public void setSelection (boolean selected) {
checkWidget();
if ((style & (SWT.CHECK | SWT.RADIO)) == 0) return;
@@ -747,7 +747,7 @@ public void setText (String string) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setToolTipText (String string) {
checkWidget();
toolTipText = string;
@@ -761,7 +761,7 @@ public void setToolTipText (String string) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setWidth (int width) {
checkWidget();
if ((style & SWT.SEPARATOR) == 0) return;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Tracker.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Tracker.java index 07558d61cc..e037ff41e7 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Tracker.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Tracker.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -22,7 +22,7 @@ import org.eclipse.swt.events.*; * <p> * IMPORTANT: This class is <em>not</em> intended to be subclassed. * </p> - */
+ */ public class Tracker extends Widget {
Composite parent;
Display display;
@@ -64,7 +64,7 @@ public class Tracker extends Widget { * @see SWT#RESIZE * @see Widget#checkSubclass * @see Widget#getStyle - */
+ */ public Tracker (Composite parent, int style) {
super (parent, checkStyle (style));
this.parent = parent;
@@ -104,7 +104,7 @@ public Tracker (Composite parent, int style) { * @see SWT#RIGHT * @see SWT#UP * @see SWT#DOWN - */
+ */ public Tracker (Display display, int style) {
if (display == null) display = Display.getCurrent ();
if (display == null) display = Display.getDefault ();
@@ -133,7 +133,7 @@ public Tracker (Display display, int style) { *
* @see ControlListener
* @see #removeControlListener
- */
+ */ public void addControlListener (ControlListener listener) {
checkWidget ();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -204,7 +204,7 @@ static int checkStyle (int style) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void close () {
checkWidget ();
tracking = false;
@@ -291,7 +291,7 @@ public Display getDisplay () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public Rectangle [] getRectangles () {
checkWidget ();
return rectangles;
@@ -305,7 +305,7 @@ public Rectangle [] getRectangles () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public boolean getStippled () {
checkWidget ();
return stippled;
@@ -329,7 +329,7 @@ void moveRectangles (int xChange, int yChange) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public boolean open () {
checkWidget ();
if (rectangles == null) return false;
@@ -528,7 +528,7 @@ public boolean open () { *
* @see ControlListener
* @see #addControlListener
- */
+ */ public void removeControlListener (ControlListener listener) {
checkWidget ();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -594,7 +594,7 @@ public void setCursor (Cursor value) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setRectangles (Rectangle [] rectangles) {
checkWidget ();
this.rectangles = rectangles;
@@ -609,7 +609,7 @@ public void setRectangles (Rectangle [] rectangles) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void setStippled (boolean stippled) {
checkWidget ();
this.stippled = stippled;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Widget.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Widget.java index 00faf261a6..54bdc693a9 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Widget.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Widget.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -36,7 +36,7 @@ import org.eclipse.swt.events.*; * </p>
*
* @see #checkSubclass
- */
+ */ public abstract class Widget {
public int handle;
int style, state;
@@ -101,7 +101,7 @@ Widget () { * @see SWT * @see #checkSubclass * @see #getStyle - */
+ */ public Widget (Widget parent, int style) {
checkSubclass ();
checkParent (parent);
@@ -126,7 +126,7 @@ public Widget (Widget parent, int style) { *
* @see Listener
* @see #removeListener
- */
+ */ public void addListener (int eventType, Listener handler) {
checkWidget();
if (handler == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -151,7 +151,7 @@ public void addListener (int eventType, Listener handler) { *
* @see DisposeListener
* @see #removeDisposeListener
- */
+ */ public void addDisposeListener (DisposeListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -191,32 +191,32 @@ void checkParent (Widget parent) { * @exception SWTError <ul>
* <li>ERROR_ILLEGAL_SUBCLASS when called</li>
* </ul>
- */
+ */ protected void checkSubclass () {
if (!isValidSubclass ()) error (SWT.ERROR_INVALID_SUBCLASS);
}
/**
-* Checks access to a widget.
-* <p>
-* Throws an exception when access to the widget
-* is denied.
-*
-* It is an error to call a method on a widget that
-* has been disposed or to call a method on a widget
-* from a thread that is different from the thread
-* that created the widget. There may be more or
-* less error checks in future or different versions
-* of SWT may issue different errors.
-*
-* This method is intended to be called by widget
-* implementors to enforce the standard SWT error
-* checking prologue in API methods.
-*
-* @exception SWTError(ERROR_THREAD_INVALID_ACCESS)
-* when called from the wrong thread
-* @exception SWTError(ERROR_WIDGET_DISPOSED)
-* when the widget has been disposed
-*/
+ * Throws an <code>SWTException</code> if the receiver can not
+ * be accessed by the caller. This may include both checks on
+ * the state of the receiver and more generally on the entire
+ * execution context. This method <em>should</em> be called by
+ * widget implementors to enforce the standard SWT invariants.
+ * <p>
+ * Currently, it is an error to invoke any method (other than
+ * <code>isDisposed()</code>) on a widget that has had its
+ * <code>dispose()</code> method called. It is also an error
+ * to call widget methods from any thread that is different
+ * from the thread that created the widget.
+ * </p><p>
+ * In future releases of SWT, there may be more or fewer error
+ * checks and exceptions may be thrown for different reasons.
+ * </p>
+ *
+ * @exception SWTException <ul>
+ * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
+ * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
+ * </ul>
+ */
protected void checkWidget () {
if (!isValidThread ()) error (SWT.ERROR_THREAD_INVALID_ACCESS);
if (isDisposed ()) error (SWT.ERROR_WIDGET_DISPOSED);
@@ -263,7 +263,7 @@ void destroyWidget () { * @see #addDisposeListener
* @see #removeDisposeListener
* @see #checkWidget
- */
+ */ public void dispose () {
/*
* Note: It is valid to attempt to dispose a widget
@@ -303,7 +303,7 @@ void error (int code) { * </ul>
*
* @see #setData
- */
+ */ public Object getData () {
checkWidget();
return data;
@@ -332,7 +332,7 @@ public Object getData () { * </ul>
*
* @see #setData
- */
+ */ public Object getData (String key) {
checkWidget();
if (key == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -358,7 +358,7 @@ public Object getData (String key) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public abstract Display getDisplay ();
String getName () {
String string = getClass ().getName ();
@@ -388,7 +388,7 @@ String getNameText () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public int getStyle () {
checkWidget();
return style;
@@ -410,7 +410,7 @@ boolean hooks (int eventType) { * </p>
*
* @return <code>true</code> when the widget is disposed and <code>false</code> otherwise
- */
+ */ public boolean isDisposed () {
if (handle != 0) return false;
if ((state & HANDLE) != 0) return true;
@@ -430,7 +430,7 @@ public boolean isDisposed () { * <li>ERROR_WIDGET_DISPOSED when the widget has been disposed</li>
* <li>ERROR_NULL_ARGUMENT when the name is null</li>
* </ul>
- */
+ */ protected boolean isListening (int eventType) {
checkWidget();
return hooks (eventType);
@@ -478,7 +478,7 @@ char mbcsToWcs (int ch, String codePage) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- */
+ */ public void notifyListeners (int eventType, Event event) {
checkWidget();
if (event == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -673,7 +673,7 @@ void releaseWidget () { *
* @see Listener
* @see #addListener
- */
+ */ public void removeListener (int eventType, Listener handler) {
checkWidget();
if (handler == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -681,8 +681,29 @@ public void removeListener (int eventType, Listener handler) { eventTable.unhook (eventType, handler);
}
/**
-* Warning: API under construction.
-*/
+ * Removes the listener from the collection of listeners who will
+ * be notifed when an event of the given type occurs.
+ * <p>
+ * <b>IMPORTANT:</b> This method is <em>not</em> part of the SWT
+ * public API. It is marked public only so that it can be shared
+ * within the packages provided by SWT. It should never be
+ * referenced from application code.
+ * </p>
+ *
+ * @param eventType the type of event to listen for
+ * @param listener the listener which should no longer be notified when the event occurs
+ *
+ * @exception IllegalArgumentException <ul>
+ * <li>ERROR_NULL_ARGUMENT - if the listener is null</li>
+ * </ul>
+ * @exception SWTException <ul>
+ * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
+ * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
+ * </ul>
+ *
+ * @see Listener
+ * @see #addListener
+ */
protected void removeListener (int eventType, SWTEventListener handler) {
checkWidget();
if (handler == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -705,7 +726,7 @@ protected void removeListener (int eventType, SWTEventListener handler) { * * @see DisposeListener * @see #addDisposeListener - */
+ */ public void removeDisposeListener (DisposeListener listener) {
checkWidget();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -812,7 +833,7 @@ void sendEvent (Event event) { * <li>ERROR_WIDGET_DISPOSED - when the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - when called from the wrong thread</li>
* </ul>
- */
+ */ public void setData (Object data) {
checkWidget();
this.data = data;
@@ -841,7 +862,7 @@ public void setData (Object data) { * </ul>
*
* @see #getData
- */
+ */ public void setData (String key, Object value) {
checkWidget();
if (key == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -895,7 +916,7 @@ public void setData (String key, Object value) { * description of the receiver.
*
* @return a string representation of the receiver
- */
+ */ public String toString () {
String string = "*Disposed*";
if (!isDisposed ()) {
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/WidgetTable.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/WidgetTable.java index 19073205ad..da99605818 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/WidgetTable.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/WidgetTable.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/Color.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/Color.java index 57a39d6e75..2f594c39aa 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/Color.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/Color.java @@ -1,7 +1,7 @@ package org.eclipse.swt.graphics;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -25,12 +25,12 @@ public final class Color { /**
* the handle to the OS color resource
* (Warning: This field is platform dependent)
- */
+ */ public int handle;
/**
* the device where this color was created
- */
+ */ Device device;
Color() {
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/Cursor.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/Cursor.java index 77c5f8d828..87dd11b323 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/Cursor.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/Cursor.java @@ -1,7 +1,7 @@ package org.eclipse.swt.graphics;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -37,18 +37,18 @@ public final class Cursor { /**
* the type to the OS cursor resource
* (Warning: This field is platform dependent)
- */
+ */ public int type;
/**
* the handle to the OS cursor resource
* (Warning: This field is platform dependent)
- */
+ */ public int bitmap;
/**
* the device where this cursor was created
- */
+ */ Device device;
Cursor() {
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/Device.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/Device.java index ddafae46a3..6e37cf618b 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/Device.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/Device.java @@ -1,7 +1,7 @@ package org.eclipse.swt.graphics;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/DeviceData.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/DeviceData.java index 27fe10271d..2e35e8a64b 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/DeviceData.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/DeviceData.java @@ -1,7 +1,7 @@ package org.eclipse.swt.graphics;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/Font.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/Font.java index ef08ee0fed..a22091699f 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/Font.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/Font.java @@ -1,7 +1,7 @@ package org.eclipse.swt.graphics;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -27,12 +27,12 @@ public final class Font { /**
* the handle to the OS font resource
* (Warning: This field is platform dependent)
- */
+ */ public byte[] handle;
/**
* the device where this font was created
- */
+ */ Device device;
static final byte[] DefaultFontName;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/FontData.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/FontData.java index 09099c493c..060ddfd726 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/FontData.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/FontData.java @@ -1,7 +1,7 @@ package org.eclipse.swt.graphics;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -39,31 +39,31 @@ public final class FontData { /**
* the font name
* (Warning: This field is platform dependent)
- */
+ */ public String name;
/** * The height of the font data in points * (Warning: This field is platform dependent) - */
+ */ public int height;
/**
* the font style
* (Warning: This field is platform dependent)
- */
+ */ public int style;
/**
* A Photon stem
* (Warning: This field is platform dependent)
- */
+ */ public byte[] stem;
/**
* The locales of the font
* (Warning: These fields are platform dependent)
- */
+ */ String lang, country, variant;
FontData(byte[] stem) {
@@ -365,7 +365,7 @@ public void setName(String name) { *
* @param locale the <code>String</code> representing a Locale object
* @see java.util.Locale#toString
- */
+ */ public void setLocale(String locale) {
lang = country = variant = null;
if (locale != null) {
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/FontMetrics.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/FontMetrics.java index d8c1467ae6..62cca8a1e0 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/FontMetrics.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/FontMetrics.java @@ -1,7 +1,7 @@ package org.eclipse.swt.graphics;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -22,7 +22,7 @@ public final class FontMetrics { * On Windows, handle is a Win32 TEXTMETRIC struct * On Photon, handle is a Photon FontQueryInfo struct * (Warning: This field is platform dependent) - */
+ */ public FontQueryInfo handle;
FontMetrics() {
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/GC.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/GC.java index f044649132..f4f4b7bf95 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/GC.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/GC.java @@ -1,7 +1,7 @@ package org.eclipse.swt.graphics;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -27,7 +27,7 @@ public final class GC { /** * the handle to the OS device context * (Warning: This field is platform dependent) - */
+ */ public int handle;
Drawable drawable;
@@ -618,7 +618,7 @@ public void drawImage(Image image, int x, int y) { * @exception SWTException <ul>
* <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li>
* </ul>
- */
+ */ public void drawImage(Image image, int srcX, int srcY, int srcWidth, int srcHeight, int destX, int destY, int destWidth, int destHeight) {
if (handle == 0) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED);
if (srcWidth == 0 || srcHeight == 0 || destWidth == 0 || destHeight == 0) return;
@@ -1321,7 +1321,7 @@ public void drawText (String string, int x, int y, boolean isTransparent) { * @exception SWTException <ul>
* <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li>
* </ul>
- */
+ */ public void drawText (String string, int x, int y, int flags) {
if (handle == 0) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED);
if (string == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);
@@ -1539,7 +1539,7 @@ public void fillArc (int x, int y, int width, int height, int startAngle, int en * </ul>
*
* @see #drawRectangle
- */
+ */ public void fillGradientRectangle(int x, int y, int width, int height, boolean vertical) {
if (handle == 0) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED);
if ((width == 0) || (height == 0)) return;
@@ -1739,7 +1739,7 @@ public void fillRoundRectangle (int x, int y, int width, int height, int arcWidt /**
* Force outstanding drawing commands to be processed.
- */
+ */ void flushImage () {
Image image = data.image;
if (image == null) return;
@@ -2559,7 +2559,7 @@ public Point textExtent(String string) { * @exception SWTException <ul>
* <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li>
* </ul>
- */
+ */ public Point textExtent(String string, int flags) {
if (handle == 0) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED);
if (string == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/GCData.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/GCData.java index efbec5b5f5..208776ebb1 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/GCData.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/GCData.java @@ -1,7 +1,7 @@ package org.eclipse.swt.graphics;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/Image.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/Image.java index 224e511578..f91141e0f3 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/Image.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/Image.java @@ -1,7 +1,7 @@ package org.eclipse.swt.graphics;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -61,36 +61,36 @@ public final class Image implements Drawable { /**
* specifies whether the receiver is a bitmap or an icon
* (one of <code>SWT.BITMAP</code>, <code>SWT.ICON</code>)
- */
+ */ public int type;
/**
* the OS resource of the image
* (Warning: This field is platform dependent)
- */
+ */ public int handle;
/**
* the device where this image was created
- */
+ */ Device device;
/**
* specifies the transparent pixel
* (Warning: This field is platform dependent)
- */
+ */ int transparentPixel = -1;
/**
* the GC which is drawing on the image
* (Warning: This field is platform dependent)
- */
+ */ GC memGC;
/**
* specifies the default scanline padding
* (Warning: This field is platform dependent)
- */
+ */ static final int DEFAULT_SCANLINE_PAD = 4;
Image () {
@@ -977,7 +977,7 @@ public boolean isDisposed() { * @exception SWTException <ul>
* <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li>
* </ul>
- */
+ */ public void setBackground(Color color) {
if (isDisposed()) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED);
if (color == null) SWT.error(SWT.ERROR_NULL_ARGUMENT);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/Region.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/Region.java index 696bb71f4c..966aa99c1d 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/Region.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/graphics/Region.java @@ -1,7 +1,7 @@ package org.eclipse.swt.graphics;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -23,7 +23,7 @@ public final class Region { /**
* the OS resource for the region
* (Warning: This field is platform dependent)
- */
+ */ public int handle;
static int EMPTY_REGION = -1;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Button.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Button.java index 9eb3b25bb4..7421472c09 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Button.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Button.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -315,7 +315,7 @@ public Image getImage () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> - */
+ */ public boolean getSelection () {
checkWidget();
if ((style & (SWT.CHECK | SWT.RADIO | SWT.TOGGLE)) == 0) return false;
@@ -540,7 +540,7 @@ void setDefault (boolean value) { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> - */
+ */ public void setSelection (boolean selected) {
checkWidget();
if ((style & (SWT.CHECK | SWT.RADIO | SWT.TOGGLE)) == 0) return;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Canvas.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Canvas.java index fa32f8e5a6..2b9b340f85 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Canvas.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Canvas.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Caret.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Caret.java index d1f08fbbb8..171a757177 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Caret.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Caret.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/ColorDialog.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/ColorDialog.java index 80e20d8408..fa48cbd319 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/ColorDialog.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/ColorDialog.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Combo.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Combo.java index aab8e02f8d..ffaa507a0a 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Combo.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Combo.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Composite.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Composite.java index 68f8becc97..f40e731f20 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Composite.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Composite.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -379,7 +379,7 @@ void hookEvents () { * </ul>
*
* @see #setTabList
- */
+ */ public Control [] getTabList () {
checkWidget ();
Control [] tabList = _getTabList ();
@@ -726,7 +726,7 @@ boolean setTabItemFocus () { * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> * </ul> - */
+ */ public void setTabList (Control [] tabList) {
checkWidget ();
if (tabList == null) error (SWT.ERROR_NULL_ARGUMENT);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Control.java index 995fb48e54..58472d0cdc 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Control.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Control.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -486,7 +486,7 @@ int defaultForeground () { * @see Accessible#addAccessibleControlListener * * @since 2.0 - */
+ */ public Accessible getAccessible () {
checkWidget ();
if (accessible == null) {
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Decorations.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Decorations.java index 3a5f47e980..a1df68e4e5 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Decorations.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Decorations.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/DirectoryDialog.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/DirectoryDialog.java index 7ecb4f8042..e1e9d5e198 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/DirectoryDialog.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/DirectoryDialog.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Display.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Display.java index c44d2d61aa..c983e652e5 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Display.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Display.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -87,7 +87,7 @@ import org.eclipse.swt.graphics.*; */ public class Display extends Device {
- /**** TEMPORARY CODE FOR EMULATED TABLE ***/
+ /* TEMPORARY CODE FOR EMULATED TABLE */ static int textHighlightThickness = 0;
/* TEMPORARY HACK FOR PHOTON */
@@ -317,7 +317,7 @@ public Display (DeviceData data) { * @see #removeListener
*
* @since 2.0
- */
+ */ public void addListener (int eventType, Listener listener) {
checkDevice ();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -378,7 +378,7 @@ protected void checkSubclass () { * @see #dispose
*
* @since 2.0
- */
+ */ public void close () {
checkDevice ();
Event event = new Event ();
@@ -1336,7 +1336,7 @@ void releaseDisplay () { * @see #addListener
*
* @since 2.0
- */
+ */ public void removeListener (int eventType, Listener listener) {
checkDevice ();
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
@@ -1406,7 +1406,7 @@ void sendEvent (int eventType, Event event) { * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* <li>ERROR_NULL_ARGUMENT - if the point is null
* </ul>
- */
+ */ public void setCursorLocation (Point point) {
checkDevice ();
if (point == null) error (SWT.ERROR_NULL_ARGUMENT);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/FileDialog.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/FileDialog.java index 2e352d55d0..020a86b870 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/FileDialog.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/FileDialog.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/FontDialog.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/FontDialog.java index 6ef8b40a6c..f5c6471447 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/FontDialog.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/FontDialog.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Group.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Group.java index 6b4ac7718d..412761c1cc 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Group.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Group.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Label.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Label.java index dc625b6708..3569d697f9 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Label.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Label.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/List.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/List.java index 9f01e0216e..f11058703b 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/List.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/List.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -173,10 +173,10 @@ public void add (String string, int index) { public Point computeSize (int wHint, int hHint, boolean changed) {
checkWidget();
- /**
+ /*
* Feature in Photon - The preferred width calculated by
* PtWidgetPreferredSize is the current width.
- */
+ */ PhDim_t dim = new PhDim_t();
if (!OS.PtWidgetIsRealized (handle)) OS.PtExtentWidget (handle);
OS.PtWidgetPreferredSize(handle, dim);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Menu.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Menu.java index 82425eea6f..d5322e35ff 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Menu.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Menu.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/MenuItem.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/MenuItem.java index eedb42ff7f..ee9a2c962e 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/MenuItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/MenuItem.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/MessageBox.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/MessageBox.java index b7fa1f765c..39f2c748d4 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/MessageBox.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/MessageBox.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/ProgressBar.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/ProgressBar.java index cb3cc70b22..7b3fc4c980 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/ProgressBar.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/ProgressBar.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Sash.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Sash.java index 5b31c739d5..6f0c305130 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Sash.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Sash.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Scale.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Scale.java index 23d1d34c49..cfa36db99e 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Scale.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Scale.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/ScrollBar.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/ScrollBar.java index f189131d97..aa827ae700 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/ScrollBar.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/ScrollBar.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Scrollable.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Scrollable.java index 45ce1541db..0b62a4e6b8 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Scrollable.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Scrollable.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Shell.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Shell.java index a5f8e62c1f..e401715ff9 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Shell.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Shell.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -92,7 +92,7 @@ import org.eclipse.swt.events.*; *
* @see Decorations
* @see SWT
- */
+ */ public class Shell extends Decorations {
int shellHandle;
Display display;
@@ -500,7 +500,7 @@ void deregister () { * @see Decorations#setDefaultButton
* @see Shell#open
* @see Shell#setActive
-*/
+ */ public void forceActive () {
checkWidget ();
bringToTop ();
@@ -819,7 +819,7 @@ public void removeShellListener (ShellListener listener) { * @see Decorations#setDefaultButton
* @see Shell#open
* @see Shell#setActive
-*/
+ */ public void setActive () {
checkWidget ();
bringToTop ();
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Slider.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Slider.java index 413ea41b9f..5194f5e73c 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Slider.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Slider.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/TabFolder.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/TabFolder.java index 491c9ca939..3380cab9d2 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/TabFolder.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/TabFolder.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/TabItem.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/TabItem.java index 2a46463369..e41e4467f8 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/TabItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/TabItem.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
@@ -264,7 +264,7 @@ public void setToolTipText (String string) { * Returns the provided string without mnemonic indicators.
*
* @param string the string to demangle
- */
+ */ static String stripMnemonics (String string) {
char [] text = new char [string.length ()];
string.getChars (0, text.length, text, 0);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Text.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Text.java index cafd181fe0..d15b793c75 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Text.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Text.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/ToolBar.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/ToolBar.java index 4f039a2e15..4bd439dea8 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/ToolBar.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/ToolBar.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/ToolItem.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/ToolItem.java index c6cb5e14b8..e8347f11ea 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/ToolItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/ToolItem.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Tracker.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Tracker.java index 3af2fd9e3c..343756a3fc 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Tracker.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Tracker.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Widget.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Widget.java index d3b8b3333d..62a08f51f7 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Widget.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/Widget.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/WidgetTable.java b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/WidgetTable.java index 108c087282..9988c29e16 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/WidgetTable.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/photon/org/eclipse/swt/widgets/WidgetTable.java @@ -1,7 +1,7 @@ package org.eclipse.swt.widgets;
/*
- * (c) Copyright IBM Corp. 2000, 2001.
+ * (c) Copyright IBM Corp. 2000, 2001, 2002.
* All Rights Reserved
*/
|