[platform-dev] How to perform some operation at the closing of file

  • From: "remya" < >
  • To:
  • Subject: [platform-dev] How to perform some operation at the closing of file
  • Date: Thu, 29 Nov 2012 00:50:07 -0500

Hi,

I opened a file in editor using following code.

        FileObject fob = FileUtil.toFileObject(file.getAbsoluteFile());
         DataObject dob = DataObject.find(fob);
                Openable oc = dob.getLookup().lookup(Openable.class);
                if (oc != null) {
                    oc.open();
                }
              Node  node = dob.getNodeDelegate();
    
I need to perform some operation at the closing of the file in editor. How 
can we understand that a file a closed in netbeans editor. 
Please help.






[platform-dev] How to perform some operation at the closing of file

remya 11/29/2012

[platform-dev] Re: How to perform some operation at the closing of file

Wade Chandler 11/29/2012

Project Features

Project Links

About this Project

Platform was started in November 2009, is owned by Antonin Nebuzelsky, and has 145 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20150626.29986a4). © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close