|PreferenceDialog stange "cache" behavior [message #720615]
||Tue, 30 August 2011 19:37
| Marco Lopes
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 !!!
[Updated on: Tue, 30 August 2011 19:39]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01780 seconds