DevFaqListenForSaveEvents

Revision as of 21:31, 4 November 2009 by Admin (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)

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