Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 09:12 Go to next message
Marcel Austenfeld is currently offline Marcel AustenfeldFriend
Messages: 160
Registered: July 2009
Senior Member
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 11:01 Go to previous messageGo to next message
Greg Pugh is currently offline Greg PughFriend
Messages: 15
Registered: July 2009
Junior Member
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 13:11 Go to previous messageGo to next message
Marcel Austenfeld is currently offline Marcel AustenfeldFriend
Messages: 160
Registered: July 2009
Senior Member
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 13:23 Go to previous messageGo to next message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
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 14:45 Go to previous messageGo to next message
Marcel Austenfeld is currently offline Marcel AustenfeldFriend
Messages: 160
Registered: July 2009
Senior Member
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 08:38 Go to previous messageGo to next message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
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 08:54 Go to previous messageGo to next message
Marcel Austenfeld is currently offline Marcel AustenfeldFriend
Messages: 160
Registered: July 2009
Senior Member
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 09:13 Go to previous messageGo to next message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
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 14:27 Go to previous messageGo to next message
Marcel Austenfeld is currently offline Marcel AustenfeldFriend
Messages: 160
Registered: July 2009
Senior Member
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 13:58 Go to previous message
Willem Duminy is currently offline Willem DuminyFriend
Messages: 4
Registered: July 2009
Junior Member
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: Fri Mar 29 12:47:38 GMT 2024

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

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

Back to the top