Class MoxelClipboardService


  • public class MoxelClipboardService
    extends Object
    Service for reading and writing data to clipboard
    • Method Detail

      • getInstance

        public static MoxelClipboardService getInstance()
        Returns the singleton instance of the MoxelTransfer class.
        Returns:
        the singleton instance of the MoxelTransfer class
      • setClipboardContentSync

        public void setClipboardContentSync​(Object[] data,
                                            org.eclipse.swt.dnd.Transfer[] dataTypes)
        Set clipboard content in sync mode
        Parameters:
        data - - data to be set
        dataTypes - - related data types
      • setClipboardContentAsync

        public void setClipboardContentAsync​(Object[] data,
                                             org.eclipse.swt.dnd.Transfer[] dataTypes)
        Set clipboard content in async mode
        Parameters:
        data - - data to be set
        dataTypes - - related data types
      • getClipboardContentSync

        public Object getClipboardContentSync​(org.eclipse.swt.dnd.Transfer transfer)
        Get clipboard contents for specified data type
        Parameters:
        transfer - - data type description
        Returns:
        clipboard contents for specified data type
      • setDisplay

        public void setDisplay​(org.eclipse.swt.widgets.Display display)
        Set display
        Parameters:
        display - - Display