org.apache.axis2.tool.codegen.eclipse.ui
Class OptionsPage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by org.apache.axis2.tool.codegen.eclipse.ui.AbstractWizardPage
              extended by org.apache.axis2.tool.codegen.eclipse.ui.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.


Field Summary
 
Fields inherited from class org.apache.axis2.tool.codegen.eclipse.ui.AbstractWizardPage
restoredFromPreviousSettings, settings
 
Fields inherited from interface org.apache.axis2.tool.codegen.eclipse.util.UIConstants
AXIS_CODEGEN_PLUGIN_FOLDER, C_PLUS_PLUS, C_SHARP, CUSTOM, DATA_BINDING_ADB, DATA_BINDING_JIBX, DATA_BINDING_NONE, DATA_BINDING_XMLBEANS, DEFAULT, DEFAULT_PACKAGENAME, JAVA, LIB, PLUGINS, selectedOption, TARGET
 
Fields inherited from interface org.apache.axis2.tool.codegen.eclipse.util.SettingsConstants
CODEGEN_CUSTOM_TYPE, CODEGEN_DEFAULT_TYPE, CODEGEN_UNDECLEARED_TYPE, JAVA_2_WSDL_TYPE, JAVA_CLASS_NAME, JAVA_CLASS_PATH_ENTRIES, JAVA_OUTPUT_WSDL_NAME, PREF_AXIS_HOME_OUTPUT_LOCATION, PREF_AXIS_LIB_LOCATION, PREF_CHECK_AXIS_LIB_COPY, PREF_CHECK_AXIS_PLUGIN_LIB_COPY, PREF_CHECK_BROWSE_PROJECTS, PREF_CHECK_FILE_SYSTEM, PREF_CHECK_GENERATE_CLIENTSIDE, PREF_CHECK_GENERATE_SERVERCONFIG, PREF_CHECK_GENERATE_SERVERSIDE, PREF_CHECK_GENERATE_TESTCASE, PREF_CHECK_JAR_CREATION, PREF_CHECK_WORKSPACE, PREF_CODEGEN_OPTION_INDEX, PREF_COMBO_PORTNAME_INDEX, PREF_COMBO_SERVICENAME_INDEX, PREF_DATABINDER_INDEX, PREF_GEN_ALL, PREF_GEN_SS_INTERFACE, PREF_JAR_FILE_NAME, PREF_JAVA_OUTPUT_FILESYATEM, PREF_JAVA_OUTPUT_WORKSPACE, PREF_JAVA_OUTPUT_WSDL_LOCATION, PREF_JAVA_SCHEMA_TARGET_NS, PREF_JAVA_SCHEMA_TARGET_NS_PREF, PREF_JAVA_SERVICE_NAME, PREF_JAVA_STYLE_INDEX, PREF_JAVA_TARGET_NS, PREF_JAVA_TARGET_NS_PREF, PREF_LANGUAGE_INDEX, PREF_OPTION_SELECTION_CUSTOM, PREF_OPTION_SELECTION_DEFULT, PREF_OUTPUT_LOCATION, PREF_PACKAGE_NAME, PREF_RADIO_ASYNC_ONLY, PREF_RADIO_SYNC_AND_ASYNC, PREF_RADIO_SYNC_ONLY, PREF_TOOL_SELECTION_JAVA2WSDL, PREF_TOOL_SELECTION_WSDL2JAVA, PREF_WSDL_LOCATION, UNSPECIFIED_TYPE, WSDL_2_JAVA_TYPE, WSDL_ALL, WSDL_IMPLEMENTATION_ONLY, WSDL_INTERFACE_ONLY, WSDL_STYLE_DOCUMENT, WSDL_STYLE_RPC, WSDL_STYLE_WRAPPED
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
OptionsPage()
          Creates the page and initialize some settings
 
Method Summary
 void createControl(org.eclipse.swt.widgets.Composite parent)
           
 HashMap getAdvanceOptions()
           
 String getDatabinderName()
           
 boolean getGenerateAll()
           
 boolean getGenerateServerSideInterface()
           
 String getNs2PkgMapping()
          get the package to namespace mappings
 String getPackageFromNamespace(String namespace)
          get the package derived by Namespace
 String getPackageName()
          return the package name
 int getPageType()
           
 String getPortName()
           
 String getSelectedLanguage()
          Get the selected language
 String getServiceName()
           
protected  void initializeDefaultSettings()
          Sets the default values for the Options page
 boolean isAsyncOnlyOn()
          the async only status
 boolean isGenerateTestCase()
           
 boolean isServerside()
          The serverside status
 boolean isServerXML()
           
 boolean isSyncOnlyOn()
          the sync only status
 void populateParamsFromWSDL()
          populate the service and the port from the WSDL this needs to be public since the WSDLselection page may call this
 
Methods inherited from class org.apache.axis2.tool.codegen.eclipse.ui.AbstractWizardPage
getCodegenWizard, init, updateStatus
 
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
 
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, setVisible
 

Constructor Detail

OptionsPage

public OptionsPage()
Creates the page and initialize some settings

Method Detail

initializeDefaultSettings

protected void initializeDefaultSettings()
Sets the default values for the Options page

Specified by:
initializeDefaultSettings in class AbstractWizardPage

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

getPageType

public int getPageType()
Specified by:
getPageType in class AbstractWizardPage

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()


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.