Class SimpleObjectTransfer

  • Direct Known Subclasses:
    TemplateTransfer

    public abstract class SimpleObjectTransfer
    extends ByteArrayTransfer
    Holds on to the object being transferred in a field so that DropTargetListeners can know what's being dragged before the drop occurs. The object isn't converted to bytes, so this Transfer will only work when dragging within the same instance of Eclipse. Subclasses should maintain a single instance of their Transfer and provide a static method to obtain that instance.
    • Constructor Detail

      • SimpleObjectTransfer

        public SimpleObjectTransfer()
    • Method Detail

      • getObject

        public java.lang.Object getObject()
        Returns the Object.
        Returns:
        The Object
      • setObject

        public void setObject​(java.lang.Object obj)
        Sets the Object.
        Parameters:
        obj - The Object