|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.cdt.managedbuilder.ui.wizards.MBSCustomPageData
public final class MBSCustomPageData
This class is responsible for storing all of the data associated with a given custom wizard page.
Nested Class Summary | |
---|---|
class |
MBSCustomPageData.ToolchainData
Stores data on a particular toolchain that a custom wizard page supports. |
Constructor Summary | |
---|---|
MBSCustomPageData(java.lang.String id,
org.eclipse.jface.wizard.IWizardPage wizardPage,
org.eclipse.jface.operation.IRunnableWithProgress operation,
boolean isStock)
Contstructs a custom page data record |
|
MBSCustomPageData(java.lang.String id,
org.eclipse.jface.wizard.IWizardPage wizardPage,
java.lang.Runnable operation,
boolean isStock)
Contstructs a custom page data record |
Method Summary | |
---|---|
void |
addNature(java.lang.String nature)
Adds a dependency to this page upon a given nature. |
void |
addProjectType(java.lang.String projectType)
Adds a dependency to this page upon a given project type. |
void |
addToolchain(java.lang.String toolchainID,
java.lang.String[] versionsSupported)
Adds a dependency to this page upon a given toolchain. |
java.lang.String |
getID()
|
java.lang.String[] |
getNatures()
|
org.eclipse.jface.operation.IRunnableWithProgress |
getOperation()
|
java.lang.String[] |
getProjectTypes()
|
MBSCustomPageData.ToolchainData[] |
getToolchains()
|
org.eclipse.jface.wizard.IWizardPage |
getWizardPage()
|
boolean |
isStockPage()
|
boolean |
shouldBeVisibleForNature(java.lang.Object nature)
|
boolean |
shouldBeVisibleForProjectType(java.lang.Object projectType)
|
boolean |
shouldBeVisibleForToolchain(java.lang.String id,
java.lang.String version)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MBSCustomPageData(java.lang.String id, org.eclipse.jface.wizard.IWizardPage wizardPage, java.lang.Runnable operation, boolean isStock)
id
- - Unique ID of the pagewizardPage
- - the IWizardPage that is displayed in the wizardoperation
- - the Runnable() that is executed during the wizard's DoRunEpilogue() method, or null if no operation is specifiedisStock
- - true if the page is a stock page provided by Managed Build, false otherwise.public MBSCustomPageData(java.lang.String id, org.eclipse.jface.wizard.IWizardPage wizardPage, org.eclipse.jface.operation.IRunnableWithProgress operation, boolean isStock)
id
- - Unique ID of the pagewizardPage
- - the IWizardPage that is displayed in the wizardoperation
- - the Runnable() that is executed during the wizard's DoRunEpilogue() method, or null if no operation is specifiedisStock
- - true if the page is a stock page provided by Managed Build, false otherwise.Method Detail |
---|
public java.lang.String getID()
public org.eclipse.jface.wizard.IWizardPage getWizardPage()
public boolean isStockPage()
public boolean shouldBeVisibleForNature(java.lang.Object nature)
nature
- A fully qualified nature ID (org.eclipse.core.resources.IProjectNature). Currently MBS
only supports creating projects with either one of two natures:
org.eclipse.cdt.core.cnature and org.eclipse.cdt.core.ccnature
public java.lang.String[] getNatures()
public boolean shouldBeVisibleForToolchain(java.lang.String id, java.lang.String version)
id
- - The unique ID of the toolchainversion
- - The version of the toolchain, or null
if versions are not to be checked.
public MBSCustomPageData.ToolchainData[] getToolchains()
public java.lang.String[] getProjectTypes()
public void addNature(java.lang.String nature)
nature
- The unique ID of the nature.public void addToolchain(java.lang.String toolchainID, java.lang.String[] versionsSupported)
toolchainID
- - The unique ID of the toolchain.versionsSupported
- - A comma separated list of supported versions, or null if no version checking is to be done.public boolean shouldBeVisibleForProjectType(java.lang.Object projectType)
projectType
- The unique ID of the project type to check.
public void addProjectType(java.lang.String projectType)
projectType
- - The unique ID of the project type.public org.eclipse.jface.operation.IRunnableWithProgress getOperation()
IRunnableWithProgress
operation associated with this page that should be run during
the wizard's doRunEpilogue() method. This operation should only be executed if in fact the page
is visible.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |