core/com.nokia.carbide.cpp.codescanner/src/com/nokia/carbide/cpp/internal/codescanner/ui/CSGeneralTabPage.java
equal
deleted
inserted
replaced
35 import org.eclipse.swt.widgets.Label; |
35 import org.eclipse.swt.widgets.Label; |
36 import org.eclipse.swt.widgets.Text; |
36 import org.eclipse.swt.widgets.Text; |
37 |
37 |
38 import com.nokia.carbide.cpp.internal.codescanner.CSPlugin; |
38 import com.nokia.carbide.cpp.internal.codescanner.CSPlugin; |
39 import com.nokia.carbide.cpp.internal.codescanner.Messages; |
39 import com.nokia.carbide.cpp.internal.codescanner.Messages; |
|
40 import com.nokia.cpp.internal.api.utils.ui.BrowseDialogUtils; |
40 |
41 |
41 /** |
42 /** |
42 * A class to create and control the CodeScanner General Options tab page. |
43 * A class to create and control the CodeScanner General Options tab page. |
43 */ |
44 */ |
44 public class CSGeneralTabPage extends Composite { |
45 public class CSGeneralTabPage extends Composite { |
419 */ |
420 */ |
420 private String showCSDirBrowseDialog() { |
421 private String showCSDirBrowseDialog() { |
421 DirectoryDialog dialog = new DirectoryDialog(csDirEditText.getShell(), SWT.OPEN); |
422 DirectoryDialog dialog = new DirectoryDialog(csDirEditText.getShell(), SWT.OPEN); |
422 dialog.setText(Messages.getString("CSGeneralTabPage.SelectDirTitle")); |
423 dialog.setText(Messages.getString("CSGeneralTabPage.SelectDirTitle")); |
423 dialog.setMessage(Messages.getString("CSGeneralTabPage.SelectCSDirMessage")); |
424 dialog.setMessage(Messages.getString("CSGeneralTabPage.SelectCSDirMessage")); |
424 dialog.setFilterPath(csDirEditText.getText()); |
425 BrowseDialogUtils.initializeFrom(dialog, csDirEditText); |
425 return dialog.open(); |
426 return dialog.open(); |
426 } |
427 } |
427 |
428 |
428 /** |
429 /** |
429 * Create and open a dialog to allow the selection of results directory. |
430 * Create and open a dialog to allow the selection of results directory. |
431 */ |
432 */ |
432 private String showResultsDirBrowseDialog() { |
433 private String showResultsDirBrowseDialog() { |
433 DirectoryDialog dialog = new DirectoryDialog(resultsDirEditText.getShell(), SWT.OPEN); |
434 DirectoryDialog dialog = new DirectoryDialog(resultsDirEditText.getShell(), SWT.OPEN); |
434 dialog.setText(Messages.getString("CSGeneralTabPage.SelectDirTitle")); |
435 dialog.setText(Messages.getString("CSGeneralTabPage.SelectDirTitle")); |
435 dialog.setMessage(Messages.getString("CSGeneralTabPage.SelectResultsDirMessage")); |
436 dialog.setMessage(Messages.getString("CSGeneralTabPage.SelectResultsDirMessage")); |
436 dialog.setFilterPath(resultsDirEditText.getText()); |
437 BrowseDialogUtils.initializeFrom(dialog, resultsDirEditText); |
437 return dialog.open(); |
438 return dialog.open(); |
438 } |
439 } |
439 |
440 |
440 /** |
441 /** |
441 * Check whether a directory already exist. |
442 * Check whether a directory already exist. |