org.eclipse.cdt.core.resources
Class ScannerProvider

java.lang.Object
  extended by org.eclipse.core.runtime.PlatformObject
      extended by org.eclipse.cdt.internal.core.InternalCExtension
          extended by org.eclipse.cdt.core.AbstractCExtension
              extended by org.eclipse.cdt.core.resources.ScannerProvider
All Implemented Interfaces:
ICExtension, org.eclipse.cdt.core.model.IElementChangedListener, IScannerInfoProvider, org.eclipse.core.runtime.IAdaptable
Direct Known Subclasses:
DiscoveredScannerInfoProvider, MakeScannerProvider, MakeScannerProvider

public class ScannerProvider
extends AbstractCExtension
implements IScannerInfoProvider, org.eclipse.cdt.core.model.IElementChangedListener


Constructor Summary
ScannerProvider()
           
 
Method Summary
 void elementChanged(org.eclipse.cdt.core.model.ElementChangedEvent event)
           
static IScannerInfoProvider getInstance()
           
 org.eclipse.cdt.core.parser.IScannerInfo getScannerInformation(org.eclipse.core.resources.IResource resource)
          The receiver will answer the current state of the build information for the resource specified in the argument.
 void subscribe(org.eclipse.core.resources.IResource resource, IScannerInfoChangeListener listener)
          The receiver will register the listener specified in the argument to receive change notifications when the information for the IResource it is responsible for changes.
 void unsubscribe(org.eclipse.core.resources.IResource resource, IScannerInfoChangeListener listener)
          The receiver will no longer notify the listener specified in the argument when information about the reource it is responsible for changes.
 
Methods inherited from class org.eclipse.cdt.core.AbstractCExtension
getExtensionReference, getProject
 
Methods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapter
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScannerProvider

public ScannerProvider()
Method Detail

getInstance

public static IScannerInfoProvider getInstance()

getScannerInformation

public org.eclipse.cdt.core.parser.IScannerInfo getScannerInformation(org.eclipse.core.resources.IResource resource)
Description copied from interface: IScannerInfoProvider
The receiver will answer the current state of the build information for the resource specified in the argument.

Specified by:
getScannerInformation in interface IScannerInfoProvider
Returns:

subscribe

public void subscribe(org.eclipse.core.resources.IResource resource,
                      IScannerInfoChangeListener listener)
Description copied from interface: IScannerInfoProvider
The receiver will register the listener specified in the argument to receive change notifications when the information for the IResource it is responsible for changes.

Specified by:
subscribe in interface IScannerInfoProvider

unsubscribe

public void unsubscribe(org.eclipse.core.resources.IResource resource,
                        IScannerInfoChangeListener listener)
Description copied from interface: IScannerInfoProvider
The receiver will no longer notify the listener specified in the argument when information about the reource it is responsible for changes.

Specified by:
unsubscribe in interface IScannerInfoProvider

elementChanged

public void elementChanged(org.eclipse.cdt.core.model.ElementChangedEvent event)
Specified by:
elementChanged in interface org.eclipse.cdt.core.model.IElementChangedListener