org.eclipse.cdt.managedbuilder.ui.properties
Class DiscoveryPageWrapper
java.lang.Object
org.eclipse.jface.dialogs.DialogPage
org.eclipse.cdt.ui.dialogs.AbstractCOptionPage
org.eclipse.cdt.make.ui.dialogs.AbstractDiscoveryOptionsBlock
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.
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider |
ERROR, INFORMATION, NONE, WARNING |
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 |
DiscoveryPageWrapper
public DiscoveryPageWrapper(ICPropertyProvider _page,
IBuildInfoContainer c)
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