protected void processAffectedChildren(IJavaElementDelta[] affectedChildren, Collection runnables) throws JavaModelException { for (int i= 0; i < affectedChildren.length; i++) { processDelta(affectedChildren[i], runnables); } }
protected void processAffectedChildren(IJavaElementDelta[] affectedChildren, Collection<Runnable> runnables) throws JavaModelException { for (int i= 0; i < affectedChildren.length; i++) { processDelta(affectedChildren[i], runnables); } }
protected void processAffectedChildren(IJavaElementDelta[] affectedChildren, Collection<Runnable> runnables) throws JavaModelException { for (int i= 0; i < affectedChildren.length; i++) { processDelta(affectedChildren[i], runnables); } }
@Override public void elementChanged(final ElementChangedEvent event) { final ArrayList<Runnable> runnables= new ArrayList<>(); try { // 58952 delete project does not update Package Explorer [package explorer] // if the input to the viewer is deleted then refresh to avoid the display of stale elements if (inputDeleted(runnables)) return; processDelta(event.getDelta(), runnables); } catch (JavaModelException e) { JavaPlugin.log(e); } finally { executeRunnables(runnables); } }
public void elementChanged(final ElementChangedEvent event) { final ArrayList runnables= new ArrayList(); try { // 58952 delete project does not update Package Explorer [package explorer] // if the input to the viewer is deleted then refresh to avoid the display of stale elements if (inputDeleted(runnables)) return; processDelta(event.getDelta(), runnables); } catch (JavaModelException e) { JavaPlugin.log(e); } finally { executeRunnables(runnables); } }
@Override public void elementChanged(final ElementChangedEvent event) { final ArrayList<Runnable> runnables= new ArrayList<>(); try { clearPackageCache(); // 58952 delete project does not update Package Explorer [package explorer] // if the input to the viewer is deleted then refresh to avoid the display of stale elements if (inputDeleted(runnables)) return; processDelta(event.getDelta(), runnables); } catch (JavaModelException e) { JavaPlugin.log(e); } finally { executeRunnables(runnables); } }
if (processDelta(affectedChildren[i], runnables)) { return; // early return, element got refreshed
if (processDelta(affectedChildren[i], runnables)) { return; // early return, element got refreshed
if (processDelta(affectedChildren[i], runnables)) { return; // early return, element got refreshed