com.pvx.ooadide.wizards
Class ProvidexNewWizardPage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by com.pvx.ooadide.wizards.ProvidexNewWizardPage
All Implemented Interfaces:
ProvideXNewWizardPageI, org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage
Direct Known Subclasses:
WizardNewProjectPasswordPage

public class ProvidexNewWizardPage
extends org.eclipse.jface.wizard.WizardPage
implements ProvideXNewWizardPageI

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
           
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
ProvidexNewWizardPage(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 getInputFolder()
           
 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()
           
 java.lang.String getProjectOwnerCode()
           
 java.lang.String getProjectOwnerFlags()
           
 java.lang.String getProjectPassword()
           
 org.eclipse.jface.wizard.IWizardPage getWizardPage()
          Returns the current project name as entered by the user, or its anticipated initial value.
 boolean isUseDefaults()
           
 boolean isUseInputDefaults()
           
 boolean isUseOutputDefaults()
           
 void setInitialProjectName(java.lang.String name)
          Sets the initial project name that this page will use when created.
 void setUseInputDefaults(boolean useInputDefaults)
           
 void setUseOutputDefaults(boolean useOutputDefaults)
           
 void setVisible(boolean visible)
           
 boolean useDefaults()
          Returns the useDefaults.
 
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
 

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
Constructor Detail

ProvidexNewWizardPage

public ProvidexNewWizardPage(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.

Specified by:
createControl in interface org.eclipse.jface.dialogs.IDialogPage

getLocationPath

public org.eclipse.core.runtime.IPath getLocationPath()
Description copied from interface: ProvideXNewWizardPageI
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.

Specified by:
getLocationPath in interface ProvideXNewWizardPageI
Returns:
the project location path or its anticipated initial value.

getOutputFolder

public java.lang.String getOutputFolder()
Specified by:
getOutputFolder in interface ProvideXNewWizardPageI

getInputFolder

public java.lang.String getInputFolder()
Specified by:
getInputFolder in interface ProvideXNewWizardPageI

getProjectHandle

public org.eclipse.core.resources.IProject getProjectHandle()
Description copied from interface: ProvideXNewWizardPageI
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.

Specified by:
getProjectHandle in interface ProvideXNewWizardPageI
Returns:
the new project resource handle

getProjectName

public java.lang.String getProjectName()
Specified by:
getProjectName in interface ProvideXNewWizardPageI

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.

Parameters:
name - initial project name for this page

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

getProjectBuilder

public java.lang.String getProjectBuilder()
Specified by:
getProjectBuilder in interface ProvideXNewWizardPageI

getProjectPassword

public java.lang.String getProjectPassword()
Specified by:
getProjectPassword in interface ProvideXNewWizardPageI

getProjectOwnerFlags

public java.lang.String getProjectOwnerFlags()
Specified by:
getProjectOwnerFlags in interface ProvideXNewWizardPageI

getProjectOwnerCode

public java.lang.String getProjectOwnerCode()
Specified by:
getProjectOwnerCode in interface ProvideXNewWizardPageI

isUseDefaults

public boolean isUseDefaults()
Specified by:
isUseDefaults in interface ProvideXNewWizardPageI

setUseOutputDefaults

public void setUseOutputDefaults(boolean useOutputDefaults)
Specified by:
setUseOutputDefaults in interface ProvideXNewWizardPageI

isUseOutputDefaults

public boolean isUseOutputDefaults()
Specified by:
isUseOutputDefaults in interface ProvideXNewWizardPageI

setUseInputDefaults

public void setUseInputDefaults(boolean useInputDefaults)

isUseInputDefaults

public boolean isUseInputDefaults()
Specified by:
isUseInputDefaults in interface ProvideXNewWizardPageI

getWizardPage

public org.eclipse.jface.wizard.IWizardPage getWizardPage()
Description copied from interface: ProvideXNewWizardPageI
Returns the current project name as entered by the user, or its anticipated initial value.

Specified by:
getWizardPage in interface ProvideXNewWizardPageI
Returns:
the project name, its anticipated initial value, or null if no project name is known