Hi,
use XMLDataObject.getDocument() to access the DOM. After modifying the DOM,
you can update the file like this:
final FileObject file = getPrimaryFile();
file.getFileSystem().runAtomicAction(() -> {
final FileLock l = file.lock();
try (final OutputStream
I have created a similar plugin for CSV files.
Please take a look
https://bitbucket.org/draganbjedov/netbeans-csv-editor/src/master/
Hope it helps.
нед, 17. јан 2021. у 23:13 Will Hartung је
написао/ла:
> I have a XMLMultiView from the generic New File Type wizard.
>
> I'm creating the GUI form
I have a XMLMultiView from the generic New File Type wizard.
I'm creating the GUI form for the XML file.
How do I keep the XML file up to date after I make changes in the GUI?
Do I need to create a Saveable and put it in the lookup to mark it as
"dirty", or will that happen automatically when th