// replot the table with the new settings
_plotter.unplot(_table);
_plotter.plot(_table);
// update the catalog and config file with the new information
PlotableCatalog cat = (PlotableCatalog) _table.getCatalog();
if (cat != null) {
// save changes
cat.setSymbols(_symbols);
cat.setSymbolsEdited(true);
// Add the catalog to the top level catalog directory and then call save on it
CatalogDirectory rootDir = null, catDir = cat.getParent();
if (catDir != null) {
rootDir = (CatalogDirectory) catDir.getRoot();
}
if (rootDir != null) {
Catalog existingCat = rootDir.getCatalog(cat.getName());
if (existingCat != null && existingCat != cat) {
rootDir.removeCatalog(existingCat);
}
rootDir.addCatalog(1, cat);
rootDir.save();