Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » PreferenceDialog stange "cache" behavior
PreferenceDialog stange "cache" behavior [message #720615] Tue, 30 August 2011 19:37
Eclipse UserFriend
In my app i use a PreferenceManager, entirely created from scratch.

Then i open a preferencePage:
PreferenceDialog dialog=new PreferenceDialog(parentShell, manager);
dialog.create();
dialog.open();

I have 2 problems with this approach:

1) I cannot maintain a STATIC MANAGER throughout the app life-cycle. I need to create the Manager every time i create the dialogue, otherwise, even the tree isn't created. Creating a NEW Manager is a solution...

2) The PreferenceDialog somehow "seems to know about the last dialog"! The LAST page opened in the last dialog is known by the more recent dialog even before we open that page. This happens only with the last page opened, the others are fully created on-the-fly!

I know that when i use the ECLIPSE preferences, the dialog seems to "cache" all the pages that are opened, so the second time around they are ready to show...

But i'm intrigued because i'm creating a NEW PreferenceManager and PreferenceDialog !!!

Any ideas?

[Updated on: Tue, 30 August 2011 19:39] by Moderator

Previous Topic:How to update console title?
Next Topic:Misplaced view toolbar
Goto Forum:
  


Current Time: Sat Jul 05 02:55:24 EDT 2025

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

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

Back to the top