summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrant Gayed <ggayed>2008-06-02 17:00:41 +0000
committerGrant Gayed <ggayed>2008-06-02 17:00:41 +0000
commit3818f3ab39f47885072e0a95dd373efcbcbabb8c (patch)
treea2459b6de44f7e894cd179071d7bc17a1f992630
parent17e81e2113aca0aeed1a7d887ad5d4552bdda567 (diff)
downloadeclipse.platform.swt-3818f3ab39f47885072e0a95dd373efcbcbabb8c.tar.gz
eclipse.platform.swt-3818f3ab39f47885072e0a95dd373efcbcbabb8c.tar.xz
eclipse.platform.swt-3818f3ab39f47885072e0a95dd373efcbcbabb8c.zip
doc
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolderAdapter.java7
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextListener.java2
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TableEditor.java5
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DragSourceAdapter.java40
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DropTargetAdapter.java17
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DragSource.java5
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DropTarget.java5
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/GlyphMetrics.java6
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java5
9 files changed, 73 insertions, 19 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolderAdapter.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolderAdapter.java
index f70f2e3501..4e707558c0 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolderAdapter.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CTabFolderAdapter.java
@@ -11,6 +11,13 @@
package org.eclipse.swt.custom;
+/**
+ * This adapter class provides a default implementation for the
+ * method described by the <code>CTabFolderListener</code> interface.
+ *
+ * @see CTabFolderListener
+ * @see CTabFolderEvent
+ */
public class CTabFolderAdapter implements CTabFolderListener {
public void itemClosed(CTabFolderEvent event){}
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextListener.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextListener.java
index 51d8b42b9f..2e681a6914 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextListener.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledTextListener.java
@@ -22,6 +22,8 @@ StyledTextListener(SWTEventListener listener) {
}
/**
* Process StyledText events by invoking the event's handler.
+ *
+ * @param e the event to handle
*/
public void handleEvent(Event e) {
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TableEditor.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TableEditor.java
index 4d0e2b8d55..430e345264 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TableEditor.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TableEditor.java
@@ -218,6 +218,11 @@ public void setColumn(int column) {
tableColumn.addControlListener(columnListener);
resize();
}
+/**
+* Specifies the <code>TableItem</code> that is to be edited.
+*
+* @param item the item to be edited
+*/
public void setItem (TableItem item) {
this.item = item;
resize();
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DragSourceAdapter.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DragSourceAdapter.java
index 43afc0d00f..c5999ecfeb 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DragSourceAdapter.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DragSourceAdapter.java
@@ -23,19 +23,29 @@ package org.eclipse.swt.dnd;
* @see DragSourceEvent
*/
public class DragSourceAdapter implements DragSourceListener {
- /**
- * This implementation of <code>dragStart</code> permits the drag operation to start.
- * For additional information see <code>DragSourceListener.dragStart</code>.
- */
- public void dragStart(DragSourceEvent event){}
- /**
- * This implementation of <code>dragFinished</code> does nothing.
- * For additional information see <code>DragSourceListener.dragFinished</code>.
- */
- public void dragFinished(DragSourceEvent event){}
- /**
- * This implementation of <code>dragSetData</code> does nothing.
- * For additional information see <code>DragSourceListener.dragSetData</code>.
- */
- public void dragSetData(DragSourceEvent event){}
+
+/**
+ * This implementation of <code>dragStart</code> permits the drag operation to start.
+ * For additional information see <code>DragSourceListener.dragStart</code>.
+ *
+ * @param event the information associated with the drag start event
+ */
+public void dragStart(DragSourceEvent event){}
+
+/**
+ * This implementation of <code>dragFinished</code> does nothing.
+ * For additional information see <code>DragSourceListener.dragFinished</code>.
+ *
+ * @param event the information associated with the drag finished event
+ */
+public void dragFinished(DragSourceEvent event){}
+
+/**
+ * This implementation of <code>dragSetData</code> does nothing.
+ * For additional information see <code>DragSourceListener.dragSetData</code>.
+ *
+ * @param event the information associated with the drag set data event
+ */
+public void dragSetData(DragSourceEvent event){}
+
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DropTargetAdapter.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DropTargetAdapter.java
index fe8b7cc630..9aea2011c6 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DropTargetAdapter.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DropTargetAdapter.java
@@ -30,37 +30,54 @@ public class DropTargetAdapter implements DropTargetListener {
* operation defined in <code>event.detail</code>to be performed on the current data type
* defined in <code>event.currentDataType</code>.
* For additional information see <code>DropTargetListener.dragEnter</code>.
+ *
+ * @param event the information associated with the drag enter event
*/
public void dragEnter(DropTargetEvent event){}
+
/**
* This implementation of <code>dragLeave</code> does nothing.
* For additional information see <code>DropTargetListener.dragOperationChanged</code>.
+ *
+ * @param event the information associated with the drag leave event
*/
public void dragLeave(DropTargetEvent event){}
+
/**
* This implementation of <code>dragOperationChanged</code> permits the default
* operation defined in <code>event.detail</code>to be performed on the current data type
* defined in <code>event.currentDataType</code>.
* For additional information see <code>DropTargetListener.dragOperationChanged</code>.
+ *
+ * @param event the information associated with the drag operation changed event
*/
public void dragOperationChanged(DropTargetEvent event){}
+
/**
* This implementation of <code>dragOver</code> permits the default
* operation defined in <code>event.detail</code>to be performed on the current data type
* defined in <code>event.currentDataType</code>.
* For additional information see <code>DropTargetListener.dragOver</code>.
+ *
+ * @param event the information associated with the drag over event
*/
public void dragOver(DropTargetEvent event){}
+
/**
* This implementation of <code>drop</code> does nothing.
* For additional information see <code>DropTargetListener.drop</code>.
+ *
+ * @param event the information associated with the drop event
*/
public void drop(DropTargetEvent event){}
+
/**
* This implementation of <code>dropAccept</code> permits the default
* operation defined in <code>event.detail</code>to be performed on the current data type
* defined in <code>event.currentDataType</code>.
* For additional information see <code>DropTargetListener.dropAccept</code>.
+ *
+ * @param event the information associated with the drop accept event
*/
public void dropAccept(DropTargetEvent event){}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DragSource.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DragSource.java
index fbc17c3e8b..5330777111 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DragSource.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DragSource.java
@@ -473,6 +473,9 @@ private int GetData(int /*long*/ pFormatetc, int /*long*/ pmedium) {
* operation is in progress, by sending it one of the messages defined in
* the <code>DragSourceListener</code> interface.
*
+ * @return the listeners who will be notified when a drag and drop
+ * operation is in progress
+ *
* @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>
@@ -654,7 +657,7 @@ private int Release() {
* Removes the listener from the collection of listeners who will
* be notified when a drag and drop operation is in progress.
*
- * @param listener the listener which should be notified
+ * @param listener the listener which should be removed
*
* @exception IllegalArgumentException <ul>
* <li>ERROR_NULL_ARGUMENT - if the listener is null</li>
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DropTarget.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DropTarget.java
index 4576316d86..90cc41a401 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DropTarget.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DropTarget.java
@@ -477,6 +477,9 @@ public Control getControl () {
* operation is in progress, by sending it one of the messages defined in
* the <code>DropTargetListener</code> interface.
*
+ * @return the listeners who will be notified when a drag and drop
+ * operation is in progress
+ *
* @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>
@@ -636,7 +639,7 @@ void refresh() {
* Removes the listener from the collection of listeners who will
* be notified when a drag and drop operation is in progress.
*
- * @param listener the listener which should be notified
+ * @param listener the listener which should be removed
*
* @exception IllegalArgumentException <ul>
* <li>ERROR_NULL_ARGUMENT - if the listener is null</li>
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/GlyphMetrics.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/GlyphMetrics.java
index c40e34bba1..9d891f17a9 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/GlyphMetrics.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/GlyphMetrics.java
@@ -52,13 +52,17 @@ public final class GlyphMetrics {
* Constructs an instance of this class with the given
* ascent, descent and width values.
*
+ * @param ascent the GlyphMetrics ascent
+ * @param descent the GlyphMetrics descent
+ * @param width the GlyphMetrics width
+ *
* @exception IllegalArgumentException <ul>
* <li>ERROR_INVALID_ARGUMENT - if the ascent, descent or width argument is negative</li>
* </ul>
*/
public GlyphMetrics(int ascent, int descent, int width) {
if (ascent < 0 || descent < 0 || width < 0) {
- SWT.error(SWT.ERROR_INVALID_ARGUMENT);
+ SWT.error(SWT.ERROR_INVALID_ARGUMENT);
}
this.ascent = ascent;
this.descent = descent;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java
index e71cd0d8e9..c528bdf702 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Control.java
@@ -1146,7 +1146,9 @@ String getClipboardText () {
* When the mouse pointer passes over a control its appearance
* is changed to match the control's cursor.
* </p>
- * </ul>
+ *
+ * @return the receiver's cursor or <code>null</code>
+ *
* @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>
@@ -1922,6 +1924,7 @@ public void pack (boolean changed) {
* Prints the receiver and all children.
*
* @param gc the gc where the drawing occurs
+ * @return <code>true</code> if the operation was successful and <code>false</code> otherwise
*
* @exception IllegalArgumentException <ul>
* <li>ERROR_NULL_ARGUMENT - if the gc is null</li>