Package com.eviware.x.form

Examples of com.eviware.x.form.XFormDialogBuilder


        return values;
    }

    protected XFormDialog buildDialog(Interface modelItem) {
        XFormDialogBuilder builder = XFormFactory.createDialogBuilder("XmlBeans Classes");

        XForm mainForm = builder.createForm("Basic");
        addWSDLFields(mainForm, modelItem);

        mainForm.addTextField(XSBTARGET, "Target directory for CLASS and XSB files", XForm.FieldType.PROJECT_FOLDER);
        mainForm.addTextField(SRCTARGET, "Target directory for generated JAVA files", XForm.FieldType.PROJECT_FOLDER);
        mainForm.addTextField(JARFILE, "The name of the output JAR that will contain the result of compilation",
                XForm.FieldType.PROJECT_FILE);

        mainForm.addCheckBox(SRCONLY, "(Do not compile JAVA files or jar the output)");
        mainForm.addCheckBox(DOWNLOADS, "(Permit network downloads for imports and includes)");
        mainForm.addCheckBox(NOUPA, "(Do not enforce the unique particle attribution rule)");
        mainForm.addCheckBox(NOPVR, "(Do not enforce the particle valid (restriction) rule)");
        mainForm.addCheckBox(NOANN, "(Ignore annotations)");
        mainForm.addCheckBox(NOVDOC, "(Do not validate contents of <documentation> elements)");
        mainForm.addCheckBox(DEBUG, "(Compile with debug symbols)");

        mainForm.addComboBox(JAVASOURCE, new String[]{"1.5", "1.4"},
                "Generate Java source compatible for the specified Java version");

        mainForm.addTextField(ALLOWMDEF,
                "Ignore multiple defs in given namespaces. Use  ##local  to specify the no-namespace in that list",
                XForm.FieldType.TEXT);
        mainForm.addTextField(CATALOG, "Catalog file to use for resolving external entities",
                XForm.FieldType.PROJECT_FILE);
        mainForm.addTextField(XSDCONFIG, "Path to .xsdconfig file containing type-mapping information",
                XForm.FieldType.PROJECT_FILE);

        mainForm.addCheckBox(VERBOSE, "(Print more informational messages)");

        buildArgsForm(builder, false, "scomp");

        return builder.buildDialog(buildDefaultActions(HelpUrls.XMLBEANS_HELP_URL, modelItem),
                "Specify arguments for XmlBeans 2.X scomp", UISupport.TOOL_ICON);
    }
View Full Code Here


            return null;
        }

        proVersion = isProVersion(modelItem);

        XFormDialogBuilder builder = XFormFactory.createDialogBuilder("Launch LoadTestRunner");

        mainForm = builder.createForm("Basic");
        mainForm.addComboBox(TESTSUITE, new String[]{}, "The TestSuite to run").addFormFieldListener(
                new XFormFieldListener() {

                    public void valueChanged(XFormField sourceField, String newValue, String oldValue) {
                        updateCombos();
                    }
                });

        mainForm.addComboBox(TESTCASE, new String[]{}, "The TestCase to run").addFormFieldListener(
                new XFormFieldListener() {

                    public void valueChanged(XFormField sourceField, String newValue, String oldValue) {
                        updateCombos();
                    }
                });
        mainForm.addComboBox(LOADTEST, new String[]{}, "The LoadTest to run");
        mainForm.addSeparator();

        XFormTextField path = mainForm.addTextField(TESTRUNNERPATH, "Folder containing TestRunner.bat to use",
                XForm.FieldType.FOLDER);
        path.setValue(System.getProperty("soapui.home", ""));
        mainForm.addCheckBox(SAVEPROJECT, "Saves project before running").setEnabled(!modelItem.isRemote());
        mainForm.addCheckBox(SAVEAFTER, "Sets to save the project file after tests have been run");
        mainForm.addCheckBox(ADDSETTINGS, "Adds global settings to command-line");
        mainForm.addSeparator();
        mainForm.addTextField(PROJECTPASSWORD, "Set project password", XForm.FieldType.PASSWORD);
        mainForm.addTextField(SOAPUISETTINGSPASSWORD, "Set soapui-settings.xml password", XForm.FieldType.PASSWORD);

        advForm = builder.createForm("Overrides");
        advForm.addComboBox(ENVIRONMENT, new String[]{"Default"}, "The environment to set for all requests")
                .setEnabled(proVersion);
        advForm.addComboBox(ENDPOINT, new String[]{""}, "endpoint to forward to");
        advForm.addTextField(HOSTPORT, "Host:Port to use for requests", XForm.FieldType.TEXT);
        advForm.addTextField(LIMIT, "Limit for LoadTest", XForm.FieldType.TEXT);
        advForm.addTextField(THREADCOUNT, "ThreadCount for LoadTest", XForm.FieldType.TEXT);
        advForm.addSeparator();
        advForm.addTextField(USERNAME, "The username to set for all requests", XForm.FieldType.TEXT);
        advForm.addTextField(PASSWORD, "The password to set for all requests", XForm.FieldType.PASSWORD);
        advForm.addTextField(DOMAIN, "The domain to set for all requests", XForm.FieldType.TEXT);
        advForm.addComboBox(WSSTYPE, new String[]{"", "Text", "Digest"}, "The username to set for all requests");

        reportForm = builder.createForm("Reports");
        createReportTab();

        propertyForm = builder.createForm("Properties");
        propertyForm.addComponent(GLOBALPROPERTIES, createTextArea());
        propertyForm.addComponent(SYSTEMPROPERTIES, createTextArea());
        propertyForm.addComponent(PROJECTPROPERTIES, createTextArea());

        setToolsSettingsAction(null);
        buildArgsForm(builder, false, "TestRunner");

        return builder.buildDialog(buildDefaultActions(HelpUrls.TESTRUNNER_HELP_URL, modelItem),
                "Specify arguments for launching SoapUI LoadTestRunner", UISupport.TOOL_ICON);
    }
View Full Code Here

    public WSToolsJava2WsdlAction() {
        super("Generate WSDL with JBossWS", "Generates WSDL with the jbossws wstools utility");
    }

    protected XFormDialog buildDialog(WsdlProject project) {
        XFormDialogBuilder builder = XFormFactory.createDialogBuilder("Generate JBossWS WSDL Artifacts");

        XForm mainForm = builder.createForm("Basic");

        mainForm.addTextField(ENDPOINT, "Serice Endpoint Interface", XForm.FieldType.JAVA_CLASS);
        mainForm.addTextField(SERVICE_NAME, "The name of the generated Service", XForm.FieldType.TEXT);
        mainForm
                .addComboBox(STYLE, new String[]{Style.DOCUMENT.toString(), Style.RPC.toString()}, "The style to use");
        mainForm.addComboBox(PARAMETER_STYLE,
                new String[]{ParameterStyle.BARE.toString(), ParameterStyle.WRAPPED.toString()}, "The style to use");
        mainForm.addTextField(CLASSPATH, "Classpath to use", XForm.FieldType.PROJECT_FOLDER);
        mainForm.addTextField(OUTPUT, "The root directory for all emitted files.", XForm.FieldType.PROJECT_FOLDER);
        mainForm.addTextField(MAPPING, "mapping file to generate", XForm.FieldType.PROJECT_FILE);
        mainForm.addTextField(TARGET_NAMESPACE, "The target namespace for the generated WSDL", XForm.FieldType.TEXT);
        mainForm.addTextField(TYPES_NAMESPACE, "The namespace for the generated types", XForm.FieldType.TEXT);
        mainForm.addTextField(EJB_LINK, "The name of the source EJB to link to", XForm.FieldType.TEXT);
        mainForm.addTextField(SERVLET_LINK, "The name of the source Servlet to link to", XForm.FieldType.TEXT);

        buildArgsForm(builder, false, "wstools");

        ActionList actions = buildDefaultActions(HelpUrls.WSTOOLS_HELP_URL, project);
        actions.addAction(new ShowConfigFileAction("JBossWS Java2Wsdl", "Contents of generated wsconfig.xml file") {
            protected String getConfigFile() {
                ConfigurationDocument configDocument = createConfigFile(getDialog().getValues());
                return configDocument.toString();
            }
        });

        return builder.buildDialog(actions, "Specify arguments for JBossWS wstools java2wsdl functionality",
                UISupport.TOOL_ICON);
    }
View Full Code Here

            return null;
        }

        proVersion = isProVersion(modelItem);

        XFormDialogBuilder builder = XFormFactory.createDialogBuilder("Launch SecurityTestRunner");
        createTestCaseRunnerTabs(modelItem, builder);

        return builder.buildDialog(buildDefaultActions(HelpUrls.TESTRUNNER_HELP_URL, modelItem),
                "Specify arguments for launching SoapUI Security TestRunner", UISupport.TOOL_ICON);
    }
View Full Code Here

        return true;
    }

    private void buildDialog() {
        XFormDialogBuilder builder = XFormFactory.createDialogBuilder("Add Request to TestCase");
        XForm mainForm = builder.createForm("Basic");

        mainForm.addTextField(STEP_NAME, "Name of TestStep", XForm.FieldType.URL).setWidth(30);

        closeRequestCheckBox = mainForm.addCheckBox(CLOSE_REQUEST, "(closes the current window for this request)");
        mainForm.addCheckBox(SHOW_TESTCASE, "(opens the TestCase editor for the target TestCase)");
        mainForm.addCheckBox(SHOW_REQUEST, "(opens the Request editor for the created TestStep)");

        dialog = builder.buildDialog(builder.buildOkCancelActions(),
                "Specify options for adding the request to a TestCase", UISupport.OPTIONS_ICON);
    }
View Full Code Here

    public WSImportAction() {
        super("JAX-WS Artifacts", "Generates JAX-WS artifacts using wsimport");
    }

    protected XFormDialog buildDialog(Interface modelItem) {
        XFormDialogBuilder builder = XFormFactory.createDialogBuilder("JAX-WS Artifacts");

        XForm mainForm = builder.createForm("Basic");
        addWSDLFields(mainForm, modelItem);

        mainForm.addTextField(OUTPUT, "target directory for generated files.", XForm.FieldType.PROJECT_FOLDER);
        mainForm.addTextField(PACKAGE, "target package nam", XForm.FieldType.JAVA_PACKAGE);
        mainForm.addTextField(SOURCE_OUTPUT, "target directory for generated source files",
                XForm.FieldType.PROJECT_FOLDER);
        mainForm.addTextField(HTTPPROXY, "HTTP Proxy-server", XForm.FieldType.TEXT);
        mainForm.addTextField(CATALOG, "catalog file to resolve external entity references",
                XForm.FieldType.PROJECT_FILE);
        mainForm.addTextField(BINDING_FILES, "comma-separated list of external JAX-WS or JAXB binding files",
                XForm.FieldType.TEXT);
        mainForm.addTextField(WSDLLOCATION, "@WebService.wsdlLocation and @WebServiceClient.wsdlLocation value",
                XForm.FieldType.TEXT);

        mainForm.addCheckBox(KEEP, "(keep generated files)");

        buildArgsForm(builder, false, "WSImport");

        return builder.buildDialog(buildDefaultActions(HelpUrls.WSIMPORT_HELP_URL, modelItem),
                "Specify arguments for JWSDP/JAX-WS wsimport", UISupport.TOOL_ICON);
    }
View Full Code Here

        super("Options", "Sets options for this TestCase");
    }

    public void perform(WsdlTestCase testCase, Object param) {
        if (dialog == null) {
            XFormDialogBuilder builder = XFormFactory.createDialogBuilder("TestCase Options");
            form = builder.createForm("Basic");
            form.addCheckBox(SEARCH_PROPERTIES, "Search preceding TestSteps for property values");
            form.addCheckBox(KEEP_SESSION, "Maintain HTTP session");
            form.addCheckBox(FAIL_ON_ERROR, "Abort test if an error occurs").addFormFieldListener(new XFormFieldListener() {

                public void valueChanged(XFormField sourceField, String newValue, String oldValue) {
                    form.getFormField(FAIL_TESTCASE_ON_ERROR).setEnabled(!Boolean.parseBoolean(newValue));
                }
            });

            form.addCheckBox(FAIL_TESTCASE_ON_ERROR, "Fail TestCase if it has failed TestSteps");
            form.addCheckBox(DISCARD_OK_RESULTS, "Discards successful TestStep results to preserve memory");
            form.addTextField(SOCKET_TIMEOUT, "Socket timeout in milliseconds", FieldType.TEXT);
            form.addTextField(TESTCASE_TIMEOUT, "Timeout in milliseconds for entire TestCase", FieldType.TEXT);
            form.addTextField(MAXRESULTS, "Maximum number of TestStep results to keep in memory during a run",
                    FieldType.TEXT);

            wsrmForm = builder.createForm("WS-RM");
            wsrmForm.addCheckBox(WS_RM_ENABLED, "Use WS-Reliable Messaging");
            wsrmForm.addComboBox(WS_RM_VERSION, new String[]{WsrmVersionTypeConfig.X_1_0.toString(),
                    WsrmVersionTypeConfig.X_1_1.toString(), WsrmVersionTypeConfig.X_1_2.toString()},
                    "The  property for managing WS-RM version");
            wsrmForm.addTextField(WS_RM_ACK_TO, "Acknowledgments To", FieldType.TEXT);
            wsrmForm.addTextField(WS_RM_EXPIRES, "Expires after", FieldType.TEXT);

            amfForm = builder.createForm("AMF");
            amfForm.addCheckBox(AMF_AUTHORISATION_ENABLE, "Enable AMF Session").addFormFieldListener(
                    new AMFXFormFieldListener());
            amfForm.addTextField(AMF_ENDPOINT, "AMF Authorization endpoint", FieldType.TEXT);
            amfForm.addTextField(AMF_LOGIN, "AMF Authorization usernmae", FieldType.TEXT);
            amfForm.addTextField(AMF_PASSWORD, "AMF Authorization password", FieldType.PASSWORD);

            dialog = builder.buildDialog(builder.buildOkCancelHelpActions(HelpUrls.TESTCASEOPTIONS_HELP_URL),
                    "Specify general options for this TestCase", UISupport.OPTIONS_ICON);
        }

        StringToStringMap values = new StringToStringMap();
View Full Code Here

    public Wadl2JavaAction() {
        super("WADL2Java", "Generates java code from WADL");
    }

    protected XFormDialog buildDialog(Interface modelItem) {
        XFormDialogBuilder builder = XFormFactory.createDialogBuilder("WADL2Java");

        XForm mainForm = builder.createForm("Basic");

        mainForm.addTextField(OUTPUT, "Root directory for all emitted files.", XForm.FieldType.PROJECT_FOLDER);
        mainForm.addTextField(PACKAGE, "Default Package for generated classes", XForm.FieldType.JAVA_PACKAGE);

        mainForm.addCheckBox(AUTOMATIC_PACKAGE_NAMES, "Generates starting point code for a client mainline");
        mainForm.addTextField(JAXB_CUSTOMIZATION, "Space-separated list of JAXWS or JAXB binding files",
                XForm.FieldType.TEXT);

        buildArgsForm(builder, true, "wadl2java");

        return builder.buildDialog(buildDefaultActions(HelpUrls.WADL2JAVA_HELP_URL, modelItem),
                "Specify arguments for reference wadl2java", UISupport.TOOL_ICON);
    }
View Full Code Here

    public CXFAction() {
        super("Apache CXF", "Generates Apache CXF code using the wsdl2java utility");
    }

    protected XFormDialog buildDialog(Interface modelItem) {
        XFormDialogBuilder builder = XFormFactory.createDialogBuilder("Apache CXF Stubs");

        XForm mainForm = builder.createForm("Basic");
        addWSDLFields(mainForm, modelItem);

        mainForm.addTextField(OUTPUT, "Root directory for all emitted files.", XForm.FieldType.PROJECT_FOLDER);
        mainForm.addTextField(PACKAGE, "Default Package for generated classes", XForm.FieldType.JAVA_PACKAGE);
        mainForm.addNameSpaceTable(NAMESPACE_MAPPING, modelItem);

        mainForm.addCheckBox(CLIENT_STUBS, "Generates starting point code for a client mainline");
        mainForm.addCheckBox(SERVER_STUBS, "Generates starting point code for a server mainline");
        mainForm.addCheckBox(IMPL_STUBS, "Generates starting point code for an implementation object");
        mainForm.addCheckBox(ANT_FILE, "Generates the Ant build.xml file");
        mainForm.addCheckBox(GENERATE_ALL,
                "<html>Generates all starting point code: types, <br>service proxy, service interface, server mainline, "
                        + "<br>client mainline, implementation object, and an Ant build.xml file</html>");

        XForm advForm = builder.createForm("Advanced");

        advForm.addTextField(BINDING_FILES, "Space-separated list of JAXWS or JAXB binding files", XForm.FieldType.TEXT);
        advForm.addCheckBox(COMPILE, "Compiles generated Java files");
        advForm.addTextField(CLASSDIR, "The directory into which the compiled class files are written",
                XForm.FieldType.FOLDER);

        advForm.addTextField(CATALOG_FILE, "The catalog file to map the imported wsdl/schema", XForm.FieldType.FILE);

        advForm.addNameSpaceTable(EXCLUDE_NAMESPACES, modelItem);
        advForm.addCheckBox(EXSH, "Enables processing of extended soap header message binding");
        advForm.addCheckBox(DNS, "Enables loading of the default namespace package name mapping");
        advForm.addCheckBox(DEX, "Enables loading of the default excludes namespace mapping");
        advForm.addCheckBox(VALIDATE, "Enables validating the WSDL before generating the code");

        buildArgsForm(builder, true, "wsdl2java");

        return builder.buildDialog(buildDefaultActions(HelpUrls.CXFWSDL2JAVA_HELP_URL, modelItem),
                "Specify arguments for Apache CXF wsdl2java", UISupport.TOOL_ICON);
    }
View Full Code Here

        return true;
    }

    private void buildDialog() {
        XFormDialogBuilder builder = XFormFactory.createDialogBuilder("Add Request to TestCase");
        XForm mainForm = builder.createForm("Basic");

        mainForm.addTextField(STEP_NAME, "Name of TestStep", XForm.FieldType.URL).setWidth(30);

        mainForm.addCheckBox(ADD_SOAP_RESPONSE_ASSERTION, "(adds validation that response is a SOAP message)");
        mainForm.addCheckBox(ADD_SCHEMA_ASSERTION, "(adds validation that response complies with its schema)");
        mainForm.addCheckBox(ADD_SOAP_FAULT_ASSERTION, "(adds validation that response is not a SOAP Fault)");
        closeRequestCheckBox = mainForm.addCheckBox(CLOSE_REQUEST, "(closes the current window for this request)");
        mainForm.addCheckBox(SHOW_TESTCASE, "(opens the TestCase editor for the target TestCase)");
        mainForm.addCheckBox(COPY_ATTACHMENTS, "(copies the requests attachments to the TestRequest)");
        mainForm.addCheckBox(COPY_HTTPHEADERS, "(copies the requests HTTP-Headers to the TestRequest)");

        dialog = builder.buildDialog(builder.buildOkCancelActions(),
                "Specify options for adding the request to a TestCase", UISupport.OPTIONS_ICON);

        dialogValues.put(ADD_SOAP_RESPONSE_ASSERTION, Boolean.TRUE.toString());
    }
View Full Code Here

TOP

Related Classes of com.eviware.x.form.XFormDialogBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.