Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfbecker2011-05-07 17:55:08 +0000
committerfbecker2011-05-07 17:55:08 +0000
commite251a5810d22e99bbf2af15c607974c90557df78 (patch)
tree93f18509a4f73f5c30550f88dd8a38a3ee6a9e8a /org.eclipse.mylyn.tasks.ui
parent452dad0a1eddffaf3b7f5ac265c3978ade84045d (diff)
downloadorg.eclipse.mylyn.tasks-e251a5810d22e99bbf2af15c607974c90557df78.tar.gz
org.eclipse.mylyn.tasks-e251a5810d22e99bbf2af15c607974c90557df78.tar.xz
org.eclipse.mylyn.tasks-e251a5810d22e99bbf2af15c607974c90557df78.zip
ASSIGNED - bug 345056: disable the submit button if we know that we get an error
https://bugs.eclipse.org/bugs/show_bug.cgi?id=345056
Diffstat (limited to 'org.eclipse.mylyn.tasks.ui')
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage.java
index d6ebd24b3..f064e74ca 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage.java
@@ -1064,6 +1064,7 @@ public abstract class AbstractTaskEditorPage extends TaskFormPage implements ISe
doSubmit();
}
});
+ submitButton.setEnabled(submitEnabled);
return submitButton;
}
};
@@ -1765,4 +1766,11 @@ public abstract class AbstractTaskEditorPage extends TaskFormPage implements ISe
return super.selectReveal(object);
}
+ /**
+ * @since 3.6
+ */
+ protected void disableSubmit() {
+ setSubmitEnabled(false);
+ }
+
}

Back to the top