mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
Bug 344739 - RejectedExecutionException when terminating a PDA launch
Change-Id: I28cdfcd9aef6c7ece39c29b82459825698dc71bc Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com> Reviewed-on: https://git.eclipse.org/r/29488
This commit is contained in:
parent
875e21efb0
commit
bb3fd559c9
2 changed files with 9 additions and 1 deletions
|
@ -48,6 +48,7 @@ public class PDAAdapterFactory implements IAdapterFactory
|
||||||
if (session == null) return null;
|
if (session == null) return null;
|
||||||
|
|
||||||
SessionAdapterSet adapterSet = PDAUIPlugin.getDefault().getAdapterSet(launch);
|
SessionAdapterSet adapterSet = PDAUIPlugin.getDefault().getAdapterSet(launch);
|
||||||
|
if (adapterSet == null) return null;
|
||||||
|
|
||||||
// Returns the adapter type for the launch object.
|
// Returns the adapter type for the launch object.
|
||||||
if (adapterType.equals(IElementContentProvider.class)) return adapterSet.fViewModelAdapter;
|
if (adapterType.equals(IElementContentProvider.class)) return adapterSet.fViewModelAdapter;
|
||||||
|
|
|
@ -245,7 +245,6 @@ implements ITerminate
|
||||||
DsfSession.endSession(fSession);
|
DsfSession.endSession(fSession);
|
||||||
// endSession takes a full dispatch to distribute the
|
// endSession takes a full dispatch to distribute the
|
||||||
// session-ended event, finish step only after the dispatch.
|
// session-ended event, finish step only after the dispatch.
|
||||||
fExecutor.shutdown();
|
|
||||||
fireTerminate();
|
fireTerminate();
|
||||||
|
|
||||||
rm.setStatus(getStatus());
|
rm.setStatus(getStatus());
|
||||||
|
@ -262,4 +261,12 @@ implements ITerminate
|
||||||
Platform.getAdapterManager().loadAdapter(this, adapter.getName());
|
Platform.getAdapterManager().loadAdapter(this, adapter.getName());
|
||||||
return super.getAdapter(adapter);
|
return super.getAdapter(adapter);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void launchRemoved(ILaunch launch) {
|
||||||
|
if (this.equals(launch)) {
|
||||||
|
fExecutor.shutdown();
|
||||||
|
}
|
||||||
|
super.launchRemoved(launch);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue