Package com._1c.g5.v8.dt.moxel
Class MoxelDescriptorTransfer
- java.lang.Object
-
- org.eclipse.swt.dnd.Transfer
-
- org.eclipse.swt.dnd.ByteArrayTransfer
-
- com._1c.g5.v8.dt.moxel.MoxelDescriptorTransfer
-
public class MoxelDescriptorTransfer extends org.eclipse.swt.dnd.ByteArrayTransfer
The classMoxelDescriptorTransfer
provides a platform specific mechanism for converting moxel document descriptor represented as a javaMoxelDescriptor
to a platform specific representation of the data and vice versa.- See Also:
Transfer
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MoxelDescriptorTransfer
getInstance()
Returns the singleton instance of the MoxelDescriptorTransfer class.protected int[]
getTypeIds()
Get array of available type idsprotected String[]
getTypeNames()
Get array of available type namesvoid
javaToNative(Object object, org.eclipse.swt.dnd.TransferData transferData)
This implementation ofjavaToNative
converts descriptor of moxel document represented by a javaMoxelDescriptor
to a platform specific representation.Object
nativeToJava(org.eclipse.swt.dnd.TransferData transferData)
This implementation ofnativeToJava
converts a platform specific representation of moxel document descriptor to a javaUUID
.protected boolean
validate(Object object)
Validate incoming object
-
-
-
Method Detail
-
getInstance
public static MoxelDescriptorTransfer getInstance()
Returns the singleton instance of the MoxelDescriptorTransfer class.- Returns:
- the singleton instance of the MoxelDescriptorTransfer class
-
javaToNative
public void javaToNative(Object object, org.eclipse.swt.dnd.TransferData transferData)
This implementation ofjavaToNative
converts descriptor of moxel document represented by a javaMoxelDescriptor
to a platform specific representation.- Overrides:
javaToNative
in classorg.eclipse.swt.dnd.ByteArrayTransfer
- Parameters:
object
- a javaMoxelDescriptor
containing moxel document descriptortransferData
- an emptyTransferData
object that will be filled in on return with the platform specific format of the data- See Also:
Transfer.nativeToJava(org.eclipse.swt.dnd.TransferData)
-
nativeToJava
public Object nativeToJava(org.eclipse.swt.dnd.TransferData transferData)
This implementation ofnativeToJava
converts a platform specific representation of moxel document descriptor to a javaUUID
.- Overrides:
nativeToJava
in classorg.eclipse.swt.dnd.ByteArrayTransfer
- Parameters:
transferData
- the platform specific representation of the data to be converted- Returns:
- a java
UUID
containing document uuid if the conversion was successful; otherwise null - See Also:
Transfer.javaToNative(java.lang.Object, org.eclipse.swt.dnd.TransferData)
-
getTypeNames
protected String[] getTypeNames()
Get array of available type names- Specified by:
getTypeNames
in classorg.eclipse.swt.dnd.Transfer
- Returns:
- array of available type names
-
getTypeIds
protected int[] getTypeIds()
Get array of available type ids- Specified by:
getTypeIds
in classorg.eclipse.swt.dnd.Transfer
- Returns:
- array of available type ids
-
validate
protected boolean validate(Object object)
Validate incoming object- Overrides:
validate
in classorg.eclipse.swt.dnd.Transfer
- Parameters:
object
- - object to validate- Returns:
- result of validation
-
-