org.eclipse.cdt.internal.ui.includebrowser
Class IBContentProvider

java.lang.Object
  extended by org.eclipse.cdt.internal.ui.viewsupport.AsyncTreeContentProvider
      extended by org.eclipse.cdt.internal.ui.includebrowser.IBContentProvider
All Implemented Interfaces:
org.eclipse.jface.viewers.IContentProvider, org.eclipse.jface.viewers.IStructuredContentProvider, org.eclipse.jface.viewers.ITreeContentProvider

public class IBContentProvider
extends AsyncTreeContentProvider

This is the content provider for the include browser.


Constructor Summary
IBContentProvider(org.eclipse.swt.widgets.Display disp)
          Constructs the content provider.
 
Method Summary
 org.eclipse.cdt.core.index.IIndexInclude[] findIncludesTo(org.eclipse.cdt.core.index.IIndex index, org.eclipse.cdt.core.index.IIndexFileLocation ifl, org.eclipse.core.runtime.IProgressMonitor pm)
           
 boolean getComputeIncludedBy()
           
 java.lang.Object getParent(java.lang.Object element)
           This implementation returns the parent for nodes indicating asyncronous computation.
 void setComputeIncludedBy(boolean value)
           
 
Methods inherited from class org.eclipse.cdt.internal.ui.viewsupport.AsyncTreeContentProvider
dispose, getChildren, getElements, getInput, hasChildren, inputChanged, recompute
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IBContentProvider

public IBContentProvider(org.eclipse.swt.widgets.Display disp)
Constructs the content provider.

Method Detail

getParent

public java.lang.Object getParent(java.lang.Object element)
Description copied from class: AsyncTreeContentProvider

This implementation returns the parent for nodes indicating asyncronous computation. It returns null for all other elements. It should be overridden and called by derived classes.

Specified by:
getParent in interface org.eclipse.jface.viewers.ITreeContentProvider
Overrides:
getParent in class AsyncTreeContentProvider

setComputeIncludedBy

public void setComputeIncludedBy(boolean value)

getComputeIncludedBy

public boolean getComputeIncludedBy()

findIncludesTo

public org.eclipse.cdt.core.index.IIndexInclude[] findIncludesTo(org.eclipse.cdt.core.index.IIndex index,
                                                                 org.eclipse.cdt.core.index.IIndexFileLocation ifl,
                                                                 org.eclipse.core.runtime.IProgressMonitor pm)