Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » persisting code folding state(best way to persist the state of folded annotations across restarts)
persisting code folding state [message #543287] Mon, 28 June 2010 20:05
denny is currently offline denny
Messages: 5
Registered: July 2009
Junior Member
I've got a long time user who's been asking, for years, for a way to persist the state of folded code in our editor.

I've tried random things over the years, but nothing has really felt right, or um, worked, for that matter.

I want to add this feature for my home-skillet. If I have to resort to stuffing stuff in hashmaps, or mementos, so be it, but I freaking *know* there's some elegant way of doing what I want to do.

I've tried all kinds of crazy stuff, but even tho I've gotten close (I think) it's all felt pretty nasty, compared to what I feel- no, know- must be lurking somewhere right in front of my face.

Any *real* Eclipse devs want to point my ass in the best direction to achieve this goal of persisted code folding annotation collapse state?

Would a silly little hashmap of annotations and their current collapse-state really be the best? If so, maybe load it up from my documentSetupParticipant, perhaps? Just seems like there is a better way already in here, somewhere.

Or maybe I can easily tie it to the IResource memento? That seems like a good spot, perhaps.

Any suggestions or hints or working code snippets would be appreciated.
Previous Topic:Galileo - Helios migration
Next Topic:Example-Plugins in Eclipse 3.6
Goto Forum:
  


Current Time: Wed Aug 27 09:20:28 EDT 2014

Powered by FUDForum. Page generated in 0.01564 seconds