com.pvx.ooadide.wizards
Class NewProjectFromExistingPage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by com.pvx.ooadide.wizards.NewProjectFromExistingPage
All Implemented Interfaces:
org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage

public class NewProjectFromExistingPage
extends org.eclipse.jface.wizard.WizardPage

Standard main page for a wizard that is creates a project resource.

This page may be used by clients as-is; it may be also be subclassed to suit.

Example useage:

 mainPage = new WizardNewProjectCreationPage("basicNewProjectPage");
 mainPage.setTitle("Project");
 mainPage.setDescription("Create a new project resource.");
 


Field Summary
static java.lang.String PROJECT_DEF_PVX_EXE
           
static java.lang.String PROJECT_OWNER
           
static java.lang.String PROJECT_OWNER_FLAGS
           
static java.lang.String PROJECT_PASSWORD
           
 boolean useOutputDefaults
           
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
NewProjectFromExistingPage(org.eclipse.jface.viewers.ISelection selection)
          Creates a new project creation wizard page.
 
Method Summary
 void createControl(org.eclipse.swt.widgets.Composite parent)
          (non-Javadoc) Method declared on IDialogPage.
 java.lang.String getInitialInputLocationFieldValue()
           
 java.lang.String getInputFolder()
           
 org.eclipse.swt.widgets.Text getInputLocationPathField()
           
 org.eclipse.core.runtime.IPath getLocationPath()
          Returns the current project location path as entered by the user, or its anticipated initial value.
 java.lang.String getOutputFolder()
           
 java.lang.String getProjectBuilder()
           
 org.eclipse.core.resources.IProject getProjectHandle()
          Creates a project resource handle for the current project name field value.
 java.lang.String getProjectName()
          Returns the current project name as entered by the user, or its anticipated initial value.
 java.lang.String getProjectOwnerCode()
           
 org.eclipse.swt.widgets.Text getProjectOwnerField()
           
 java.lang.String getProjectOwnerFlags()
           
 java.lang.String getProjectPassword()
           
 java.lang.String getPropsField()
           
 void setInitialInputLocationFieldValue(java.lang.String initialInputLocationFieldValue)
           
 void setInputLocationPathField(org.eclipse.swt.widgets.Text inputLocationPathField)
           
 void setProjectOwnerField(org.eclipse.swt.widgets.Text projectOwnerField)
           
 
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
 

Field Detail

PROJECT_DEF_PVX_EXE

public static final java.lang.String PROJECT_DEF_PVX_EXE
See Also:
Constant Field Values

PROJECT_PASSWORD

public static final java.lang.String PROJECT_PASSWORD
See Also:
Constant Field Values

PROJECT_OWNER

public static final java.lang.String PROJECT_OWNER
See Also:
Constant Field Values

PROJECT_OWNER_FLAGS

public static final java.lang.String PROJECT_OWNER_FLAGS
See Also:
Constant Field Values

useOutputDefaults

public boolean useOutputDefaults
Constructor Detail

NewProjectFromExistingPage

public NewProjectFromExistingPage(org.eclipse.jface.viewers.ISelection selection)
Creates a new project creation wizard page.

Parameters:
pageName - the name of this page
Method Detail

createControl

public void createControl(org.eclipse.swt.widgets.Composite parent)
(non-Javadoc) Method declared on IDialogPage.


getLocationPath

public org.eclipse.core.runtime.IPath getLocationPath()
Returns the current project location path as entered by the user, or its anticipated initial value. Note that if the default has been returned the path in a project description used to create a project should not be set.

Returns:
the project location path or its anticipated initial value.

getOutputFolder

public java.lang.String getOutputFolder()

getInputFolder

public java.lang.String getInputFolder()

getProjectHandle

public org.eclipse.core.resources.IProject getProjectHandle()
Creates a project resource handle for the current project name field value.

This method does not create the project resource; this is the responsibility of IProject::create invoked by the new project resource wizard.

Returns:
the new project resource handle

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

getProjectBuilder

public java.lang.String getProjectBuilder()

getProjectPassword

public java.lang.String getProjectPassword()

getProjectOwnerFlags

public java.lang.String getProjectOwnerFlags()

getProjectOwnerCode

public java.lang.String getProjectOwnerCode()

getPropsField

public java.lang.String getPropsField()

setInitialInputLocationFieldValue

public void setInitialInputLocationFieldValue(java.lang.String initialInputLocationFieldValue)

getInitialInputLocationFieldValue

public java.lang.String getInitialInputLocationFieldValue()

setInputLocationPathField

public void setInputLocationPathField(org.eclipse.swt.widgets.Text inputLocationPathField)

getInputLocationPathField

public org.eclipse.swt.widgets.Text getInputLocationPathField()

setProjectOwnerField

public void setProjectOwnerField(org.eclipse.swt.widgets.Text projectOwnerField)

getProjectOwnerField

public org.eclipse.swt.widgets.Text getProjectOwnerField()