/** @generated */ protected void setDocumentProvider(IEditorInput input) { if (input instanceof IFileEditorInput || input instanceof URIEditorInput) { setDocumentProvider( SqlmodelDiagramEditorPlugin.getInstance() .getDocumentProvider(getEditingDomainID(), input)); } else { super.setDocumentProvider(input); } }
/** @generated */ protected void initializeGraphicalViewer() { super.initializeGraphicalViewer(); getDiagramGraphicalViewer() .addDropTargetListener( new DropTargetListener( getDiagramGraphicalViewer(), LocalSelectionTransfer.getTransfer()) { protected Object getJavaObject(TransferData data) { System.out.println("Drop: " + data); return LocalSelectionTransfer.getTransfer().nativeToJava(data); } }); getDiagramGraphicalViewer() .addDropTargetListener( new DropTargetListener(getDiagramGraphicalViewer(), LocalTransfer.getInstance()) { protected Object getJavaObject(TransferData data) { System.out.println("Drop: " + data); return LocalTransfer.getInstance().nativeToJava(data); } }); }