Bug 497807 - Use varargs in DropTarget#setTransfer
Change-Id: I0f29c80b4b18502a072a94e8dee536707cabe039
Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/cocoa/org/eclipse/swt/dnd/DragSource.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/cocoa/org/eclipse/swt/dnd/DragSource.java
index 2cf5716..b2aa727 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/cocoa/org/eclipse/swt/dnd/DragSource.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/cocoa/org/eclipse/swt/dnd/DragSource.java
@@ -7,6 +7,7 @@
*
* Contributors:
* IBM Corporation - initial API and implementation
+ * Lars Vogel <Lars.Vogel@vogella.com> - Bug 497807
*******************************************************************************/
package org.eclipse.swt.dnd;
@@ -819,7 +820,7 @@
* @param transferAgents a list of Transfer objects which define the types of data that can be
* dragged from this source
*/
-public void setTransfer(Transfer[] transferAgents){
+public void setTransfer(Transfer... transferAgents){
this.transferAgents = transferAgents;
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DragSource.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DragSource.java
index 7a1e07c..840e339 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DragSource.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/DragSource.java
@@ -7,15 +7,16 @@
*
* Contributors:
* IBM Corporation - initial API and implementation
+ * Lars Vogel <Lars.Vogel@vogella.com> - Bug 497807
*******************************************************************************/
package org.eclipse.swt.dnd;
import org.eclipse.swt.*;
import org.eclipse.swt.graphics.*;
-import org.eclipse.swt.widgets.*;
import org.eclipse.swt.internal.*;
import org.eclipse.swt.internal.gtk.*;
+import org.eclipse.swt.widgets.*;
/**
*
@@ -568,7 +569,7 @@
* @param transferAgents a list of Transfer objects which define the types of data that can be
* dragged from this source
*/
-public void setTransfer(Transfer[] transferAgents){
+public void setTransfer(Transfer... transferAgents){
if (targetList != 0) {
OS.gtk_target_list_unref(targetList);
targetList = 0;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DragSource.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DragSource.java
index 162c67f..b235c1a 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DragSource.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DragSource.java
@@ -7,6 +7,7 @@
*
* Contributors:
* IBM Corporation - initial API and implementation
+ * Lars Vogel <Lars.Vogel@vogella.com> - Bug 497807
*******************************************************************************/
package org.eclipse.swt.dnd;
@@ -742,7 +743,7 @@
* @param transferAgents a list of Transfer objects which define the types of data that can be
* dragged from this source
*/
-public void setTransfer(Transfer[] transferAgents){
+public void setTransfer(Transfer... transferAgents){
this.transferAgents = transferAgents;
}