Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #26472

[Preferences]What is the use of .nodeExists?

From Daniel Moyne <daniel.moyne@free.fr>
Organization ossau
Date 2013-11-03 12:51 +0100
Newsgroups comp.lang.java.programmer
Subject [Preferences]What is the use of .nodeExists?
Message-ID <527638d5$0$3642$426a74cc@news.free.fr> (permalink)

Show all headers | View raw


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.

-- 
Daniel Moyne (Nulix)   Linux        \\|||//  Machine : x86_64
Distribution : Kubuntu 13.04 Raring / --- \ Ringtail ATI Radeon 4850
kernel : 3.8.0-13-generic-23       (' o-o ') KDE 4.10.1
----------------------------------oOO-(_)-OOo-------------------------------

Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

[Preferences]What is the use of .nodeExists? Daniel Moyne <daniel.moyne@free.fr> - 2013-11-03 12:51 +0100
  Re: [Preferences]What is the use of .nodeExists? Joerg Meier <joergmmeier@arcor.de> - 2013-11-03 13:18 +0100
    Re: [Preferences]What is the use of .nodeExists? Daniel Moyne <daniel.moyne@free.fr> - 2013-11-03 14:16 +0100

csiph-web