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

  • Home
  • SEARCH
  • 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 8116855
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T03:57:42+00:00 2026-06-06T03:57:42+00:00

In my Eclipse 3.7 RCP Application I was getting the PreferenceStore as following: Activator.getDefault().getPreferenceStore()

  • 0

In my Eclipse 3.7 RCP Application I was getting the PreferenceStore as following:
Activator.getDefault().getPreferenceStore() which returns an IPreferenceStore.
Here the Activator’s own preference storage is used.

Now I would like to use use an Instance of ScopedPreferenceStore which is an IPreferenceStore either.
Now the preference storage-node musst be set explicitely, by passing a plugin-id as a qualifier parameter in the constructor ScopedPreferenceStore(IScopeContext context, String qualifier).

Example:
ScopedPreferenceStore(ConfigurationScope.INSTANCE, "com.example.myplugin.id")

Question:
How can I get Activator’s own preference storage qualifier? With other words, how can i create a ScopedPreferenceStore which stores the preferences in Activator’s own preference storage?

  • 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-06-06T03:57:45+00:00Added an answer on June 6, 2026 at 3:57 am

    If you want to get the equivalent preference store for your bundle without accessing the Activator itself, you would use the same pattern you listed:

    preferenceStore = new ScopedPreferenceStore(InstanceScope.INSTANCE, "your.bundle.id");
    

    EDIT: Finding your bundle id

    When eclipse auto-generates your bundle activator, it creates a static field with the bundle id. But if you don’t have an activator, you can still retrieve your bundle id. You can use FrameworkUtil to get the Bundle object from any one of your classes.

    import org.osgi.framework.Bundle;
    import org.osgi.framework.FrameworkUtil;
    
    final Bundle bundle = FrameworkUtil.getBundle(PrintIdHandler.class);
    System.out.println(bundle.getSymbolicName());
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an Eclipse RCP based Application, in which I have a menu of
I develop an Eclipse RCP application which makes heavy use of OSGi bundles which
I have an Eclipse RCP application which allows the user to open multiple windows.
I am writing an Eclipse RCP application in which multiple threads will update the
I have an Eclipse RCP application with own editor. Class editor extends from org.eclipse.ui.texteditor.AbstractTextEditor
I have an Eclipse RCP application which uses some bindings from org.eclipse.ui.defaultAcceleratorConfiguration in addition
I'm working on a Eclipse RCP Application. In a class which extends MultiPageEditorPart, I'm
I know the following libraries for drawing charts in an SWT/Eclipse RCP application: Eclipse
I have an Eclipse RCP application which does some time consuming things in the
On an Eclipse RCP application, I'm building an Editor in which some fields are

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.