Class SettingsTransferData<T>


  • public class SettingsTransferData<T>
    extends Object
    Data for drag&drop in settings
    • Constructor Detail

      • SettingsTransferData

        public SettingsTransferData​(Object owner,
                                    Viewer viewer,
                                    List<T> items)
        Constructor
        Parameters:
        owner - source owner object, can't be null
        viewer - source viewer, can't be null
        items - dragged items, can't be null
      • SettingsTransferData

        public SettingsTransferData​(Object owner,
                                    Viewer viewer,
                                    T item)
        Constructor
        Parameters:
        owner - source owner object, can't be null
        viewer - source viewer, can't be null
        item - dragged item, can't be null
    • 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 null
        viewer - 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 null
        viewer - tree viewer, can't be null
        root - 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
      • getItems

        public List<T> getItems()
        Get dragged items
        Returns:
        dragged items, never null