Class OptionsPage

  • All Implemented Interfaces:
    SettingsConstants, UIConstants, org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage

    public class OptionsPage
    extends AbstractWizardPage
    implements UIConstants
    Options Page lets the user change general settings on the code generation. It is used in the CodegenWizardPlugin, CodeGenWizard.
    • Constructor Detail

      • OptionsPage

        public OptionsPage()
        Creates the page and initialize some settings
    • Method Detail

      • createControl

        public void createControl​(org.eclipse.swt.widgets.Composite parent)
        Specified by:
        createControl in interface org.eclipse.jface.dialogs.IDialogPage
      • populateParamsFromWSDL

        public void populateParamsFromWSDL()
        populate the service and the port from the WSDL this needs to be public since the WSDLselection page may call this
      • getSelectedLanguage

        public String getSelectedLanguage()
        Get the selected language
        Returns:
        a string containing the name of the target language
      • isAsyncOnlyOn

        public boolean isAsyncOnlyOn()
        the async only status
        Returns:
        true if "Generate asynchronous code only" is checked
      • isSyncOnlyOn

        public boolean isSyncOnlyOn()
        the sync only status
        Returns:
        true if "Generate synchronous code only" is checked
      • getPackageName

        public String getPackageName()
        return the package name
        Returns:
        a string containing the package name to use for code generation
      • isServerside

        public boolean isServerside()
        The serverside status
        Returns:
        true if "Generate Server-Side" is checked
      • isServerXML

        public boolean isServerXML()
        Returns:
        true if "Generate XML configuration file" is checked
      • isGenerateTestCase

        public boolean isGenerateTestCase()
        Returns:
        true if "Generate test case" is checked
      • getPortName

        public String getPortName()
        Returns:
        null if portname is empty
      • getServiceName

        public String getServiceName()
        Returns:
        null if the text is empty
      • getDatabinderName

        public String getDatabinderName()
        Returns:
      • getGenerateServerSideInterface

        public boolean getGenerateServerSideInterface()
        Returns:
      • getGenerateAll

        public boolean getGenerateAll()
        Returns:
      • getNs2PkgMapping

        public String getNs2PkgMapping()
        get the package to namespace mappings
        Returns:
      • getPackageFromNamespace

        public String getPackageFromNamespace​(String namespace)
        get the package derived by Namespace
      • getAdvanceOptions

        public HashMap getAdvanceOptions()