1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 09:25:31 +02:00

Set debug target on creation.

This commit is contained in:
Mikhail Khodjaiants 2002-09-18 20:10:30 +00:00
parent 26fc07b6cf
commit 20c3795a65

View file

@ -87,6 +87,16 @@ public class AddExpressionActionDelegate implements IWorkbenchWindowActionDelega
}
window.getPartService().addPartListener( this );
window.getSelectionService().addSelectionListener( IDebugUIConstants.ID_DEBUG_VIEW, this );
IAdaptable context = DebugUITools.getDebugContext();
if ( context != null && context instanceof IDebugElement )
{
IDebugTarget target = ((IDebugElement)context).getDebugTarget();
if ( target != null && target instanceof ICExpressionEvaluator )
{
setDebugTarget( target );
}
}
update();
}