Package com._1c.g5.v8.dt.dcs.ui.settings
Class SettingsTransferData<T>
- java.lang.Object
-
- com._1c.g5.v8.dt.dcs.ui.settings.SettingsTransferData<T>
-
public class SettingsTransferData<T> extends Object
Data for drag&drop in settings
-
-
Constructor Summary
Constructors Constructor Description SettingsTransferData(Object owner, Viewer viewer, List<T> items)
ConstructorSettingsTransferData(Object owner, Viewer viewer, T item)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
dropTableItems(IBmEditingContext editingContext, org.eclipse.swt.dnd.DropTargetEvent event, TableExViewer viewer)
Drop table itemsstatic void
dropTreeItems(IBmEditingContext editingContext, org.eclipse.swt.dnd.DropTargetEvent event, TableExTreeViewer viewer, org.eclipse.emf.ecore.EObject root)
Drop tree itemsList<T>
getItems()
Get dragged itemsObject
getOwner()
Get source owner objectViewer
getViewer()
Get source viewer
-
-
-
Method Detail
-
dropTableItems
public static void dropTableItems(IBmEditingContext editingContext, org.eclipse.swt.dnd.DropTargetEvent event, TableExViewer viewer)
Drop table items- Parameters:
event
- drag event, can't be nullviewer
- table viewer, can't be null
-
dropTreeItems
public static void dropTreeItems(IBmEditingContext editingContext, org.eclipse.swt.dnd.DropTargetEvent event, TableExTreeViewer viewer, org.eclipse.emf.ecore.EObject root)
Drop tree items- Parameters:
event
- drag event, can't be nullviewer
- tree viewer, can't be nullroot
- root container, can't be null
-
getOwner
public Object getOwner()
Get source owner object- Returns:
- source owner object, never null
-
getViewer
public Viewer getViewer()
Get source viewer- Returns:
- source viewer, never null
-
-