g-Eclipse
Release 1.0.0

eu.geclipse.workflow.ui.wizards
Class NewWorkflowCreationWizardPage

java.lang.Object
  extended by WizardPage
      extended by eu.geclipse.workflow.ui.wizards.NewWorkflowCreationWizardPage

public class NewWorkflowCreationWizardPage
extends WizardPage

Main page for a wizard that creates a workflow resource.


Method Summary
 void createControl(Composite parent)
          The method that creates the controls on the page.
 IFolder createNewFolder()
          Creates a new folder resource in the selected container and with the selected name.
 IPath getContainerFullPath()
          Returns the current full path of the containing resource as entered or selected by the user, or its anticipated initial value.
 java.lang.String getFolderName()
           
 void handleEvent(Event event)
          The NewWorkflowCreationWizardPage implementation of this Listener method handles all events and enablements for controls on this page.
 void setContainerFullPath(IPath path)
          Sets the value of this page's container name field, or stores it for future use if this page's controls do not exist yet.
 void setFileExtension(java.lang.String value)
          Set the only file extension allowed for this page's file name field.
 void setFileName(java.lang.String value)
          Sets the value of this page's file name field, or stores it for future use if this page's controls do not exist yet.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createControl

public void createControl(Composite parent)
The method that creates the controls on the page.


createNewFolder

public IFolder createNewFolder()
Creates a new folder resource in the selected container and with the selected name. Creates any missing resource containers along the path; does nothing if the container resources already exist.

In normal usage, this method is invoked after the user has pressed Finish on the wizard; the enablement of the Finish button implies that all controls on this page currently contain valid values.

Note that this page caches the new folder once it has been successfully created; subsequent invocations of this method will answer the same folder resource without attempting to create it again.

This method should be called within a workspace modify operation since it creates resources.

Returns:
the created folder resource, or null if the folder was not created

getContainerFullPath

public IPath getContainerFullPath()
Returns the current full path of the containing resource as entered or selected by the user, or its anticipated initial value.

Returns:
the container's full path, anticipated initial value, or null if no path is known

getFolderName

public java.lang.String getFolderName()
Returns:
foldername

handleEvent

public void handleEvent(Event event)
The NewWorkflowCreationWizardPage implementation of this Listener method handles all events and enablements for controls on this page.


setContainerFullPath

public void setContainerFullPath(IPath path)
Sets the value of this page's container name field, or stores it for future use if this page's controls do not exist yet.

Parameters:
path - the full path to the container

setFileExtension

public void setFileExtension(java.lang.String value)
Set the only file extension allowed for this page's file name field. If this page's controls do not exist yet, store it for future use.

If a file extension is specified, then it will always be appended with a '.' to the text from the file name field for validation when the following conditions are met:

(1) File extension length is greater than 0
(2) File name field text length is greater than 0
(3) File name field text does not already end with a '.' and the file extension specified (case sensitive)

The file extension will not be reflected in the actual file name field until the file name field loses focus.

Parameters:
value - The file extension without the '.' prefix (e.g. 'java', 'xml')
Since:
3.3

setFileName

public void setFileName(java.lang.String value)
Sets the value of this page's file name field, or stores it for future use if this page's controls do not exist yet.

Parameters:
value - new file name

g-Eclipse
Release 1.0.0