/** * DataSource URI drop. Currently used on file drop by the {@link SourceListTransferHandler}. * * @param uriDrop Uniform Resource Identifier */ public void onDropURI(List<URI> uriDrop) { for (URI uri : uriDrop) { try { dataManager.registerDataSource(uri); refreshSourceList(); } catch (SQLException ex) { LOGGER.error("Cannot load dropped data source", ex); } } }
} else { try { tableReference = dataManager.registerDataSource(dataURI); } catch (Exception ex) { LOGGER.warn(I18N.tr("Unable to load the data source uri {0}.", dataURI), ex);