ilog.rules.studio.ui.dialogs.wizards.templates

Class IlrWizardNewMultiProjectCreationPage

  • java.lang.Object
    • org.eclipse.jface.dialogs.DialogPage
      • org.eclipse.jface.wizard.WizardPage
        • org.eclipse.ui.dialogs.WizardNewProjectCreationPage
          • ilog.rules.studio.ui.dialogs.wizards.templates.IlrWizardNewMultiProjectCreationPage
  • All Implemented Interfaces:
    org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage


    public abstract class IlrWizardNewMultiProjectCreationPage
    extends org.eclipse.ui.dialogs.WizardNewProjectCreationPage
    This wizard page class extends the WizardNewProjectCreationPage class and allows you to specify the names of several projects to be generated at the same time as the main project. The main project name is the one specified in the default UI of the WizardNewProjectCreationPage controls.
    • Field Summary

      • Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider

        ERROR, INFORMATION, NONE, WARNING
    • Constructor Summary

      Constructors 
      Constructor and Description
      IlrWizardNewMultiProjectCreationPage(java.lang.String pageName, java.lang.String title, org.eclipse.jface.resource.ImageDescriptor image)
      The default constructor.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      protected abstract java.util.Collection<IlrWizardNewMultiProjectCreationPage.ProjectInformation> createAdditionalProjectsInformations()
      Creates the project information collection for the additional projects to be created.
      void createControl(org.eclipse.swt.widgets.Composite parent) 
      org.eclipse.core.resources.IProject createProject(java.lang.String parameter)
      Creates a project from a template project parameter.
      protected abstract IlrWizardNewMultiProjectCreationPage.ProjectInformation getMainProjectInformation()
      Returns the main project information.
      java.lang.String getProjectName(java.lang.String parameter)
      Returns the name of the project to be generated from the template.
      java.lang.String[] getProjectsParameters()
      Gets all the project name parameters used within this wizard
      protected boolean validatePage() 
      • Methods inherited from class org.eclipse.ui.dialogs.WizardNewProjectCreationPage

        createWorkingSetGroup, getLocationPath, getLocationURI, getProjectHandle, getProjectName, getSelectedWorkingSets, setInitialProjectName, setVisible, useDefaults
      • 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
      • 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
    • Constructor Detail

      • IlrWizardNewMultiProjectCreationPage

        public IlrWizardNewMultiProjectCreationPage(java.lang.String pageName,
                                            java.lang.String title,
                                            org.eclipse.jface.resource.ImageDescriptor image)
        The default constructor.
        Parameters:
        pageName - The name of the page.
        title - The title of the page.
        image - The image description.
    • Method Detail

      • createAdditionalProjectsInformations

        protected abstract java.util.Collection<IlrWizardNewMultiProjectCreationPage.ProjectInformation> createAdditionalProjectsInformations()
        Creates the project information collection for the additional projects to be created. This method should be overidden.
        Returns:
        The additional project information collection.
      • createControl

        public void createControl(org.eclipse.swt.widgets.Composite parent)
        Specified by:
        createControl in interface org.eclipse.jface.dialogs.IDialogPage
        Overrides:
        createControl in class org.eclipse.ui.dialogs.WizardNewProjectCreationPage
      • validatePage

        protected boolean validatePage()
        Overrides:
        validatePage in class org.eclipse.ui.dialogs.WizardNewProjectCreationPage
      • createProject

        public org.eclipse.core.resources.IProject createProject(java.lang.String parameter)
        Creates a project from a template project parameter.
        Parameters:
        parameter - The name of a template project parameter. This is not the name of the project to be generated from this template.
        Returns:
        The project handle generated from the template project parameter.
      • getProjectName

        public java.lang.String getProjectName(java.lang.String parameter)
        Returns the name of the project to be generated from the template.
        Parameters:
        parameter - The name of a template project parameter. This is not the name of the project to be generated from this template.
        Returns:
        The name of the project generated from the template project parameter.
      • getProjectsParameters

        public java.lang.String[] getProjectsParameters()
        Gets all the project name parameters used within this wizard
        Returns:
        All the project parameter names.

© Copyright IBM Corp. 1987, 2017