Package com.eviware.x.form

Examples of com.eviware.x.form.XFormDialog.show()


            XmlBeansRestParamsTestPropertyHolder params = new XmlBeansRestParamsTestPropertyHolder(null, RestParametersConfig.Factory.newInstance());
            String path = RestUtils.extractParams(param.toString(), params, false);
            dialog.setValue(Form.RESOURCEPATH, path);
        }

        if (dialog.show()) {
            String path = dialogBuilder.getUri();
            RestResource resource = createRestResource(parent, path);
            RestUtils.extractParams(dialog.getValue(Form.RESOURCEPATH), resource.getParams(), false);
            resource.setPath(removeParametersFrom(resource.getPath()));
View Full Code Here


                XFormDialog dialog = createAddParameterDialog();

                int row = table.getSelectedRow();
                initDialogForCopy(dialog, row);

                dialog.show();
                model.fireTableDataChanged();
            }
        }

    }
View Full Code Here

        WsdlProject project = service.getProject();
        String[] testSuites = ModelSupport.getNames(new String[]{"<create>"}, project.getTestSuiteList());
        dialog.setOptions(GenerateForm.TESTSUITE, testSuites);

        if (dialog.show()) {
            List<String> resources = Arrays.asList(StringUtils.toStringArray(operationsFormField.getSelectedOptions()));
            if (resources.size() == 0) {
                UISupport.showErrorMessage("No Resources selected..");
                return null;
            }
View Full Code Here

        WsdlProject project = iface.getProject();
        String[] testSuites = ModelSupport.getNames(new String[]{"<create>"}, project.getTestSuiteList());
        dialog.setOptions(GenerateForm.TESTSUITE, testSuites);

        if (dialog.show()) {
            List<String> operations = StringUtils.toStringList(operationsFormField.getSelectedOptions());
            if (operations.size() == 0) {
                UISupport.showErrorMessage("No Operations selected..");
                return null;
            }
View Full Code Here

        dialog.setValue(Form.HTTP_METHOD, RestRequestInterface.HttpMethod.GET.name());

        JTextFieldFormField formField = (JTextFieldFormField) dialog.getFormField(Form.RESOURCE_PATH);
        formField.getComponent().requestFocus();

        while (dialog.show()) {
            String resourcePath = dialog.getValue(Form.RESOURCE_PATH);
            String httpMethod = dialog.getValue(Form.HTTP_METHOD);

            if (StringUtils.hasContent(resourcePath)) {
                mockService.addEmptyMockAction(RestRequestInterface.HttpMethod.valueOf(httpMethod), resourcePath);
View Full Code Here

        XFormDialog dialog = buildDialog(iface);

        initValues(iface);

        if (dialog.show()) {
            String session = dialog.getValue(SESSION);
            int i = dialog.getValueIndex(SEND);
            if (i == -1) {
                UISupport.showErrorMessage("Not supported endpoint");
                return;
View Full Code Here

        setAccessTokenOptions(profile, dialog);

        setRefreshAccessTokenOptions(profile, dialog);

        if (dialog.show()) {
            String accessTokenPosition = dialog.getValue(Form.ACCESS_TOKEN_POSITION);
            profile.setAccessTokenPosition(AccessTokenPosition.valueOf(accessTokenPosition));

            String refreshAccessTokenMethod = dialog.getValue(Form.AUTOMATIC_ACCESS_TOKEN_REFRESH);
            profile.setRefreshAccessTokenMethod(OAuth2Profile.RefreshAccessTokenMethods.valueOf(refreshAccessTokenMethod.toUpperCase()));
View Full Code Here

        }

        setAuthTypeComboBoxOptions(dialog, authTypes);

        dialog.setValue(AuthorizationTypeForm.AUTHORIZATION_TYPE, request.getAuthType());
        if (dialog.show()) {
            createProfileForSelectedAuthType(dialog);
        }
    }

    private void createProfileForSelectedAuthType(XFormDialog dialog) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.