Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfbecker2011-02-14 20:39:38 +0000
committerfbecker2011-02-14 20:39:38 +0000
commit78ffa1c4fa2df4758a114c7959e2c3de019bc0db (patch)
treec5dfdb7f7b70510f79161d3f1d6fb5d96543802d /org.eclipse.mylyn.tasks.ui
parent9fc654be9862190d1389cdd3014d5e2378fd24ea (diff)
downloadorg.eclipse.mylyn.tasks-78ffa1c4fa2df4758a114c7959e2c3de019bc0db.tar.gz
org.eclipse.mylyn.tasks-78ffa1c4fa2df4758a114c7959e2c3de019bc0db.tar.xz
org.eclipse.mylyn.tasks-78ffa1c4fa2df4758a114c7959e2c3de019bc0db.zip
ASSIGNED - bug 336423: anonymous bug reporting
https://bugs.eclipse.org/bugs/show_bug.cgi?id=336423
Diffstat (limited to 'org.eclipse.mylyn.tasks.ui')
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractTaskEditorPage.java14
1 files changed, 14 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 dfd98b7cd..42e673fe9 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
@@ -1229,6 +1229,20 @@ public abstract class AbstractTaskEditorPage extends TaskFormPage implements ISe
if (TasksUiUtil.openEditRepositoryWizard(getTaskRepository()) == Window.OK) {
submitEnabled = true;
doSubmit();
+ } else {
+ String message;
+ if (status.getMessage().length() > 0) {
+ message = Messages.AbstractTaskEditorPage_Submit_failed_ + status.getMessage();
+ } else {
+ message = Messages.AbstractTaskEditorPage_Submit_failed;
+ }
+ message = message.replaceAll("\n", " ");
+ getTaskEditor().setMessage(message, IMessageProvider.ERROR, new HyperlinkAdapter() {
+ @Override
+ public void linkActivated(HyperlinkEvent e) {
+ TasksUiInternal.displayStatus(Messages.AbstractTaskEditorPage_Submit_failed, status);
+ }
+ });
}
} else {
String message;

Back to the top