/** * <p> * Adds DND support to the Navigator. Uses hooks into the extensible * framework for DND. * </p> * <p> * By default, the following Transfer types are supported: * <ul> * <li>LocalSelectionTransfer.getInstance(), * <li>PluginTransfer.getInstance() * </ul> * </p> * * @see CommonDragAdapter * @see CommonDropAdapter */ protected void initDragAndDrop() { /* Handle Drag and Drop */ int operations = DND.DROP_COPY | DND.DROP_MOVE; CommonDragAdapter dragAdapter = new CommonDragAdapter(contentService, this); addDragSupport(operations, dragAdapter.getSupportedDragTransfers(), dragAdapter); CommonDropAdapter dropAdapter = new CommonDropAdapter(contentService, this); addDropSupport(operations, dropAdapter.getSupportedDropTransfers(), dropAdapter); }