[nbdev] Listening for file open/close/save from a module

  • From: "cmann" < >
  • To:
  • Subject: [nbdev] Listening for file open/close/save from a module
  • Date: Tue, 05 Feb 2013 15:52:08 -0500


Geertjan Wielenga wrote:
> So, you'd need to be able to write and restore code folds for hundreds, 
> or thousands, or more, files? I.e., let's say I have 20 projects open, 
> each with a few thousand Java source files. Should the fold state of 
> each of those files be stored and then restored to the file once it opens?

I'm not entirely sure at this point, first I wanted to get it working as a 
proof of concept before thinking about details like that but perhaps storing 
the information for thousands of files isn't as much as you would think or 
maybe there would be some sort of limit to the number of file states that 
could be stored. There are other editors/IDEs that have this feature so it 
can't be that big of a problem.


> Some switch within NetBeans IDE for persisting/not
> persisting code folds would be more helpful, I personally think, than
> creating an external plugin that does that.

I agree but I found two tickets on the Netbeans site that have been closed so 
it seems to me that somebody has already decided that his feature is not 
worth having.


> No, the starting point is to look for the APIs that do what you're
> planning to do -- before doing any coding at all.

That's exactly my problem and why I came asking here in the first place, I 
just couldn't find the material I was looking for and whatever tutorials and 
documentation there was I had trouble finding the relevant information.
I must have gone round in circles a hundred times in the API documentation 
going from EditorRegistry to TopComponent to NBEditorUtilities to FileObject 
and so eventually I gave up and asked here.






[nbdev] Re: Listening for file open/close/save from a module

(continued)

[nbdev] Re: Listening for file open/close/save from a module

Benno Markiewicz 02/03/2013

[nbdev] Listening for file open/close/save from a module

cmann 02/03/2013

[nbdev] Re: Listening for file open/close/save from a module

Geertjan Wielenga 02/03/2013

[nbdev] Re: Listening for file open/close/save from a module

Benno Markiewicz 02/03/2013

[nbdev] Listening for file open/close/save from a module

cmann 02/04/2013

[nbdev] Re: Listening for file open/close/save from a module

Geertjan Wielenga 02/04/2013

[nbdev] Listening for file open/close/save from a module

cmann 02/04/2013

[nbdev] Re: Listening for file open/close/save from a module

Geertjan Wielenga 02/05/2013

[nbdev] Re: Listening for file open/close/save from a module

Geertjan Wielenga 02/05/2013

[nbdev] Re: Listening for file open/close/save from a module

Geertjan Wielenga 02/05/2013

[nbdev] Listening for file open/close/save from a module

cmann 02/05/2013

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 21 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close