Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3678244
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T03:19:04+00:00 2026-05-19T03:19:04+00:00

I’m trying to build an Eclipse RCP application, and in the process, we’re trying

  • 0

I’m trying to build an Eclipse RCP application, and in the process, we’re trying to set the application to automatically update. We’re trying to have it automatically set the right preferences in the Preferences -> Install/Update -> Automatic Updates page.

I’ve set all of the preferences I want in the plugin_customization.ini file for our .product (such as org.eclipse.equinox.p2.ui.sdk.scheduler/download=true), and almost all of them work. However, one preference seems to not get set automatically: this is the org.eclipse.equinox.p2.ui.sdk.scheduler/enabled preference (the one referred to by the “Automatically find new updates and notify me” checkbox on the AutomaticUpdatesPreferencePage. Digging into the source code, I understand why it doesn’t set it correctly, but I’m not sure how to get around it.

Here’s essentially why it doesn’t work: In the last line of the AutomaticUpdatePlugin.start method, it calls

PreferenceInitializer.migratePreferences();

As it’s the start method for the plugin, this occurs before any of the preferences are read from the plugin_customization.ini. migratePreferences tries to migrate this preference, which was in a different place in 3.4 and 3.3. Inside AutomaticUpdatePlugin, there’s a hidden “migrated34Prefs” preference which checks to see if it’s performed this migration: this migration sets the value of the enabled preference to false, so if I could somehow stop it from performing this migration (since I know there’s going to be no migration from 3.3 or 3.4, as we’re just built on top of 3.5), everything would work fine. The default value is set correctly via the plugin_customization.ini, but the actual value is still false (i.e. if I hit restore defaults on that preference page after opening the RCP the first time, the box goes from unchecked to checked).

Because this all occurs in the start method, I can’t simply set the value of migrated34Prefs to true in the plugin_customization, because that won’t even be read in until after the migration has already occurred. I know what the problem is, but I can’t quite see the last step to make it so that this will be enabled by default. Is there something else I can set, or some other workaround that I haven’t been able to find?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T03:19:05+00:00Added an answer on May 19, 2026 at 3:19 am

    A workaround for this is to access the AutomaticUpdatePlugin’s preferences directly from your own plugin, for example in a preference initializer:

    Preferences node = new DefaultScope().getNode(AutomaticUpdatePlugin.PLUGIN_ID);
    node.putBoolean(PreferenceConstants.PREF_AUTO_UPDATE_ENABLED, true);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to loop through a bunch of documents I have to put
I have a bunch of posts stored in text files formatted in yaml/textile (from
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I have some data like this: 1 2 3 4 5 9 2 6
I'm making a simple page using Google Maps API 3. My first. One marker

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.