153154155156157158159160161162163
*/ public void dropComplete(boolean success) throws InvalidDnDOperationException{ DropTargetContextPeer peer = getDropTargetContextPeer(); if (peer != null) { peer.dropComplete(success); } } /** * accept the Drag.
5455565758596061626364
data = DnDSupportUtility.textURIListToFileList((String)t.getTransferData(DnDSupportUtility.URI_LIST_FLAVOR)); } if(data!=null){ executeDrop(data); } context.dropComplete(true); } catch (Exception ex) { log.error(GettextResource.gettext(Configuration.getInstance().getI18nResourceBundle(),"Error: "), ex); } }
101102103104105106107108109110111
} ISQLPanelAPI api = _session.getSQLPanelAPIOfActiveSessionWindow(); api.fileOpen(fileToOpen); } context.dropComplete(true); } catch (Exception e) { s_log.error("drop: Unexpected exception "+e.getMessage(),e); } }
4546474849505152
} // We know drag is coming from tree so just get selection: String typeName = annotationFeaturesViewer.getSelection(); edit.addRow(typeName); targetContext.dropComplete(true); } }
24352436243724382439244024412442244324442445
catch (Exception e) { e.printStackTrace (); } // signal the drop was successful context.dropComplete (accept); } else event.rejectDrop(); } catch (IOException exception)
7980818283848586878889
if( o instanceof File ) { fireFileDropped( (File)o ); } } } context.dropComplete(true); } catch (InvalidDnDOperationException e1) { e1.printStackTrace(); } catch (UnsupportedFlavorException e1) {
152153154155156157158159160161162
135136137138139140141142143144145