public void inputChanged(Viewer v, Object oldInput, Object newInput) { if (oldInput != newInput) { if (newInput instanceof MethodResult) { consume((MethodResult) newInput); } else { root.clear(); final IJavaProject jp = view.getCurrentProject(); CheckFlowMarkerAndImageManager.getInstance().clearAll(jp != null ? jp.getProject() : null); } // System.out.println("Content changed: " + (oldInput == null ? "null" : // oldInput.hashCode()) // + " -> " + (newInput == null ? "null" : newInput.hashCode())); } }
public void dispose() { root.clear(); }