Bug 491174 - Last stack entry in Debug view missing

We have (at least) two jobs started during the proxy initialization:
AbstractModelProxy.initialize() and JavaDebugTargetProxy.installed().
Both of them must complete before we can send the "suspended" event,
otherwise the "installed" event sent by proxy could override the
"suspended" event, which should be logically the last one.

ThreadEventHandler waits now for proxy initialization jobs before
sending "suspended" event.

To fix bug 491174, a second change in jdt.debug is needed (the job in
JavaDebugTargetProxy must also properly implement belongsTo()).

Change-Id: Ie9a966a14f0f7235612c6c50cd2a9c70a09dac35
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
2 files changed