Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Enable "Always run in background" for Jobs as Default
Enable "Always run in background" for Jobs as Default [message #758425] Wed, 23 November 2011 04:12 Go to next message
Eclipse UserFriend
I would like to enable the "General" option "Always run in background" for jobs as the default for a fresh installed RCP application so that the user don't have to select this option in the preferences. How can i enable this for my application?

Any help is appreciated!
Re: Enable "Always run in background" for Jobs as Default [message #758715 is a reply to message #758425] Thu, 24 November 2011 06:01 Go to previous messageGo to next message
Eclipse UserFriend
On 23/11/2011 09:12, Marcel wrote:
> I would like to enable the "General" option "Always run in background" for jobs as the default for a fresh installed RCP application so that the user
> don't have to select this option in the preferences. How can i enable this for my application?
>
> Any help is appreciated!
>
I think putting

org.eclipse.ui/RUN_IN_BACKGROUND=true

in the plugin_customization.ini should work
Re: Enable "Always run in background" for Jobs as Default [message #758978 is a reply to message #758715] Fri, 25 November 2011 08:11 Go to previous messageGo to next message
Eclipse UserFriend
Thanks for the answer. I've enabled the plugin_customization.ini in my product but this file seems to be ignored. Any idea what could be wrong in my product configuration?
Re: Enable "Always run in background" for Jobs as Default [message #758983 is a reply to message #758978] Fri, 25 November 2011 08:23 Go to previous messageGo to next message
Eclipse UserFriend
On 2011-11-25 14:11, Marcel wrote:
> Thanks for the answer. I've enabled the plugin_customization.ini in my
> product but this file seems to be ignored. Any idea what could be wrong
> in my product configuration?

Have you:

a) added it to your build.properties
b) added a property

<property
name="preferenceCustomization"
value="plugin_customization.ini"/>

to your org.eclipse.core.runtime.products extension point?

HTH & Greetings from Bremen,

Daniel Krügler
Re: Enable &amp;quot;Always run in background&amp;quot; for Jobs as Default [message #759001 is a reply to message #758983] Fri, 25 November 2011 09:45 Go to previous messageGo to next message
Eclipse UserFriend
Hello Daniel,

yes everything seems to be configured fine.
Re: Enable &amp;amp;quot;Always run in background&amp;amp;quot; for Jobs as Default [message #759271 is a reply to message #759001] Mon, 28 November 2011 03:38 Go to previous messageGo to next message
Eclipse UserFriend
On 2011-11-25 15:45, Marcel wrote:
> Hello Daniel,
>
> yes everything seems to be configured fine.

Just to be sure: Is your plugin_customization.ini working but only the
RUN_IN_BACKGROUND is not recognized or is the plugin_customization.ini
not working at all?

Btw.: It seem that the required key should be:

org.eclipse.ui.workbench/RUN_IN_BACKGROUND

not

org.eclipse.ui/RUN_IN_BACKGROUND

as indicated by Greg.

HTH & Greetings from Bremen,

Daniel Krügler
Re: Enable &amp;amp;quot;Always run in background&amp;amp;quot; for Jobs as Default [message #759277 is a reply to message #759271] Mon, 28 November 2011 03:54 Go to previous messageGo to next message
Eclipse UserFriend
Hello Daniel,

thanks for the help. It seems that the plugin_customization.ini is not working at all.
Re: Enable &amp;amp;amp;quot;Always run in background&amp;amp;amp;quot; for Jobs as Default [message #759283 is a reply to message #759277] Mon, 28 November 2011 04:13 Go to previous messageGo to next message
Eclipse UserFriend
On 2011-11-28 09:54, Marcel wrote:
> Hello Daniel,
>
> thanks for the help. It seems that the plugin_customization.ini is not
> working at all.

A typical reason for this problem could be that your launch
configuration does not clear the workspace, therefore it will still use
the previous settings. Ensure that on tab "Main" you have selected

Clear

and marked "workspace" as well. In addition select tab "Configuration"
and ensure that

Clear the configuration area before launching

is selected as well.

HTH & Greetings from Bremen,

Daniel Krügler
Re: Enable &amp;amp;amp;quot;Always run in background&amp;amp;amp;quot; for Jobs as Default [message #759388 is a reply to message #759283] Mon, 28 November 2011 09:27 Go to previous messageGo to next message
Eclipse UserFriend
Hello Daniel,

thank you very much for your help.

After a few new tries i found the solution.

My mistake was that i've forgotten to set the value from your new suggestion.

org.eclipse.ui.workbench/RUN_IN_BACKGROUND (wrong!)
instead:
org.eclipse.ui.workbench/RUN_IN_BACKGROUND=true (correct!)
(arrrggg...... Mad )

Finally it works!
Re: Enable &amp;amp;amp;quot;Always run in background&amp;amp;amp;quot; for Jobs as Default [message #774736 is a reply to message #759388] Wed, 04 January 2012 08:58 Go to previous message
Eclipse UserFriend
It is an old topic, but it may be worth adding this note for those wanting to avoid the .ini file.
Add the following line to ApplicationWorkbenchWindowAdvisor.preWindowOpen
WorkbenchPlugin.getDefault().getPreferenceStore().setValue("RUN_IN_BACKGROUND", true);
Previous Topic:Dynamically create eclipse main menu item or global toolbar item
Next Topic:TreeViewer losing selection on collapse
Goto Forum:
  


Current Time: Sat Jul 12 23:24:39 EDT 2025

Powered by FUDForum. Page generated in 0.05384 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top