private void onCreate()
{
try
{
int[] seletedRowIndexes = _linkGraphDialog.tblGraphFiles.getSeletedModelRows();
for (int seletedRowIndex : seletedRowIndexes)
{
GraphFileDisplayBean gdb = _graphFileDisplayBeans.get(seletedRowIndex);
String linkName = _plugin.patchName(gdb.getName().toString(), _session);
File pathOfLinkXmlFile = new File(_plugin.getPluginUserSettingsFolder().getPath(), createLinkFileName(gdb));
LinkXmlBean linkXmlBean =
new LinkXmlBean(linkName, gdb.getName().toString(), gdb.getGraphFile().getAbsolutePath());
XMLBeanWriter bw = new XMLBeanWriter(linkXmlBean);
bw.save(pathOfLinkXmlFile.getAbsolutePath());
GraphXmlSerializer graphXmlSerializer =
new GraphXmlSerializer(_plugin, _session, linkXmlBean, pathOfLinkXmlFile.getAbsolutePath());
_plugin.createNewGraphControllerForSession(_session, graphXmlSerializer, false);
}
onWindowClosing();
_linkGraphDialog.setVisible(false);
_linkGraphDialog.dispose();
}
catch (Exception e)
{
throw new RuntimeException(e);
}
}