Class MoxelClipboardService
- java.lang.Object
-
- com._1c.g5.v8.dt.moxel.ui.operations.MoxelClipboardService
-
public class MoxelClipboardService extends Object
Service for reading and writing data to clipboard
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getClipboardContentSync(org.eclipse.swt.dnd.Transfer transfer)
Get clipboard contents for specified data typestatic MoxelClipboardService
getInstance()
Returns the singleton instance of the MoxelTransfer class.void
setClipboardContentAsync(Object[] data, org.eclipse.swt.dnd.Transfer[] dataTypes)
Set clipboard content in async modevoid
setClipboardContentSync(Object[] data, org.eclipse.swt.dnd.Transfer[] dataTypes)
Set clipboard content in sync modevoid
setDisplay(org.eclipse.swt.widgets.Display display)
Set display
-
-
-
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 setdataTypes
- - 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 setdataTypes
- - 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
-
-