diff options
author | Darin Swanson | 2001-05-30 11:26:11 +0000 |
---|---|---|
committer | Darin Swanson | 2001-05-30 11:26:11 +0000 |
commit | da040c0336652d8e8bc898c4e72436a051ae104b (patch) | |
tree | 71b7db08eeb3d54d3a395692b7dfbf241ed0f930 | |
parent | 7d71fdfeb70dbc47924e6fc9b34c9c10e6ae65de (diff) | |
download | eclipse.platform.debug-da040c0336652d8e8bc898c4e72436a051ae104b.tar.gz eclipse.platform.debug-da040c0336652d8e8bc898c4e72436a051ae104b.tar.xz eclipse.platform.debug-da040c0336652d8e8bc898c4e72436a051ae104b.zip |
*** empty log message ***
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugUIPlugin.java | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugUIPlugin.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugUIPlugin.java index adfa05ec2..b1cbadbf3 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugUIPlugin.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugUIPlugin.java @@ -247,11 +247,13 @@ public class DebugUIPlugin extends AbstractUIPlugin implements ISelectionChanged if (debugPart != null) {
final LaunchesView dp= debugPart;
Display display= getDisplay();
+ if (display != null) {
display.asyncExec(new Runnable() {
public void run() {
dp.autoExpand(source);
}
});
+ }
}
}
@@ -267,13 +269,16 @@ public class DebugUIPlugin extends AbstractUIPlugin implements ISelectionChanged * first element is a window, the second is a page
*/
protected Object[] findDebugPresentation(final Object source, String mode, String layoutId, boolean suspendTriggered) {
+ Display display= getDisplay();
+ if (display == null) {
+ return null;
+ }
IWorkbenchWindow[] windows= getWorkbench().getWorkbenchWindows();
IWorkbenchWindow activeWindow= getActiveWorkbenchWindow();
int i;
if (suspendTriggered) {
final LaunchesView part= findDebugPart(activeWindow, mode);
if (part != null) {
- Display display= getDisplay();
display.asyncExec(new Runnable() {
public void run() {
part.autoExpand(source);
@@ -286,7 +291,6 @@ public class DebugUIPlugin extends AbstractUIPlugin implements ISelectionChanged IWorkbenchWindow window= windows[i];
final LaunchesView lPart= findDebugPart(window, mode);
if (lPart != null) {
- Display display= getDisplay();
display.asyncExec(new Runnable() {
public void run() {
lPart.autoExpand(source);
@@ -1105,12 +1109,14 @@ public static Object createExtension(final IConfigurationElement element, final */
public void removeEventFilter(final IDebugUIEventFilter filter) {
Display display= getDisplay();
- Runnable runnable = new Runnable() {
- public void run() {
- fEventFilters.remove(filter);
- }
- };
- display.asyncExec(runnable);
+ if (display != null) {
+ Runnable runnable = new Runnable() {
+ public void run() {
+ fEventFilters.remove(filter);
+ }
+ };
+ display.asyncExec(runnable);
+ }
}
/**
|