1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 09:25:31 +02:00

Partial fix for PR 52155.

This commit is contained in:
Alain Magloire 2004-02-20 17:35:44 +00:00
parent 2c1e95c730
commit aa349fc2b3
2 changed files with 18 additions and 4 deletions

View file

@ -1,3 +1,9 @@
2004-02-20 Alain Magloire
Partial Fix for #52155, we simply catch the exception.
We do not worry about it too much since this code will
be rewritten part of catching up with Eclipse 3.0
* CDebugUIPlugin.java: shutdown()
2004-02-16 Mikhail Khodjaiants
Fix for bug 52135: Debugger should indicate which thread triggered breakpoint.
* CDTDebugModelPresentation.java

View file

@ -324,14 +324,22 @@ public class CDebugUIPlugin extends AbstractUIPlugin
public void shutdown() throws CoreException
{
DebugPlugin.getDefault().removeDebugEventListener( this );
IWorkbenchWindow ww = getActiveWorkbenchWindow();
if ( ww != null )
// TODO: PR 52155, this is big hammer approach, but it is ok for
// Since the code will be remove when we align ourselves
// with Eclipse-3.0
try
{
ww.getSelectionService().removeSelectionListener( IDebugUIConstants.ID_DEBUG_VIEW, this );
IWorkbenchWindow ww = getActiveWorkbenchWindow();
if ( ww != null )
{
ww.getSelectionService().removeSelectionListener( IDebugUIConstants.ID_DEBUG_VIEW, this );
}
} catch (Exception e) {
// Big hammer.
}
if ( fImageDescriptorRegistry != null )
{
fImageDescriptorRegistry.dispose();
fImageDescriptorRegistry.dispose();
}
CDebugCorePlugin.getDefault().setAsyncExecutor( null );
super.shutdown();