Class EMFFormsNewRuleRepositoryWizardPage
- java.lang.Object
-
- org.eclipse.jface.dialogs.DialogPage
-
- org.eclipse.jface.wizard.WizardPage
-
- org.eclipse.emfforms.internal.rulerepository.tooling.wizard.EMFFormsNewRuleRepositoryWizardPage
-
- All Implemented Interfaces:
org.eclipse.jface.dialogs.IDialogPage
,org.eclipse.jface.dialogs.IMessageProvider
,org.eclipse.jface.wizard.IWizardPage
public class EMFFormsNewRuleRepositoryWizardPage extends org.eclipse.jface.wizard.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 (rulerepository).
-
-
Constructor Summary
Constructors Constructor Description EMFFormsNewRuleRepositoryWizardPage(org.eclipse.jface.viewers.ISelection selection)
Constructor for SampleNewWizardPage.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createControl(org.eclipse.swt.widgets.Composite parent)
static java.lang.String
getContainerErrorMessage(org.eclipse.core.resources.IResource container)
Return the error message for a selectedIResource
if 1.java.lang.String
getContainerName()
The container name.java.lang.String
getFileName()
The file name.-
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
-
-
-
-
Method Detail
-
createControl
public void createControl(org.eclipse.swt.widgets.Composite parent)
-
getContainerErrorMessage
public static java.lang.String getContainerErrorMessage(org.eclipse.core.resources.IResource container)
Return the error message for a selectedIResource
if 1. The container does not exists 2. If the container is project or folder 3. If the container is read-only Otherwise (no error) Null is returned.- Parameters:
container
- TheIResource
to check- Returns:
- the error message or null if the
IResource
is valid
-
getContainerName
public java.lang.String getContainerName()
The container name.- Returns:
- the name of the container
-
getFileName
public java.lang.String getFileName()
The file name.- Returns:
- the name of the file
-
-