Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Loskutov2016-01-07 21:14:45 +0000
committerAndrey Loskutov2016-01-07 21:14:45 +0000
commit951feeb55fe8d7953aa6c1ff789a550d3ace9b41 (patch)
tree446c27a40234e32d2a4baded4d5cb794f9391e19 /bundles/org.eclipse.swt/Eclipse SWT Drag and Drop
parent5ac9a285370904f70d1bfedebeb9324141831c8d (diff)
downloadeclipse.platform.swt-951feeb55fe8d7953aa6c1ff789a550d3ace9b41.tar.gz
eclipse.platform.swt-951feeb55fe8d7953aa6c1ff789a550d3ace9b41.tar.xz
eclipse.platform.swt-951feeb55fe8d7953aa6c1ff789a550d3ace9b41.zip
Bug 485367 - cleaned trailing spaces in swt (emulated)
Change-Id: I176d0600256f6ff2065ecabbde2f062bb6c7b7bd Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Drag and Drop')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/ByteArrayTransfer.java58
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/Clipboard.java172
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/DragSource.java82
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/DropTarget.java74
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/FileTransfer.java34
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/HTMLTransfer.java20
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/ImageTransfer.java26
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/RTFTransfer.java22
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/TableDragSourceEffect.java10
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/TableDropTargetEffect.java24
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/TextTransfer.java26
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/Transfer.java60
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/TransferData.java22
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/TreeDragSourceEffect.java6
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/TreeDropTargetEffect.java22
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/URLTransfer.java20
16 files changed, 339 insertions, 339 deletions
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 383cfd8062..02453ad81b 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
@@ -12,21 +12,21 @@ package org.eclipse.swt.dnd;
/**
- * The class <code>ByteArrayTransfer</code> provides a platform specific
- * mechanism for converting a java <code>byte[]</code> to a platform
+ * The class <code>ByteArrayTransfer</code> provides a platform specific
+ * mechanism for converting a java <code>byte[]</code> to a platform
* specific representation of the byte array and vice versa.
*
- * <p><code>ByteArrayTransfer</code> is never used directly but is sub-classed
+ * <p><code>ByteArrayTransfer</code> is never used directly but is sub-classed
* by transfer agents that convert between data in a java format such as a
* <code>String</code> and a platform specific byte array.
- *
- * <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
+ *
+ * <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>
- *
+ *
* <p>The following snippet shows a subclass of ByteArrayTransfer that transfers
* data defined by the class <code>MyType</code>.</p>
- *
+ *
* <pre><code>
* public class MyType {
* public String fileName;
@@ -34,24 +34,24 @@ package org.eclipse.swt.dnd;
* public long lastModified;
* }
* </code></pre>
- *
+ *
* <pre><code>
* public class MyTypeTransfer extends ByteArrayTransfer {
- *
+ *
* private static final String MYTYPENAME = "my_type_name";
* private static final int MYTYPEID = registerType(MYTYPENAME);
* private static MyTypeTransfer _instance = new MyTypeTransfer();
- *
+ *
* private MyTypeTransfer() {}
- *
+ *
* public static MyTypeTransfer getInstance () {
* return _instance;
* }
* public void javaToNative (Object object, TransferData transferData) {
* if (object == null || !(object instanceof MyType[])) return;
- *
+ *
* if (isSupportedType(transferData)) {
- * MyType[] myTypes = (MyType[]) object;
+ * MyType[] myTypes = (MyType[]) object;
* try {
* // write data to a byte array and then ask super to convert to pMedium
* ByteArrayOutputStream out = new ByteArrayOutputStream();
@@ -65,20 +65,20 @@ package org.eclipse.swt.dnd;
* }
* byte[] buffer = out.toByteArray();
* writeOut.close();
- *
+ *
* super.javaToNative(buffer, transferData);
- *
+ *
* } catch (IOException e) {
* }
* }
* }
- * public Object nativeToJava(TransferData transferData){
- *
+ * public Object nativeToJava(TransferData transferData){
+ *
* if (isSupportedType(transferData)) {
- *
+ *
* byte[] buffer = (byte[])super.nativeToJava(transferData);
* if (buffer == null) return null;
- *
+ *
* MyType[] myData = new MyType[0];
* try {
* ByteArrayInputStream in = new ByteArrayInputStream(buffer);
@@ -102,7 +102,7 @@ package org.eclipse.swt.dnd;
* }
* return myData;
* }
- *
+ *
* return null;
* }
* protected String[] getTypeNames(){
@@ -117,7 +117,7 @@ package org.eclipse.swt.dnd;
* @see Transfer
*/
public abstract class ByteArrayTransfer extends Transfer {
-
+
public TransferData[] getSupportedTypes(){
return null;
}
@@ -127,26 +127,26 @@ public boolean isSupportedType(TransferData transferData){
}
/**
- * This implementation of <code>javaToNative</code> converts a java
+ * This implementation of <code>javaToNative</code> converts a java
* <code>byte[]</code> to a platform specific representation.
- *
+ *
* @param object a java <code>byte[]</code> containing the data to be converted
* @param transferData an empty <code>TransferData</code> object that will
* be filled in on return with the platform specific format of the data
- *
+ *
* @see Transfer#nativeToJava
*/
protected void javaToNative (Object object, TransferData transferData) {
}
/**
- * This implementation of <code>nativeToJava</code> converts a platform specific
- * representation of a byte array to a java <code>byte[]</code>.
- *
+ * This implementation of <code>nativeToJava</code> converts a platform specific
+ * representation of a byte array to a java <code>byte[]</code>.
+ *
* @param transferData the platform specific representation of the data to be converted
* @return a java <code>byte[]</code> containing the converted data if the conversion was
* successful; otherwise null
- *
+ *
* @see Transfer#javaToNative
*/
protected Object nativeToJava(TransferData transferData) {
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 28023566af..255bc81cfb 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
@@ -17,7 +17,7 @@ import org.eclipse.swt.widgets.*;
/**
* The <code>Clipboard</code> provides a mechanism for transferring data from one
* application to another or within an application.
- *
+ *
* <p>IMPORTANT: This class is <em>not</em> intended to be subclassed.</p>
*
* @see <a href="http://www.eclipse.org/swt/snippets/#clipboard">Clipboard snippets</a>
@@ -44,7 +44,7 @@ public class Clipboard {
* @see Clipboard#dispose
* @see Clipboard#checkSubclass
*/
-public Clipboard(Display display) {
+public Clipboard(Display display) {
checkSubclass ();
if (display == null) {
display = Display.getCurrent();
@@ -61,12 +61,12 @@ public Clipboard(Display display) {
/**
* Checks that this class can be subclassed.
* <p>
- * The SWT class library is intended to be subclassed
+ * The SWT class library is intended to be subclassed
* only at specific, controlled points. This method enforces this
* rule unless it is overridden.
* </p><p>
* <em>IMPORTANT:</em> By providing an implementation of this
- * method that allows a subclass of a class which does not
+ * method that allows a subclass of a class which does not
* normally allow subclassing to be created, the implementer
* agrees to be fully responsible for the fact that any such
* subclass will likely fail between SWT releases and will be
@@ -101,7 +101,7 @@ protected void checkSubclass () {
* 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>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.
@@ -125,15 +125,15 @@ protected void checkWidget () {
/**
* If this clipboard is currently the owner of the data on the system clipboard,
* clear the contents. If this clipboard is not the owner, then nothing is done.
- * Note that there are clipboard assistant applications that take ownership of
- * data or make copies of data when it is placed on the clipboard. In these
+ * Note that there are clipboard assistant applications that take ownership of
+ * data or make copies of data when it is placed on the clipboard. In these
* cases, it may not be possible to clear the clipboard.
- *
+ *
* @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>
- *
+ *
* @since 3.1
*/
public void clearContents() {
@@ -141,29 +141,29 @@ public void clearContents() {
}
/**
- * If this clipboard is currently the owner of the data on the specified
- * clipboard, clear the contents. If this clipboard is not the owner, then
+ * If this clipboard is currently the owner of the data on the specified
+ * clipboard, clear the contents. If this clipboard is not the owner, then
* nothing is done.
- *
+ *
* <p>Note that there are clipboard assistant applications that take ownership
- * of data or make copies of data when it is placed on the clipboard. In these
+ * of data or make copies of data when it is placed on the clipboard. In these
* cases, it may not be possible to clear the clipboard.</p>
- *
+ *
* <p>The clipboards value is either one of the clipboard constants defined in
- * class <code>DND</code>, or must be built by <em>bitwise OR</em>'ing together
+ * class <code>DND</code>, or must be built by <em>bitwise OR</em>'ing together
* (that is, using the <code>int</code> "|" operator) two or more
* of those <code>DND</code> clipboard constants.</p>
- *
+ *
* @param clipboards to be cleared
- *
+ *
* @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 DND#CLIPBOARD
* @see DND#SELECTION_CLIPBOARD
- *
+ *
* @since 3.1
*/
public void clearContents(int clipboards) {
@@ -171,13 +171,13 @@ public void clearContents(int clipboards) {
}
/**
- * Disposes of the operating system resources associated with the clipboard.
- * The data will still be available on the system clipboard after the dispose
- * method is called.
- *
+ * Disposes of the operating system resources associated with the clipboard.
+ * The data will still be available on the system clipboard after the dispose
+ * method is called.
+ *
* <p>NOTE: On some platforms the data will not be available once the application
* has exited or the display has been disposed.</p>
- *
+ *
* @exception SWTException <ul>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent</li>
* </ul>
@@ -189,13 +189,13 @@ public void dispose () {
}
/**
- * Retrieve the data of the specified type currently available on the system
- * clipboard. Refer to the specific subclass of <code>Transfer</code> to
+ * Retrieve the data of the specified type currently available on the system
+ * clipboard. Refer to the specific subclass of <code>Transfer</code> to
* determine the type of object returned.
- *
- * <p>The following snippet shows text and RTF text being retrieved from the
+ *
+ * <p>The following snippet shows text and RTF text being retrieved from the
* clipboard:</p>
- *
+ *
* <code><pre>
* Clipboard clipboard = new Clipboard(display);
* TextTransfer textTransfer = TextTransfer.getInstance();
@@ -206,10 +206,10 @@ public void dispose () {
* if (rtfData != null) System.out.println("RTF Text is "+rtfData);
* clipboard.dispose();
* </code></pre>
- *
+ *
* @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
- *
+ *
* @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>
@@ -217,7 +217,7 @@ public void dispose () {
* @exception IllegalArgumentException <ul>
* <li>ERROR_NULL_ARGUMENT - if transfer is null</li>
* </ul>
- *
+ *
* @see Transfer
*/
public Object getContents(Transfer transfer) {
@@ -225,13 +225,13 @@ public Object getContents(Transfer transfer) {
}
/**
- * Retrieve the data of the specified type currently available on the specified
- * clipboard. Refer to the specific subclass of <code>Transfer</code> to
+ * Retrieve the data of the specified type currently available on the specified
+ * clipboard. Refer to the specific subclass of <code>Transfer</code> to
* determine the type of object returned.
- *
- * <p>The following snippet shows text and RTF text being retrieved from the
+ *
+ * <p>The following snippet shows text and RTF text being retrieved from the
* clipboard:</p>
- *
+ *
* <code><pre>
* Clipboard clipboard = new Clipboard(display);
* TextTransfer textTransfer = TextTransfer.getInstance();
@@ -242,17 +242,17 @@ public Object getContents(Transfer transfer) {
* if (rtfData != null) System.out.println("RTF Text is "+rtfData);
* clipboard.dispose();
* </code></pre>
- *
+ *
* <p>The clipboards value is either one of the clipboard constants defined in
- * class <code>DND</code>, or must be built by <em>bitwise OR</em>'ing together
+ * class <code>DND</code>, or must be built by <em>bitwise OR</em>'ing together
* (that is, using the <code>int</code> "|" operator) two or more
* of those <code>DND</code> clipboard constants.</p>
- *
+ *
* @param transfer the transfer agent for the type of data being requested
* @param clipboards on which to look for data
- *
+ *
* @return the data obtained from the clipboard or null if no data of this type is available
- *
+ *
* @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>
@@ -260,11 +260,11 @@ public Object getContents(Transfer transfer) {
* @exception IllegalArgumentException <ul>
* <li>ERROR_NULL_ARGUMENT - if transfer is null</li>
* </ul>
- *
+ *
* @see Transfer
* @see DND#CLIPBOARD
* @see DND#SELECTION_CLIPBOARD
- *
+ *
* @since 3.1
*/
public Object getContents(Transfer transfer, int clipboards) {
@@ -284,7 +284,7 @@ public Object getContents(Transfer transfer, int clipboards) {
* </p>
*
* @return <code>true</code> when the widget is disposed and <code>false</code> otherwise
- *
+ *
* @since 3.0
*/
public boolean isDisposed () {
@@ -295,17 +295,17 @@ public boolean isDisposed () {
* Place data of the specified type on the system clipboard. More than one type
* of data can be placed on the system clipboard at the same time. Setting the
* data clears any previous data from the system clipboard, regardless of type.
- *
+ *
* <p>NOTE: On some platforms, the data is immediately copied to the system
* clipboard but on other platforms it is provided upon request. As a result,
- * if the application modifies the data object it has set on the clipboard, that
- * modification may or may not be available when the data is subsequently
+ * if the application modifies the data object it has set on the clipboard, that
+ * modification may or may not be available when the data is subsequently
* requested.</p>
*
* <p>The following snippet shows text and RTF text being set on the copy/paste
* clipboard:
* </p>
- *
+ *
* <code><pre>
* Clipboard clipboard = new Clipboard(display);
* String textData = "Hello World";
@@ -319,12 +319,12 @@ public boolean isDisposed () {
* </code></pre>
*
* @param data the data to be set in the clipboard
- * @param dataTypes the transfer agents that will convert the data to its
- * platform specific format; each entry in the data array must have a
+ * @param dataTypes the transfer agents that will convert the data to its
+ * platform specific format; each entry in the data array must have a
* corresponding dataType
- *
+ *
* @exception IllegalArgumentException <ul>
- * <li>ERROR_INVALID_ARGUMENT - if data is null or datatypes is null
+ * <li>ERROR_INVALID_ARGUMENT - if data is null or datatypes is null
* or the length of data is not the same as the length of dataTypes</li>
* </ul>
* @exception SWTException <ul>
@@ -334,7 +334,7 @@ public boolean isDisposed () {
* @exception SWTError <ul>
* <li>ERROR_CANNOT_SET_CLIPBOARD - if the clipboard is locked or otherwise unavailable</li>
* </ul>
- *
+ *
* <p>NOTE: ERROR_CANNOT_SET_CLIPBOARD should be an SWTException, since it is a
* recoverable error, but can not be changed due to backward compatibility.</p>
*/
@@ -343,26 +343,26 @@ public void setContents(Object[] data, Transfer[] dataTypes) {
}
/**
- * Place data of the specified type on the specified clipboard. More than one
+ * Place data of the specified type on the specified clipboard. More than one
* type of data can be placed on the specified clipboard at the same time.
* Setting the data clears any previous data from the specified
* clipboard, regardless of type.
- *
+ *
* <p>NOTE: On some platforms, the data is immediately copied to the specified
- * clipboard but on other platforms it is provided upon request. As a result,
- * if the application modifies the data object it has set on the clipboard, that
- * modification may or may not be available when the data is subsequently
+ * clipboard but on other platforms it is provided upon request. As a result,
+ * if the application modifies the data object it has set on the clipboard, that
+ * modification may or may not be available when the data is subsequently
* requested.</p>
*
* <p>The clipboards value is either one of the clipboard constants defined in
- * class <code>DND</code>, or must be built by <em>bitwise OR</em>'ing together
+ * class <code>DND</code>, or must be built by <em>bitwise OR</em>'ing together
* (that is, using the <code>int</code> "|" operator) two or more
* of those <code>DND</code> clipboard constants.</p>
- *
+ *
* <p>The following snippet shows text and RTF text being set on the copy/paste
* clipboard:
* </p>
- *
+ *
* <code><pre>
* Clipboard clipboard = new Clipboard(display);
* String textData = "Hello World";
@@ -376,13 +376,13 @@ public void setContents(Object[] data, Transfer[] dataTypes) {
* </code></pre>
*
* @param data the data to be set in the clipboard
- * @param dataTypes the transfer agents that will convert the data to its
- * platform specific format; each entry in the data array must have a
+ * @param dataTypes the transfer agents that will convert the data to its
+ * platform specific format; each entry in the data array must have a
* corresponding dataType
* @param clipboards on which to set the data
- *
+ *
* @exception IllegalArgumentException <ul>
- * <li>ERROR_INVALID_ARGUMENT - if data is null or datatypes is null
+ * <li>ERROR_INVALID_ARGUMENT - if data is null or datatypes is null
* or the length of data is not the same as the length of dataTypes</li>
* </ul>
* @exception SWTException <ul>
@@ -392,13 +392,13 @@ public void setContents(Object[] data, Transfer[] dataTypes) {
* @exception SWTError <ul>
* <li>ERROR_CANNOT_SET_CLIPBOARD - if the clipboard is locked or otherwise unavailable</li>
* </ul>
- *
+ *
* <p>NOTE: ERROR_CANNOT_SET_CLIPBOARD should be an SWTException, since it is a
* recoverable error, but can not be changed due to backward compatibility.</p>
- *
+ *
* @see DND#CLIPBOARD
* @see DND#SELECTION_CLIPBOARD
- *
+ *
* @since 3.1
*/
public void setContents(Object[] data, Transfer[] dataTypes, int clipboards) {
@@ -406,7 +406,7 @@ public void setContents(Object[] data, Transfer[] dataTypes, int clipboards) {
if (data == null || dataTypes == null || data.length != dataTypes.length) {
DND.error(SWT.ERROR_INVALID_ARGUMENT);
}
-
+
for (int i = 0; i < dataTypes.length; i++) {
if (dataTypes[i] instanceof TextTransfer && data[i] instanceof String){
display.setData("TextTransfer", data[i]); //$NON-NLS-1$
@@ -416,18 +416,18 @@ public void setContents(Object[] data, Transfer[] dataTypes, int clipboards) {
}
/**
- * Returns an array of the data types currently available on the system
+ * Returns an array of the data types currently available on the system
* clipboard. Use with Transfer.isSupportedType.
*
* @return array of data types currently available on the system clipboard
- *
+ *
* @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 Transfer#isSupportedType
- *
+ *
* @since 3.0
*/
public TransferData[] getAvailableTypes() {
@@ -436,17 +436,17 @@ public TransferData[] getAvailableTypes() {
}
/**
- * Returns an array of the data types currently available on the specified
+ * Returns an array of the data types currently available on the specified
* clipboard. Use with Transfer.isSupportedType.
- *
+ *
* <p>The clipboards value is either one of the clipboard constants defined in
- * class <code>DND</code>, or must be built by <em>bitwise OR</em>'ing together
+ * class <code>DND</code>, or must be built by <em>bitwise OR</em>'ing together
* (that is, using the <code>int</code> "|" operator) two or more
* of those <code>DND</code> clipboard constants.</p>
- *
+ *
* @param clipboards from which to get the data types
* @return array of data types currently available on the specified clipboard
- *
+ *
* @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>
@@ -455,7 +455,7 @@ public TransferData[] getAvailableTypes() {
* @see Transfer#isSupportedType
* @see DND#CLIPBOARD
* @see DND#SELECTION_CLIPBOARD
- *
+ *
* @since 3.1
*/
public TransferData[] getAvailableTypes(int clipboards) {
@@ -464,16 +464,16 @@ public TransferData[] getAvailableTypes(int clipboards) {
}
/**
- * Returns a platform specific list of the data types currently available on the
+ * Returns a platform specific list of the data types currently available on the
* system clipboard.
- *
- * <p>Note: <code>getAvailableTypeNames</code> is a utility for writing a Transfer
- * sub-class. It should NOT be used within an application because it provides
+ *
+ * <p>Note: <code>getAvailableTypeNames</code> is a utility for writing a Transfer
+ * sub-class. It should NOT be used within an application because it provides
* platform specific information.</p>
- *
- * @return a platform specific list of the data types currently available on the
+ *
+ * @return a platform specific list of the data types currently available on the
* system clipboard
- *
+ *
* @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>
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 08a78aa406..28f3581ec6 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
@@ -10,7 +10,7 @@
*******************************************************************************/
package org.eclipse.swt.dnd;
-
+
import org.eclipse.swt.*;
import org.eclipse.swt.widgets.*;
@@ -19,34 +19,34 @@ import org.eclipse.swt.widgets.*;
* <code>DragSource</code> defines the source object for a drag and drop transfer.
*
* <p>IMPORTANT: This class is <em>not</em> intended to be subclassed.</p>
- *
- * <p>A drag source is the object which originates a drag and drop operation. For the specified widget,
- * it defines the type of data that is available for dragging and the set of operations that can
- * be performed on that data. The operations can be any bit-wise combination of DND.MOVE, DND.COPY or
- * DND.LINK. The type of data that can be transferred is specified by subclasses of Transfer such as
- * TextTransfer or FileTransfer. The type of data transferred can be a predefined system type or it
+ *
+ * <p>A drag source is the object which originates a drag and drop operation. For the specified widget,
+ * it defines the type of data that is available for dragging and the set of operations that can
+ * be performed on that data. The operations can be any bit-wise combination of DND.MOVE, DND.COPY or
+ * DND.LINK. The type of data that can be transferred is specified by subclasses of Transfer such as
+ * TextTransfer or FileTransfer. The type of data transferred can be a predefined system type or it
* can be a type defined by the application. For instructions on how to define your own transfer type,
* refer to <code>ByteArrayTransfer</code>.</p>
*
- * <p>You may have several DragSources in an application but you can only have one DragSource
- * per Control. Data dragged from this DragSource can be dropped on a site within this application
+ * <p>You may have several DragSources in an application but you can only have one DragSource
+ * per Control. Data dragged from this DragSource can be dropped on a site within this application
* or it can be dropped on another application such as an external Text editor.</p>
- *
+ *
* <p>The application supplies the content of the data being transferred by implementing the
* <code>DragSourceListener</code> and associating it with the DragSource via DragSource#addDragListener.</p>
- *
- * <p>When a successful move operation occurs, the application is required to take the appropriate
+ *
+ * <p>When a successful move operation occurs, the application is required to take the appropriate
* action to remove the data from its display and remove any associated operating system resources or
- * internal references. Typically in a move operation, the drop target makes a copy of the data
- * and the drag source deletes the original. However, sometimes copying the data can take a long
- * time (such as copying a large file). Therefore, on some platforms, the drop target may actually
- * move the data in the operating system rather than make a copy. This is usually only done in
+ * internal references. Typically in a move operation, the drop target makes a copy of the data
+ * and the drag source deletes the original. However, sometimes copying the data can take a long
+ * time (such as copying a large file). Therefore, on some platforms, the drop target may actually
+ * move the data in the operating system rather than make a copy. This is usually only done in
* file transfers. In this case, the drag source is informed in the DragEnd event that a
- * DROP_TARGET_MOVE was performed. It is the responsibility of the drag source at this point to clean
+ * DROP_TARGET_MOVE was performed. It is the responsibility of the drag source at this point to clean
* up its displayed information. No action needs to be taken on the operating system resources.</p>
*
* <p> The following example shows a Label widget that allows text to be dragged from it.</p>
- *
+ *
* <code><pre>
* // Enable a label as a Drag Source
* Label label = new Label(shell, SWT.NONE);
@@ -54,7 +54,7 @@ import org.eclipse.swt.widgets.*;
* Transfer[] types = new Transfer[] {TextTransfer.getInstance()};
* // This example will allow the text to be copied or moved to the drop target
* int operations = DND.DROP_MOVE | DND.DROP_COPY;
- *
+ *
* DragSource source = new DragSource(label, operations);
* source.setTransfer(types);
* source.addDragListener(new DragSourceListener() {
@@ -66,10 +66,10 @@ import org.eclipse.swt.widgets.*;
* }
* };
* public void dragSetData(DragSourceEvent event) {
- * // A drop has been performed, so provide the data of the
+ * // A drop has been performed, so provide the data of the
* // requested type.
- * // (Checking the type of the requested data is only
- * // necessary if the drag source supports more than
+ * // (Checking the type of the requested data is only
+ * // necessary if the drag source supports more than
* // one data type but is shown here as an example).
* if (TextTransfer.getInstance().isSupportedType(event.dataType)){
* event.data = label.getText();
@@ -107,13 +107,13 @@ public class DragSource extends Widget {
/**
* Creates a new <code>DragSource</code> to handle dragging from the specified <code>Control</code>.
- * Creating an instance of a DragSource may cause system resources to be allocated depending on the platform.
+ * Creating an instance of a DragSource may cause system resources to be allocated depending on the platform.
* It is therefore mandatory that the DragSource instance be disposed when no longer required.
*
* @param control the <code>Control</code> that the user clicks on to initiate the drag
- * @param style the bitwise OR'ing of allowed operations; this may be a combination of any of
+ * @param style the bitwise OR'ing of allowed operations; this may be a combination of any of
* DND.DROP_NONE, DND.DROP_COPY, DND.DROP_MOVE, DND.DROP_LINK
- *
+ *
* @exception SWTException <ul>
* <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>
@@ -123,10 +123,10 @@ public class DragSource extends Widget {
* drag source is created for a control or if the operating system will not allow the creation
* of the drag source</li>
* </ul>
- *
+ *
* <p>NOTE: ERROR_CANNOT_INIT_DRAG should be an SWTException, since it is a
* recoverable error, but can not be changed due to backward compatibility.</p>
- *
+ *
* @see Widget#dispose
* @see DragSource#checkSubclass
* @see DND#DROP_NONE
@@ -157,13 +157,13 @@ public DragSource(Control control, int style) {
};
control.addListener (SWT.Dispose, controlListener);
control.addListener (SWT.DragDetect, controlListener);
-
+
this.addListener(SWT.Dispose, new Listener() {
public void handleEvent(Event e) {
onDispose();
}
});
-
+
Object effect = control.getData(DEFAULT_DRAG_SOURCE_EFFECT);
if (effect instanceof DragSourceEffect) {
dragEffect = (DragSourceEffect) effect;
@@ -179,13 +179,13 @@ public DragSource(Control control, int style) {
* be notified when a drag and drop operation is in progress, by sending
* it one of the messages defined in the <code>DragSourceListener</code>
* interface.
- *
+ *
* <p><ul>
- * <li><code>dragStart</code> is called when the user has begun the actions required to drag the widget.
+ * <li><code>dragStart</code> is called when the user has begun the actions required to drag the widget.
* This event gives the application the chance to decide if a drag should be started.
* <li><code>dragSetData</code> is called when the data is required from the drag source.
- * <li><code>dragFinished</code> is called when the drop has successfully completed (mouse up
- * over a valid target) or has been terminated (such as hitting the ESC key). Perform cleanup
+ * <li><code>dragFinished</code> is called when the drop has successfully completed (mouse up
+ * over a valid target) or has been terminated (such as hitting the ESC key). Perform cleanup
* such as removing data from the source side on a successful move operation.
* </ul></p>
*
@@ -227,7 +227,7 @@ protected void checkSubclass () {
}
/**
- * Returns the Control which is registered for this DragSource. This is the control that the
+ * Returns the Control which is registered for this DragSource. This is the control that the
* user clicks in to initiate dragging.
*
* @return the Control which is registered for this DragSource
@@ -237,8 +237,8 @@ public Control getControl () {
}
/**
- * Returns an array of listeners who will be notified when a drag and drop
- * operation is in progress, by sending it one of the messages defined in
+ * Returns an array of listeners who will be notified when a drag and drop
+ * 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
@@ -253,7 +253,7 @@ public Control getControl () {
* @see #addDragListener
* @see #removeDragListener
* @see DragSourceEvent
- *
+ *
* @since 3.4
*/
public DragSourceListener[] getDragListeners() {
@@ -279,7 +279,7 @@ public DragSourceListener[] getDragListeners() {
* effect will be used during a drag and drop operation.
*
* @return the drag effect that is registered for this DragSource
- *
+ *
* @since 3.3
*/
public DragSourceEffect getDragSourceEffect() {
@@ -334,11 +334,11 @@ public void removeDragListener(DragSourceListener listener) {
}
/**
- * Specifies the drag effect for this DragSource. This drag effect will be
+ * Specifies the drag effect for this DragSource. This drag effect will be
* used during a drag and drop operation.
*
* @param effect the drag effect that is registered for this DragSource
- *
+ *
* @since 3.3
*/
public void setDragSourceEffect(DragSourceEffect effect) {
@@ -349,7 +349,7 @@ public void setDragSourceEffect(DragSourceEffect effect) {
* Specifies the list of data types that can be transferred by this DragSource.
* The application must be able to provide data to match each of these types when
* a successful drop has occurred.
- *
+ *
* @param transferAgents a list of Transfer objects which define the types of data that can be
* dragged from this source
*/
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 c21cdce158..59725666bb 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
@@ -21,10 +21,10 @@ import org.eclipse.swt.widgets.*;
* <p>IMPORTANT: This class is <em>not</em> intended to be subclassed.</p>
*
* <p>This class identifies the <code>Control</code> over which the user must position the cursor
- * in order to drop the data being transferred. It also specifies what data types can be dropped on
- * this control and what operations can be performed. You may have several DropTragets in an
+ * in order to drop the data being transferred. It also specifies what data types can be dropped on
+ * this control and what operations can be performed. You may have several DropTragets in an
* application but there can only be a one to one mapping between a <code>Control</code> and a <code>DropTarget</code>.
- * The DropTarget can receive data from within the same application or from other applications
+ * The DropTarget can receive data from within the same application or from other applications
* (such as text dragged from a text editor like Word).</p>
*
* <code><pre>
@@ -34,11 +34,11 @@ import org.eclipse.swt.widgets.*;
* target.setTransfer(types);
* </code></pre>
*
- * <p>The application is notified of data being dragged over this control and of when a drop occurs by
- * implementing the interface <code>DropTargetListener</code> which uses the class
- * <code>DropTargetEvent</code>. The application can modify the type of drag being performed
- * on this Control at any stage of the drag by modifying the <code>event.detail</code> field or the
- * <code>event.currentDataType</code> field. When the data is dropped, it is the responsibility of
+ * <p>The application is notified of data being dragged over this control and of when a drop occurs by
+ * implementing the interface <code>DropTargetListener</code> which uses the class
+ * <code>DropTargetEvent</code>. The application can modify the type of drag being performed
+ * on this Control at any stage of the drag by modifying the <code>event.detail</code> field or the
+ * <code>event.currentDataType</code> field. When the data is dropped, it is the responsibility of
* the application to copy this data for its own purposes.
*
* <code><pre>
@@ -61,7 +61,7 @@ import org.eclipse.swt.widgets.*;
*
* <dl>
* <dt><b>Styles</b></dt> <dd>DND.DROP_NONE, DND.DROP_COPY, DND.DROP_MOVE, DND.DROP_LINK</dd>
- * <dt><b>Events</b></dt> <dd>DND.DragEnter, DND.DragLeave, DND.DragOver, DND.DragOperationChanged,
+ * <dt><b>Events</b></dt> <dd>DND.DragEnter, DND.DragLeave, DND.DragOver, DND.DragOperationChanged,
* DND.DropAccept, DND.Drop </dd>
* </dl>
*
@@ -72,7 +72,7 @@ import org.eclipse.swt.widgets.*;
*/
public class DropTarget extends Widget {
- // info for registering as a droptarget
+ // info for registering as a droptarget
Control control;
Listener controlListener;
Transfer[] transferAgents = new Transfer[0];
@@ -81,14 +81,14 @@ public class DropTarget extends Widget {
static final String DEFAULT_DROP_TARGET_EFFECT = "DEFAULT_DROP_TARGET_EFFECT"; //$NON-NLS-1$
/**
- * Creates a new <code>DropTarget</code> to allow data to be dropped on the specified
+ * Creates a new <code>DropTarget</code> to allow data to be dropped on the specified
* <code>Control</code>.
- * Creating an instance of a DropTarget may cause system resources to be allocated
- * depending on the platform. It is therefore mandatory that the DropTarget instance
+ * Creating an instance of a DropTarget may cause system resources to be allocated
+ * depending on the platform. It is therefore mandatory that the DropTarget instance
* be disposed when no longer required.
- *
+ *
* @param control the <code>Control</code> over which the user positions the cursor to drop the data
- * @param style the bitwise OR'ing of allowed operations; this may be a combination of any of
+ * @param style the bitwise OR'ing of allowed operations; this may be a combination of any of
* DND.DROP_NONE, DND.DROP_COPY, DND.DROP_MOVE, DND.DROP_LINK
*
* @exception SWTException <ul>
@@ -103,7 +103,7 @@ public class DropTarget extends Widget {
*
* <p>NOTE: ERROR_CANNOT_INIT_DROP should be an SWTException, since it is a
* recoverable error, but can not be changed due to backward compatibility.</p>
- *
+ *
* @see Widget#dispose
* @see DropTarget#checkSubclass
* @see DND#DROP_NONE
@@ -126,7 +126,7 @@ public DropTarget(Control control, int style) {
}
};
control.addListener (SWT.Dispose, controlListener);
-
+
this.addListener(SWT.Dispose, new Listener() {
public void handleEvent (Event event) {
onDispose();
@@ -148,15 +148,15 @@ public DropTarget(Control control, int style) {
* be notified when a drag and drop operation is in progress, by sending
* it one of the messages defined in the <code>DropTargetListener</code>
* interface.
- *
+ *
* <p><ul>
* <li><code>dragEnter</code> is called when the cursor has entered the drop target boundaries
* <li><code>dragLeave</code> is called when the cursor has left the drop target boundaries and just before
* the drop occurs or is cancelled.
- * <li><code>dragOperationChanged</code> is called when the operation being performed has changed
+ * <li><code>dragOperationChanged</code> is called when the operation being performed has changed
* (usually due to the user changing the selected modifier key(s) while dragging)
* <li><code>dragOver</code> is called when the cursor is moving over the drop target
- * <li><code>dropAccept</code> is called just before the drop is performed. The drop target is given
+ * <li><code>dropAccept</code> is called just before the drop is performed. The drop target is given
* the chance to change the nature of the drop or veto the drop by setting the <code>event.detail</code> field
* <li><code>drop</code> is called when the data is being dropped
* </ul></p>
@@ -202,7 +202,7 @@ protected void checkSubclass () {
}
/**
- * Returns the Control which is registered for this DropTarget. This is the control over which the
+ * Returns the Control which is registered for this DropTarget. This is the control over which the
* user positions the cursor to drop the data.
*
* @return the Control which is registered for this DropTarget
@@ -212,11 +212,11 @@ public Control getControl () {
}
/**
- * Returns an array of listeners who will be notified when a drag and drop
- * operation is in progress, by sending it one of the messages defined in
+ * Returns an array of listeners who will be notified when a drag and drop
+ * 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
+ * @return the listeners who will be notified when a drag and drop
* operation is in progress
*
* @exception SWTException <ul>
@@ -228,7 +228,7 @@ public Control getControl () {
* @see #addDropListener
* @see #removeDropListener
* @see DropTargetEvent
- *
+ *
* @since 3.4
*/
public DropTargetListener[] getDropListeners() {
@@ -250,12 +250,12 @@ public DropTargetListener[] getDropListeners() {
}
/**
- * Returns the drop effect for this DropTarget. This drop effect will be
- * used during a drag and drop to display the drag under effect on the
+ * Returns the drop effect for this DropTarget. This drop effect will be
+ * used during a drag and drop to display the drag under effect on the
* target widget.
*
* @return the drop effect that is registered for this DropTarget
- *
+ *
* @since 3.3
*/
public DropTargetEffect getDropTargetEffect() {
@@ -271,7 +271,7 @@ public Transfer[] getTransfer() {
return transferAgents;
}
-void onDispose () {
+void onDispose () {
if (control == null)
return;
if (controlListener != null)
@@ -300,7 +300,7 @@ void onDispose () {
* @see #addDropListener
* @see #getDropListeners
*/
-public void removeDropListener(DropTargetListener listener) {
+public void removeDropListener(DropTargetListener listener) {
if (listener == null) DND.error (SWT.ERROR_NULL_ARGUMENT);
removeListener (DND.DragEnter, listener);
removeListener (DND.DragLeave, listener);
@@ -311,12 +311,12 @@ public void removeDropListener(DropTargetListener listener) {
}
/**
- * Specifies the drop effect for this DropTarget. This drop effect will be
- * used during a drag and drop to display the drag under effect on the
+ * Specifies the drop effect for this DropTarget. This drop effect will be
+ * used during a drag and drop to display the drag under effect on the
* target widget.
*
* @param effect the drop effect that is registered for this DropTarget
- *
+ *
* @since 3.3
*/
public void setDropTargetEffect(DropTargetEffect effect) {
@@ -324,14 +324,14 @@ public void setDropTargetEffect(DropTargetEffect effect) {
}
/**
- * Specifies the data types that can be transferred to this DropTarget. If data is
- * being dragged that does not match one of these types, the drop target will be notified of
- * the drag and drop operation but the currentDataType will be null and the operation
+ * Specifies the data types that can be transferred to this DropTarget. If data is
+ * being dragged that does not match one of these types, the drop target will be notified of
+ * the drag and drop operation but the currentDataType will be null and the operation
* will be DND.NONE.
*
* @param transferAgents a list of Transfer objects which define the types of data that can be
* dropped on this target
- *
+ *
* @exception IllegalArgumentException <ul>
* <li>ERROR_NULL_ARGUMENT - if transferAgents is null</li>
* </ul>
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 d7d45b85d2..f147a6f778 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
@@ -10,17 +10,17 @@
*******************************************************************************/
package org.eclipse.swt.dnd;
-
+
/**
- * The class <code>FileTransfer</code> provides a platform specific mechanism
- * for converting a list of files represented as a java <code>String[]</code> to a
- * platform specific representation of the data and vice versa.
- * Each <code>String</code> in the array contains the absolute path for a single
+ * The class <code>FileTransfer</code> provides a platform specific mechanism
+ * for converting a list of files represented as a java <code>String[]</code> to a
+ * platform specific representation of the data and vice versa.
+ * Each <code>String</code> in the array contains the absolute path for a single
* file or directory.
- *
- * <p>An example of a java <code>String[]</code> containing a list of files is shown
+ *
+ * <p>An example of a java <code>String[]</code> containing a list of files is shown
* below:</p>
- *
+ *
* <code><pre>
* File file1 = new File("C:\temp\file1");
* File file2 = new File("C:\temp\file2");
@@ -32,7 +32,7 @@ package org.eclipse.swt.dnd;
* @see Transfer
*/
public class FileTransfer extends ByteArrayTransfer {
-
+
private FileTransfer() {}
/**
* Returns the singleton instance of the FileTransfer class.
@@ -45,26 +45,26 @@ public static FileTransfer getInstance () {
/**
* This implementation of <code>javaToNative</code> converts a list of file names
* represented by a java <code>String[]</code> to a platform specific representation.
- * Each <code>String</code> in the array contains the absolute path for a single
+ * Each <code>String</code> in the array contains the absolute path for a single
* file or directory.
- *
+ *
* @param object a java <code>String[]</code> containing the file names to be converted
* @param transferData an empty <code>TransferData</code> object that will
* be filled in on return with the platform specific format of the data
- *
+ *
* @see Transfer#nativeToJava
*/
public void javaToNative(Object object, TransferData transferData) {
}
/**
- * This implementation of <code>nativeToJava</code> converts a platform specific
- * representation of a list of file names to a java <code>String[]</code>.
- * Each String in the array contains the absolute path for a single file or directory.
- *
+ * This implementation of <code>nativeToJava</code> converts a platform specific
+ * representation of a list of file names to a java <code>String[]</code>.
+ * Each String in the array contains the absolute path for a single file or directory.
+ *
* @param transferData the platform specific representation of the data to be converted
* @return a java <code>String[]</code> containing a list of file names if the conversion
* was successful; otherwise null
- *
+ *
* @see Transfer#javaToNative
*/
public Object nativeToJava(TransferData transferData) {
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/HTMLTransfer.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/HTMLTransfer.java
index afdec0185a..6409745bbc 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/HTMLTransfer.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/HTMLTransfer.java
@@ -11,13 +11,13 @@
package org.eclipse.swt.dnd;
/**
- * The class <code>HTMLTransfer</code> provides a platform specific mechanism
- * for converting text in HTML format represented as a java <code>String</code>
+ * The class <code>HTMLTransfer</code> provides a platform specific mechanism
+ * for converting text in HTML format represented as a java <code>String</code>
* to a platform specific representation of the data and vice versa.
- *
- * <p>An example of a java <code>String</code> containing HTML text is shown
+ *
+ * <p>An example of a java <code>String</code> containing HTML text is shown
* below:</p>
- *
+ *
* <code><pre>
* String htmlData = "<p>This is a paragraph of text.</p>";
* </code></pre>
@@ -45,23 +45,23 @@ public static HTMLTransfer getInstance () {
/**
* This implementation of <code>javaToNative</code> converts HTML-formatted text
* represented by a java <code>String</code> to a platform specific representation.
- *
+ *
* @param object a java <code>String</code> containing HTML text
* @param transferData an empty <code>TransferData</code> object that will
* be filled in on return with the platform specific format of the data
- *
+ *
* @see Transfer#nativeToJava
*/
public void javaToNative (Object object, TransferData transferData){
}
/**
- * This implementation of <code>nativeToJava</code> converts a platform specific
+ * This implementation of <code>nativeToJava</code> converts a platform specific
* representation of HTML text to a java <code>String</code>.
- *
+ *
* @param transferData the platform specific representation of the data to be converted
* @return a java <code>String</code> containing HTML text if the conversion was successful;
* otherwise null
- *
+ *
* @see Transfer#javaToNative
*/
public Object nativeToJava(TransferData transferData){
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/ImageTransfer.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/ImageTransfer.java
index 8e5c3a4d28..2cc50584e4 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/ImageTransfer.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/ImageTransfer.java
@@ -11,23 +11,23 @@
package org.eclipse.swt.dnd;
/**
- * The class <code>ImageTransfer</code> provides a platform specific mechanism
- * for converting an Image represented as a java <code>ImageData</code> to a
- * platform specific representation of the data and vice versa.
- *
+ * The class <code>ImageTransfer</code> provides a platform specific mechanism
+ * for converting an Image represented as a java <code>ImageData</code> to a
+ * platform specific representation of the data and vice versa.
+ *
* <p>An example of a java <code>ImageData</code> is shown below:</p>
- *
+ *
* <code><pre>
* Image image = new Image(display, "C:\temp\img1.gif");
* ImageData imgData = image.getImageData();
* </code></pre>
*
* @see Transfer
- *
+ *
* @since 3.4
*/
public class ImageTransfer extends ByteArrayTransfer {
-
+
private ImageTransfer() {}
/**
@@ -42,24 +42,24 @@ public static ImageTransfer getInstance () {
/**
* This implementation of <code>javaToNative</code> converts an ImageData object represented
* by java <code>ImageData</code> to a platform specific representation.
- *
+ *
* @param object a java <code>ImageData</code> containing the ImageData to be converted
* @param transferData an empty <code>TransferData</code> object that will
* be filled in on return with the platform specific format of the data
- *
+ *
* @see Transfer#nativeToJava
*/
public void javaToNative(Object object, TransferData transferData) {
}
/**
- * This implementation of <code>nativeToJava</code> converts a platform specific
- * representation of an image to java <code>ImageData</code>.
- *
+ * This implementation of <code>nativeToJava</code> converts a platform specific
+ * representation of an image to java <code>ImageData</code>.
+ *
* @param transferData the platform specific representation of the data to be converted
* @return a java <code>ImageData</code> of the image if the conversion was successful;
* otherwise null
- *
+ *
* @see Transfer#javaToNative
*/
public Object nativeToJava(TransferData transferData) {
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 11085904b3..fdf57addd8 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
@@ -10,15 +10,15 @@
*******************************************************************************/
package org.eclipse.swt.dnd;
-
+
/**
- * The class <code>RTFTransfer</code> provides a platform specific mechanism
- * for converting text in RTF format represented as a java <code>String</code>
+ * The class <code>RTFTransfer</code> provides a platform specific mechanism
+ * for converting text in RTF format represented as a java <code>String</code>
* to a platform specific representation of the data and vice versa.
- *
- * <p>An example of a java <code>String</code> containing RTF text is shown
+ *
+ * <p>An example of a java <code>String</code> containing RTF text is shown
* below:</p>
- *
+ *
* <code><pre>
* String rtfData = "{\\rtf1{\\colortbl;\\red255\\green0\\blue0;}\\uc1\\b\\i Hello World}";
* </code></pre>
@@ -48,23 +48,23 @@ public static RTFTransfer getInstance () {
/**
* This implementation of <code>javaToNative</code> converts RTF-formatted text
* represented by a java <code>String</code> to a platform specific representation.
- *
+ *
* @param object a java <code>String</code> containing RTF text
* @param transferData an empty <code>TransferData</code> object that will
* be filled in on return with the platform specific format of the data
- *
+ *
* @see Transfer#nativeToJava
*/
public void javaToNative (Object object, TransferData transferData){
}
/**
- * This implementation of <code>nativeToJava</code> converts a platform specific
+ * This implementation of <code>nativeToJava</code> converts a platform specific
* representation of RTF text to a java <code>String</code>.
- *
+ *
* @param transferData the platform specific representation of the data to be converted
* @return a java <code>String</code> containing RTF text if the conversion was successful;
* otherwise null
- *
+ *
* @see Transfer#javaToNative
*/
public Object nativeToJava(TransferData transferData){
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/TableDragSourceEffect.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/TableDragSourceEffect.java
index b7dbda53be..a4ec85ac95 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/TableDragSourceEffect.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/TableDragSourceEffect.java
@@ -15,10 +15,10 @@ import org.eclipse.swt.widgets.*;
/**
* This class provides default implementations to display a source image
* when a drag is initiated from a <code>Table</code>.
- *
+ *
* <p>Classes that wish to provide their own source image for a <code>Table</code> can
- * extend the <code>TableDragSourceEffect</code> class, override the
- * <code>TableDragSourceEffect.dragStart</code> method and set the field
+ * extend the <code>TableDragSourceEffect</code> class, override the
+ * <code>TableDragSourceEffect.dragStart</code> method and set the field
* <code>DragSourceEvent.image</code> with their own image.</p>
*
* Subclasses that override any methods of this class must call the corresponding
@@ -27,12 +27,12 @@ import org.eclipse.swt.widgets.*;
* @see DragSourceEffect
* @see DragSourceEvent
* @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
- *
+ *
* @since 3.3
*/
public class TableDragSourceEffect extends DragSourceEffect {
/**
- * Creates a new <code>TableDragSourceEffect</code> to handle drag effect
+ * Creates a new <code>TableDragSourceEffect</code> to handle drag effect
* from the specified <code>Table</code>.
*
* @param table the <code>Table</code> that the user clicks on to initiate the drag
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/TableDropTargetEffect.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/TableDropTargetEffect.java
index 8818ec6a4b..e001eac870 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/TableDropTargetEffect.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/TableDropTargetEffect.java
@@ -13,21 +13,21 @@ package org.eclipse.swt.dnd;
import org.eclipse.swt.widgets.*;
/**
- * This class provides a default drag under effect (eg. select, insert and scroll)
+ * This class provides a default drag under effect (eg. select, insert and scroll)
* when a drag occurs over a <code>Table</code>.
- *
+ *
* <p>Classes that wish to provide their own drag under effect for a <code>Table</code>
- * can extend the <code>TableDropTargetEffect</code> and override any applicable methods
+ * can extend the <code>TableDropTargetEffect</code> and override any applicable methods
* in <code>TableDropTargetEffect</code> to display their own drag under effect.</p>
- *
+ *
* Subclasses that override any methods of this class must call the corresponding
* <code>super</code> method to get the default drag under effect implementation.
*
- * <p>The feedback value is either one of the FEEDBACK constants defined in
- * class <code>DND</code> which is applicable to instances of this class,
- * or it must be built by <em>bitwise OR</em>'ing together
+ * <p>The feedback value is either one of the FEEDBACK constants defined in
+ * class <code>DND</code> which is applicable to instances of this class,
+ * or it must be built by <em>bitwise OR</em>'ing together
* (that is, using the <code>int</code> "|" operator) two or more
- * of those <code>DND</code> effect constants.
+ * of those <code>DND</code> effect constants.
* </p>
* <p>
* <dl>
@@ -35,18 +35,18 @@ import org.eclipse.swt.widgets.*;
* <dd>FEEDBACK_SELECT, FEEDBACK_SCROLL</dd>
* </dl>
* </p>
- *
+ *
* @see DropTargetAdapter
* @see DropTargetEvent
* @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
- *
+ *
* @since 3.3
*/
public class TableDropTargetEffect extends DropTargetEffect {
/**
- * Creates a new <code>TableDropTargetEffect</code> to handle the drag under effect on the specified
+ * Creates a new <code>TableDropTargetEffect</code> to handle the drag under effect on the specified
* <code>Table</code>.
- *
+ *
* @param table the <code>Table</code> over which the user positions the cursor to drop the data
*/
public TableDropTargetEffect(Table table) {
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 2ab0e06ce8..b89ecc66fd 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
@@ -10,25 +10,25 @@
*******************************************************************************/
package org.eclipse.swt.dnd;
-
+
/**
- * The class <code>TextTransfer</code> provides a platform specific mechanism
- * for converting plain text represented as a java <code>String</code>
+ * The class <code>TextTransfer</code> provides a platform specific mechanism
+ * for converting plain text represented as a java <code>String</code>
* to a platform specific representation of the data and vice versa.
- *
- * <p>An example of a java <code>String</code> containing plain text is shown
+ *
+ * <p>An example of a java <code>String</code> containing plain text is shown
* below:</p>
- *
+ *
* <code><pre>
* String textData = "Hello World";
* </code></pre>
- *
+ *
* <p>Note the <code>TextTransfer</code> does not change the content of the text
* data. For a better integration with the platform, the application should convert
* the line delimiters used in the text data to the standard line delimiter used by the
* platform.
* </p>
- *
+ *
* @see Transfer
*/
public class TextTransfer extends ByteArrayTransfer {
@@ -54,22 +54,22 @@ public static TextTransfer getInstance () {
/**
* This implementation of <code>javaToNative</code> converts plain text
* represented by a java <code>String</code> to a platform specific representation.
- *
+ *
* @param object a java <code>String</code> containing text
* @param transferData an empty <code>TransferData</code> object that will
* be filled in on return with the platform specific format of the data
- *
+ *
* @see Transfer#nativeToJava
*/
public void javaToNative (Object object, TransferData transferData){
}
/**
- * This implementation of <code>nativeToJava</code> converts a platform specific
+ * This implementation of <code>nativeToJava</code> converts a platform specific
* representation of plain text to a java <code>String</code>.
- *
+ *
* @param transferData the platform specific representation of the data to be converted
* @return a java <code>String</code> containing text if the conversion was successful; otherwise null
- *
+ *
* @see Transfer#javaToNative
*/
public Object nativeToJava(TransferData transferData){
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 02b36a2c1a..8384765f21 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
@@ -12,27 +12,27 @@ package org.eclipse.swt.dnd;
/**
- * <code>Transfer</code> provides a mechanism for converting between a java
- * representation of data and a platform specific representation of data and
- * vice versa. It is used in data transfer operations such as drag and drop and
+ * <code>Transfer</code> provides a mechanism for converting between a java
+ * representation of data and a platform specific representation of data and
+ * vice versa. It is used in data transfer operations such as drag and drop and
* clipboard copy/paste.
*
- * <p>You should only need to become familiar with this class if you are
- * implementing a Transfer subclass and you are unable to subclass the
+ * <p>You should only need to become familiar with this class if you are
+ * implementing a Transfer subclass and you are unable to subclass the
* ByteArrayTransfer class.</p>
- *
+ *
* @see ByteArrayTransfer
* @see <a href="http://www.eclipse.org/swt/snippets/#dnd">Drag and Drop snippets</a>
* @see <a href="http://www.eclipse.org/swt/examples.php">SWT Example: DNDExample</a>
* @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
*/
public abstract class Transfer {
-
+
/**
- * Returns a list of the platform specific data types that can be converted using
+ * Returns a list of the platform specific data types that can be converted using
* this transfer agent.
*
- * <p>Only the data type fields of the <code>TransferData</code> objects are filled
+ * <p>Only the data type fields of the <code>TransferData</code> objects are filled
* in.</p>
*
* @return a list of the data types that can be converted using this transfer agent
@@ -40,47 +40,47 @@ public abstract class Transfer {
abstract public TransferData[] getSupportedTypes();
/**
- * Returns true if the <code>TransferData</code> data type can be converted
+ * Returns true if the <code>TransferData</code> data type can be converted
* using this transfer agent, or false otherwise (including if transferData is
* <code>null</code>).
*
* @param transferData a platform specific description of a data type; only the data
* type fields of the <code>TransferData</code> object need to be filled in
*
- * @return true if the transferData data type can be converted using this transfer
+ * @return true if the transferData data type can be converted using this transfer
* agent
*/
abstract public boolean isSupportedType(TransferData transferData);
/**
- * Returns the platform specific names of the data types that can be converted
+ * Returns the platform specific names of the data types that can be converted
* using this transfer agent.
- *
- * @return the platform specific names of the data types that can be converted
+ *
+ * @return the platform specific names of the data types that can be converted
* using this transfer agent.
*/
abstract protected String[] getTypeNames();
/**
- * Returns the platform specific ids of the data types that can be converted using
+ * Returns the platform specific ids of the data types that can be converted using
* this transfer agent.
- *
- * @return the platform specific ids of the data types that can be converted using
+ *
+ * @return the platform specific ids of the data types that can be converted using
* this transfer agent
*/
abstract protected int[] getTypeIds();
/**
- * Converts a java representation of data to a platform specific representation of
- * the data.
+ * Converts a java representation of data to a platform specific representation of
+ * the data.
*
* <p>On a successful conversion, the transferData.result field will be set as follows:
* <ul>
* <li>Windows: COM.S_OK
* <li>GTK: 1
* </ul></p>
- *
- * <p>If this transfer agent is unable to perform the conversion, the transferData.result
+ *
+ * <p>If this transfer agent is unable to perform the conversion, the transferData.result
* field will be set to a failure value as follows:
* <ul>
* <li>Windows: COM.DV_E_TYMED or COM.E_FAIL
@@ -90,9 +90,9 @@ abstract protected int[] getTypeIds();
* @param object a java representation of the data to be converted; the type of
* Object that is passed in is dependent on the <code>Transfer</code> subclass.
*
- * @param transferData an empty TransferData object; this object will be
+ * @param transferData an empty TransferData object; this object will be
* filled in on return with the platform specific representation of the data
- *
+ *
* @exception org.eclipse.swt.SWTException <ul>
* <li>ERROR_INVALID_DATA - if object does not contain data in a valid format or is <code>null</code></li>
* </ul>
@@ -101,13 +101,13 @@ abstract protected void javaToNative (Object object, TransferData transferData);
/**
* Converts a platform specific representation of data to a java representation.
- *
- * @param transferData the platform specific representation of the data to be
+ *
+ * @param transferData the platform specific representation of the data to be
* converted
*
- * @return a java representation of the converted data if the conversion was
+ * @return a java representation of the converted data if the conversion was
* successful; otherwise null. If transferData is <code>null</code> then
- * <code>null</code> is returned. The type of Object that is returned is
+ * <code>null</code> is returned. The type of Object that is returned is
* dependent on the <code>Transfer</code> subclass.
*/
abstract protected Object nativeToJava(TransferData transferData);
@@ -115,11 +115,11 @@ abstract protected Object nativeToJava(TransferData transferData);
/**
* Registers a name for a data type and returns the associated unique identifier.
*
- * <p>You may register the same type more than once, the same unique identifier
+ * <p>You may register the same type more than once, the same unique identifier
* will be returned if the type has been previously registered.</p>
*
- * <p>Note: On windows, do <b>not</b> call this method with pre-defined
- * Clipboard Format types such as CF_TEXT or CF_BITMAP because the
+ * <p>Note: On windows, do <b>not</b> call this method with pre-defined
+ * Clipboard Format types such as CF_TEXT or CF_BITMAP because the
* pre-defined identifier will not be returned</p>
*
* @param formatName the name of a data type
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 7a0dd5f71c..8c00478df0 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
@@ -10,19 +10,19 @@
*******************************************************************************/
package org.eclipse.swt.dnd;
-
+
/**
* The <code>TransferData</code> class is a platform specific data structure for
* describing the type and the contents of data being converted by a transfer agent.
*
- * <p>As an application writer, you do not need to know the specifics of
- * TransferData. TransferData instances are passed to a subclass of Transfer
- * and the Transfer object manages the platform specific issues.
- * You can ask a Transfer subclass if it can handle this data by calling
+ * <p>As an application writer, you do not need to know the specifics of
+ * TransferData. TransferData instances are passed to a subclass of Transfer
+ * and the Transfer object manages the platform specific issues.
+ * You can ask a Transfer subclass if it can handle this data by calling
* Transfer.isSupportedType(transferData).</p>
*
- * <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
+ * <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>
*
* @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
@@ -37,11 +37,11 @@ public class TransferData {
* within the packages provided by SWT. It is not available on all
* platforms and should never be accessed from application code.
* </p>
- *
+ *
* @noreference This field is not intended to be referenced by clients.
*/
public int type;
-
+
// attributes specific to set/get
int length;
int format;
@@ -59,9 +59,9 @@ public class TransferData {
* </p>
* <p>The value of result is 1 if the conversion was successful.
* The value of result is 0 if the conversion failed.</p>
- *
+ *
* @noreference This field is not intended to be referenced by clients.
*/
int result;
-
+
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/TreeDragSourceEffect.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/TreeDragSourceEffect.java
index 7a66bebb22..90dba3d6b6 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/TreeDragSourceEffect.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/TreeDragSourceEffect.java
@@ -15,7 +15,7 @@ import org.eclipse.swt.widgets.*;
/**
* This class provides default implementations to display a source image
* when a drag is initiated from a <code>Tree</code>.
- *
+ *
* <p>Classes that wish to provide their own source image for a <code>Tree</code> can
* extend <code>TreeDragSourceEffect</code> class and override the <code>TreeDragSourceEffect.dragStart</code>
* method and set the field <code>DragSourceEvent.image</code> with their own image.</p>
@@ -26,12 +26,12 @@ import org.eclipse.swt.widgets.*;
* @see DragSourceEffect
* @see DragSourceEvent
* @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
- *
+ *
* @since 3.3
*/
public class TreeDragSourceEffect extends DragSourceEffect {
/**
- * Creates a new <code>TreeDragSourceEffect</code> to handle drag effect
+ * Creates a new <code>TreeDragSourceEffect</code> to handle drag effect
* from the specified <code>Tree</code>.
*
* @param tree the <code>Tree</code> that the user clicks on to initiate the drag
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/TreeDropTargetEffect.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/TreeDropTargetEffect.java
index 348c3742cf..6318a5e21c 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/TreeDropTargetEffect.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/TreeDropTargetEffect.java
@@ -13,21 +13,21 @@ package org.eclipse.swt.dnd;
import org.eclipse.swt.widgets.*;
/**
- * This class provides a default drag under effect (eg. select, insert, scroll and expand)
+ * This class provides a default drag under effect (eg. select, insert, scroll and expand)
* when a drag occurs over a <code>Tree</code>.
- *
+ *
* <p>Classes that wish to provide their own drag under effect for a <code>Tree</code>
- * can extend the <code>TreeDropTargetEffect</code> class and override any applicable methods
+ * can extend the <code>TreeDropTargetEffect</code> class and override any applicable methods
* in <code>TreeDropTargetEffect</code> to display their own drag under effect.</p>
*
* Subclasses that override any methods of this class must call the corresponding
* <code>super</code> method to get the default drag under effect implementation.
*
- * <p>The feedback value is either one of the FEEDBACK constants defined in
- * class <code>DND</code> which is applicable to instances of this class,
- * or it must be built by <em>bitwise OR</em>'ing together
+ * <p>The feedback value is either one of the FEEDBACK constants defined in
+ * class <code>DND</code> which is applicable to instances of this class,
+ * or it must be built by <em>bitwise OR</em>'ing together
* (that is, using the <code>int</code> "|" operator) two or more
- * of those <code>DND</code> effect constants.
+ * of those <code>DND</code> effect constants.
* </p>
* <p>
* <dl>
@@ -38,18 +38,18 @@ import org.eclipse.swt.widgets.*;
* Note: Only one of the styles FEEDBACK_SELECT, FEEDBACK_INSERT_BEFORE or
* FEEDBACK_INSERT_AFTER may be specified.
* </p>
- *
+ *
* @see DropTargetAdapter
* @see DropTargetEvent
* @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
- *
+ *
* @since 3.3
*/
public class TreeDropTargetEffect extends DropTargetEffect {
/**
- * Creates a new <code>TreeDropTargetEffect</code> to handle the drag under effect on the specified
+ * Creates a new <code>TreeDropTargetEffect</code> to handle the drag under effect on the specified
* <code>Tree</code>.
- *
+ *
* @param tree the <code>Tree</code> over which the user positions the cursor to drop the data
*/
public TreeDropTargetEffect(Tree tree) {
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/URLTransfer.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/URLTransfer.java
index 589d3ec7c1..89d63657a6 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/URLTransfer.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/emulated/org/eclipse/swt/dnd/URLTransfer.java
@@ -11,13 +11,13 @@
package org.eclipse.swt.dnd;
/**
- * The class <code>URLTransfer</code> provides a platform specific mechanism
- * for converting text in URL format represented as a java <code>String</code>
+ * The class <code>URLTransfer</code> provides a platform specific mechanism
+ * for converting text in URL format represented as a java <code>String</code>
* to a platform specific representation of the data and vice versa. The string
* must contain a fully specified url.
- *
+ *
* <p>An example of a java <code>String</code> containing a URL is shown below:</p>
- *
+ *
* <code><pre>
* String url = "http://www.eclipse.org";
* </code></pre>
@@ -41,24 +41,24 @@ public static URLTransfer getInstance () {
/**
* This implementation of <code>javaToNative</code> converts a URL
* represented by a java <code>String</code> to a platform specific representation.
- *
+ *
* @param object a java <code>String</code> containing a URL
* @param transferData an empty <code>TransferData</code> object that will
* be filled in on return with the platform specific format of the data
- *
+ *
* @see Transfer#nativeToJava
*/
public void javaToNative (Object object, TransferData transferData){
}
/**
- * This implementation of <code>nativeToJava</code> converts a platform
+ * This implementation of <code>nativeToJava</code> converts a platform
* specific representation of a URL to a java <code>String</code>.
- *
+ *
* @param transferData the platform specific representation of the data to be converted
* @return a java <code>String</code> containing a URL if the conversion was successful;
* otherwise null
- *
+ *
* @see Transfer#javaToNative
*/
public Object nativeToJava(TransferData transferData){
@@ -70,6 +70,6 @@ protected int[] getTypeIds(){
}
protected String[] getTypeNames(){
- return null;
+ return null;
}
}

Back to the top