Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » ProjectAnnotation not persisted?
ProjectAnnotation not persisted? [message #327783] Thu, 01 May 2008 17:42 Go to next message
Eclipse UserFriend
Originally posted by: koester.matthias.gmx.de

Hi,

I've added code folding to my editor as described in
http://www.eclipse.org/articles/Article-Folding-in-Eclipse-T ext-Editors/folding.html.
But when I change the folding of an edited file, close that file and
reopen it, I see the whole document without any folded text. I thought
that ProjectAnnotations are automatically persisted (although in their
constructur isPersitent is set to false...) and haven't seen any special
saving code in the JavaEditor. Has someone an idea what might be wrong
with my code?

Regards,
matthias
Re: ProjectAnnotation not persisted? [message #327838 is a reply to message #327783] Mon, 05 May 2008 16:06 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Matthias Köster wrote:
> Hi,
>
> I've added code folding to my editor as described in
> http://www.eclipse.org/articles/Article-Folding-in-Eclipse-T ext-Editors/folding.html.
> But when I change the folding of an edited file, close that file and
> reopen it, I see the whole document without any folded text. I thought
> that ProjectAnnotations are automatically persisted (although in their
> constructur isPersitent is set to false...) and haven't seen any
> special saving code in the JavaEditor. Has someone an idea what might
> be wrong with my code?
Nothing. They aren't persisted and the Java editor also doesn't persist
them.

Dani
>
> Regards,
> matthias
Re: ProjectAnnotation not persisted? [message #327897 is a reply to message #327838] Wed, 07 May 2008 18:56 Go to previous message
Eclipse UserFriend
Originally posted by: koester.matthias.gmx.de

Hi Dani,

Thx for the hint... I think I've unfolded imports in the Java editor,
closed them, closed the editor and re-opened the file... with the
default behaviour of initially folding import statements... Just not a
good test case for checking if the java editor persists the folding
information ;-)

Greetings,
Matthias

Daniel Megert schrieb:
> Matthias Köster wrote:
>> Hi,
>>
>> I've added code folding to my editor as described in
>> http://www.eclipse.org/articles/Article-Folding-in-Eclipse-T ext-Editors/folding.html.
>> But when I change the folding of an edited file, close that file and
>> reopen it, I see the whole document without any folded text. I thought
>> that ProjectAnnotations are automatically persisted (although in their
>> constructur isPersitent is set to false...) and haven't seen any
>> special saving code in the JavaEditor. Has someone an idea what might
>> be wrong with my code?
> Nothing. They aren't persisted and the Java editor also doesn't persist
> them.
>
> Dani
>>
>> Regards,
>> matthias
Previous Topic:Common Navigator view contents...
Next Topic:Running ant task within Eclipse
Goto Forum:
  


Current Time: Thu Aug 15 02:07:55 GMT 2024

Powered by FUDForum. Page generated in 0.04305 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top