Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Dirty flag on diagram editor
Dirty flag on diagram editor [message #636384] Sun, 31 October 2010 22:35 Go to next message
Tijs Rademakers is currently offline Tijs RademakersFriend
Messages: 9
Registered: August 2010
Junior Member
Hi,

I've implemented an AbstractCustomFeature that I use inside the context menu of the editor. It works fine, but even when I do nothing inside the execute method the diagram is always set to be dirty, so an asterisk appears at the title bar of the editor and the editor must be saved before it disappears. Is there any way that I can prevent the editor diagram to be flagged dirty or can I hook into a listener that for example saves the editor diagram automatically?

Best regards,

Tijs

[Updated on: Sun, 31 October 2010 22:35]

Report message to a moderator

Re: Dirty flag on diagram editor [message #636612 is a reply to message #636384] Tue, 02 November 2010 08:53 Go to previous messageGo to next message
Tim Kaiser is currently offline Tim KaiserFriend
Messages: 118
Registered: July 2009
Senior Member
Hi,

there is already a bug report regarding that issue:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=327756

The idea is that you overwrite hasDoneChanges
in your feature and the framework would consider this information
for marking the editor dirty or not once the above bug is fixed.

Best regards, Tim
Re: Dirty flag on diagram editor [message #636723 is a reply to message #636612] Tue, 02 November 2010 15:02 Go to previous messageGo to next message
Tijs Rademakers is currently offline Tijs RademakersFriend
Messages: 9
Registered: August 2010
Junior Member
Hi Tim,

Thanks for the quick response. Good to know it's a bug Wink I hope it will be fixed soon!

Best regards,

Tijs
Re: Dirty flag on diagram editor [message #638445 is a reply to message #636723] Thu, 11 November 2010 10:27 Go to previous messageGo to next message
Tim Kaiser is currently offline Tim KaiserFriend
Messages: 118
Registered: July 2009
Senior Member
It is fixed:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=327756

Best, Tim

"Tijs Rademakers" <tijs.rademakers@gmail.com> wrote in message
news:iap8vo$b0e$1@news.eclipse.org...
> Hi Tim,
>
> Thanks for the quick response. Good to know it's a bug ;) I hope it will
> be fixed soon!
>
> Best regards,
>
> Tijs
Re: Dirty flag on diagram editor [message #638446 is a reply to message #638445] Thu, 11 November 2010 10:35 Go to previous messageGo to next message
Tijs Rademakers is currently offline Tijs RademakersFriend
Messages: 9
Registered: August 2010
Junior Member
Thanks!

Best regards,

Tijs
Re: Dirty flag on diagram editor [message #638519 is a reply to message #638446] Thu, 11 November 2010 14:51 Go to previous message
Henrik Rentz-Reichert is currently offline Henrik Rentz-ReichertFriend
Messages: 261
Registered: July 2009
Senior Member
also thanks,
Henrik

Am 11.11.2010 11:35, schrieb Tijs Rademakers:
> Thanks!
>
> Best regards,
>
> Tijs
Previous Topic:Respect grid when creating element
Next Topic:Custom tooltips
Goto Forum:
  


Current Time: Thu Sep 26 04:44:12 GMT 2024

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

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

Back to the top