mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-29 03:45:35 +02:00
Use the 'asyncExec' method of the 'DebugPlugin' class.
This commit is contained in:
parent
56971cf3df
commit
7e268c08d5
5 changed files with 12 additions and 44 deletions
|
@ -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
|
2003-02-12 Mikhail Khodjaiants
|
||||||
The gdb-specific 'setAutoSolibMethod' method is removed from ICDISharedLibraryManager.
|
The gdb-specific 'setAutoSolibMethod' method is removed from ICDISharedLibraryManager.
|
||||||
* ICDISharedLibraryManager.java
|
* ICDISharedLibraryManager.java
|
||||||
|
|
|
@ -39,8 +39,6 @@ public class CDebugCorePlugin extends Plugin
|
||||||
|
|
||||||
private HashMap fDebugConfigurations;
|
private HashMap fDebugConfigurations;
|
||||||
|
|
||||||
private IAsyncExecutor fAsyncExecutor = null;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The constructor.
|
* The constructor.
|
||||||
*/
|
*/
|
||||||
|
@ -201,15 +199,9 @@ public class CDebugCorePlugin extends Plugin
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setAsyncExecutor( IAsyncExecutor executor )
|
|
||||||
{
|
|
||||||
fAsyncExecutor = executor;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void asyncExec( Runnable runnable )
|
public void asyncExec( Runnable runnable )
|
||||||
{
|
{
|
||||||
if ( fAsyncExecutor != null )
|
DebugPlugin.getDefault().asyncExec( runnable );
|
||||||
fAsyncExecutor.asyncExec( runnable );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 );
|
|
||||||
}
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
2003-02-13 Mikhail Khodjaiants
|
||||||
|
Use the 'asyncExec' method of the 'DebugPlugin' class.
|
||||||
|
* CDebugUIPlugin.java
|
||||||
|
|
||||||
2003-02-11 Mikhail Khodjaiants
|
2003-02-11 Mikhail Khodjaiants
|
||||||
The 'Load Symbole For All' action is added to the 'Shared Libraries' view
|
The 'Load Symbole For All' action is added to the 'Shared Libraries' view
|
||||||
* CDebugImages.java
|
* CDebugImages.java
|
||||||
|
|
|
@ -5,8 +5,6 @@ import java.util.Map;
|
||||||
import java.util.MissingResourceException;
|
import java.util.MissingResourceException;
|
||||||
import java.util.ResourceBundle;
|
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.ISwitchToFrame;
|
||||||
import org.eclipse.cdt.debug.core.model.ISwitchToThread;
|
import org.eclipse.cdt.debug.core.model.ISwitchToThread;
|
||||||
import org.eclipse.cdt.debug.core.sourcelookup.IDisassemblyStorage;
|
import org.eclipse.cdt.debug.core.sourcelookup.IDisassemblyStorage;
|
||||||
|
@ -60,8 +58,7 @@ import org.eclipse.ui.plugin.AbstractUIPlugin;
|
||||||
*/
|
*/
|
||||||
public class CDebugUIPlugin extends AbstractUIPlugin
|
public class CDebugUIPlugin extends AbstractUIPlugin
|
||||||
implements ISelectionListener,
|
implements ISelectionListener,
|
||||||
IDebugEventSetListener,
|
IDebugEventSetListener
|
||||||
IAsyncExecutor
|
|
||||||
{
|
{
|
||||||
//The shared instance.
|
//The shared instance.
|
||||||
private static CDebugUIPlugin plugin;
|
private static CDebugUIPlugin plugin;
|
||||||
|
@ -320,7 +317,6 @@ public class CDebugUIPlugin extends AbstractUIPlugin
|
||||||
{
|
{
|
||||||
fImageDescriptorRegistry.dispose();
|
fImageDescriptorRegistry.dispose();
|
||||||
}
|
}
|
||||||
CDebugCorePlugin.getDefault().setAsyncExecutor( null );
|
|
||||||
super.shutdown();
|
super.shutdown();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -335,7 +331,6 @@ public class CDebugUIPlugin extends AbstractUIPlugin
|
||||||
{
|
{
|
||||||
ww.getSelectionService().addSelectionListener( IDebugUIConstants.ID_DEBUG_VIEW, this );
|
ww.getSelectionService().addSelectionListener( IDebugUIConstants.ID_DEBUG_VIEW, this );
|
||||||
}
|
}
|
||||||
CDebugCorePlugin.getDefault().setAsyncExecutor( this );
|
|
||||||
DebugPlugin.getDefault().addDebugEventListener( this );
|
DebugPlugin.getDefault().addDebugEventListener( this );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -485,16 +480,4 @@ public class CDebugUIPlugin extends AbstractUIPlugin
|
||||||
fDisassemblyDocumentProvider = new DisassemblyDocumentProvider();
|
fDisassemblyDocumentProvider = new DisassemblyDocumentProvider();
|
||||||
return fDisassemblyDocumentProvider;
|
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 );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue