Package com._1c.g5.v8.dt.qw.ui.controls
Class QueryWizardDragAndDrop
java.lang.Object
com._1c.g5.v8.dt.qw.ui.controls.QueryWizardDragAndDrop
Query wizard drag and drop support
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidenableTreeDrag(QueryWizardControl qwControl, TreeViewer source, QueryWizardControl.DropEventFromType type) Enable tree dragstatic voidenableTreeDrag(QueryWizardControl qwControl, TreeViewer source, QueryWizardControl.DropEventFromType type, int dndType) Enable tree dragstatic voidenableTreeDrop(QueryWizardControl qwControl, TreeViewer destination, org.eclipse.jface.action.Action action) Enable tree dropstatic booleanvalidateTransferData(QueryWizardControl queryWizard, org.eclipse.swt.dnd.TransferData transferType) Validate transfer data
-
Method Details
-
enableTreeDrop
public static void enableTreeDrop(QueryWizardControl qwControl, TreeViewer destination, org.eclipse.jface.action.Action action) Enable tree drop- Parameters:
qwControl- - query wizard controldestination- - tree vieweraction- - action on drop
-
enableTreeDrag
public static void enableTreeDrag(QueryWizardControl qwControl, TreeViewer source, QueryWizardControl.DropEventFromType type, int dndType) Enable tree drag- Parameters:
qwControl- QueryWizardControlsource- tree viewertype- drop event typedndType- drop type
-
enableTreeDrag
public static void enableTreeDrag(QueryWizardControl qwControl, TreeViewer source, QueryWizardControl.DropEventFromType type) Enable tree drag- Parameters:
qwControl- QueryWizardControlsource- tree viewertype- drop event type
-
validateTransferData
public static boolean validateTransferData(QueryWizardControl queryWizard, org.eclipse.swt.dnd.TransferData transferType) Validate transfer data- Parameters:
queryWizard- - query wizardtransferType- - transfer data- Returns:
- is data valid for transfer
-