private void postRefresh(Object root, int relation, Object affectedElement, Collection<Runnable> runnables) { // JFace doesn't refresh when object isn't part of the viewer // Therefore move the refresh start down to the viewer's input if (isParent(root, fInput) || root instanceof IJavaModel) root= fInput; List<Object> toRefresh= new ArrayList<>(1); toRefresh.add(root); augmentElementToRefresh(toRefresh, relation, affectedElement); postRefresh(toRefresh, true, runnables); }
private void postRefresh(Object root, int relation, Object affectedElement, Collection runnables) { // JFace doesn't refresh when object isn't part of the viewer // Therefore move the refresh start down to the viewer's input if (isParent(root, fInput)) root= fInput; List toRefresh= new ArrayList(1); toRefresh.add(root); augmentElementToRefresh(toRefresh, relation, affectedElement); postRefresh(toRefresh, true, runnables); }
private void postRefresh(Object root, int relation, Object affectedElement, Collection<Runnable> runnables) { // JFace doesn't refresh when object isn't part of the viewer // Therefore move the refresh start down to the viewer's input if (isParent(root, fInput) || root instanceof IJavaModel) root= fInput; List<Object> toRefresh= new ArrayList<>(1); toRefresh.add(root); augmentElementToRefresh(toRefresh, relation, affectedElement); postRefresh(toRefresh, true, runnables); }