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

Class IlrRuleProjectWizardTemplateController

  • java.lang.Object
    • ilog.rules.studio.ui.dialogs.wizards.templates.IlrRuleProjectWizardTemplateController


  • public abstract class IlrRuleProjectWizardTemplateController
    extends java.lang.Object
    Implement IlrRuleProjectWizardTemplateController in order to provide the code logic necessary to generate a rule project for a given wizard template.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      protected org.eclipse.jface.wizard.IWizardPage[] templateWizardPages
      Stores the template wizard pages managed by this controller.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      protected void configureRuleProject(IlrRuleProject ruleProject, org.eclipse.core.runtime.IProgressMonitor monitor) 
      protected org.eclipse.jface.wizard.IWizard createWizard(ilog.rules.studio.ui.dialogs.wizards.IlrMainNewRuleProjectWizard mainWizard)
      Allows implementation classes to directly provide a wizard instead of relying on IlrRuleProjectWizardTemplate to provide one from the pages registered on the corresponding plugin extention.
      java.lang.String getCategory() 
      protected java.lang.String getDescription()
      Allows overriding the description set on the plugin extension configuration element.
      protected com.ibm.icu.util.ULocale getEclipseLocale()
      Returns the locale of the running Eclipse instance.
      protected java.lang.String getName()
      Allows overriding the name set on the plugin extension configuration element.
      java.lang.String getRootFolder()
      Retrieves the location of the template resources.
      org.eclipse.jface.wizard.IWizardPage[] getTemplateWizardPages()
      Returns the template wizard pages stored by the controller.
      protected void initPages(org.eclipse.jface.wizard.IWizardPage[] templateWizardPages)
      Allows the controller class to perform any necessary initialization on the wizard pages.
      abstract boolean performCancel(org.eclipse.core.runtime.IProgressMonitor monitor)
      Executes cancellation logic at the end of the rule project wizard.
      abstract boolean performFinish(org.eclipse.core.runtime.IProgressMonitor monitor)
      Executes the rule project generation logic at the end of the rule project wizard.
      void setRootFolder(java.lang.String rootFolder)
      Sets the location of the template resources.
      protected void updateNature(org.eclipse.core.resources.IProject projectHandle) 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • templateWizardPages

        protected org.eclipse.jface.wizard.IWizardPage[] templateWizardPages
        Stores the template wizard pages managed by this controller.
    • Constructor Detail

      • IlrRuleProjectWizardTemplateController

        public IlrRuleProjectWizardTemplateController()
    • Method Detail

      • getRootFolder

        public java.lang.String getRootFolder()
        Retrieves the location of the template resources.
        Returns:
        The location of the template resources.
      • setRootFolder

        public void setRootFolder(java.lang.String rootFolder)
        Sets the location of the template resources.
        Parameters:
        rootFolder - The location of the template resources.
      • performFinish

        public abstract boolean performFinish(org.eclipse.core.runtime.IProgressMonitor monitor)
                                       throws org.eclipse.core.runtime.CoreException
        Executes the rule project generation logic at the end of the rule project wizard.
        Throws:
        org.eclipse.core.runtime.CoreException - if there is a failure in the platform.
        Parameters:
        monitor - The progress monitor.
        Returns:
        The status of the operation.
      • performCancel

        public abstract boolean performCancel(org.eclipse.core.runtime.IProgressMonitor monitor)
                                       throws org.eclipse.core.runtime.CoreException
        Executes cancellation logic at the end of the rule project wizard.
        Throws:
        org.eclipse.core.runtime.CoreException - if there is a failure in the platform.
        Parameters:
        monitor - The progress monitor.
        Returns:
        The status of the cancel operation.
      • getTemplateWizardPages

        public org.eclipse.jface.wizard.IWizardPage[] getTemplateWizardPages()
        Returns the template wizard pages stored by the controller.
        Returns:
        The template wizard pages stored by the controller.
      • initPages

        protected void initPages(org.eclipse.jface.wizard.IWizardPage[] templateWizardPages)
        Allows the controller class to perform any necessary initialization on the wizard pages. If you override this method in a custom class, you must call the super implementation to ensure that the templateWizardPages field is initialized.
        Parameters:
        templateWizardPages - The wizard pages to add.
      • getEclipseLocale

        protected com.ibm.icu.util.ULocale getEclipseLocale()
        Returns the locale of the running Eclipse instance.
        Returns:
        The locale of the running Eclipse instance. If this locale cannot be retrieved, "en_US" is returned.
      • getCategory

        public java.lang.String getCategory()
      • configureRuleProject

        protected void configureRuleProject(IlrRuleProject ruleProject,
                                org.eclipse.core.runtime.IProgressMonitor monitor)
                                     throws org.eclipse.core.runtime.CoreException
        Throws:
        org.eclipse.core.runtime.CoreException
      • updateNature

        protected void updateNature(org.eclipse.core.resources.IProject projectHandle)
      • getDescription

        protected java.lang.String getDescription()
        Allows overriding the description set on the plugin extension configuration element. This implementation returns an empty string.
        Returns:
      • getName

        protected java.lang.String getName()
        Allows overriding the name set on the plugin extension configuration element. This implementation returns the name of the class of this object.
        Returns:
      • createWizard

        protected org.eclipse.jface.wizard.IWizard createWizard(ilog.rules.studio.ui.dialogs.wizards.IlrMainNewRuleProjectWizard mainWizard)
        Allows implementation classes to directly provide a wizard instead of relying on IlrRuleProjectWizardTemplate to provide one from the pages registered on the corresponding plugin extention.
        Returns:
        null This implementation returns null, making IlrRuleProjectWizardTemplate.getWizard() provide a new wizard based on the wizard pages registered on this extension.

© Copyright IBM Corp. 1987, 2017