|
How can I be notified when a file is modified and saved |
|
|
The DataObject.Registry in LoadersAPI gives you a set of modified DataObjects. You can also add a listener and be notified when the set of modified objects changes.
As this operates on DataObjects you will first need to get a DataObect for your FileObject using DataObject.find(). Or you can take the modified DataObjects and do dataObject.getPrimaryFile().
Source: NetBeans FAQ
Related Tips
|
Page 1 of 0 ( 0 comments )
You can share your information about this topic using the form below!
Please do not post your questions with this form! Thanks.