public void widgetSelected( SelectionEvent arg0 ) { DirectoryDialog dialog = new DirectoryDialog( shell, SWT.NONE ); dialog.setText( "Select root directory" ); dialog.setMessage( "Select the repository root directory" ); String folder = dialog.open(); if ( folder != null ) { wBaseDir.setText( folder ); } } } );
public void widgetSelected( SelectionEvent arg0 ) { DirectoryDialog dd = new DirectoryDialog( shell, SWT.NONE ); dd.setFilterPath( wSortDir.getText() ); String dir = dd.open(); if ( dir != null ) { wSortDir.setText( dir ); } } } );
public void widgetSelected(SelectionEvent evt) { DirectoryDialog dlg= new DirectoryDialog(m_xmlTemplateFile.getShell()); dlg.setMessage("Select TestNG Output Directory"); String selectedDir = dlg.open(); if (new File(selectedDir).isDirectory()) { // use xml reporter file name as String literal rather than constant // since XMLReporter.FILE_NAME was moved in https://github.com/cbeust/testng/pull/1785 selectedDir = selectedDir + File.separator + "testng-results.xml"; } m_watchResultText.setText(selectedDir != null ? selectedDir : ""); } };
@Override public void widgetSelected(SelectionEvent e) { DirectoryDialog dd = new DirectoryDialog(getContainer().getShell(), SWT.SHEET); dd.setText(WizardMessages.ExportLaunchConfigurationsWizard_0); String file = dd.open(); if(file != null) { IPath path = new Path(file); if (path != null) { fFilePath.setText(path.toString()); setPageComplete(isComplete()); } } } });
public void exportJobs( RepositoryDirectoryInterface root ) { try { DirectoryDialog dialog = new DirectoryDialog( shell, SWT.OPEN ); if ( dialog.open() != null ) { String directory = dialog.getFilterPath();
private void handleBrowse(){ DirectoryDialog dirDialog = new DirectoryDialog(this.getShell()); dirDialog.setMessage(ServiceArchiver.getResourceString("page1.filedialogTitle")); String returnText = dirDialog.open(); if (returnText!=null){ this.classFileLocationText.setText(returnText); } }
public void exportTransformations( RepositoryDirectoryInterface root ) { try { DirectoryDialog dialog = new DirectoryDialog( shell, SWT.OPEN ); if ( dialog.open() != null ) { String directory = dialog.getFilterPath();
public void widgetSelected( SelectionEvent e ) { DirectoryDialog dialog = new DirectoryDialog( shell, SWT.OPEN ); if ( destination.getText() != null ) { String fpath = destination.getText(); // String fpath = StringUtil.environmentSubstitute(destination.getText()); dialog.setFilterPath( fpath ); } if ( dialog.open() != null ) { String str = dialog.getFilterPath(); destination.setText( str ); } } };
@Override public void widgetSelected( SelectionEvent arg0 ) { DirectoryDialog dd = new DirectoryDialog( shell, SWT.NONE ); dd.setFilterPath( wSortDir.getText() ); String dir = dd.open(); if ( dir != null ) { wSortDir.setText( dir ); } } } );
private void handleBrowse(){ DirectoryDialog dirDialog = new DirectoryDialog(this.getShell()); dirDialog.setMessage(ServiceArchiver.getResourceString("page4.dirdialog.caption")); String returnText = dirDialog.open(); if (returnText!=null){ this.outputFileLocationTextBox.setText(returnText); this.outputFileLocationTextBox.setToolTipText(returnText); } }
public void widgetSelected( SelectionEvent e ) { DirectoryDialog dialog = new DirectoryDialog( shell, SWT.OPEN ); if ( destination.getText() != null ) { String fpath = destination.getText(); // String fpath = StringUtil.environmentSubstitute(destination.getText()); dialog.setFilterPath( fpath ); } if ( dialog.open() != null ) { String str = dialog.getFilterPath(); destination.setText( str ); } } };
public void widgetSelected( SelectionEvent arg0 ) { DirectoryDialog dd = new DirectoryDialog( shell, SWT.NONE ); dd.setFilterPath( wSpoolDir.getText() ); String dir = dd.open(); if ( dir != null ) { wSpoolDir.setText( dir ); } } } );
public void widgetSelected( SelectionEvent e ) { DirectoryDialog dialog = new DirectoryDialog( shell, SWT.OPEN ); if ( wTrustStorePath.getText() != null ) { String fpath = transMeta.environmentSubstitute( wTrustStorePath.getText() ); dialog.setFilterPath( fpath ); } if ( dialog.open() != null ) { String str = dialog.getFilterPath(); wTrustStorePath.setText( str ); } } } );
public void widgetSelected( SelectionEvent arg0 ) { DirectoryDialog dd = new DirectoryDialog( shell, SWT.NONE ); dd.setFilterPath( wSortDir.getText() ); String dir = dd.open(); if ( dir != null ) { wSortDir.setText( dir ); } } } );
public void widgetSelected( SelectionEvent e ) { DirectoryDialog dialog = new DirectoryDialog( shell, SWT.OPEN ); if ( wFoldername.getText() != null ) { String fpath = transMeta.environmentSubstitute( wFoldername.getText() ); dialog.setFilterPath( fpath ); } if ( dialog.open() != null ) { String str = dialog.getFilterPath(); wFoldername.setText( str ); } } } );
public void widgetSelected( SelectionEvent e ) { DirectoryDialog dialog = new DirectoryDialog( shell, SWT.OPEN ); if ( wDestinationFolder.getText() != null ) { dialog.setFilterPath( jobMeta.environmentSubstitute( wDestinationFolder.getText() ) ); } String dir = dialog.open(); if ( dir != null ) { wDestinationFolder.setText( dir ); } } } );
public void widgetSelected( SelectionEvent e ) { if ( wFilemask.getText() != null && wFilemask.getText().length() > 0 ) { // A mask: a directory! DirectoryDialog dialog = new DirectoryDialog( shell, SWT.OPEN ); if ( wFilename.getText() != null ) { String fpath = transMeta.environmentSubstitute( wFilename.getText() ); dialog.setFilterPath( fpath ); if ( dialog.open() != null ) { String str = dialog.getFilterPath(); wFilename.setText( str );
public void widgetSelected( SelectionEvent e ) { DirectoryDialog dialog = new DirectoryDialog( shell, SWT.OPEN ); if ( wFoldername.getText() != null ) { dialog.setFilterPath( jobMeta.environmentSubstitute( wFoldername.getText() ) ); } String dir = dialog.open(); if ( dir != null ) { wFoldername.setText( dir ); } } } );
public void widgetSelected( SelectionEvent e ) { if ( !Utils.isEmpty( wFilemask.getText() ) || !Utils.isEmpty( wExcludeFilemask.getText() ) ) { // A mask: a directory! DirectoryDialog dialog = new DirectoryDialog( shell, SWT.OPEN ); if ( wFilename.getText() != null ) { String fpath = ""; // StringUtil.environmentSubstitute(wFilename.getText()); dialog.setFilterPath( fpath ); } if ( dialog.open() != null ) { String str = dialog.getFilterPath(); wFilename.setText( str ); } } else { FileDialog dialog = new FileDialog( shell, SWT.OPEN ); dialog.setFilterExtensions( new String[] { "*" } ); if ( wFilename.getText() != null ) { String fname = ""; // StringUtil.environmentSubstitute(wFilename.getText()); dialog.setFileName( fname ); } dialog.setFilterNames( new String[] { BaseMessages.getString( PKG, "System.FileType.AllFiles" ) } ); if ( dialog.open() != null ) { String str = dialog.getFilterPath() + System.getProperty( "file.separator" ) + dialog.getFileName(); wFilename.setText( str ); } } } } );
public void widgetSelected( SelectionEvent e ) { DirectoryDialog dialog = new DirectoryDialog( shell, SWT.OPEN ); if ( wDestinationFolder.getText() != null ) { dialog.setFilterPath( jobMeta.environmentSubstitute( wDestinationFolder.getText() ) ); } String dir = dialog.open(); if ( dir != null ) { wDestinationFolder.setText( dir ); } } } );