use of net.sourceforge.processdash.util.LightweightSet in project processdash by dtuma.
the class DropTransferHandler method importData.
public boolean importData(JComponent comp, Transferable t) {
List files = TransferHandlerUtils.getTransferredFileList(t);
if (files == null || files.isEmpty())
return false;
Set targets = new LightweightSet();
for (Iterator i = files.iterator(); i.hasNext(); ) {
File f = (File) i.next();
if ("pspdash.jar".equals(f.getName())) {
launcher.useDashboardJarFile(f);
continue;
}
DashboardInstance l = launcherFactory.getLauncher(comp, f);
if (l != null)
targets.add(l);
}
launcher.launchInstances(targets);
return true;
}
Aggregations