- if(!CdmStore.getCurrentSessionManager().isRemoting()) {
- //report
- Label labelReportFile = new Label(composite, SWT.NONE);
- labelReportFile.setText("Report File");
-
- fileDialogReport = new FileDialog(parent.getShell());
-
- fileDialogReport.setFilterExtensions(new String[]{"*.*"});
-
- textFileReport = new Text(composite, SWT.BORDER);
- textFileReport.setEditable(false);
- textFileReport.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));
-
-
- Button buttonReport = new Button(composite, SWT.PUSH);
- buttonReport.setText("Browse...");
-
- buttonReport.addSelectionListener(new SelectionAdapter(){
-
- /* (non-Javadoc)
- * @see org.eclipse.swt.events.SelectionAdapter#widgetSelected(org.eclipse.swt.events.SelectionEvent)
- */
- @Override
- public void widgetSelected(SelectionEvent e) {
- String path = fileDialogReport.open();
- if(path!=null){
- textFileReport.setText(path);
- setPageComplete(true);
- }
- }
-
- });
- }