Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrelves2009-06-10 17:42:18 +0000
committerrelves2009-06-10 17:42:18 +0000
commit42a935395586c6c5712357bc65efc1f95ae0c624 (patch)
tree75b67e50b0c63b68b5cddc6d4dae183f58b5b8df /org.eclipse.mylyn.bugzilla.ui
parentaff028aeb8dc653316bf1bf1d1be7d42948e69f6 (diff)
downloadorg.eclipse.mylyn.tasks-42a935395586c6c5712357bc65efc1f95ae0c624.tar.gz
org.eclipse.mylyn.tasks-42a935395586c6c5712357bc65efc1f95ae0c624.tar.xz
org.eclipse.mylyn.tasks-42a935395586c6c5712357bc65efc1f95ae0c624.zip
REOPENED - bug 279493: fix potential infinite loop
https://bugs.eclipse.org/bugs/show_bug.cgi?id=279493
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.ui')
-rw-r--r--org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/BugzillaSearchPage.java17
1 files changed, 10 insertions, 7 deletions
diff --git a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/BugzillaSearchPage.java b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/BugzillaSearchPage.java
index 10a1246f5..bbc869cea 100644
--- a/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/BugzillaSearchPage.java
+++ b/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/search/BugzillaSearchPage.java
@@ -1053,10 +1053,18 @@ public class BugzillaSearchPage extends AbstractRepositoryQueryPage implements L
// TODO: update status, resolution, severity etc if possible...
if (getTaskRepository() != null) {
+ repositoryConfiguration = BugzillaCorePlugin.getRepositoryConfiguration(getTaskRepository().getUrl());
updateAttributesFromConfiguration(null);
if (product.getItemCount() == 0) {
- updateConfiguration(true);
- updateAttributesFromConfiguration(null);
+ Display.getDefault().asyncExec(new Runnable() {
+ public void run() {
+ if (getControl() != null && !getControl().isDisposed()) {
+ updateConfiguration(true);
+ updateAttributesFromConfiguration(null);
+ }
+ }
+
+ });
}
}
if (originalQuery != null) {
@@ -1836,7 +1844,6 @@ public class BugzillaSearchPage extends AbstractRepositoryQueryPage implements L
};
try {
- // TODO: make cancelable (bug 143011)
if (getContainer() != null) {
getContainer().run(true, true, updateRunnable);
} else if (getSearchContainer() != null) {
@@ -1853,10 +1860,6 @@ public class BugzillaSearchPage extends AbstractRepositoryQueryPage implements L
CoreException cause = ((CoreException) ex.getCause());
if (cause.getStatus() instanceof RepositoryStatus
&& ((RepositoryStatus) cause.getStatus()).isHtmlMessage()) {
- // TOOD: use StatusManager
-
-// this.setControlsEnabled(false);
-// scontainer.setPerformActionEnabled(false);
if (shell != null) {
shell.setEnabled(false);
}

Back to the top