@Override public void run(boolean fork, boolean cancelable, IRunnableWithProgress runnable) throws InvocationTargetException, InterruptedException { if (fContainer != null) fContainer.run(fork, cancelable, runnable); }
public void run(boolean fork, boolean cancelable, IRunnableWithProgress runnable) throws InvocationTargetException, InterruptedException { if (fContainer != null) fContainer.run(fork, cancelable, runnable); }
/** * Runs the difference engine and refreshes the tree. */ protected void diff() { try { CompareConfiguration compareConfiguration = getCompareConfiguration(); // A null compare configuration indicates that the viewer was disposed if (compareConfiguration != null) { compareConfiguration.getContainer().run(true, true, monitor -> { monitor.beginTask(CompareMessages.StructureDiffViewer_2, 100); diffTask.run(SubMonitor.convert(monitor, 100)); monitor.done(); }); } } catch (InvocationTargetException e) { // Shouldn't happen since the run doesn't throw CompareUIPlugin.log(e.getTargetException()); handleFailedRefresh(e.getTargetException().getMessage()); } catch (InterruptedException e) { // Canceled by user handleFailedRefresh(CompareMessages.StructureDiffViewer_3); } }
/** * Runs the difference engine and refreshes the tree. */ protected void diff() { try { CompareConfiguration compareConfiguration = getCompareConfiguration(); // A null compare configuration indicates that the viewer was disposed if (compareConfiguration != null) { compareConfiguration.getContainer().run(true, true, new IRunnableWithProgress() { public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException { monitor.beginTask(CompareMessages.StructureDiffViewer_2, 100); diffTask.run(new SubProgressMonitor(monitor, 100)); monitor.done(); } }); } } catch (InvocationTargetException e) { // Shouldn't happen since the run doesn't throw CompareUIPlugin.log(e.getTargetException()); handleFailedRefresh(e.getTargetException().getMessage()); } catch (InterruptedException e) { // Canceled by user handleFailedRefresh(CompareMessages.StructureDiffViewer_3); } }
getCompareConfiguration().getContainer().run(true, true, runnable); e= (RangeDifference[]) result[0]; } catch (InvocationTargetException ex) {
getCompareConfiguration().getContainer().run(true, true, runnable); e= (RangeDifference[]) result[0]; } catch (InvocationTargetException ex) {