org.eclipse.cdt.internal.ui.wizards.filewizard
Class NewHeaderFileCreationWizardPage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by org.eclipse.cdt.internal.ui.wizards.NewElementWizardPage
              extended by org.eclipse.cdt.internal.ui.wizards.filewizard.AbstractFileCreationWizardPage
                  extended by org.eclipse.cdt.internal.ui.wizards.filewizard.NewHeaderFileCreationWizardPage
All Implemented Interfaces:
org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage

public class NewHeaderFileCreationWizardPage
extends AbstractFileCreationWizardPage


Field Summary
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
NewHeaderFileCreationWizardPage()
           
 
Method Summary
 void createFile(org.eclipse.core.runtime.IProgressMonitor monitor)
          Creates the new file using the entered field values.
 org.eclipse.cdt.core.model.ITranslationUnit getCreatedFileTU()
          Returns the created file.
 org.eclipse.core.runtime.IPath getFileFullPath()
          Returns the full path computed from the file name field and the source folder.
 
Methods inherited from class org.eclipse.cdt.internal.ui.wizards.filewizard.AbstractFileCreationWizardPage
createControl, getSourceFolderFullPath, init, setSourceFolderFullPath, setVisible
 
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
 
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
 

Constructor Detail

NewHeaderFileCreationWizardPage

public NewHeaderFileCreationWizardPage()
Method Detail

getFileFullPath

public org.eclipse.core.runtime.IPath getFileFullPath()
Description copied from class: AbstractFileCreationWizardPage
Returns the full path computed from the file name field and the source folder.

Specified by:
getFileFullPath in class AbstractFileCreationWizardPage
Returns:
the file path

createFile

public void createFile(org.eclipse.core.runtime.IProgressMonitor monitor)
                throws org.eclipse.core.runtime.CoreException
Description copied from class: AbstractFileCreationWizardPage
Creates the new file using the entered field values.

Specified by:
createFile in class AbstractFileCreationWizardPage
Parameters:
monitor - a progress monitor to report progress.
Throws:
org.eclipse.core.runtime.CoreException - Thrown when the creation failed.

getCreatedFileTU

public org.eclipse.cdt.core.model.ITranslationUnit getCreatedFileTU()
Description copied from class: AbstractFileCreationWizardPage
Returns the created file. The method only returns a valid translation unit after createFile has been called.

Specified by:
getCreatedFileTU in class AbstractFileCreationWizardPage
Returns:
the created translation unit
See Also:
AbstractFileCreationWizardPage.createFile(IProgressMonitor)