import eu.etaxonomy.taxeditor.model.IContextListener;
import eu.etaxonomy.taxeditor.model.MementoHelper;
+import eu.etaxonomy.taxeditor.model.MessagingUtils;
import eu.etaxonomy.taxeditor.store.internal.TaxeditorStorePlugin;
/**
* <p>notifyContextStart</p>
*/
public void notifyContextStart() {
- StoreUtil.info("Notifying context listeners, that the context has started.");
+ MessagingUtils.info("Notifying context listeners, that the context has started.");
ProgressMonitorDialog dialog = new ProgressMonitorDialog(StoreUtil.getShell());
try {
}
});
} catch (InvocationTargetException e) {
- StoreUtil.error(getClass(), e);
+ MessagingUtils.error(getClass(), e);
} catch (InterruptedException e) {
- StoreUtil.error(getClass(), e);
+ MessagingUtils.error(getClass(), e);
}
}
*
*/
public void notifyContextRefresh() {
- StoreUtil.info("Notifying context listeners, that the context needs to be refreshed.");
+ MessagingUtils.info("Notifying context listeners, that the context needs to be refreshed.");
ProgressMonitorDialog dialog = new ProgressMonitorDialog(StoreUtil.getShell());
try {
}
});
} catch (InvocationTargetException e) {
- StoreUtil.error(getClass(), e);
+ MessagingUtils.error(getClass(), e);
} catch (InterruptedException e) {
- StoreUtil.error(getClass(), e);
+ MessagingUtils.error(getClass(), e);
}
}
IProgressMonitor subMonitor = StoreUtil.getSubProgressMonitor(monitor, 1);
subMonitor.beginTask("Stoping context", contextListeners.size());
- StoreUtil.info("Notifying context listeners, that the context has stopped.");
+ MessagingUtils.info("Notifying context listeners, that the context has stopped.");
for(Object listener : contextListeners.getListeners()){
((IContextListener) listener).contextStop(memento, subMonitor);
memento = MementoHelper.readMementoFromFile(getStateFileForCurrentDatabase());
} catch (FileNotFoundException e) {
// no memento -> no previous state
- StoreUtil.info("No state file for datasource");
+ MessagingUtils.info("No state file for datasource");
}
}
name = name.replace(" ", "_");
memento = XMLMemento.createWriteRoot(name);
- StoreUtil.info("DataSource found. Memento created.");
+ MessagingUtils.info("DataSource found. Memento created.");
} catch (Exception e) {
// The memento could not be created, but a not closable editor is avoided for this case.
- StoreUtil.error(this.getClass(), "The memento could not be created", e);
+ MessagingUtils.error(this.getClass(), "The memento could not be created", e);
}
} else {
- StoreUtil.info("Not storing state data, because no DataSource present.");
+ MessagingUtils.info("Not storing state data, because no DataSource present.");
}
}