D
Daniel Moyne
I am developing a module called "NamesPartitionsPlugin" with NetBeans. I get
module Preferences with :
myModulePreferences = NbPreferences.forModule(NamesPartitionsPlugin.class);
Each time I open a file I want to save and retrieve some data in preferences
associated with this file.
I do this to create a specific node.
myModulePreferences.node(myGedcomFile);
This will either create the node if it does not exists yet or initialize it
with existing data if it already exists.
I want to know in some cases if a particular node already exists. If I do :
Boolean flag=myModulePreferences.nodeExists(myGedcomName);
It returns always false until I do :
myModulePreferences.node(myGedcomFile);
Then here is ma question :
What is the use of nodeExists(myGedcomName) if you have to use it after node
creation and more generally how can I test whether I have already data
stored in Preferences associated with a particular file.
Thanks.
module Preferences with :
myModulePreferences = NbPreferences.forModule(NamesPartitionsPlugin.class);
Each time I open a file I want to save and retrieve some data in preferences
associated with this file.
I do this to create a specific node.
myModulePreferences.node(myGedcomFile);
This will either create the node if it does not exists yet or initialize it
with existing data if it already exists.
I want to know in some cases if a particular node already exists. If I do :
Boolean flag=myModulePreferences.nodeExists(myGedcomName);
It returns always false until I do :
myModulePreferences.node(myGedcomFile);
Then here is ma question :
What is the use of nodeExists(myGedcomName) if you have to use it after node
creation and more generally how can I test whether I have already data
stored in Preferences associated with a particular file.
Thanks.