1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-30 21:55:31 +02:00

Use the 'asyncExec' method of the 'DebugPlugin' class.

This commit is contained in:
Mikhail Khodjaiants 2003-02-13 15:53:35 +00:00
parent 56971cf3df
commit 7e268c08d5
5 changed files with 12 additions and 44 deletions

View file

@ -1,3 +1,8 @@
2003-02-13 Mikhail Khodjaiants
Use the 'asyncExec' method of the 'DebugPlugin' class.
* IAsyncExecutor.java: removed
* CDebugCorePlugin.java
2003-02-12 Mikhail Khodjaiants
The gdb-specific 'setAutoSolibMethod' method is removed from ICDISharedLibraryManager.
* ICDISharedLibraryManager.java

View file

@ -39,8 +39,6 @@ public class CDebugCorePlugin extends Plugin
private HashMap fDebugConfigurations;
private IAsyncExecutor fAsyncExecutor = null;
/**
* The constructor.
*/
@ -201,15 +199,9 @@ public class CDebugCorePlugin extends Plugin
}
}
}
public void setAsyncExecutor( IAsyncExecutor executor )
{
fAsyncExecutor = executor;
}
public void asyncExec( Runnable runnable )
{
if ( fAsyncExecutor != null )
fAsyncExecutor.asyncExec( runnable );
DebugPlugin.getDefault().asyncExec( runnable );
}
}

View file

@ -1,16 +0,0 @@
/*
*(c) Copyright QNX Software Systems Ltd. 2002.
* All Rights Reserved.
*
*/
package org.eclipse.cdt.debug.core;
/**
* Enter type comment.
*
* @since: Jan 27, 2003
*/
public interface IAsyncExecutor
{
void asyncExec( Runnable runnable );
}

View file

@ -1,3 +1,7 @@
2003-02-13 Mikhail Khodjaiants
Use the 'asyncExec' method of the 'DebugPlugin' class.
* CDebugUIPlugin.java
2003-02-11 Mikhail Khodjaiants
The 'Load Symbole For All' action is added to the 'Shared Libraries' view
* CDebugImages.java

View file

@ -5,8 +5,6 @@ import java.util.Map;
import java.util.MissingResourceException;
import java.util.ResourceBundle;
import org.eclipse.cdt.debug.core.CDebugCorePlugin;
import org.eclipse.cdt.debug.core.IAsyncExecutor;
import org.eclipse.cdt.debug.core.model.ISwitchToFrame;
import org.eclipse.cdt.debug.core.model.ISwitchToThread;
import org.eclipse.cdt.debug.core.sourcelookup.IDisassemblyStorage;
@ -60,8 +58,7 @@ import org.eclipse.ui.plugin.AbstractUIPlugin;
*/
public class CDebugUIPlugin extends AbstractUIPlugin
implements ISelectionListener,
IDebugEventSetListener,
IAsyncExecutor
IDebugEventSetListener
{
//The shared instance.
private static CDebugUIPlugin plugin;
@ -320,7 +317,6 @@ public class CDebugUIPlugin extends AbstractUIPlugin
{
fImageDescriptorRegistry.dispose();
}
CDebugCorePlugin.getDefault().setAsyncExecutor( null );
super.shutdown();
}
@ -335,7 +331,6 @@ public class CDebugUIPlugin extends AbstractUIPlugin
{
ww.getSelectionService().addSelectionListener( IDebugUIConstants.ID_DEBUG_VIEW, this );
}
CDebugCorePlugin.getDefault().setAsyncExecutor( this );
DebugPlugin.getDefault().addDebugEventListener( this );
}
@ -485,16 +480,4 @@ public class CDebugUIPlugin extends AbstractUIPlugin
fDisassemblyDocumentProvider = new DisassemblyDocumentProvider();
return fDisassemblyDocumentProvider;
}
/* (non-Javadoc)
* @see org.eclipse.cdt.debug.core.IAsyncExecutor#asyncExec(Runnable)
*/
public void asyncExec( Runnable runnable )
{
Display display = getStandardDisplay();
if ( display != null )
{
display.asyncExec( runnable );
}
}
}