Package com.eviware.x.form

Examples of com.eviware.x.form.XForm


            builder.addArgs(toolArgs);
        }
    }

    protected XForm buildArgsForm(XFormDialogBuilder builder, boolean addJavaArgs, String toolName) {
        XForm argsForm = builder.createForm("Custom Args");
        if (addJavaArgs) {
            argsForm.addTextField(JAVA_ARGS, "additional arguments to java", XForm.FieldType.TEXT);
        }

        argsForm.addTextField(TOOL_ARGS, "additional arguments to " + toolName, XForm.FieldType.TEXT);
        return argsForm;
    }
View Full Code Here


    }

    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") {
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

    }

    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

    }

    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

    }

    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),
View Full Code Here

    }

    protected XFormDialog buildDialog(Interface modelItem) {
        XFormDialogBuilder builder = XFormFactory.createDialogBuilder("XFire 1.X 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, "Package for generated classes", XForm.FieldType.JAVA_PACKAGE).setRequired(
                true, "Package is required");
        XFormField bindingCombo = mainForm.addComboBox(BINDING, new String[]{"jaxb", "xmlbeans"},
                "Binding framework to use");

        XFormTextField cpField = mainForm.addTextField(CLASSPATH, "Classpath to generated xmlbeans for binding",
                XForm.FieldType.PROJECT_FILE);
        XFormTextField extBindingsField = mainForm.addTextField(EXTERNAL_BINDINGS, "External jaxb binding file(s)",
                XForm.FieldType.PROJECT_FILE);
        bindingCombo.addComponentEnabler(cpField, "xmlbeans");
        bindingCombo.addComponentEnabler(extBindingsField, "jaxb");

        mainForm.addTextField(PROFILE, "Profile to use for generating artifacts", XForm.FieldType.TEXT);
        mainForm.addTextField(BASE_URI, "Base URI to use", XForm.FieldType.URL);
        mainForm.addCheckBox(OVERWRITE, null);
        mainForm.addCheckBox(EXPLICIT_ANNOTATION, null);
        mainForm.addCheckBox(SERVER_STUBS, null);

        buildArgsForm(builder, true, "WsGen");

        return builder.buildDialog(buildDefaultActions(HelpUrls.XFIRE_HELP_URL, modelItem),
                "Specify arguments for XFire 1.X WsGen", UISupport.TOOL_ICON);
View Full Code Here

    }

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

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

        mainForm.addTextField(OUTPUT, "root directory for generated files.", XForm.FieldType.PROJECT_FOLDER);
        mainForm.addTextField(NAMESPACE, "The namespace for the generated proxy or template", XForm.FieldType.TEXT);

        mainForm.addCheckBox(SERVER, "(Generates interfaces for server-side implementation of an ASP.Net Web Service)");
        mainForm.addComboBox(LANGUAGE, new String[]{"CS", "VB", "JS", "VJS", "CPP"}, "add scope to deploy.wsdd");

        mainForm.addComboBox(PROTOCOL, new String[]{"SOAP", "SOAP12", "HttpGet", "HttpPost"},
                "override the default protocol to implement");

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

        advForm.addCheckBox(SHARETYPES, "(turns on type sharing feature)");
        advForm.addCheckBox(FIELDS, "(generate fields instead of properties)");
        advForm.addCheckBox(ORDER, "(generate explicit order identifiers on particle members)");
        advForm.addCheckBox(ENABLEDATABINDING, "(implement INotifyPropertyChanged interface on all generated types)");
        advForm.addTextField(URLKEY, "configuration key to use in the code generation to read the default URL value",
                XForm.FieldType.URL);
        advForm.addTextField(BASEURL, "base url to use when calculating the url fragment", XForm.FieldType.URL);

        XForm httpForm = builder.createForm("HTTP settings");
        httpForm.addTextField(USERNAME, "username to access the WSDL-URI", XForm.FieldType.TEXT);
        httpForm.addTextField(PASSWORD, "password to access the WSDL-URI", XForm.FieldType.PASSWORD);
        httpForm.addTextField(DOMAIN, "domain to access the WSDL-URI", XForm.FieldType.TEXT);
        httpForm.addTextField(PROXY, "username to access the WSDL-URI", XForm.FieldType.TEXT);
        httpForm.addTextField(PROXYUSERNAME, "proxy username to access the WSDL-URI", XForm.FieldType.TEXT);
        httpForm.addTextField(PROXYPASSWORD, "proxy password to access the WSDL-URI", XForm.FieldType.PASSWORD);
        httpForm.addTextField(PROXYDOMAIN, "proxy domain to access the WSDL-URI", XForm.FieldType.TEXT);

        buildArgsForm(builder, false, "wsdl.exe");

        return builder.buildDialog(buildDefaultActions(HelpUrls.DOTNET_HELP_URL, modelItem),
                "Specify arguments for .NET 2 wsdl.exe", UISupport.TOOL_ICON);
View Full Code Here

    }

    protected XFormDialog buildDialog(Interface modelItem) {
        XFormDialogBuilder builder = XFormFactory.createDialogBuilder("JBossWS 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(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)");
        mainForm.addCheckBox(STACKTRACE, "(show stacktrace for errors)");

        buildArgsForm(builder, false, "wsconsume");

        return builder.buildDialog(buildDefaultActions(HelpUrls.JBOSSWS_WSCONSUME_HELP_URL, modelItem),
                "Specify arguments for JBossWS wsconsume", UISupport.TOOL_ICON);
View Full Code Here

TOP

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

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.