Package com.eviware.x.impl.swing

Examples of com.eviware.x.impl.swing.FileFormField


        when(mockedDialog.getValue(MockAsWarAction.MockAsWarDialog.MOCKSERVICE_ENDPOINT)).thenReturn("http://localhost:8080");
    }

    private void createFileformfield(String filePath, String fieldName) {
        String name = filePath;
        FileFormField fileFormField = new FileFormField("tooltip", XForm.FieldType.FILE, name);
        fileFormField.setValue(filePath);
        when(mockedDialog.getFormField(fieldName)).thenReturn(fileFormField);
    }
View Full Code Here


                dialog = ADialogBuilder.buildDialog(LoadOptionsForm.class);
            }

            Project project = ModelSupport.getModelItemProject(holder.getModelItem());
            if (project != null) {
                FileFormField fileFormField = (FileFormField) dialog.getFormField(LoadOptionsForm.FILE);
                String currentDirectory = extractFileChooserPathForProject(project);
                fileFormField.setCurrentDirectory(currentDirectory);
            }

            dialog.getFormField(LoadOptionsForm.DELETEREMAINING)
                    .setEnabled(holder instanceof MutableTestPropertyHolder);
            dialog.getFormField(LoadOptionsForm.CREATEMISSING).setEnabled(holder instanceof MutableTestPropertyHolder);
View Full Code Here

TOP

Related Classes of com.eviware.x.impl.swing.FileFormField

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.