Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrelves2008-09-08 22:45:33 +0000
committerrelves2008-09-08 22:45:33 +0000
commitd50d5ad8e20a5313696d889a639ce236da35d588 (patch)
treedfd918bd4c60ae5a88cbf1d7ba013d72eb123279
parent1f63c245ef9f7f9e66e79511b01d54496a3899e2 (diff)
downloadorg.eclipse.mylyn.tasks-d50d5ad8e20a5313696d889a639ce236da35d588.tar.gz
org.eclipse.mylyn.tasks-d50d5ad8e20a5313696d889a639ce236da35d588.tar.xz
org.eclipse.mylyn.tasks-d50d5ad8e20a5313696d889a639ce236da35d588.zip
NEW - bug 241992: export dialog does not indicate what to do when no directory is selected
https://bugs.eclipse.org/bugs/show_bug.cgi?id=241992
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/TaskDataExportWizardPage.java17
1 files changed, 13 insertions, 4 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/TaskDataExportWizardPage.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/TaskDataExportWizardPage.java
index bc91cd226..75918d81f 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/TaskDataExportWizardPage.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/wizards/TaskDataExportWizardPage.java
@@ -135,11 +135,16 @@ public class TaskDataExportWizardPage extends WizardPage {
*/
private void createExportDirectoryControl(Composite parent) {
Group destDirGroup = new Group(parent, SWT.SHADOW_ETCHED_IN);
- destDirGroup.setText("Export destination folder");
- destDirGroup.setLayout(new GridLayout(2, false));
+ destDirGroup.setText("Export destination");
+ destDirGroup.setLayout(new GridLayout(3, false));
destDirGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
- new Label(destDirGroup, SWT.NONE).setText("Export file: " + TaskListBackupManager.getBackupFileName());
- new Label(destDirGroup, SWT.NONE);
+ new Label(destDirGroup, SWT.NONE).setText("File:");
+ Label l = new Label(destDirGroup, SWT.NONE);
+ l.setText(TaskListBackupManager.getBackupFileName());
+ GridData gd = new GridData(GridData.FILL_HORIZONTAL);
+ gd.horizontalSpan = 2;
+ l.setLayoutData(gd);
+ new Label(destDirGroup, SWT.NONE).setText("Folder:");
destDirText = new Text(destDirGroup, SWT.BORDER);
destDirText.setEditable(false);
@@ -161,6 +166,7 @@ public class TaskDataExportWizardPage extends WizardPage {
String dir = destDirText.getText();
dialog.setFilterPath(dir);
dir = dialog.open();
+ controlChanged();
if (dir == null || dir.equals("")) {
return;
}
@@ -240,15 +246,18 @@ public class TaskDataExportWizardPage extends WizardPage {
/** Returns true if the information entered by the user is valid */
protected boolean validate() {
+ setMessage(null);
// Check that at least one type of data has been selected
if (!taskListCheckBox.getSelection() && !taskActivationHistoryCheckBox.getSelection()
&& !taskContextsCheckBox.getSelection()) {
+ setMessage("Please select which task data to export", IStatus.WARNING);
return false;
}
// Check that a destination dir has been specified
if (destDirText.getText().equals("")) {
+ setMessage("Please choose an export destination", IStatus.WARNING);
return false;
}

Back to the top