use of com.archimatetool.editor.diagram.sketch.dnd.SketchDiagramTransferDropTargetListener in project archi by archimatetool.
the class SketchEditor method configureGraphicalViewer.
@Override
protected void configureGraphicalViewer() {
super.configureGraphicalViewer();
GraphicalViewer viewer = getGraphicalViewer();
// Register Edit Part Factory before setting contents
viewer.setEditPartFactory(new SketchEditPartFactory());
// Set Model
viewer.setContents(getModel());
// Native DnD
viewer.addDropTargetListener(new SketchDiagramTransferDropTargetListener(viewer));
}
Aggregations