Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-debug-dev] DebugUITools.launchInBackground launches in foreground (under some circumstances) ?

Andrew,

The DebugUITools class is the part of the Eclipse Debug platform. I would
suggest to post this message to the platform-debug-dev@xxxxxxxxxxx mailing
list.

Mikhail Khodjaiants
QNX Software Systems

----- Original Message ----- 
From: "Andrew Ferguson" <Andrew.Ferguson@xxxxxxx>
To: <cdt-debug-dev@xxxxxxxxxxx>
Sent: Friday, January 20, 2006 10:43 AM
Subject: [cdt-debug-dev] DebugUITools.launchInBackground launches in
foreground (under some circumstances) ?


> hi,
>
>  I'm investigating why under some circumstances
> DebugUITools.launchInBackground produces the same behaviour as launching
> in the foreground. I've found that if you invoke
>
>     DebugUITools.saveAndBuild();
>
> and shortly afterward
>
>     DebugUITools.launch(ILaunchConfiguration config, String mode);
>
> and the ILaunchConfiguration instance has the appropriate attribute set
> to instruct the framework to launch in background then
> DebugUITools.launchInBackground is invoked.
>
> However, because saveAndBuild() may have initiated a build job that has
> not completed, launchInBackground contains code to open a dialog (in the
> foreground) while the build completes. The dialog is attached to an
> eclipse Job which not only builds, but also launches. This means that
> the launch occurs in the foreground.
>
> To me, it would make more sense if the dialog closed after the build
> completed and allowed the launch to occur in the background. Or maybe
> both the build and launch should occur in the background even though the
> build is blocking the launch?
>
> thanks,
> Andrew
> ps. this was found as a scenario under which the fix I have for
>     https://bugs.eclipse.org/bugs/show_bug.cgi?id=124519
> is overridden and launching still occurs in the foreground
>
>
>
> -- IMPORTANT NOTICE: The contents of this email and any attachments are
> confidential and may also be privileged. If you are not the intended
> recipient, please notify the sender immediately and do not disclose the
> contents to any other person, use it for any purpose, or store or copy
> the information in any medium.  Thank you.
>
>



Back to the top