org.eclipse.cdt.ui.wizards
Class CDTMainWizardPage
java.lang.Object
org.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.wizard.WizardPage
org.eclipse.cdt.ui.wizards.CDTMainWizardPage
- All Implemented Interfaces:
- IWizardItemsListListener, org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage
public class CDTMainWizardPage
- extends org.eclipse.jface.wizard.WizardPage
- implements IWizardItemsListListener
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider |
ERROR, INFORMATION, NONE, WARNING |
Constructor Summary |
CDTMainWizardPage(java.lang.String pageName)
Creates a new project creation wizard page. |
Methods inherited from class org.eclipse.jface.wizard.WizardPage |
canFlipToNextPage, getImage, getName, getPreviousPage, getShell, getWizard, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toString |
Methods inherited from class org.eclipse.jface.dialogs.DialogPage |
dispose, getControl, getDescription, getErrorMessage, getMessage, getMessageType, getTitle, performHelp, setMessage |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage |
dispose, getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp |
PAGE_ID
public static final java.lang.String PAGE_ID
- See Also:
- Constant Field Values
DESC
public static final java.lang.String DESC
- See Also:
- Constant Field Values
h_selected
public CWizardHandler h_selected
CDTMainWizardPage
public CDTMainWizardPage(java.lang.String pageName)
- Creates a new project creation wizard page.
- Parameters:
pageName
- the name of this page
createControl
public void createControl(org.eclipse.swt.widgets.Composite parent)
- (non-Javadoc)
Method declared on IDialogPage.
- Specified by:
createControl
in interface org.eclipse.jface.dialogs.IDialogPage
getNextPage
public org.eclipse.jface.wizard.IWizardPage getNextPage()
- Specified by:
getNextPage
in interface org.eclipse.jface.wizard.IWizardPage
- Overrides:
getNextPage
in class org.eclipse.jface.wizard.WizardPage
getProjectName
public java.lang.String getProjectName()
- Returns the current project name as entered by the user, or its anticipated
initial value.
- Returns:
- the project name, its anticipated initial value, or
null
if no project name is known
getProjectLocation
public org.eclipse.core.runtime.IPath getProjectLocation()
getProjectLocationPath
public java.lang.String getProjectLocationPath()
setInitialProjectName
public void setInitialProjectName(java.lang.String name)
- Sets the initial project name that this page will use when
created. The name is ignored if the createControl(Composite)
method has already been called. Leading and trailing spaces
in the name are ignored.
Providing the name of an existing project will not necessarily
cause the wizard to warn the user. Callers of this method
should first check if the project name passed already exists
in the workspace.
- Parameters:
name
- initial project name for this page- See Also:
IWorkspace.validateName(String, int)
setVisible
public void setVisible(boolean visible)
- Specified by:
setVisible
in interface org.eclipse.jface.dialogs.IDialogPage
- Overrides:
setVisible
in class org.eclipse.jface.dialogs.DialogPage
useDefaults
public boolean useDefaults()
- Returns the useDefaults.
- Returns:
- boolean
updateData
public static CWizardHandler updateData(org.eclipse.swt.widgets.Tree tree,
org.eclipse.swt.widgets.Composite right,
org.eclipse.swt.widgets.Button show_sup,
IWizardItemsListListener ls,
org.eclipse.jface.wizard.IWizard wizard)
getDescriptor
public static EntryDescriptor getDescriptor(org.eclipse.swt.widgets.Tree _tree)
toolChainListChanged
public void toolChainListChanged(int count)
- Description copied from interface:
IWizardItemsListListener
- Called by ICNewWizard instance when
user has changed tool chains selection
- Specified by:
toolChainListChanged
in interface IWizardItemsListListener
- Parameters:
count
- - number of selected toolchains.
isCurrent
public boolean isCurrent()
- Specified by:
isCurrent
in interface IWizardItemsListListener
- Returns:
- true if this page is visible