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:
parent
0421c796e9
commit
c274d249d0
2 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
2003-02-28 Mikhail Khodjaiants
|
||||
Check if page exists before adding a listener.
|
||||
* AbstractListenerActionDelegate.java
|
||||
|
||||
2003-02-21 Mikhail Khodjaiants
|
||||
Implementing the 'Attach Source' editor.
|
||||
* plugin.properties
|
||||
|
|
|
@ -147,9 +147,12 @@ public abstract class AbstractListenerActionDelegate extends AbstractDebugAction
|
|||
super.init(view);
|
||||
DebugPlugin.getDefault().addDebugEventListener(this);
|
||||
setWindow(view.getViewSite().getWorkbenchWindow());
|
||||
if ( getPage() != null )
|
||||
{
|
||||
getPage().addPartListener(this);
|
||||
getPage().getWorkbenchWindow().addPageListener(this);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @see IPageListener#pageActivated(IWorkbenchPage)
|
||||
|
|
Loading…
Add table
Reference in a new issue