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 7537945
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T06:59:04+00:00 2026-05-30T06:59:04+00:00

Background I am working on a plugin for uDig, a project build on Eclipse

  • 0

Background

I am working on a plugin for uDig, a project build on Eclipse RCP. My plugin contains a table that gets populated with data from the Workbench selection. The table data can be grouped, sorted and filtered by the user. When the workbench selection changes the group, sort and filter information is reset and the new selection data loaded into the table.

Question

How do I save values to he workbench so I can access them later?

When the workbench selection gets changed I wish to save the group, sort and filter state out to the Workbench so that if the workbench selection ever changes back to the saved selection I can restore the state.

Research

I have looked at IViewPart.saveState(IMemento memento) but get the feeling this is only useful when you are adding and removing a view.

I have also looked at using preferences but feel this is an incorrect usage of this resource.

IEclipsePreferences node = InstanceScope.INSTANCE.getNode(PluginUI.PLUGIN_ID);
node.put(key, value);

Finally

I am some what new to Eclipse RCP and may be attacking this problem the wrong way. If there is a better way to save and load this information please feel free to share.

  • 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-30T06:59:05+00:00Added an answer on May 30, 2026 at 6:59 am

    From your description, it sounds like you have a view with the table. The text book way to save state for a view, is via IMemento. You can see the code to use this interface in this presentation. As an alternative, you can also use the IPreferenceStore.

    You usually use preferences when the state has a global scope and memento when they are specific to a view.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Background: I have a small problem with Eclipse. I'm working on a workbench plugin
Background: working a user q&a site where users logged,etc. What user/visitor data should be
Background: Trevor was working on a test project solely for the purpose of trying
I have a jquery plugin that i'm working with for a website and I
I'm working on a lightbox style javascript plugin that pops up an image with
A little background I'm working on an .net application that's uses plugins heavily, the
Im working in eclipse with bb plugin and the problem is when i click
I am adding this simple plugin that I have working in a static html
Background : In the current project I am working on, I have created a
So I have working code that animates a BG image via a plugin. This

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.