diff options
author | Andrey Loskutov | 2016-01-07 21:15:24 +0000 |
---|---|---|
committer | Andrey Loskutov | 2016-01-07 21:15:24 +0000 |
commit | f7e0ca0a6ceaa853cff4c479014daa7b446ef66a (patch) | |
tree | a73e6dc41d5c455ef9a0632a7ef90d1892ecfe84 /bundles/org.eclipse.swt/Eclipse SWT Drag and Drop | |
parent | 951feeb55fe8d7953aa6c1ff789a550d3ace9b41 (diff) | |
download | eclipse.platform.swt-f7e0ca0a6ceaa853cff4c479014daa7b446ef66a.tar.gz eclipse.platform.swt-f7e0ca0a6ceaa853cff4c479014daa7b446ef66a.tar.xz eclipse.platform.swt-f7e0ca0a6ceaa853cff4c479014daa7b446ef66a.zip |
Bug 485367 - cleaned trailing spaces in swt (common)
Change-Id: I06f169ff771ea37dbeb35ba11fb988a4b1665c5d
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Drag and Drop')
9 files changed, 201 insertions, 201 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DND.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DND.java index b9eb9e4183..b75ef46028 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DND.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DND.java @@ -10,31 +10,31 @@ *******************************************************************************/ package org.eclipse.swt.dnd; - + import org.eclipse.swt.*; /** - * Class DND contains all the constants used in defining a + * Class DND contains all the constants used in defining a * DragSource or a DropTarget. * * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> */ public class DND { - + /** * The transfer mechanism for data that is being cut * and then pasted or copied and then pasted (value is 1). - * + * * @see Clipboard - * + * * @since 3.1 */ public final static int CLIPBOARD = 1 << 0; - + /** - * The transfer mechanism for clients that use the selection + * The transfer mechanism for clients that use the selection * mechanism (value is 2). - * + * * @see Clipboard * * @since 3.1 @@ -46,15 +46,15 @@ public class DND { * (value is 0). */ public final static int DROP_NONE = 0; - + /** - * Drag and Drop Operation: a copy of the data in the drag source is + * Drag and Drop Operation: a copy of the data in the drag source is * added to the drop target (value is 1 << 0). */ public final static int DROP_COPY = 1 << 0; - + /** - * Drag and Drop Operation: a copy of the data is added to the drop target and + * Drag and Drop Operation: a copy of the data is added to the drop target and * the drag source removes the original data and any references to the data, * and updates its display (value is 1 << 1). * <p> @@ -69,80 +69,80 @@ public class DND { * </p> */ public final static int DROP_MOVE = 1 << 1; - + /** - * Drag and Drop Operation: the drop target makes a link to the data in + * Drag and Drop Operation: the drop target makes a link to the data in * the drag source (value is 1 << 2). */ public final static int DROP_LINK = 1 << 2; - + /** - * Drag and Drop Operation: the drop target moves the data and the drag source removes + * Drag and Drop Operation: the drop target moves the data and the drag source removes * any references to the data and updates its display. This is not available on all platforms - * and is only used when a non-SWT application is the drop target. In this case, the SWT + * and is only used when a non-SWT application is the drop target. In this case, the SWT * drag source is informed in the dragFinished event that the drop target has moved the data. * (value is 1 << 3). - * + * * @see DragSourceListener#dragFinished */ public final static int DROP_TARGET_MOVE = 1 << 3; - + /** * Drag and Drop Operation: During a dragEnter event or a dragOperationChanged, if no modifier keys - * are pressed, the operation is set to DROP_DEFAULT. The application can choose what the default + * are pressed, the operation is set to DROP_DEFAULT. The application can choose what the default * operation should be by setting a new value in the operation field. If no value is choosen, the * default operation for the platform will be selected (value is 1 << 4). - * + * * @see DropTargetListener#dragEnter * @see DropTargetListener#dragOperationChanged - * @since 2.0 + * @since 2.0 */ public final static int DROP_DEFAULT = 1 << 4; - + /** - * DragSource Event: the drop has successfully completed or has been terminated (such as hitting + * DragSource Event: the drop has successfully completed or has been terminated (such as hitting * the ESC key); perform cleanup such as removing data on a move operation (value is 2000). */ public static final int DragEnd = 2000; - + /** * DragSource Event: the data to be dropped is required from the drag source (value is 2001). */ public static final int DragSetData = 2001; - + /** * DropTarget Event: the cursor has entered the drop target boundaries (value is 2002). */ public static final int DragEnter = 2002; - + /** * DropTarget Event: the cursor has left the drop target boundaries OR the drop - * operation has been cancelled (such as by hitting ECS) OR the drop is about to + * operation has been cancelled (such as by hitting ECS) OR the drop is about to * happen (user has released the mouse button over this target) (value is 2003). */ public static final int DragLeave = 2003; - + /** * DropTarget Event: the cursor is over the drop target (value is 2004). */ public static final int DragOver = 2004; - + /** - * DropTarget Event: the operation being performed has changed usually due to the user + * DropTarget Event: the operation being performed has changed usually due to the user * changing the selected modifier keys while dragging (value is 2005). */ public static final int DragOperationChanged = 2005; - + /** * DropTarget Event: the data has been dropped (value is 2006). */ public static final int Drop = 2006; - + /** * DropTarget Event: the drop target is given a last chance to modify the drop (value is 2007). */ public static final int DropAccept = 2007; - + /** * DragSource Event: a drag is about to begin (value is 2008). */ @@ -152,74 +152,74 @@ public class DND { * DropTarget drag under effect: No effect is shown (value is 0). */ public static final int FEEDBACK_NONE = 0; - + /** * DropTarget drag under effect: The item under the cursor is selected; applies to tables * and trees (value is 1). */ public static final int FEEDBACK_SELECT = 1; - + /** - * DropTarget drag under effect: An insertion mark is shown before the item under the cursor; applies to + * DropTarget drag under effect: An insertion mark is shown before the item under the cursor; applies to * tables and trees (value is 2). */ public static final int FEEDBACK_INSERT_BEFORE = 2; - + /** * DropTarget drag under effect: An insertion mark is shown after the item under the cursor; applies to * tables and trees (value is 4). - */ + */ public static final int FEEDBACK_INSERT_AFTER = 4; - + /** - * DropTarget drag under effect: The widget is scrolled up or down to allow the user to drop on items that + * DropTarget drag under effect: The widget is scrolled up or down to allow the user to drop on items that * are not currently visible; applies to tables and trees (value is 8). - */ + */ public static final int FEEDBACK_SCROLL = 8; - + /** - * DropTarget drag under effect: The item currently under the cursor is expanded to allow the user to + * DropTarget drag under effect: The item currently under the cursor is expanded to allow the user to * select a drop target from a sub item; applies to trees (value is 16). - */ + */ public static final int FEEDBACK_EXPAND = 16; /** * Error code: drag source can not be initialized (value is 2000). */ public static final int ERROR_CANNOT_INIT_DRAG = 2000; - + /** * Error code: drop target cannot be initialized (value is 2001). */ public static final int ERROR_CANNOT_INIT_DROP = 2001; - + /** * Error code: Data can not be set on system clipboard (value is 2002). */ public static final int ERROR_CANNOT_SET_CLIPBOARD = 2002; - + /** * Error code: Data does not have correct format for type (value is 2003). * @since 3.1 */ public static final int ERROR_INVALID_DATA = 2003; - + /** - * DropTarget Key: The string constant for looking up the drop target - * for a control using <code>getData(String)</code>. When a drop target - * is created for a control, it is stored as a property in the control + * DropTarget Key: The string constant for looking up the drop target + * for a control using <code>getData(String)</code>. When a drop target + * is created for a control, it is stored as a property in the control * using <code>setData(String, Object)</code>. - * + * * @since 3.4 */ public static final String DROP_TARGET_KEY = "DropTarget"; //$NON-NLS-1$ - + /** - * DragSource Key: The string constant for looking up the drag source - * for a control using <code>getData(String)</code>. When a drag source - * is created for a control, it is stored as a property in the control + * DragSource Key: The string constant for looking up the drag source + * for a control using <code>getData(String)</code>. When a drag source + * is created for a control, it is stored as a property in the control * using <code>setData(String, Object)</code>. - * + * * @since 3.4 */ public static final String DRAG_SOURCE_KEY = "DragSource"; //$NON-NLS-1$ @@ -263,8 +263,8 @@ public static void error (int code) { * @see SWTException * @see IllegalArgumentException */ -public static void error (int code, int hresult) { - switch (code) { +public static void error (int code, int hresult) { + switch (code) { /* OS Failure/Limit (fatal, may occur only on some platforms) */ case DND.ERROR_CANNOT_INIT_DRAG:{ String msg = DND.INIT_DRAG_MESSAGE; @@ -287,7 +287,7 @@ public static void error (int code, int hresult) { throw new SWTException (code, msg); } } - + /* Unknown/Undefined Error */ SWT.error(code); } diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DNDListener.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DNDListener.java index ef25280983..f5fe97bda5 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DNDListener.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DNDListener.java @@ -116,7 +116,7 @@ public void handleEvent (Event e) { event.updateEvent((DNDEvent)e); break; } - + } } } 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 2f0e01d625..e2d2f8afe7 100644 --- 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 @@ -14,7 +14,7 @@ package org.eclipse.swt.dnd; /** * This adapter class provides default implementations for the * methods described by the <code>DragSourceListener</code> interface. - * + * * <p>Classes that wish to deal with <code>DragSourceEvent</code>s can * extend this class and override only the methods which they are * interested in.</p> @@ -28,7 +28,7 @@ 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>. - * + * * @param event the information associated with the drag start event */ public void dragStart(DragSourceEvent event){} @@ -36,7 +36,7 @@ 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){} @@ -44,7 +44,7 @@ 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/DragSourceEffect.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DragSourceEffect.java index a1acc69bdf..0c323d0c6b 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DragSourceEffect.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DragSourceEffect.java @@ -16,24 +16,24 @@ import org.eclipse.swt.widgets.*; /** * This class provides default implementations to display a drag source * effect during a drag and drop operation. The current implementation - * does not provide any visual feedback. - * - * <p>The drag source effect has the same API as the - * <code>DragSourceAdapter</code> so that it can provide custom visual - * feedback when a <code>DragSourceEvent</code> occurs. + * does not provide any visual feedback. + * + * <p>The drag source effect has the same API as the + * <code>DragSourceAdapter</code> so that it can provide custom visual + * feedback when a <code>DragSourceEvent</code> occurs. * </p> - * + * * <p>Classes that wish to provide their own drag source effect such as - * displaying a default source image during a drag can extend the <code>DragSourceEffect</code> - * class, override the <code>DragSourceAdapter.dragStart</code> method and set + * displaying a default source image during a drag can extend the <code>DragSourceEffect</code> + * class, override the <code>DragSourceAdapter.dragStart</code> method and set * the field <code>DragSourceEvent.image</code> with their own image. * The image should be disposed when <code>DragSourceAdapter.dragFinished</code> is called. - * </p> + * </p> * * @see DragSourceAdapter * @see DragSourceEvent * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> - * + * * @since 3.3 */ public class DragSourceEffect extends DragSourceAdapter { @@ -43,7 +43,7 @@ public class DragSourceEffect extends DragSourceAdapter { * Creates a new <code>DragSourceEffect</code> to handle drag effect from the specified <code>Control</code>. * * @param control the <code>Control</code> that the user clicks on to initiate the drag - * + * * @exception IllegalArgumentException <ul> * <li>ERROR_NULL_ARGUMENT - if the control is null</li> * </ul> @@ -54,7 +54,7 @@ public class DragSourceEffect extends DragSourceAdapter { } /** - * Returns the Control which is registered for this DragSourceEffect. This is the control that the + * Returns the Control which is registered for this DragSourceEffect. This is the control that the * user clicks in to initiate dragging. * * @return the Control which is registered for this DragSourceEffect diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DragSourceEvent.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DragSourceEvent.java index f0d4cd9657..618200e058 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DragSourceEvent.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DragSourceEvent.java @@ -15,7 +15,7 @@ import org.eclipse.swt.graphics.*; /** * The DragSourceEvent contains the event information passed in the methods of the DragSourceListener. - * + * * @see DragSourceListener * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> */ @@ -29,70 +29,70 @@ public class DragSourceEvent extends TypedEvent { * @see DND#DROP_TARGET_MOVE */ public int detail; - + /** - * In dragStart, the doit field determines if the drag and drop operation - * should proceed; in dragFinished, the doit field indicates whether + * In dragStart, the doit field determines if the drag and drop operation + * should proceed; in dragFinished, the doit field indicates whether * the operation was performed successfully. * <p></p> * In dragStart: * <p>Flag to determine if the drag and drop operation should proceed. - * The application can set this value to false to prevent the drag from starting. + * The application can set this value to false to prevent the drag from starting. * Set to true by default.</p> * <p>In dragSetData:</p> - * <p>This will be set to true when the call to dragSetData is made. Set it to + * <p>This will be set to true when the call to dragSetData is made. Set it to * false to cancel the drag.</p> * <p>In dragFinished:</p> - * <p>Flag to indicate if the operation was performed successfully. + * <p>Flag to indicate if the operation was performed successfully. * True if the operation was performed successfully.</p> */ public boolean doit; /** - * In dragStart, the x coordinate (relative to the control) of the + * In dragStart, the x coordinate (relative to the control) of the * position the mouse went down to start the drag. - * + * * @since 3.2 */ public int x; /** - * In dragStart, the y coordinate (relative to the control) of the + * In dragStart, the y coordinate (relative to the control) of the * position the mouse went down to start the drag. - * + * * @since 3.2 */ public int y; - + /** * The type of data requested. * Data provided in the data field must be of the same type. */ public TransferData dataType; - + /** * The drag source image to be displayed during the drag. * <p>A value of null indicates that no drag image will be displayed.</p> * <p>The default value is null.</p> - * + * * @since 3.3 */ public Image image; /** * In dragStart, the x offset (relative to the image) where the drag source image will be displayed. - * + * * @since 3.5 */ public int offsetX; /** * In dragStart, the y offset (relative to the image) where the drag source image will be displayed. - * + * * @since 3.5 */ public int offsetY; static final long serialVersionUID = 3257002142513770808L; - + /** * Constructs a new instance of this class based on the * information in the given untyped event. diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DragSourceListener.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DragSourceListener.java index 0882d2f709..6bb2de5c63 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DragSourceListener.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DragSourceListener.java @@ -19,15 +19,15 @@ import org.eclipse.swt.internal.SWTEventListener; * must provide the dropped data by implementing <code>dragSetData</code>. In the dragSetData, the application * must support all the data types that were specified in the DragSource#setTransfer method.</p> * - * <p>After the drop has completed successfully or has been aborted, the application which defines the - * <code>DragSource</code> is required to take the appropriate cleanup action. In the case of a successful + * <p>After the drop has completed successfully or has been aborted, the application which defines the + * <code>DragSource</code> is required to take the appropriate cleanup action. In the case of a successful * <b>move</b> operation, the application must remove the data that was transferred.</p> * */ public interface DragSourceListener extends SWTEventListener { /** - * The user has begun the actions required to drag the widget. This event gives the application + * 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. * * <p>The following fields in the DragSourceEvent apply: @@ -38,7 +38,7 @@ public interface DragSourceListener extends SWTEventListener { * </ul></p> * * @param event the information associated with the drag start event - * + * * @see DragSourceEvent */ public void dragStart(DragSourceEvent event); @@ -56,13 +56,13 @@ public void dragStart(DragSourceEvent event); * </ul></p> * * @param event the information associated with the drag set data event - * + * * @see DragSourceEvent */ public void dragSetData(DragSourceEvent event); /** - * The drop has successfully completed(mouse up over a valid target) or has been terminated (such as hitting + * 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. * * <p>The following fields in the DragSourceEvent apply: @@ -74,7 +74,7 @@ public void dragSetData(DragSourceEvent event); * </ul></p> * * @param event the information associated with the drag finished event - * + * * @see DragSourceEvent */ public void dragFinished(DragSourceEvent event); diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DropTargetEffect.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DropTargetEffect.java index c8f4286ba2..938c4d43aa 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DropTargetEffect.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DropTargetEffect.java @@ -16,47 +16,47 @@ import org.eclipse.swt.widgets.*; /** - * This class provides a default drag under effect during a drag and drop. + * This class provides a default drag under effect during a drag and drop. * The current implementation does not provide any visual feedback. - * - * <p>The drop target effect has the same API as the - * <code>DropTargetAdapter</code> so that it can provide custom visual - * feedback when a <code>DropTargetEvent</code> occurs. + * + * <p>The drop target effect has the same API as the + * <code>DropTargetAdapter</code> so that it can provide custom visual + * feedback when a <code>DropTargetEvent</code> occurs. * </p> - * + * * <p>Classes that wish to provide their own drag under effect - * can extend the <code>DropTargetEffect</code> and override any applicable methods + * can extend the <code>DropTargetEffect</code> and override any applicable methods * in <code>DropTargetAdapter</code> to display their own drag under effect.</p> * - * <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> * <dt><b>Feedback:</b></dt> - * <dd>FEEDBACK_EXPAND, FEEDBACK_INSERT_AFTER, FEEDBACK_INSERT_BEFORE, + * <dd>FEEDBACK_EXPAND, FEEDBACK_INSERT_AFTER, FEEDBACK_INSERT_BEFORE, * FEEDBACK_NONE, 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 DropTargetEffect extends DropTargetAdapter { Control control; /** - * Creates a new <code>DropTargetEffect</code> to handle the drag under effect on the specified + * Creates a new <code>DropTargetEffect</code> to handle the drag under effect on the specified * <code>Control</code>. - * + * * @param control the <code>Control</code> over which the user positions the cursor to drop the data - * + * * @exception IllegalArgumentException <ul> * <li>ERROR_NULL_ARGUMENT - if the control is null</li> * </ul> @@ -67,7 +67,7 @@ public class DropTargetEffect extends DropTargetAdapter { } /** - * Returns the Control which is registered for this DropTargetEffect. This is the control over which the + * Returns the Control which is registered for this DropTargetEffect. This is the control over which the * user positions the cursor to drop the data. * * @return the Control which is registered for this DropTargetEffect @@ -75,7 +75,7 @@ public class DropTargetEffect extends DropTargetAdapter { public Control getControl() { return control; } - + /** * Returns the item at the given x-y coordinate in the receiver * or null if no such item exists. The x-y coordinate is in the @@ -91,10 +91,10 @@ public class DropTargetEffect extends DropTargetAdapter { } if (control instanceof Tree) { return getItem((Tree) control, x, y); - } + } return null; } - + Widget getItem(Table table, int x, int y) { Point coordinates = new Point(x, y); coordinates = table.toControl(coordinates); @@ -113,7 +113,7 @@ public class DropTargetEffect extends DropTargetAdapter { } return null; } - + Widget getItem(Tree tree, int x, int y) { Point point = new Point(x, y); point = tree.toControl(point); @@ -135,7 +135,7 @@ public class DropTargetEffect extends DropTargetAdapter { } return item; } - + TreeItem nextItem(Tree tree, TreeItem item) { if (item == null) return null; if (item.getExpanded() && item.getItemCount() > 0) return item.getItem(0); @@ -152,7 +152,7 @@ public class DropTargetEffect extends DropTargetAdapter { count = parentItem == null ? tree.getItemCount() : parentItem.getItemCount(); } } - + TreeItem previousItem(Tree tree, TreeItem item) { if (item == null) return null; TreeItem childItem = item; diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DropTargetEvent.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DropTargetEvent.java index 8f22cc83da..6f22d7a0b7 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DropTargetEvent.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DropTargetEvent.java @@ -23,12 +23,12 @@ public class DropTargetEvent extends TypedEvent { * The x-cordinate of the cursor relative to the <code>Display</code> */ public int x; - + /** * The y-cordinate of the cursor relative to the <code>Display</code> */ public int y; - + /** * The operation being performed. * @see DND#DROP_NONE @@ -38,9 +38,9 @@ public class DropTargetEvent extends TypedEvent { * @see DND#DROP_DEFAULT */ public int detail; - + /** - * A bitwise OR'ing of the operations that the DragSource can support + * A bitwise OR'ing of the operations that the DragSource can support * (e.g. DND.DROP_MOVE | DND.DROP_COPY | DND.DROP_LINK). * The detail value must be a member of this list or DND.DROP_NONE. * @see DND#DROP_NONE @@ -50,7 +50,7 @@ public class DropTargetEvent extends TypedEvent { * @see DND#DROP_DEFAULT */ public int operations; - + /** * A bitwise OR'ing of the drag under effect feedback to be displayed to the user * (e.g. DND.FEEDBACK_SELECT | DND.FEEDBACK_SCROLL | DND.FEEDBACK_EXPAND). @@ -65,18 +65,18 @@ public class DropTargetEvent extends TypedEvent { * @see DND#FEEDBACK_EXPAND */ public int feedback; - + /** - * If the associated control is a table or tree, this field contains the item located + * If the associated control is a table or tree, this field contains the item located * at the cursor coordinates. */ public Widget item; - + /** * The type of data that will be dropped. */ public TransferData currentDataType; - + /** * A list of the types of data that the DragSource is capable of providing. * The currentDataType must be a member of this list. @@ -84,7 +84,7 @@ public class DropTargetEvent extends TypedEvent { public TransferData[] dataTypes; static final long serialVersionUID = 3256727264573338678L; - + /** * Constructs a new instance of this class based on the * information in the given untyped event. diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DropTargetListener.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DropTargetListener.java index 72ee5c9e1c..9df0b76401 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DropTargetListener.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/common/org/eclipse/swt/dnd/DropTargetListener.java @@ -13,28 +13,28 @@ package org.eclipse.swt.dnd; import org.eclipse.swt.internal.SWTEventListener; /** - * The <code>DropTargetListener</code> class provides event notification to the application + * The <code>DropTargetListener</code> class provides event notification to the application * for DropTarget events. * - * <p>As the user moves the cursor into, over and out of a Control that has been designated - * as a DropTarget, events indicate what operation can be performed and what data can be + * <p>As the user moves the cursor into, over and out of a Control that has been designated + * as a DropTarget, events indicate what operation can be performed and what data can be * transferred if a drop where to occur at that point. - * The application can respond to these events and change the type of data that will - * be dropped by modifying event.currentDataType, or change the operation that will be performed + * The application can respond to these events and change the type of data that will + * be dropped by modifying event.currentDataType, or change the operation that will be performed * by modifying the event.detail field or stop any drop from happening on the current target * by setting the event.detail field to DND_DROP_NONE.</p> * - * <p>When the user causes a drop to happen by releasing the mouse over a valid drop target, - * the application has one last chance to change the data type of the drop through the - * DropAccept event. If the drop is still allowed, the DropAccept event is immediately + * <p>When the user causes a drop to happen by releasing the mouse over a valid drop target, + * the application has one last chance to change the data type of the drop through the + * DropAccept event. If the drop is still allowed, the DropAccept event is immediately * followed by the Drop event. In the Drop event, the application can still change the * operation that is performed but the data type is fixed.</p> - * + * * @see DropTargetEvent * */ public interface DropTargetListener extends SWTEventListener { - + /** * The cursor has entered the drop target boundaries. * @@ -51,34 +51,34 @@ public interface DropTargetListener extends SWTEventListener { * <li>(in,out)feedback * </ul></p> * - * <p>The <code>operations</code> value is determined by the modifier keys pressed by the user. - * If no keys are pressed the <code>event.detail</code> field is set to DND.DROP_DEFAULT. - * If the application does not set the <code>event.detail</code> to something other - * than <code>DND.DROP_DEFAULT</code> the operation will be set to the platform defined standard + * <p>The <code>operations</code> value is determined by the modifier keys pressed by the user. + * If no keys are pressed the <code>event.detail</code> field is set to DND.DROP_DEFAULT. + * If the application does not set the <code>event.detail</code> to something other + * than <code>DND.DROP_DEFAULT</code> the operation will be set to the platform defined standard * default.</p> - * - * <p>The <code>currentDataType</code> is determined by the first transfer agent specified in + * + * <p>The <code>currentDataType</code> is determined by the first transfer agent specified in * setTransfer() that matches a data type provided by the drag source.</p> - * + * * <p>It is possible to get a DragEnter event when the drag source does not provide any matching data. * In this case, the default operation is DND.DROP_NONE and the currentDataType is null.</p> - * - * <p>The application can change the operation that will be performed by modifying the - * <code>detail</code> field but the choice must be one of the values in the <code>operations</code> + * + * <p>The application can change the operation that will be performed by modifying the + * <code>detail</code> field but the choice must be one of the values in the <code>operations</code> * field or DND.DROP_NONE.</p> - * - * <p>The application can also change the type of data being requested by - * modifying the <code>currentDataTypes</code> field but the value must be one of the values + * + * <p>The application can also change the type of data being requested by + * modifying the <code>currentDataTypes</code> field but the value must be one of the values * in the <code>dataTypes</code> list.</p> * * @param event the information associated with the drag enter event - * + * * @see DropTargetEvent */ public void dragEnter(DropTargetEvent event); /** - * The cursor has left the drop target boundaries OR the drop has been cancelled OR the data + * The cursor has left the drop target boundaries OR the drop has been cancelled OR the data * is about to be dropped. * * <p>The following fields in the DropTargetEvent apply: @@ -116,24 +116,24 @@ public void dragLeave(DropTargetEvent event); * <li>(in,out)feedback * </ul></p> * - * <p>The <code>operations</code> value is determined by the modifier keys pressed by the user. - * If no keys are pressed the <code>event.detail</code> field is set to DND.DROP_DEFAULT. - * If the application does not set the <code>event.detail</code> to something other than + * <p>The <code>operations</code> value is determined by the modifier keys pressed by the user. + * If no keys are pressed the <code>event.detail</code> field is set to DND.DROP_DEFAULT. + * If the application does not set the <code>event.detail</code> to something other than * <code>DND.DROP_DEFAULT</code> the operation will be set to the platform defined standard default.</p> - * - * <p>The <code>currentDataType</code> value is determined by the value assigned to + * + * <p>The <code>currentDataType</code> value is determined by the value assigned to * <code>currentDataType</code> in previous dragEnter and dragOver calls.</p> - * - * <p>The application can change the operation that will be performed by modifying the - * <code>detail</code> field but the choice must be one of the values in the <code>operations</code> + * + * <p>The application can change the operation that will be performed by modifying the + * <code>detail</code> field but the choice must be one of the values in the <code>operations</code> * field.</p> - * - * <p>The application can also change the type of data being requested by modifying - * the <code>currentDataTypes</code> field but the value must be one of the values in the + * + * <p>The application can also change the type of data being requested by modifying + * the <code>currentDataTypes</code> field but the value must be one of the values in the * <code>dataTypes</code> list.</p> * * @param event the information associated with the drag operation changed event - * + * * @see DropTargetEvent */ public void dragOperationChanged(DropTargetEvent event); @@ -154,25 +154,25 @@ public void dragOperationChanged(DropTargetEvent event); * <li>(in,out)feedback * </ul></p> * - * <p>The <code>operations</code> value is determined by the value assigned to + * <p>The <code>operations</code> value is determined by the value assigned to * <code>currentDataType</code> in previous dragEnter and dragOver calls.</p> - * - * <p>The <code>currentDataType</code> value is determined by the value assigned to + * + * <p>The <code>currentDataType</code> value is determined by the value assigned to * <code>currentDataType</code> in previous dragEnter and dragOver calls.</p> - * - * <p>The application can change the operation that will be performed by modifying the - * <code>detail</code> field but the choice must be one of the values in the <code>operations</code> + * + * <p>The application can change the operation that will be performed by modifying the + * <code>detail</code> field but the choice must be one of the values in the <code>operations</code> * field.</p> - * - * <p>The application can also change the type of data being requested by modifying the - * <code>currentDataTypes</code> field but the value must be one of the values in the + * + * <p>The application can also change the type of data being requested by modifying the + * <code>currentDataTypes</code> field but the value must be one of the values in the * <code>dataTypes</code> list.</p> - * - * <p>NOTE: At this point the <code>data</code> field is null. On some platforms, it is possible - * to obtain the data being transferred before the transfer occurs but in most platforms this is - * not possible. On those platforms where the data is available, the application can access the + * + * <p>NOTE: At this point the <code>data</code> field is null. On some platforms, it is possible + * to obtain the data being transferred before the transfer occurs but in most platforms this is + * not possible. On those platforms where the data is available, the application can access the * data as follows:</p> - * + * * <pre><code> * public void dragOver(DropTargetEvent event) { * TextTransfer textTransfer = TextTransfer.getInstance(); @@ -184,40 +184,40 @@ public void dragOperationChanged(DropTargetEvent event); * </code></pre> * * @param event the information associated with the drag over event - * + * * @see DropTargetEvent */ public void dragOver(DropTargetEvent event); /** - * The data is being dropped. The data field contains java format of the data being dropped. - * To determine the type of the data object, refer to the documentation for the Transfer subclass + * The data is being dropped. The data field contains java format of the data being dropped. + * To determine the type of the data object, refer to the documentation for the Transfer subclass * specified in event.currentDataType. * * <p>The following fields in DropTargetEvent apply: * <ul> * <li>(in)widget * <li>(in)time - * <li>(in)x + * <li>(in)x * <li>(in)y * <li>(in,out)detail * <li>(in)currentDataType * <li>(in)data * </ul></p> * - * <p>The application can refuse to perform the drop operation by setting the detail + * <p>The application can refuse to perform the drop operation by setting the detail * field to DND.DROP_NONE.</p> * * @param event the information associated with the drop event - * + * * @see DropTargetEvent */ public void drop(DropTargetEvent event); /** - * The drop is about to be performed. + * The drop is about to be performed. * The drop target is given a last chance to change the nature of the drop. - * + * * <p>The following fields in the DropTargetEvent apply: * <ul> * <li>(in)widget @@ -230,19 +230,19 @@ public void drop(DropTargetEvent event); * <li>(in,out)detail * </ul></p> * - * <p>The application can veto the drop by setting the <code>event.detail</code> field to + * <p>The application can veto the drop by setting the <code>event.detail</code> field to * <code>DND.DROP_NONE</code>.</p> * - * <p>The application can change the operation that will be performed by modifying the - * <code>detail</code> field but the choice must be one of the values in the + * <p>The application can change the operation that will be performed by modifying the + * <code>detail</code> field but the choice must be one of the values in the * <code>operations</code> field.</p> - * - * <p>The application can also change the type of data being requested by modifying the + * + * <p>The application can also change the type of data being requested by modifying the * <code>currentDataTypes</code> field but the value must be one of the values in the < * code>dataTypes</code> list.</p> * * @param event the information associated with the drop accept event - * + * * @see DropTargetEvent */ public void dropAccept(DropTargetEvent event); |