DevFaqListenForSaveEvents

(Difference between revisions)
Line 1: Line 1:
-
__NOTOC__
 
__NOTOC__
__NOTOC__
===How can I be notified when a file is modified and saved??===
===How can I be notified when a file is modified and saved??===

Revision as of 15:51, 6 November 2009

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 DataObject for your FileObject using DataObject.find(). Or you can take the modified DataObjects and do dataObject.getPrimaryFile().

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo