de.cau.cs.kieler.dataflow.ui.wizards
Class CreateRandomModelWizardPage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by de.cau.cs.kieler.dataflow.ui.wizards.CreateRandomModelWizardPage
All Implemented Interfaces:
IDialogPage, IMessageProvider, IWizardPage

public class CreateRandomModelWizardPage
extends WizardPage

The "New" wizard page allows setting the container for the new file as well as the file name. The page will only accept file name without the extension OR with the extension that matches the expected one (dataflow).

Rating red

Field Summary
static float DEF_HIERARCHY
           
static int DEF_MAX_CONNECTIONS
           
static int DEF_MIN_CONNECTIONS
           
static int DEF_NODES
           
static String PREF_HIERARCHY
           
static String PREF_MAX_CONNECTIONS
           
static String PREF_MIN_CONNECTIONS
           
static String PREF_NODES
           
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
CreateRandomModelWizardPage(ISelection selection)
          Constructor for SampleNewWizardPage.
 
Method Summary
 void createControl(Composite parent)
           
 String getContainerName()
           
 String getFileName()
           
 float getHierarchyProb()
           
 int getMaxConnections()
           
 int getMinConnections()
           
 int getNodes()
           
 void storeDefaults()
          Store the current value into the preference store.
 
Methods inherited from class org.eclipse.jface.wizard.WizardPage
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toString
 
Methods inherited from class org.eclipse.jface.dialogs.DialogPage
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessage, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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

PREF_NODES

public static final String PREF_NODES
See Also:
Constant Field Values

PREF_MIN_CONNECTIONS

public static final String PREF_MIN_CONNECTIONS
See Also:
Constant Field Values

PREF_MAX_CONNECTIONS

public static final String PREF_MAX_CONNECTIONS
See Also:
Constant Field Values

PREF_HIERARCHY

public static final String PREF_HIERARCHY
See Also:
Constant Field Values

DEF_NODES

public static final int DEF_NODES
See Also:
Constant Field Values

DEF_MIN_CONNECTIONS

public static final int DEF_MIN_CONNECTIONS
See Also:
Constant Field Values

DEF_MAX_CONNECTIONS

public static final int DEF_MAX_CONNECTIONS
See Also:
Constant Field Values

DEF_HIERARCHY

public static final float DEF_HIERARCHY
See Also:
Constant Field Values
Constructor Detail

CreateRandomModelWizardPage

public CreateRandomModelWizardPage(ISelection selection)
Constructor for SampleNewWizardPage.

Parameters:
pageName -
Method Detail

createControl

public void createControl(Composite parent)
See Also:
IDialogPage#createControl(Composite)

getContainerName

public String getContainerName()

getFileName

public String getFileName()

getNodes

public int getNodes()

getMinConnections

public int getMinConnections()

getMaxConnections

public int getMaxConnections()

getHierarchyProb

public float getHierarchyProb()

storeDefaults

public void storeDefaults()
Store the current value into the preference store.