IRunnableWithProgress op = new IRunnableWithProgress()
{
@Override
public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException
{
monitor.beginTask("Erstelle Zahlungseinträge", IProgressMonitor.UNKNOWN); //$NON-NLS-1$
Controller.getInstance().addPayments(allPayments);
updateViewsAndEditor();
monitor.done();
}
};
IProgressService progress = PlatformUI.getWorkbench().getProgressService();
try
{
progress.run(true, false, op);
}
catch(InvocationTargetException ex)
{
Controller.showErrorDialog(Messages.getString("PaymentDialog.msgErrorCreatingPayments"), ex); //$NON-NLS-1$
}
catch (InterruptedException ex)
{
Controller.showErrorDialog(Messages.getString("PaymentDialog.msgErrorCreatingPayments2"), ex); //$NON-NLS-1$
}