org.eclipse.cdt.managedbuilder.ui.properties
Class DiscoveryPageWrapper

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.cdt.ui.dialogs.AbstractCOptionPage
          extended by org.eclipse.cdt.make.ui.dialogs.AbstractDiscoveryOptionsBlock
              extended by org.eclipse.cdt.managedbuilder.ui.properties.DiscoveryPageWrapper
All Implemented Interfaces:
ICOptionPage, org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider

public class DiscoveryPageWrapper
extends AbstractDiscoveryOptionsBlock

This class is created to support backward compatibility with make.ui discovery pages. It is subclassed from AbstractDiscoveryOptionsBlock just to be passed to existing discovery pages. All methods referenced by these pages are rewritten.


Field Summary
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
DiscoveryPageWrapper(ICPropertyProvider _page, IBuildInfoContainer c)
           
 
Method Summary
 void callPerformApply()
           
 boolean checkDialogForChanges()
           
 void createControl(org.eclipse.swt.widgets.Composite parent)
           
 IScannerConfigBuilderInfo2 getBuildInfo()
           
 java.lang.String getErrorMessage()
           
 org.eclipse.core.runtime.Preferences getPrefs()
           
 org.eclipse.core.resources.IProject getProject()
           
 boolean isInitialized()
           
 boolean isProfileDifferentThenPersisted()
           
 boolean isValid()
           
 void performApply(org.eclipse.core.runtime.IProgressMonitor monitor)
           
 void performDefaults()
           
 void setContainer(ICOptionContainer container)
           
 void setInitialized(boolean initialized)
           
 void setVisible(boolean visible)
           
 void updateContainer()
           
 void updatePersistedProfile()
           
 
Methods inherited from class org.eclipse.jface.dialogs.DialogPage
dispose, getControl, getDescription, getImage, getMessage, getMessageType, getShell, getTitle, performHelp, setDescription, setErrorMessage, setImageDescriptor, setMessage, setMessage, setTitle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage
dispose, getControl, getDescription, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle
 

Constructor Detail

DiscoveryPageWrapper

public DiscoveryPageWrapper(ICPropertyProvider _page,
                            IBuildInfoContainer c)
Method Detail

getBuildInfo

public IScannerConfigBuilderInfo2 getBuildInfo()
Overrides:
getBuildInfo in class AbstractDiscoveryOptionsBlock
Returns:
Returns the fBuildInfo.

getProject

public org.eclipse.core.resources.IProject getProject()
Overrides:
getProject in class AbstractDiscoveryOptionsBlock
Returns:
Returns the project.

getErrorMessage

public java.lang.String getErrorMessage()
Specified by:
getErrorMessage in interface org.eclipse.jface.dialogs.IDialogPage
Overrides:
getErrorMessage in class AbstractDiscoveryOptionsBlock

getPrefs

public org.eclipse.core.runtime.Preferences getPrefs()
Overrides:
getPrefs in class AbstractDiscoveryOptionsBlock
Returns:
Returns the fPrefs.

isProfileDifferentThenPersisted

public boolean isProfileDifferentThenPersisted()
Overrides:
isProfileDifferentThenPersisted in class AbstractDiscoveryOptionsBlock

isInitialized

public boolean isInitialized()
Overrides:
isInitialized in class AbstractDiscoveryOptionsBlock
Returns:
Returns the fInitialized.

isValid

public boolean isValid()
Specified by:
isValid in interface ICOptionPage
Overrides:
isValid in class AbstractDiscoveryOptionsBlock

checkDialogForChanges

public boolean checkDialogForChanges()
Overrides:
checkDialogForChanges in class AbstractDiscoveryOptionsBlock
Returns:
true - OK to continue

callPerformApply

public void callPerformApply()
Overrides:
callPerformApply in class AbstractDiscoveryOptionsBlock

setInitialized

public void setInitialized(boolean initialized)
Overrides:
setInitialized in class AbstractDiscoveryOptionsBlock
Parameters:
initialized - The fInitialized to set.

setContainer

public void setContainer(ICOptionContainer container)
Specified by:
setContainer in interface ICOptionPage
Overrides:
setContainer in class AbstractDiscoveryOptionsBlock

updateContainer

public void updateContainer()
Overrides:
updateContainer in class AbstractDiscoveryOptionsBlock

updatePersistedProfile

public void updatePersistedProfile()
Overrides:
updatePersistedProfile in class AbstractDiscoveryOptionsBlock

setVisible

public void setVisible(boolean visible)
Specified by:
setVisible in interface org.eclipse.jface.dialogs.IDialogPage
Overrides:
setVisible in class AbstractDiscoveryOptionsBlock

createControl

public void createControl(org.eclipse.swt.widgets.Composite parent)
Specified by:
createControl in interface org.eclipse.jface.dialogs.IDialogPage
Specified by:
createControl in class AbstractCOptionPage

performApply

public void performApply(org.eclipse.core.runtime.IProgressMonitor monitor)
                  throws org.eclipse.core.runtime.CoreException
Specified by:
performApply in interface ICOptionPage
Specified by:
performApply in class AbstractCOptionPage
Throws:
org.eclipse.core.runtime.CoreException

performDefaults

public void performDefaults()
Specified by:
performDefaults in interface ICOptionPage
Specified by:
performDefaults in class AbstractCOptionPage