Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVeronika Irvine2004-11-19 12:17:03 +0000
committerVeronika Irvine2004-11-19 12:17:03 +0000
commit5e49d1163e1d3ede69e304765c98668c5a7ea4a1 (patch)
treedb03551dda4ae0973c881b52bab44eb6c4c90cb9
parente9b2845637d0fc970c88edba0ff97760f3526b0a (diff)
downloadeclipse.platform.swt-5e49d1163e1d3ede69e304765c98668c5a7ea4a1.tar.gz
eclipse.platform.swt-5e49d1163e1d3ede69e304765c98668c5a7ea4a1.tar.xz
eclipse.platform.swt-5e49d1163e1d3ede69e304765c98668c5a7ea4a1.zip
method validate
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/ByteArrayTransfer.java3
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/Transfer.java24
2 files changed, 13 insertions, 14 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/ByteArrayTransfer.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/ByteArrayTransfer.java
index c59de059c4..c05a9a0324 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/ByteArrayTransfer.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/ByteArrayTransfer.java
@@ -178,7 +178,4 @@ protected Object nativeToJava(TransferData transferData) {
boolean _validate(Object object) {
return (object != null && object instanceof byte[] && ((byte[])object).length > 0);
}
-protected boolean validate(Object object) {
- return true;
-}
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/Transfer.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/Transfer.java
index c6823f1e6f..bf6b901d07 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/Transfer.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/Transfer.java
@@ -108,17 +108,6 @@ abstract protected void javaToNative (Object object, TransferData transferData);
abstract protected Object nativeToJava(TransferData transferData);
/**
- * Test that the object is of the correct format for this Transfer class.
- *
- * @param object a java representation of the data to be converted
- *
- * @return true if object is of the correct form for this transfer type
- *
- * @since 3.1
- */
-abstract protected boolean validate(Object object);
-
-/**
* 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
@@ -143,4 +132,17 @@ public static int registerType(String formatName) {
if (length > 3) type |= formatName.charAt(3) & 0xff;
return type;
}
+
+/**
+ * Test that the object is of the correct format for this Transfer class.
+ *
+ * @param object a java representation of the data to be converted
+ *
+ * @return true if object is of the correct form for this transfer type
+ *
+ * @since 3.1
+ */
+protected boolean validate(Object object) {
+ return true;
+}
}

Back to the top