Class CodeGenWizard

  • All Implemented Interfaces:
    Java2WSDLConstants, org.eclipse.jface.window.IShellProvider, org.eclipse.jface.wizard.IWizard, org.eclipse.ui.INewWizard, org.eclipse.ui.IWorkbenchWizard

    public class CodeGenWizard
    extends org.eclipse.jface.wizard.Wizard
    implements org.eclipse.ui.INewWizard, Java2WSDLConstants
    The main wizard for the codegen wizard
    • Constructor Detail

      • CodeGenWizard

        public CodeGenWizard()
        Constructor for CodeGenWizard.
    • Method Detail

      • addPages

        public void addPages()
        Adding the page to the wizard.
        Specified by:
        addPages in interface org.eclipse.jface.wizard.IWizard
        addPages in class org.eclipse.jface.wizard.Wizard
      • canFinish

        public boolean canFinish()
        Specified by:
        canFinish in interface org.eclipse.jface.wizard.IWizard
        canFinish in class org.eclipse.jface.wizard.Wizard
      • getNextPage

        public org.eclipse.jface.wizard.IWizardPage getNextPage​(org.eclipse.jface.wizard.IWizardPage page)
        Specified by:
        getNextPage in interface org.eclipse.jface.wizard.IWizard
        getNextPage in class org.eclipse.jface.wizard.Wizard
      • performFinish

        public boolean performFinish()
        This method is called when 'Finish' button is pressed in the wizard. We will create an operation and run it using wizard as execution context.
        Specified by:
        performFinish in interface org.eclipse.jface.wizard.IWizard
        Specified by:
        performFinish in class org.eclipse.jface.wizard.Wizard
      • init

        public void init​(org.eclipse.ui.IWorkbench workbench,
                         org.eclipse.jface.viewers.IStructuredSelection selection)
        We will accept the selection in the workbench to see if we can initialize from it.
        Specified by:
        init in interface org.eclipse.ui.IWorkbenchWizard
        See Also:
        IWorkbenchWizard.init(IWorkbench, IStructuredSelection)
      • getSelectedWizardType

        public int getSelectedWizardType()
        Returns the selectedWizardType.
      • setSelectedWizardType

        public void setSelectedWizardType​(int selectedWizardType)
        selectedWizardType - The selectedWizardType to set.
      • getSelectedCodegenOptionType

        public int getSelectedCodegenOptionType()
        Returns the codegenOptionType.
      • setSelectedCodegenOptionType

        public void setSelectedCodegenOptionType​(int selectedCodegenOptionType)
        selectedCodegenOptionType - The selectedCodegenOptionType to set.
      • getWSDLname

        public String getWSDLname()
        Get the selected WSDL from the WSDLselectionpage
      • populateOptions

        public void populateOptions()
        populate the options page. Usually done after reloading the WSDL
      • setDefaultNamespaces

        public void setDefaultNamespaces​(String fullyQualifiedClassName)