diff options
author | Carolyn MacLeod <carolyn> | 2006-05-03 19:07:54 +0000 |
---|---|---|
committer | Carolyn MacLeod <carolyn> | 2006-05-03 19:07:54 +0000 |
commit | 8854414824a1724d4e410ca5944688e48c3bc8bb (patch) | |
tree | 757c7e9cc018795db78023aed7362b909ed13fa5 | |
parent | 4b62ce2075c93e845bb4e34def93ae9c1cf28d8d (diff) | |
download | eclipse.platform.swt-8854414824a1724d4e410ca5944688e48c3bc8bb.tar.gz eclipse.platform.swt-8854414824a1724d4e410ca5944688e48c3bc8bb.tar.xz eclipse.platform.swt-8854414824a1724d4e410ca5944688e48c3bc8bb.zip |
Javadoc basher output for 3.2RC3
17 files changed, 146 insertions, 11 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT AWT/emulated/org/eclipse/swt/awt/SWT_AWT.java b/bundles/org.eclipse.swt/Eclipse SWT AWT/emulated/org/eclipse/swt/awt/SWT_AWT.java index 0acc96f66d..9c1640c8d8 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT AWT/emulated/org/eclipse/swt/awt/SWT_AWT.java +++ b/bundles/org.eclipse.swt/Eclipse SWT AWT/emulated/org/eclipse/swt/awt/SWT_AWT.java @@ -20,7 +20,7 @@ import org.eclipse.swt.widgets.Shell; /** * This class provides a bridge between SWT and AWT, so that it - * is possible to embedded AWT components in SWT and vice versa. + * is possible to embed AWT components in SWT and vice versa. * * @since 3.0 */ @@ -38,6 +38,19 @@ public class SWT_AWT { */ static String EMBEDDED_FRAME_KEY = "org.eclipse.swt.awt.SWT_AWT.embeddedFrame"; +/** + * Returns a <code>java.awt.Frame</code> which is the embedded frame + * associated with the specified composite. + * + * @param parent the parent <code>Composite</code> of the <code>java.awt.Frame</code> + * @return a <code>java.awt.Frame</code> the embedded frame or <code>null</code>. + * + * @exception IllegalArgumentException <ul> + * <li>ERROR_NULL_ARGUMENT - if the parent is null</li> + * </ul> + * + * @since 3.2 + */ public static Frame getFrame (Composite parent) { if (parent == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); if ((parent.getStyle () & SWT.EMBEDDED) == 0) return null; diff --git a/bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java b/bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java index 3d32faa5f8..f2f2562126 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java +++ b/bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java @@ -36,7 +36,7 @@ import java.awt.event.WindowEvent; /** * This class provides a bridge between SWT and AWT, so that it - * is possible to embedded AWT components in SWT and vice versa. + * is possible to embed AWT components in SWT and vice versa. * * @since 3.0 */ @@ -87,6 +87,19 @@ static synchronized void initializeSwing() { } catch (Throwable e) {} } +/** + * Returns a <code>java.awt.Frame</code> which is the embedded frame + * associated with the specified composite. + * + * @param parent the parent <code>Composite</code> of the <code>java.awt.Frame</code> + * @return a <code>java.awt.Frame</code> the embedded frame or <code>null</code>. + * + * @exception IllegalArgumentException <ul> + * <li>ERROR_NULL_ARGUMENT - if the parent is null</li> + * </ul> + * + * @since 3.2 + */ public static Frame getFrame (Composite parent) { if (parent == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); if ((parent.getStyle () & SWT.EMBEDDED) == 0) return null; diff --git a/bundles/org.eclipse.swt/Eclipse SWT AWT/motif/org/eclipse/swt/awt/SWT_AWT.java b/bundles/org.eclipse.swt/Eclipse SWT AWT/motif/org/eclipse/swt/awt/SWT_AWT.java index 44f36fc247..f77e0dabfb 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT AWT/motif/org/eclipse/swt/awt/SWT_AWT.java +++ b/bundles/org.eclipse.swt/Eclipse SWT AWT/motif/org/eclipse/swt/awt/SWT_AWT.java @@ -36,7 +36,7 @@ import java.awt.event.WindowEvent; /** * This class provides a bridge between SWT and AWT, so that it - * is possible to embedded AWT components in SWT and vice versa. + * is possible to embed AWT components in SWT and vice versa. * * @since 3.0 */ @@ -87,6 +87,19 @@ static synchronized void initializeSwing() { } catch (Throwable e) {} } +/** + * Returns a <code>java.awt.Frame</code> which is the embedded frame + * associated with the specified composite. + * + * @param parent the parent <code>Composite</code> of the <code>java.awt.Frame</code> + * @return a <code>java.awt.Frame</code> the embedded frame or <code>null</code>. + * + * @exception IllegalArgumentException <ul> + * <li>ERROR_NULL_ARGUMENT - if the parent is null</li> + * </ul> + * + * @since 3.2 + */ public static Frame getFrame (Composite parent) { if (parent == null) SWT.error (SWT.ERROR_NULL_ARGUMENT); if ((parent.getStyle () & SWT.EMBEDDED) == 0) return null; diff --git a/bundles/org.eclipse.swt/Eclipse SWT Browser/carbon/org/eclipse/swt/browser/Browser.java b/bundles/org.eclipse.swt/Eclipse SWT Browser/carbon/org/eclipse/swt/browser/Browser.java index 6eabab9c11..2d4f0e4b4d 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Browser/carbon/org/eclipse/swt/browser/Browser.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Browser/carbon/org/eclipse/swt/browser/Browser.java @@ -376,6 +376,11 @@ public Browser(Composite parent, int style) { WebKit.objc_msgSend(webView, WebKit.S_setDownloadDelegate, delegate); } +/** + * Clears all session cookies from all current Browser instances. + * + * @since 3.2 + */ public static void clearSessions () { int storage = WebKit.objc_msgSend (WebKit.C_NSHTTPCookieStorage, WebKit.S_sharedHTTPCookieStorage); int cookies = WebKit.objc_msgSend (storage, WebKit.S_cookies); diff --git a/bundles/org.eclipse.swt/Eclipse SWT Browser/motif/org/eclipse/swt/browser/Browser.java b/bundles/org.eclipse.swt/Eclipse SWT Browser/motif/org/eclipse/swt/browser/Browser.java index 3b1e800de0..0450c577f1 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Browser/motif/org/eclipse/swt/browser/Browser.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Browser/motif/org/eclipse/swt/browser/Browser.java @@ -527,6 +527,11 @@ public Browser(Composite parent, int style) { GTK.gtk_widget_show(gtkHandle); } +/** + * Clears all session cookies from all current Browser instances. + * + * @since 3.2 + */ public static void clearSessions () { if (!mozilla) return; int[] result = new int [1]; diff --git a/bundles/org.eclipse.swt/Eclipse SWT Browser/photon/org/eclipse/swt/browser/Browser.java b/bundles/org.eclipse.swt/Eclipse SWT Browser/photon/org/eclipse/swt/browser/Browser.java index 0f3198769d..9a531ddca5 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Browser/photon/org/eclipse/swt/browser/Browser.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Browser/photon/org/eclipse/swt/browser/Browser.java @@ -165,6 +165,11 @@ public Browser(Composite parent, int style) { OS.PtRealizeWidget(webHandle); } +/** + * Clears all session cookies from all current Browser instances. + * + * @since 3.2 + */ public static void clearSessions () { // TODO } 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 b4162cc78c..fd92a0842a 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 @@ -57,7 +57,7 @@ package org.eclipse.swt.dnd; * // write data to a byte array and then ask super to convert to pMedium * ByteArrayOutputStream out = new ByteArrayOutputStream(); * DataOutputStream writeOut = new DataOutputStream(out); - * for (int i = 0, length = myTypes.length; i < length; i++){ + * for (int i = 0, length = myTypes.length; i < length; i++){ * byte[] buffer = myTypes[i].fileName.getBytes(); * writeOut.writeInt(buffer.length); * writeOut.write(buffer); 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 87f2872b78..d6ee8c2c13 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 @@ -57,7 +57,7 @@ package org.eclipse.swt.dnd; * // write data to a byte array and then ask super to convert to pMedium * ByteArrayOutputStream out = new ByteArrayOutputStream(); * DataOutputStream writeOut = new DataOutputStream(out); - * for (int i = 0, length = myTypes.length; i < length; i++){ + * for (int i = 0, length = myTypes.length; i < length; i++){ * byte[] buffer = myTypes[i].fileName.getBytes(); * writeOut.writeInt(buffer.length); * writeOut.write(buffer); 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 c9cebfba32..a491c959f6 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 @@ -58,7 +58,7 @@ import org.eclipse.swt.internal.gtk.*; * // write data to a byte array and then ask super to convert to pMedium * ByteArrayOutputStream out = new ByteArrayOutputStream(); * DataOutputStream writeOut = new DataOutputStream(out); - * for (int i = 0, length = myTypes.length; i < length; i++){ + * for (int i = 0, length = myTypes.length; i < length; i++){ * byte[] buffer = myTypes[i].fileName.getBytes(); * writeOut.writeInt(buffer.length); * writeOut.write(buffer); 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 578aabb898..a78d093521 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 @@ -58,7 +58,7 @@ import org.eclipse.swt.internal.motif.*; * // write data to a byte array and then ask super to convert to pMedium * ByteArrayOutputStream out = new ByteArrayOutputStream(); * DataOutputStream writeOut = new DataOutputStream(out); - * for (int i = 0, length = myTypes.length; i < length; i++){ + * for (int i = 0, length = myTypes.length; i < length; i++){ * byte[] buffer = myTypes[i].fileName.getBytes(); * writeOut.writeInt(buffer.length); * writeOut.write(buffer); 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 70b2d629c5..c6d40a4992 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 @@ -59,7 +59,7 @@ import org.eclipse.swt.internal.photon.*; * // write data to a byte array and then ask super to convert to pMedium * ByteArrayOutputStream out = new ByteArrayOutputStream(); * DataOutputStream writeOut = new DataOutputStream(out); - * for (int i = 0, length = myTypes.length; i < length; i++){ + * for (int i = 0, length = myTypes.length; i < length; i++){ * byte[] buffer = myTypes[i].fileName.getBytes(); * writeOut.writeInt(buffer.length); * writeOut.write(buffer); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cairo/org/eclipse/swt/graphics/Pattern.java b/bundles/org.eclipse.swt/Eclipse SWT/cairo/org/eclipse/swt/graphics/Pattern.java index d26fb67169..c5409d0cbc 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cairo/org/eclipse/swt/graphics/Pattern.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cairo/org/eclipse/swt/graphics/Pattern.java @@ -96,6 +96,34 @@ public Pattern(Device device, Image image) { public Pattern(Device device, float x1, float y1, float x2, float y2, Color color1, Color color2) { this(device, x1, y1, x2, y2, color1, 0xFF, color2, 0xFF); } +/** + * Constructs a new Pattern that represents a linear, two color + * gradient. Drawing with the pattern will cause the resulting area to be + * tiled with the gradient specified by the arguments. + * + * @param device the device on which to allocate the pattern + * @param x1 the x coordinate of the starting corner of the gradient + * @param y1 the y coordinate of the starting corner of the gradient + * @param x2 the x coordinate of the ending corner of the gradient + * @param y2 the y coordinate of the ending corner of the gradient + * @param color1 the starting color of the gradient + * @param alpha1 the starting alpha value of the gradient + * @param color2 the ending color of the gradient + * @param alpha2 the ending alpha value of the gradient + * + * @exception IllegalArgumentException <ul> + * <li>ERROR_NULL_ARGUMENT - if the device is null and there is no current device, + * or if either color1 or color2 is null</li> + * <li>ERROR_INVALID_ARGUMENT - if either color1 or color2 has been disposed</li> + * </ul> + * @exception SWTError <ul> + * <li>ERROR_NO_HANDLES if a handle for the pattern could not be obtained/li> + * </ul> + * + * @see #dispose() + * + * @since 3.2 + */ public Pattern(Device device, float x1, float y1, float x2, float y2, Color color1, int alpha1, Color color2, int alpha2) { if (device == null) device = Device.getDevice(); if (device == null) SWT.error(SWT.ERROR_NULL_ARGUMENT); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cairo/org/eclipse/swt/graphics/Transform.java b/bundles/org.eclipse.swt/Eclipse SWT/cairo/org/eclipse/swt/graphics/Transform.java index 6ad5a3a833..5fbd7b1a19 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/cairo/org/eclipse/swt/graphics/Transform.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cairo/org/eclipse/swt/graphics/Transform.java @@ -133,7 +133,6 @@ public void dispose() { * that the receiver represents, in the order {m11, m12, m21, m22, dx, dy}. * * @param elements array to hold the matrix values - * @return (in elements array) the transformation matrix represented by the receiver * * @exception SWTException <ul> * <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> diff --git a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/graphics/Pattern.java b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/graphics/Pattern.java index 18a0da1b89..bbfeaa3e74 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/graphics/Pattern.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/graphics/Pattern.java @@ -90,6 +90,34 @@ public Pattern(Device device, Image image) { public Pattern(Device device, float x1, float y1, float x2, float y2, Color color1, Color color2) { this(device, x1, y1, x2, y2, color1, 0xFF, color2, 0xFF); } +/** + * Constructs a new Pattern that represents a linear, two color + * gradient. Drawing with the pattern will cause the resulting area to be + * tiled with the gradient specified by the arguments. + * + * @param device the device on which to allocate the pattern + * @param x1 the x coordinate of the starting corner of the gradient + * @param y1 the y coordinate of the starting corner of the gradient + * @param x2 the x coordinate of the ending corner of the gradient + * @param y2 the y coordinate of the ending corner of the gradient + * @param color1 the starting color of the gradient + * @param alpha1 the starting alpha value of the gradient + * @param color2 the ending color of the gradient + * @param alpha2 the ending alpha value of the gradient + * + * @exception IllegalArgumentException <ul> + * <li>ERROR_NULL_ARGUMENT - if the device is null and there is no current device, + * or if either color1 or color2 is null</li> + * <li>ERROR_INVALID_ARGUMENT - if either color1 or color2 has been disposed</li> + * </ul> + * @exception SWTError <ul> + * <li>ERROR_NO_HANDLES if a handle for the pattern could not be obtained/li> + * </ul> + * + * @see #dispose() + * + * @since 3.2 + */ public Pattern(Device device, float x1, float y1, float x2, float y2, Color color1, int alpha1, Color color2, int alpha2) { if (device == null) device = Device.getDevice(); if (device == null) SWT.error(SWT.ERROR_NULL_ARGUMENT); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/graphics/Transform.java b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/graphics/Transform.java index 93a247fc8d..ce93f7b640 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/graphics/Transform.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/graphics/Transform.java @@ -132,7 +132,6 @@ public void dispose() { * that the receiver represents, in the order {m11, m12, m21, m22, dx, dy}. * * @param elements array to hold the matrix values - * @return (in elements array) the transformation matrix represented by the receiver * * @exception SWTException <ul> * <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> diff --git a/bundles/org.eclipse.swt/Eclipse SWT/emulated/graphics/org/eclipse/swt/graphics/Pattern.java b/bundles/org.eclipse.swt/Eclipse SWT/emulated/graphics/org/eclipse/swt/graphics/Pattern.java index d2069e285f..27386b76e7 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/emulated/graphics/org/eclipse/swt/graphics/Pattern.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/emulated/graphics/org/eclipse/swt/graphics/Pattern.java @@ -92,6 +92,34 @@ public Pattern(Device device, float x1, float y1, float x2, float y2, Color colo this(device, x1, y1, x2, y2, color1, 0xFF, color2, 0xFF); } +/** + * Constructs a new Pattern that represents a linear, two color + * gradient. Drawing with the pattern will cause the resulting area to be + * tiled with the gradient specified by the arguments. + * + * @param device the device on which to allocate the pattern + * @param x1 the x coordinate of the starting corner of the gradient + * @param y1 the y coordinate of the starting corner of the gradient + * @param x2 the x coordinate of the ending corner of the gradient + * @param y2 the y coordinate of the ending corner of the gradient + * @param color1 the starting color of the gradient + * @param alpha1 the starting alpha value of the gradient + * @param color2 the ending color of the gradient + * @param alpha2 the ending alpha value of the gradient + * + * @exception IllegalArgumentException <ul> + * <li>ERROR_NULL_ARGUMENT - if the device is null and there is no current device, + * or if either color1 or color2 is null</li> + * <li>ERROR_INVALID_ARGUMENT - if either color1 or color2 has been disposed</li> + * </ul> + * @exception SWTError <ul> + * <li>ERROR_NO_HANDLES if a handle for the pattern could not be obtained/li> + * </ul> + * + * @see #dispose() + * + * @since 3.2 + */ public Pattern(Device device, float x1, float y1, float x2, float y2, Color color1, int alpha1, Color color2, int alpha2) { if (device == null) device = Device.getDevice(); if (device == null) SWT.error(SWT.ERROR_NULL_ARGUMENT); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/emulated/graphics/org/eclipse/swt/graphics/Transform.java b/bundles/org.eclipse.swt/Eclipse SWT/emulated/graphics/org/eclipse/swt/graphics/Transform.java index 4d75e26c7f..3cb18d323e 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/emulated/graphics/org/eclipse/swt/graphics/Transform.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/emulated/graphics/org/eclipse/swt/graphics/Transform.java @@ -128,7 +128,6 @@ public void dispose() { * that the receiver represents, in the order {m11, m12, m21, m22, dx, dy}. * * @param elements array to hold the matrix values - * @return (in elements array) the transformation matrix represented by the receiver * * @exception SWTException <ul> * <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> |