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
|
2003-02-21 Mikhail Khodjaiants
|
||||||
Implementing the 'Attach Source' editor.
|
Implementing the 'Attach Source' editor.
|
||||||
* plugin.properties
|
* plugin.properties
|
||||||
|
|
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue