Eclipse progress bar Restore from background to foreground

Source: Internet
Author: User

Tag: Eclipse progress bar reverts to foreground run


Eclipse typically has a progress bar when running a long task, as follows:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/5A/60/wKiom1T6-UjzQ5UlAAGiCqBQVfE270.jpg "title=" Res_ Otherjobs.png "alt=" Wkiom1t6-ujzq5ulaagicqbqvfe270.jpg "/>

In the Progress bar Shown dialog box, clicking "Run in Background" will run the progress of this run, the current progress Bar dialog box is hidden, the next time you run again, or the previous station (Progress Bar dialog box) to run, if you select "Always Run in Background ", the operation will be transferred to the background, the future operation is also in the background. To restore the foreground run, you need to set the preferences to eclipse.

Select the menu bar window-->preferences-->general. On the right side of the preferences page, uncheck "Always Run in background". Such as:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/5A/60/wKiom1T6-2LgLk8DAAINQh3cPso407.jpg "title=" Qq20150307212109.png "alt=" Wkiom1t6-2lglk8daainqh3cpso407.jpg "/>


From the implementation point of view, Eclipse's long-term tasks are typically placed in a job, and the Setuser method must be called before the job is invoked to set whether the UI can be initialized by the user, that is, whether the progress Bar dialog box is displayed. If set to True then the display (or set Setsystem to False), false is not displayed. In the progress bar dialog selected "Run in Background", is actually to change the property from True to False, select "Always Run in Background" is actually the eclipse The ipreferenceconstants.run_in_background of the Workbench preferences is set to true. The value of the preference item is stored in ". Metadata" in the current workspace directory when the workspace is closed, and the workspace is re-initialized from the next time it is opened, directly from the directory.


PS: Restore a task from the background to the foreground, I have only known the implementation, but did not find how to set up in eclipse. Looking for a long time, a few days ago inadvertently found that the original looking for a long time of things unexpectedly in front of (enter the first page of the preferences first option). 650) this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0004.gif "alt=" J_0004.gif "/>


This article from "Winger" blog, declined reprint!

Eclipse progress bar Restore from background to foreground

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.