/* (non-Rubydoc) * Method declared on IContentProvider. */ public void inputChanged(Viewer viewer, Object oldInput, Object newInput) { super.inputChanged(viewer, oldInput, newInput); fSourceFolderProvider.inputChanged(viewer, oldInput, newInput); fViewer = (TreeViewer) viewer; if (oldInput == null && newInput != null) { RubyCore.addElementChangedListener(this); } else if (oldInput != null && newInput == null) { RubyCore.removeElementChangedListener(this); } fInput = newInput; }
/* (non-Rubydoc) * Method declared on IContentProvider. */ public void dispose() { super.dispose(); RubyCore.removeElementChangedListener(this); fSourceFolderProvider.dispose(); }