public IStatus executeBatch(IRunnableWithProgress runnable, IProgressMonitor monitor) { try { runnable.run(monitor); } catch (OperationCanceledException oce) { return new Status(IStatus.CANCEL, Activator.ID, oce.getMessage(), oce); } catch (Exception e) { return new Status(IStatus.ERROR, Activator.ID, e.getMessage(), e); } return Status.OK_STATUS; } }
public IStatus executeBatch(IRunnableWithProgress runnable, IProgressMonitor monitor) { try { runnable.run(monitor); } catch (OperationCanceledException oce) { return new Status(IStatus.CANCEL, Activator.ID, oce.getMessage(), oce); } catch (Exception e) { return new Status(IStatus.ERROR, Activator.ID, e.getMessage(), e); } return Status.OK_STATUS; } }
public IStatus executeBatch(IRunnableWithProgress runnable, IProgressMonitor monitor) { try { runnable.run(monitor); } catch (OperationCanceledException oce) { return new Status(IStatus.CANCEL, Activator.ID, oce.getMessage(), oce); } catch (Exception e) { return new Status(IStatus.ERROR, Activator.ID, e.getMessage(), e); } return Status.OK_STATUS; } }
/** * {@inheritDoc} */ public IStatus executeBatch(IRunnableWithProgress runnable, IProgressMonitor monitor) { try { runnable.run(monitor); } catch (OperationCanceledException oce) { return new Status(IStatus.CANCEL, Activator.ID, oce.getMessage(), oce); } catch (Exception e) { return new Status(IStatus.ERROR, Activator.ID, e.getMessage(), e); } return Status.OK_STATUS; }
public IStatus executeBatch(IRunnableWithProgress runnable, IProgressMonitor monitor) { try { runnable.run(monitor); } catch (OperationCanceledException oce) { return new Status(IStatus.CANCEL, Activator.ID, oce.getMessage(), oce); } catch (Exception e) { return new Status(IStatus.ERROR, Activator.ID, e.getMessage(), e); } return Status.OK_STATUS; } }
@Override public IStatus executeBatch(IRunnableWithProgress runnable, IProgressMonitor monitor) { try { runnable.run(monitor); } catch (OperationCanceledException oce) { return new Status(IStatus.CANCEL, Activator.ID, oce.getMessage(), oce); } catch (Exception e) { return new Status(IStatus.ERROR, Activator.ID, e.getMessage(), e); } return Status.OK_STATUS; } }
public IStatus executeBatch(IRunnableWithProgress runnable, IProgressMonitor monitor) { try { runnable.run(monitor); } catch (OperationCanceledException oce) { return new Status(IStatus.CANCEL, Activator.ID, oce.getMessage(), oce); } catch (Exception e) { return new Status(IStatus.ERROR, Activator.ID, e.getMessage(), e); } return Status.OK_STATUS; }
/** * {@inheritDoc} */ public IStatus executeBatch(IRunnableWithProgress runnable, IProgressMonitor monitor) { try { runnable.run(monitor); } catch (OperationCanceledException oce) { return new Status(IStatus.CANCEL, Activator.ID, oce.getMessage(), oce); } catch (Exception e) { return new Status(IStatus.ERROR, Activator.ID, e.getMessage(), e); } return Status.OK_STATUS; }
public IStatus executeBatch(IRunnableWithProgress runnable, IProgressMonitor monitor) { IStatus result = null; synchronized (this) { try { disableSave = true; runnable.run(monitor); } catch (OperationCanceledException oce) { return new Status(IStatus.CANCEL, Activator.ID, oce.getMessage(), oce); } catch (Throwable e) { result = new Status(IStatus.ERROR, Activator.ID, e.getMessage(), e); } finally { disableSave = false; try { save(); } catch (Exception e) { if (result != null) result = new MultiStatus(Activator.ID, IStatus.ERROR, new IStatus[] {result}, e.getMessage(), e); else result = new Status(IStatus.ERROR, Activator.ID, e.getMessage(), e); } } } if (result == null) result = Status.OK_STATUS; return result; }
@Override public IStatus executeBatch(IRunnableWithProgress runnable, IProgressMonitor monitor) { IStatus result = null; synchronized (this) { try { disableSave = true; runnable.run(monitor); } catch (OperationCanceledException oce) { return new Status(IStatus.CANCEL, Activator.ID, oce.getMessage(), oce); } catch (Throwable e) { result = new Status(IStatus.ERROR, Activator.ID, e.getMessage(), e); } finally { disableSave = false; try { save(); } catch (Exception e) { if (result != null) result = new MultiStatus(Activator.ID, IStatus.ERROR, new IStatus[] {result}, e.getMessage(), e); else result = new Status(IStatus.ERROR, Activator.ID, e.getMessage(), e); } } } if (result == null) result = Status.OK_STATUS; return result; }
public IStatus executeBatch(IRunnableWithProgress runnable, IProgressMonitor monitor) { IStatus result = null; synchronized (this) { try { disableSave = true; runnable.run(monitor); } catch (OperationCanceledException oce) { return new Status(IStatus.CANCEL, Activator.ID, oce.getMessage(), oce); } catch (Throwable e) { result = new Status(IStatus.ERROR, Activator.ID, e.getMessage(), e); } finally { disableSave = false; try { save(); } catch (Exception e) { if (result != null) result = new MultiStatus(Activator.ID, IStatus.ERROR, new IStatus[] {result}, e.getMessage(), e); else result = new Status(IStatus.ERROR, Activator.ID, e.getMessage(), e); } } } if (result == null) result = Status.OK_STATUS; return result; }
public IStatus executeBatch(IRunnableWithProgress runnable, IProgressMonitor monitor) { IStatus result = null; synchronized (this) { try { disableSave = true; runnable.run(monitor); } catch (OperationCanceledException oce) { return new Status(IStatus.CANCEL, Activator.ID, oce.getMessage(), oce); } catch (Throwable e) { result = new Status(IStatus.ERROR, Activator.ID, e.getMessage(), e); } finally { disableSave = false; try { save(); } catch (Exception e) { if (result != null) result = new MultiStatus(Activator.ID, IStatus.ERROR, new IStatus[] {result}, e.getMessage(), e); else result = new Status(IStatus.ERROR, Activator.ID, e.getMessage(), e); } } } if (result == null) result = Status.OK_STATUS; return result; }
public IStatus executeBatch(IRunnableWithProgress runnable, IProgressMonitor monitor) { IStatus result = null; synchronized (this) { try { disableSave = true; runnable.run(monitor); } catch (OperationCanceledException oce) { return new Status(IStatus.CANCEL, Activator.ID, oce.getMessage(), oce); } catch (Throwable e) { result = new Status(IStatus.ERROR, Activator.ID, e.getMessage(), e); } finally { disableSave = false; try { save(); } catch (Exception e) { if (result != null) result = new MultiStatus(Activator.ID, IStatus.ERROR, new IStatus[] {result}, e.getMessage(), e); else result = new Status(IStatus.ERROR, Activator.ID, e.getMessage(), e); } } } if (result == null) result = Status.OK_STATUS; return result; }
public IStatus executeBatch(IRunnableWithProgress runnable, IProgressMonitor monitor) { IStatus result = null; synchronized (this) { try { disableSave = true; runnable.run(monitor); } catch (OperationCanceledException oce) { return new Status(IStatus.CANCEL, Activator.ID, oce.getMessage(), oce); } catch (Throwable e) { result = new Status(IStatus.ERROR, Activator.ID, e.getMessage(), e); } finally { disableSave = false; try { save(); } catch (Exception e) { if (result != null) result = new MultiStatus(Activator.ID, IStatus.ERROR, new IStatus[] {result}, e.getMessage(), e); else result = new Status(IStatus.ERROR, Activator.ID, e.getMessage(), e); } } } if (result == null) result = Status.OK_STATUS; return result; }
public IStatus executeBatch(IRunnableWithProgress runnable, IProgressMonitor monitor) { IStatus result = null; synchronized (this) { try { disableSave = true; runnable.run(monitor); } catch (OperationCanceledException oce) { return new Status(IStatus.CANCEL, Activator.ID, oce.getMessage(), oce); } catch (Throwable e) { result = new Status(IStatus.ERROR, Activator.ID, e.getMessage(), e); } finally { disableSave = false; try { save(); } catch (Exception e) { if (result != null) result = new MultiStatus(Activator.ID, IStatus.ERROR, new IStatus[] {result}, e.getMessage(), e); else result = new Status(IStatus.ERROR, Activator.ID, e.getMessage(), e); } } } if (result == null) result = Status.OK_STATUS; return result; }
runnable.run(monitor); } catch (OperationCanceledException oce) { return new Status(IStatus.CANCEL, Activator.ID, oce.getMessage(), oce);
public IStatus runModal(IProgressMonitor monitor) { SubMonitor sub = SubMonitor.convert(monitor); try { searchForUpdatesRunnable.run(sub.newChild(500)); if (requestHolder.length > 0) this.request = requestHolder[0]; } catch (OperationCanceledException e) { return Status.CANCEL_STATUS; } catch (InvocationTargetException e) { // ignore, we don't actually throw this in the supplied runnable } if (request != null) return super.runModal(sub.newChild(500)); return operation.getResolutionResult(); }
public IStatus runModal(IProgressMonitor monitor) { SubMonitor sub = SubMonitor.convert(monitor, 2); try { computeRemediationRunnable.run(sub.newChild(1)); if (requestHolder.length > 0) this.request = requestHolder[0]; } catch (OperationCanceledException e) { return Status.CANCEL_STATUS; } catch (InvocationTargetException e) { // ignore, we don't actually throw this in the supplied runnable } if (request != null) return super.runModal(sub.newChild(1)); return operation.getResolutionResult(); } }
public IStatus runModal(IProgressMonitor monitor) { SubMonitor sub = SubMonitor.convert(monitor); try { searchForUpdatesRunnable.run(sub.newChild(500)); if (requestHolder.length > 0) this.request = requestHolder[0]; } catch (OperationCanceledException e) { return Status.CANCEL_STATUS; } catch (InvocationTargetException e) { // ignore, we don't actually throw this in the supplied runnable } if (request != null) return super.runModal(sub.newChild(500)); return operation.getResolutionResult(); }
public IStatus runModal(IProgressMonitor monitor) { SubMonitor sub = SubMonitor.convert(monitor, 2); try { computeRemediationRunnable.run(sub.newChild(1)); if (requestHolder.length > 0) this.request = requestHolder[0]; } catch (OperationCanceledException e) { return Status.CANCEL_STATUS; } catch (InvocationTargetException e) { // ignore, we don't actually throw this in the supplied runnable } if (request != null) return super.runModal(sub.newChild(1)); return operation.getResolutionResult(); } }