org.eclipse.cdt.make.ui.wizards
Class ConvertToMakeProjectWizardPage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by org.eclipse.cdt.ui.wizards.conversion.ConvertProjectWizardPage
              extended by org.eclipse.cdt.make.ui.wizards.ConvertToMakeProjectWizardPage
All Implemented Interfaces:
org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage

public class ConvertToMakeProjectWizardPage
extends ConvertProjectWizardPage

ConvertToStdMakeProjectWizardPage Standard main page for a wizard that adds a C project Nature to a project with no nature associated with it. This conversion is one way in that the project cannot be converted back (i.e have the nature removed).

Since:
Aug 6, 2002

Example useage:

 mainPage = new ConvertToStdMakeProjectWizardPage("ConvertProjectPage");
 mainPage.setTitle("Project Conversion");
 mainPage.setDescription("Add C or C++ a Nature to a project.");
 

Author:
Judy N. Green

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.cdt.ui.wizards.conversion.ConvertProjectWizardPage
ConvertProjectWizardPage.ProjectContentProvider, ConvertProjectWizardPage.ProjectLabelProvider
 
Field Summary
 
Fields inherited from class org.eclipse.cdt.ui.wizards.conversion.ConvertProjectWizardPage
KEY_CONVERTING, KEY_TITLE
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
ConvertToMakeProjectWizardPage(java.lang.String pageName)
          Constructor for ConvertToStdMakeProjectWizardPage.
 
Method Summary
 void convertProject(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IProgressMonitor monitor, java.lang.String projectID)
          convertProject must be overwritten in subclasses to change behaviour
 void createControl(org.eclipse.swt.widgets.Composite parent)
          Creates the main wizard page.
 boolean isCandidate(org.eclipse.core.resources.IProject project)
          Method isCandidate returns true for all projects.
 
Methods inherited from class org.eclipse.cdt.ui.wizards.conversion.ConvertProjectWizardPage
convertProject, doRun, doRun, finish
 
Methods inherited from class org.eclipse.jface.wizard.WizardPage
canFlipToNextPage, getImage, getName, getNextPage, 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, setVisible
 
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, setVisible
 

Constructor Detail

ConvertToMakeProjectWizardPage

public ConvertToMakeProjectWizardPage(java.lang.String pageName)
Constructor for ConvertToStdMakeProjectWizardPage.

Parameters:
pageName -
Method Detail

isCandidate

public boolean isCandidate(org.eclipse.core.resources.IProject project)
Method isCandidate returns true for all projects.

Specified by:
isCandidate in class ConvertProjectWizardPage
Parameters:
project -
Returns:
boolean

convertProject

public void convertProject(org.eclipse.core.resources.IProject project,
                           org.eclipse.core.runtime.IProgressMonitor monitor,
                           java.lang.String projectID)
                    throws org.eclipse.core.runtime.CoreException
Description copied from class: ConvertProjectWizardPage
convertProject must be overwritten in subclasses to change behaviour

Overrides:
convertProject in class ConvertProjectWizardPage
Throws:
org.eclipse.core.runtime.CoreException

createControl

public void createControl(org.eclipse.swt.widgets.Composite parent)
Description copied from class: ConvertProjectWizardPage
Creates the main wizard page.

Specified by:
createControl in interface org.eclipse.jface.dialogs.IDialogPage
Overrides:
createControl in class ConvertProjectWizardPage
See Also:
IDialogPage.createControl(Composite)