}
public void addSite(final String name, final String url) {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
JPluckX jpluckx = JPluckX.getInstance();
jpluckx.setDialogActive(true);
DocumentDialog.Result result = DocumentDialog.addSite(ListFrame.this, jxl, name, url, true);
jpluckx.setDialogActive(false);
if (result.isOk()) {
tableList.setSelectedItems(new Object[] { tableList.getObjectAt(jxl.getSize() - 1) });
if (result.isConvert()) {
convertAction.actionPerformed(null);
}
save();
}
if (jpluckx.wasMinimizedToTrayIcon()) {
jpluckx.closeListFrame(ListFrame.this, false);
}
}
});
}