}
/** Snapshot action **/
else if (message.equals("loadsnapshot"))
{
DataStoreFrame frame = this.getActiveFrame();
if (frame == null)
{
return;
}
frame.setCursor(WAIT_CURSOR);
status = SnapshotManager.loadSnapshot(frame.getDataStore());
frame.setCursor(DEFAULT_CURSOR);
//if not OK, give some sort of warning / feedback to user
if (!status)
{
//MessageBox.Ok("Unable to load Snapshot file.");
JOptionPane.showMessageDialog(MainWindow.getInstance(),
"Unable to load Snapshot file.", Main.APPLICATION_NAME,
JOptionPane.ERROR_MESSAGE);
}
}
else if (message.equals("savesnapshot")) {
DataStoreFrame frame = this.getActiveFrame();
if (frame == null)
{
return;
}
frame.setCursor(WAIT_CURSOR);
status = SnapshotManager.saveSnapshot(frame.getDataStore());
frame.setCursor(DEFAULT_CURSOR);
//if not OK, give some sort of warning / feedback to user
if (!status)
{
JOptionPane.showMessageDialog(MainWindow.getInstance(),