Class OptionsPage
- java.lang.Object
-
- org.eclipse.jface.dialogs.DialogPage
-
- org.eclipse.jface.wizard.WizardPage
-
- org.apache.axis2.tool.codegen.eclipse.ui.AbstractWizardPage
-
- 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.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
-
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.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
-
-
Constructor Summary
Constructors Constructor Description OptionsPage()
Creates the page and initialize some settings
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createControl(org.eclipse.swt.widgets.Composite parent)
HashMap
getAdvanceOptions()
String
getDatabinderName()
boolean
getGenerateAll()
boolean
getGenerateServerSideInterface()
String
getNs2PkgMapping()
get the package to namespace mappingsString
getPackageFromNamespace(String namespace)
get the package derived by NamespaceString
getPackageName()
return the package nameint
getPageType()
String
getPortName()
String
getSelectedLanguage()
Get the selected languageString
getServiceName()
protected void
initializeDefaultSettings()
Sets the default values for the Options pageboolean
isAsyncOnlyOn()
the async only statusboolean
isGenerateTestCase()
boolean
isServerside()
The serverside statusboolean
isServerXML()
boolean
isSyncOnlyOn()
the sync only statusvoid
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
-
-
-
-
Method Detail
-
initializeDefaultSettings
protected void initializeDefaultSettings()
Sets the default values for the Options page- Specified by:
initializeDefaultSettings
in classAbstractWizardPage
-
createControl
public void createControl(org.eclipse.swt.widgets.Composite parent)
- Specified by:
createControl
in interfaceorg.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 classAbstractWizardPage
-
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()
-
-