Class ScriptFileDragAndDropHandler

    • Constructor Detail

      • ScriptFileDragAndDropHandler

        public ScriptFileDragAndDropHandler()
    • Method Detail

      • drop

        public boolean drop​(File file,
                            Display<?> display)
        Description copied from interface: DragAndDropHandler
        Performs a drop operation with the given data object in the specified Display.
      • supports

        public boolean supports​(File file)
        Description copied from interface: Typed
        Gets whether this object is compatible with the given data object.

        By default, this method will return true iff the data is assignable to the associated type given by Typed.getType(). But individual implementations may have other requirements beyond class assignability.

        Specified by:
        supports in interface DragAndDropHandler<File>
        Specified by:
        supports in interface Typed<File>
        Overrides:
        supports in class AbstractTypedPlugin<File>
      • getType

        public Class<File> getType()
        Description copied from interface: Typed
        Gets the type associated with the object.