public void run(ProgressMonitor monitor) throws ApplicationException
{
monitor.setStatus(ProgressMonitor.STATUS_RUNNING);
monitor.setStatusText(i18n.tr("Starte Synchronisierung"));
QueryMessage msg = new QueryMessage("hibiscus.konto.sync",new Object[]{k,monitor});
Application.getMessagingFactory().getMessagingQueue("jameica.scripting").sendSyncMessage(msg);
// GUI neu laden
AbstractView newView = GUI.getCurrentView();
if (newView == currentView)
currentView.reload();
monitor.setPercentComplete(100);
Object value = msg.getData();
if (value instanceof Throwable)
{
Throwable t = (Throwable) value;
monitor.setStatus(ProgressMonitor.STATUS_ERROR);
monitor.setStatusText(i18n.tr("Fehler: {0}",t.getMessage()));