Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » PreferenceDialog stange "cache" behavior
PreferenceDialog stange "cache" behavior [message #720615] Tue, 30 August 2011 23:37
Marco Lopes is currently offline Marco LopesFriend
Messages: 56
Registered: September 2010
In my app i use a PreferenceManager, entirely created from scratch.

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

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 23:39]

Report message to a moderator

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

Current Time: Fri Apr 27 04:52:41 GMT 2018

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

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