Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjszursze2001-05-22 14:50:39 -0400
committerjszursze2001-05-22 14:50:39 -0400
commitb192e342de681daeda8905e72272cad3aee3e2f4 (patch)
tree694d19b9677a82ddf4d0fa107ae33cc68f9239bc
parent44dfab8222971054671b12a38b437482f86b6b4c (diff)
downloadeclipse.platform.debug-b192e342de681daeda8905e72272cad3aee3e2f4.tar.gz
eclipse.platform.debug-b192e342de681daeda8905e72272cad3aee3e2f4.tar.xz
eclipse.platform.debug-b192e342de681daeda8905e72272cad3aee3e2f4.zip
1GDHD8F
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/ShowQualifiedAction.java11
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/ShowTypesAction.java13
2 files changed, 13 insertions, 11 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/ShowQualifiedAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/ShowQualifiedAction.java
index 1581f628c..36cc31a6a 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/ShowQualifiedAction.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/ShowQualifiedAction.java
@@ -6,10 +6,7 @@ package org.eclipse.debug.internal.ui;
* (c) Copyright IBM Corp 2000
*/
-import org.eclipse.debug.ui.IDebugModelPresentation;
-import org.eclipse.jface.action.Action;
-import org.eclipse.jface.viewers.ILabelProvider;
-import org.eclipse.jface.viewers.StructuredViewer;
+import org.eclipse.debug.ui.IDebugModelPresentation; import org.eclipse.jface.action.Action; import org.eclipse.jface.viewers.ILabelProvider; import org.eclipse.jface.viewers.StructuredViewer; import org.eclipse.swt.custom.BusyIndicator;
/**
* An action that toggles the state of its viewer to
@@ -41,7 +38,11 @@ public class ShowQualifiedAction extends Action {
if (labelProvider instanceof IDebugModelPresentation) {
IDebugModelPresentation debugLabelProvider= (IDebugModelPresentation)labelProvider;
debugLabelProvider.setAttribute(IDebugModelPresentation.DISPLAY_QUALIFIED_NAMES, (on ? Boolean.TRUE : Boolean.FALSE));
- fViewer.refresh();
+ BusyIndicator.showWhile(fViewer.getControl().getDisplay(), new Runnable() {
+ public void run() {
+ fViewer.refresh();
+ }
+ });
}
setToolTipText(on ? DebugUIUtils.getResourceString(HIDE) : DebugUIUtils.getResourceString(SHOW));
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/ShowTypesAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/ShowTypesAction.java
index ce8dc8103..0f6445597 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/ShowTypesAction.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/ShowTypesAction.java
@@ -7,10 +7,7 @@ package org.eclipse.debug.internal.ui;
* (c) Copyright IBM Corp 2000
*/
-import org.eclipse.debug.ui.IDebugModelPresentation;
-import org.eclipse.jface.action.Action;
-import org.eclipse.jface.viewers.ILabelProvider;
-import org.eclipse.jface.viewers.StructuredViewer;
+import org.eclipse.debug.ui.IDebugModelPresentation; import org.eclipse.jface.action.Action; import org.eclipse.jface.viewers.ILabelProvider; import org.eclipse.jface.viewers.StructuredViewer; import org.eclipse.swt.custom.BusyIndicator;
/**
* An action that toggles the state of a viewer to
@@ -43,8 +40,12 @@ public class ShowTypesAction extends Action {
ILabelProvider labelProvider= (ILabelProvider)fViewer.getLabelProvider();
if (labelProvider instanceof IDebugModelPresentation) {
IDebugModelPresentation debugLabelProvider= (IDebugModelPresentation)labelProvider;
- debugLabelProvider.setAttribute(IDebugModelPresentation.DISPLAY_VARIABLE_TYPE_NAMES, (on ? Boolean.TRUE : Boolean.FALSE));
- fViewer.refresh();
+ debugLabelProvider.setAttribute(IDebugModelPresentation.DISPLAY_VARIABLE_TYPE_NAMES, (on ? Boolean.TRUE : Boolean.FALSE));
+ BusyIndicator.showWhile(fViewer.getControl().getDisplay(), new Runnable() {
+ public void run() {
+ fViewer.refresh();
+ }
+ });
}
setToolTipText(on ? DebugUIUtils.getResourceString(HIDE) : DebugUIUtils.getResourceString(SHOW));
}

Back to the top