@Override public void runAsynchronously(IRunnableWithProgress runnable) { if (fContainer != null) fContainer.runAsynchronously(runnable); }
public void runAsynchronously(IRunnableWithProgress runnable) { if (fContainer != null) fContainer.runAsynchronously(runnable); }
/** * Calls <code>diff</code> whenever the byte contents changes. * @param changed the object that sent out the notification */ protected void contentChanged(final IContentChangeNotifier changed) { if (fStructureCreator == null) return; if (changed == null) { getCompareConfiguration().getContainer().runAsynchronously(fAncestorStructure.getRefreshTask()); getCompareConfiguration().getContainer().runAsynchronously(fLeftStructure.getRefreshTask()); getCompareConfiguration().getContainer().runAsynchronously(fRightStructure.getRefreshTask()); } else if (changed == fAncestorStructure.getInput()) { getCompareConfiguration().getContainer().runAsynchronously(fAncestorStructure.getRefreshTask()); } else if (changed == fLeftStructure.getInput()) { getCompareConfiguration().getContainer().runAsynchronously(fLeftStructure.getRefreshTask()); } else if (changed == fRightStructure.getInput()) { getCompareConfiguration().getContainer().runAsynchronously(fRightStructure.getRefreshTask()); } else { return; } getCompareConfiguration().getContainer().runAsynchronously(diffTask); }
/** * Calls <code>diff</code> whenever the byte contents changes. * @param changed the object that sent out the notification */ protected void contentChanged(final IContentChangeNotifier changed) { if (fStructureCreator == null) return; if (changed == null) { getCompareConfiguration().getContainer().runAsynchronously(fAncestorStructure.getRefreshTask()); getCompareConfiguration().getContainer().runAsynchronously(fLeftStructure.getRefreshTask()); getCompareConfiguration().getContainer().runAsynchronously(fRightStructure.getRefreshTask()); } else if (changed == fAncestorStructure.getInput()) { getCompareConfiguration().getContainer().runAsynchronously(fAncestorStructure.getRefreshTask()); } else if (changed == fLeftStructure.getInput()) { getCompareConfiguration().getContainer().runAsynchronously(fLeftStructure.getRefreshTask()); } else if (changed == fRightStructure.getInput()) { getCompareConfiguration().getContainer().runAsynchronously(fRightStructure.getRefreshTask()); } else { return; } getCompareConfiguration().getContainer().runAsynchronously(diffTask); }
/* package */ void compareInputChanged(ICompareInput input, boolean force, IProgressMonitor monitor) { ITypedElement t= null; boolean changed= false; if (input != null) t= input.getAncestor(); fThreeWay= (t != null); beginWork(monitor, 400); try { if (fAncestorStructure.setInput(t, force, subMonitor(monitor, 100))) changed = true; if (input != null) t= input.getLeft(); if (fLeftStructure.setInput(t, force, subMonitor(monitor, 100))) changed = true; if (input != null) t= input.getRight(); if (fRightStructure.setInput(t, force, subMonitor(monitor, 100))) changed = true; // The compare configuration is nulled when the viewer is disposed CompareConfiguration cc = getCompareConfiguration(); if (changed && cc != null) cc.getContainer().runAsynchronously(diffTask); } finally { endWork(monitor); } }
cc.getContainer().runAsynchronously(diffTask); } finally { endWork(monitor);