Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Rolka2013-04-10 21:27:08 +0000
committerPaul Webster2013-04-11 12:30:00 +0000
commit206a549d1120f41c2758188a5a7181759ef4553c (patch)
treeb5f358af4380027f1d267282360ae6e560c62199 /bundles/org.eclipse.ui.workbench
parent1b47884667d03546f226926b1c7093d1079a1058 (diff)
downloadeclipse.platform.ui-206a549d1120f41c2758188a5a7181759ef4553c.tar.gz
eclipse.platform.ui-206a549d1120f41c2758188a5a7181759ef4553c.tar.xz
eclipse.platform.ui-206a549d1120f41c2758188a5a7181759ef4553c.zip
Bug 372466 - Part tabs no longer show that they are busy.
The review comments have been applied Change-Id: I7fc59f89450a4e2f4f700e07a85c0388711fa50e
Diffstat (limited to 'bundles/org.eclipse.ui.workbench')
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/WorkbenchSiteProgressService.java15
1 files changed, 14 insertions, 1 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/WorkbenchSiteProgressService.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/WorkbenchSiteProgressService.java
index 4cb05ff6294..31a06337ca8 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/WorkbenchSiteProgressService.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/WorkbenchSiteProgressService.java
@@ -23,6 +23,8 @@ import org.eclipse.core.runtime.jobs.IJobChangeListener;
import org.eclipse.core.runtime.jobs.ISchedulingRule;
import org.eclipse.core.runtime.jobs.Job;
import org.eclipse.core.runtime.jobs.JobChangeAdapter;
+import org.eclipse.e4.ui.internal.workbench.swt.CSSConstants;
+import org.eclipse.e4.ui.model.application.ui.basic.MPart;
import org.eclipse.jface.operation.IRunnableContext;
import org.eclipse.jface.operation.IRunnableWithProgress;
import org.eclipse.jface.resource.ImageDescriptor;
@@ -128,7 +130,7 @@ public class WorkbenchSiteProgressService implements
cursor = getWaitCursor(control.getDisplay());
}
control.setCursor(cursor);
- // site.getPane().setBusy(busy);
+ showBusy(busy);
IWorkbenchPart part = site.getPart();
if (part instanceof WorkbenchPart) {
((WorkbenchPart) part).showBusy(busy);
@@ -445,4 +447,15 @@ public class WorkbenchSiteProgressService implements
public SiteUpdateJob getUpdateJob() {
return updateJob;
}
+
+ protected void showBusy(boolean busy) {
+ MPart part = site.getModel();
+ boolean containsBusyTag = part.getTags().contains(CSSConstants.CSS_BUSY_CLASS);
+
+ if (busy && !containsBusyTag) {
+ part.getTags().add(CSSConstants.CSS_BUSY_CLASS);
+ } else if (!busy && containsBusyTag) {
+ part.getTags().remove(CSSConstants.CSS_BUSY_CLASS);
+ }
+ }
}

Back to the top