|
|
Re: Chaning properties don't make dirty [message #168420 is a reply to message #168340] |
Tue, 15 February 2005 23:25 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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?
>
|
|
|
Powered by
FUDForum. Page generated in 0.03189 seconds