Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2008-02-28 01:02:41 -0500
committerspingel2008-02-28 01:02:41 -0500
commit8625612e136473297822612affdbd2015a2a7813 (patch)
tree6cb5d6b2a3098ab9de1136f0edbc98fa8f8b52cc
parent42dfc69775e65f3cc02e4e505f7fc8a20dff5802 (diff)
downloadorg.eclipse.mylyn.tasks-8625612e136473297822612affdbd2015a2a7813.tar.gz
org.eclipse.mylyn.tasks-8625612e136473297822612affdbd2015a2a7813.tar.xz
org.eclipse.mylyn.tasks-8625612e136473297822612affdbd2015a2a7813.zip
NEW - bug 220688: [m2.3.1] errors when cancelling password prompt
https://bugs.eclipse.org/bugs/show_bug.cgi?id=220688
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/NewBugzillaTaskEditor.java2
-rw-r--r--org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractRepositoryTaskEditor.java11
2 files changed, 12 insertions, 1 deletions
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/NewBugzillaTaskEditor.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/NewBugzillaTaskEditor.java
index a9f50add5..be82d8e09 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/NewBugzillaTaskEditor.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/NewBugzillaTaskEditor.java
@@ -94,7 +94,7 @@ public class NewBugzillaTaskEditor extends AbstractNewRepositoryTaskEditor {
return;
} else if (descriptionTextViewer.getTextWidget().getText().equals("")) {
MessageDialog.openInformation(this.getSite().getShell(), "Submit Error",
- "Please proved a detailed summary with new reports");
+ "Please proved a detailed description with new reports");
descriptionTextViewer.getTextWidget().setFocus();
return;
}
diff --git a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractRepositoryTaskEditor.java b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractRepositoryTaskEditor.java
index e07d563f2..1c42355f3 100644
--- a/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractRepositoryTaskEditor.java
+++ b/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/tasks/ui/editors/AbstractRepositoryTaskEditor.java
@@ -25,6 +25,7 @@ import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.core.runtime.OperationCanceledException;
import org.eclipse.core.runtime.Status;
import org.eclipse.core.runtime.SubProgressMonitor;
import org.eclipse.core.runtime.jobs.IJobChangeEvent;
@@ -3591,6 +3592,16 @@ public abstract class AbstractRepositoryTaskEditor extends TaskFormPage {
}
return Status.OK_STATUS;
+ } catch (OperationCanceledException e) {
+ if (modifiedTask != null) {
+ modifiedTask.setSubmitting(false);
+ }
+ PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() {
+ public void run() {
+ setGlobalBusy(false);// enableButtons();
+ }
+ });
+ return Status.CANCEL_STATUS;
} catch (CoreException e) {
if (modifiedTask != null) {
modifiedTask.setSubmitting(false);

Back to the top