Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Chaning properties don't make dirty
Chaning properties don't make dirty [message #168340] Tue, 15 February 2005 08:45 Go to next message
Roger Villars is currently offline Roger VillarsFriend
Messages: 57
Registered: July 2009
Member
Hi! I need a little hint again!

This isn't 100% GEF specific I know, sorry.

My model objects implement a few properties with IPropertySource. Most of
these properties don't
have any visual effect, like descriptions for example. Now, if I change a
description property,
my editor doesn't get dirty and I can't save. I have to move one of the
figures a bit to make
saving possible.

How can this be solved?
Re: Chaning properties don't make dirty [message #168403 is a reply to message #168340] Tue, 15 February 2005 19:54 Go to previous messageGo to next message
Sean Neeley is currently offline Sean NeeleyFriend
Messages: 22
Registered: July 2009
Junior Member
Maybe if you call firePropertyChange(PROP_DIRTY) in your IEditorPart, it
will become marked as dirty?

Roger Villars wrote:
> Hi! I need a little hint again!
>
> This isn't 100% GEF specific I know, sorry.
>
> My model objects implement a few properties with IPropertySource. Most of
> these properties don't
> have any visual effect, like descriptions for example. Now, if I change a
> description property,
> my editor doesn't get dirty and I can't save. I have to move one of the
> figures a bit to make
> saving possible.
>
> How can this be solved?
>
>
Re: Chaning properties don't make dirty [message #168420 is a reply to message #168340] Tue, 15 February 2005 23:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kevinlouisnospam.hotmail.com

Are you using the Command to make the changes? The CommandStack#isDirty
will handle it. If not, you have to override the EditPart$isDirty function.

"Roger Villars" <roger.villars@mimacom.ch> wrote in message
news:cuscim$u7l$1@www.eclipse.org...
> Hi! I need a little hint again!
>
> This isn't 100% GEF specific I know, sorry.
>
> My model objects implement a few properties with IPropertySource. Most of
> these properties don't
> have any visual effect, like descriptions for example. Now, if I change a
> description property,
> my editor doesn't get dirty and I can't save. I have to move one of the
> figures a bit to make
> saving possible.
>
> How can this be solved?
>
>
Re: Chaning properties don't make dirty [message #168434 is a reply to message #168420] Wed, 16 February 2005 00:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Lamont_Gilbert.rigidsoftware.com

Kevin wrote:
> Are you using the Command to make the changes? The CommandStack#isDirty
> will handle it. If not, you have to override the EditPart$isDirty function.
>
> "Roger Villars" <roger.villars@mimacom.ch> wrote in message
> news:cuscim$u7l$1@www.eclipse.org...
>
>>Hi! I need a little hint again!
>>
>>This isn't 100% GEF specific I know, sorry.
>>
>>My model objects implement a few properties with IPropertySource. Most of
>>these properties don't
>>have any visual effect, like descriptions for example. Now, if I change a
>>description property,
>>my editor doesn't get dirty and I can't save. I have to move one of the
>>figures a bit to make
>>saving possible.
>>
>>How can this be solved?
>>
>>
>
>
>

when i implemented IPropertySource it seems to automatically use the
stack somehow. So if he is having an issue, maybe he is not processing
the dirty event properly!?

CL
Re: Chaning properties don't make dirty [message #168442 is a reply to message #168340] Wed, 16 February 2005 04:42 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

GEF provides an undoable propertysheet entry. This entry creates commands
which dirty the command stack, and consequently the editor.

I think the method is GEFPlugin#createUndoablePropertySheetEntry() Search
for references to this method.

"Roger Villars" <roger.villars@mimacom.ch> escreveu na mensagem
news:cuscim$u7l$1@www.eclipse.org...
> Hi! I need a little hint again!
>
> This isn't 100% GEF specific I know, sorry.
>
> My model objects implement a few properties with IPropertySource. Most of
> these properties don't
> have any visual effect, like descriptions for example. Now, if I change a
> description property,
> my editor doesn't get dirty and I can't save. I have to move one of the
> figures a bit to make
> saving possible.
>
> How can this be solved?
>
Previous Topic:Alignment Retarget Actions
Next Topic:Snap to grid on creation?
Goto Forum:
  


Current Time: Thu Apr 25 01:44:41 GMT 2024

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

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

Back to the top