1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Check if page exists before adding a listener.

This commit is contained in:
Mikhail Khodjaiants 2003-02-28 21:31:06 +00:00
parent 0421c796e9
commit c274d249d0
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2003-02-28 Mikhail Khodjaiants
Check if page exists before adding a listener.
* AbstractListenerActionDelegate.java
2003-02-21 Mikhail Khodjaiants 2003-02-21 Mikhail Khodjaiants
Implementing the 'Attach Source' editor. Implementing the 'Attach Source' editor.
* plugin.properties * plugin.properties

View file

@ -147,8 +147,11 @@ public abstract class AbstractListenerActionDelegate extends AbstractDebugAction
super.init(view); super.init(view);
DebugPlugin.getDefault().addDebugEventListener(this); DebugPlugin.getDefault().addDebugEventListener(this);
setWindow(view.getViewSite().getWorkbenchWindow()); setWindow(view.getViewSite().getWorkbenchWindow());
getPage().addPartListener(this); if ( getPage() != null )
getPage().getWorkbenchWindow().addPageListener(this); {
getPage().addPartListener(this);
getPage().getWorkbenchWindow().addPageListener(this);
}
} }
/** /**