mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 237468
Separate the two parts of GdbLaunch.initializeControl to do a cleaner initialization
This commit is contained in:
parent
e3c41f15c5
commit
5b5e8f55a2
2 changed files with 6 additions and 3 deletions
|
@ -74,9 +74,7 @@ public class GdbLaunch extends Launch
|
|||
|
||||
public DsfExecutor getDsfExecutor() { return fExecutor; }
|
||||
|
||||
@ConfinedToDsfExecutor("getExecutor")
|
||||
public void initializeControl()
|
||||
throws CoreException
|
||||
public void initialize()
|
||||
{
|
||||
Runnable initRunnable = new DsfRunnable() {
|
||||
public void run() {
|
||||
|
@ -96,7 +94,11 @@ public class GdbLaunch extends Launch
|
|||
} catch (ExecutionException e) {
|
||||
new Status(IStatus.ERROR, GdbPlugin.PLUGIN_ID, IDsfStatusConstants.INTERNAL_ERROR, "Error initializing launch", e); //$NON-NLS-1$
|
||||
}
|
||||
}
|
||||
|
||||
public void initializeControl()
|
||||
throws CoreException
|
||||
{
|
||||
// Create a memory retrieval and register it with the session
|
||||
try {
|
||||
fExecutor.submit( new Callable<Object>() {
|
||||
|
|
|
@ -199,6 +199,7 @@ public class GdbLaunchDelegate extends LaunchConfigurationDelegate
|
|||
// the source lookup adapter.
|
||||
|
||||
GdbLaunch launch = new GdbLaunch(configuration, mode, null);
|
||||
launch.initialize();
|
||||
launch.setSourceLocator(getSourceLocator(configuration, launch.getSession()));
|
||||
return launch;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue