org.eclipse.cdt.internal.ui.dialogs.cpaths
Class AbstractPathOptionBlock

java.lang.Object
  extended by org.eclipse.cdt.ui.dialogs.TabFolderOptionBlock
      extended by org.eclipse.cdt.internal.ui.dialogs.cpaths.AbstractPathOptionBlock
All Implemented Interfaces:
ICOptionContainer
Direct Known Subclasses:
CPathTabBlock, NewIncludesSymbolsTabBlock

public abstract class AbstractPathOptionBlock
extends TabFolderOptionBlock
implements ICOptionContainer


Constructor Summary
AbstractPathOptionBlock(IStatusChangeListener context, int pageToShow)
           
 
Method Summary
 void configureCProject(org.eclipse.core.runtime.IProgressMonitor monitor)
           
 org.eclipse.core.runtime.Preferences getPreferences()
          Returns the preference store.
 org.eclipse.core.resources.IProject getProject()
           
 org.eclipse.cdt.core.model.IPathEntry[] getRawCPath()
           
 boolean hasChangesInCPathFile()
           
 boolean hasChangesInDialog()
           
 void init(org.eclipse.cdt.core.model.ICElement element, org.eclipse.cdt.core.model.IPathEntry[] cpathEntries)
          Initializes the paths for the given project.
 void initializeTimeStamps()
           
 void setCurrentPage(ICOptionPage page)
           
 void updateContainer()
           
 
Methods inherited from class org.eclipse.cdt.ui.dialogs.TabFolderOptionBlock
createContents, getCurrentPage, getErrorMessage, getPageIndex, isValid, performApply, performDefaults, setOptionContainer, setVisible, update
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractPathOptionBlock

public AbstractPathOptionBlock(IStatusChangeListener context,
                               int pageToShow)
Method Detail

getRawCPath

public org.eclipse.cdt.core.model.IPathEntry[] getRawCPath()
                                                    throws org.eclipse.cdt.core.model.CModelException
Returns:
Returns the current class path (raw). Note that the entries returned must not be valid.
Throws:
org.eclipse.cdt.core.model.CModelException

init

public void init(org.eclipse.cdt.core.model.ICElement element,
                 org.eclipse.cdt.core.model.IPathEntry[] cpathEntries)
Initializes the paths for the given project. Multiple calls to init are allowed, but all existing settings will be cleared and replace by the given or default paths.

Parameters:
element - The C/C++ project to configure. Does not have to exist.
cpathEntries - The path entries to be set in the page. If null is passed, jdt default settings are used, or - if the project is an existing Java project - the path entries of the existing project

hasChangesInDialog

public boolean hasChangesInDialog()

hasChangesInCPathFile

public boolean hasChangesInCPathFile()

initializeTimeStamps

public void initializeTimeStamps()

getProject

public org.eclipse.core.resources.IProject getProject()
Specified by:
getProject in interface ICOptionContainer

setCurrentPage

public void setCurrentPage(ICOptionPage page)
Overrides:
setCurrentPage in class TabFolderOptionBlock

updateContainer

public void updateContainer()
Specified by:
updateContainer in interface ICOptionContainer

getPreferences

public org.eclipse.core.runtime.Preferences getPreferences()
Description copied from interface: ICOptionContainer
Returns the preference store.

Specified by:
getPreferences in interface ICOptionContainer
Returns:
the preference store, or null if none

configureCProject

public void configureCProject(org.eclipse.core.runtime.IProgressMonitor monitor)
                       throws org.eclipse.core.runtime.CoreException,
                              java.lang.InterruptedException
Throws:
org.eclipse.core.runtime.CoreException
java.lang.InterruptedException