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