public XMLDragAndDropManager(TreeViewer viewer) {
fViewer = viewer;
}
public DragAndDropCommand createCommand(Object target, float location, int operations, int operation, Collection source) {
DragAndDropCommand result = null;
if (target instanceof Node) {
result = new DragNodeCommand(target, location, operations, operation, source, fViewer);
}
return result;
}