org.eclipse.ui.progress.DeferredTreeContentManager Java Examples

The following examples show how to use org.eclipse.ui.progress.DeferredTreeContentManager. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CallHierarchyContentProvider.java    From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 5 votes vote down vote up
/**
* @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer,
*      java.lang.Object, java.lang.Object)
*/
  public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
  	if (oldInput instanceof TreeRoot) {
  		MethodWrapper[] roots = ((TreeRoot) oldInput).getRoots();
 			cancelJobs(roots);
  	}
      if (viewer instanceof AbstractTreeViewer) {
          fManager = new DeferredTreeContentManager((AbstractTreeViewer) viewer, fPart.getSite());
      }
  }
 
Example #2
Source File: HierarchyTreeContentProvider.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
	if (viewer instanceof AbstractTreeViewer) {
		deferredTreeContentManager = new DeferredTreeContentManager((AbstractTreeViewer) viewer, viewPart.getSite());
	}
}
 
Example #3
Source File: RemoteContentProvider.java    From APICloud-Studio with GNU General Public License v3.0 4 votes vote down vote up
public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
	if (viewer instanceof AbstractTreeViewer) {
		manager = new DeferredTreeContentManager(this, (AbstractTreeViewer) viewer);
	}
	super.inputChanged(viewer, oldInput, newInput);
}
 
Example #4
Source File: CheckoutWizardSelectionPage.java    From APICloud-Studio with GNU General Public License v3.0 4 votes vote down vote up
public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
	if (viewer instanceof AbstractTreeViewer) {
		manager = new DeferredTreeContentManager(this, (AbstractTreeViewer) viewer);
	}
	super.inputChanged(viewer, oldInput, newInput);
}