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 void
enableTreeDrag
(QueryWizardControl qwControl, TreeViewer source, QueryWizardControl.DropEventFromType type) Enable tree dragstatic void
enableTreeDrag
(QueryWizardControl qwControl, TreeViewer source, QueryWizardControl.DropEventFromType type, int dndType) Enable tree dragstatic void
enableTreeDrop
(QueryWizardControl qwControl, TreeViewer destination, org.eclipse.jface.action.Action action) Enable tree dropstatic boolean
validateTransferData
(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
-