Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Volatile Modification Figure
Volatile Modification Figure [message #178272] Thu, 20 March 2008 09:21 Go to next message
Hugues Rérolle is currently offline Hugues RérolleFriend
Messages: 60
Registered: July 2009
Member
Hi all,

I modify programaticaly figures of a diagram by changing background
colors, this works fine.

But I need that my program has the follows behaviour:
1. these changes are not saved when the diagram is saved
2. these changes don't ask for save

Someone knows how to solve my problems?


Hugues Rérolle
Re: Volatile Modification Figure [message #178316 is a reply to message #178272] Thu, 20 March 2008 10:04 Go to previous messageGo to next message
Boris Blajer is currently offline Boris BlajerFriend
Messages: 217
Registered: July 2009
Senior Member
Hi Hugues,

Instead of changing the color of the IFigure directly, you should
execute
view.getStyle(NotationPackage.eINSTANCE.getFillStyle()).setF illColor(...);

Best regards,
Boris.

Hugues Rérolle wrote:
> Hi all,
>
> I modify programaticaly figures of a diagram by changing background
> colors, this works fine.
>
> But I need that my program has the follows behaviour:
> 1. these changes are not saved when the diagram is saved
> 2. these changes don't ask for save
>
> Someone knows how to solve my problems?
>
>
> Hugues Rérolle
>
>
Re: Volatile Modification Figure [message #178637 is a reply to message #178316] Fri, 21 March 2008 14:03 Go to previous messageGo to next message
Hugues Rérolle is currently offline Hugues RérolleFriend
Messages: 60
Registered: July 2009
Member
Thanks Boris,


I try your solution, but I didn't found the method "setFillColor" in
org.eclipse.gmf.runtime.notation.Style Class...

Did I miss something ?

Thanks again

Hugues


Boris Blajer a écrit :
> Hi Hugues,
>
> Instead of changing the color of the IFigure directly, you should
> execute
> view.getStyle(NotationPackage.eINSTANCE.getFillStyle()).setF illColor(...);
>
> Best regards,
> Boris.
>
> Hugues Rérolle wrote:
>> Hi all,
>>
>> I modify programaticaly figures of a diagram by changing background
>> colors, this works fine.
>>
>> But I need that my program has the follows behaviour:
>> 1. these changes are not saved when the diagram is saved
>> 2. these changes don't ask for save
>>
>> Someone knows how to solve my problems?
>>
>>
>> Hugues Rérolle
>>
>>
Re: Volatile Modification Figure [message #178665 is a reply to message #178637] Fri, 21 March 2008 14:29 Go to previous messageGo to next message
Boris Blajer is currently offline Boris BlajerFriend
Messages: 217
Registered: July 2009
Senior Member
Hi Hugues,

Oops, I meant
((FillStyle)view.getStyle(NotationPackage.eINSTANCE.getFillS tyle())).setFillColor(...).


Best regards,
Boris

Hugues Rérolle wrote:
> Thanks Boris,
>
>
> I try your solution, but I didn't found the method "setFillColor" in
> org.eclipse.gmf.runtime.notation.Style Class...
>
> Did I miss something ?
>
> Thanks again
>
> Hugues
>
>
> Boris Blajer a écrit :
>> Hi Hugues,
>>
>> Instead of changing the color of the IFigure directly, you should
>> execute
>> view.getStyle(NotationPackage.eINSTANCE.getFillStyle()).setF illColor(...);
>>
>>
>> Best regards,
>> Boris.
>>
>> Hugues Rérolle wrote:
>>> Hi all,
>>>
>>> I modify programaticaly figures of a diagram by changing background
>>> colors, this works fine.
>>>
>>> But I need that my program has the follows behaviour:
>>> 1. these changes are not saved when the diagram is saved
>>> 2. these changes don't ask for save
>>>
>>> Someone knows how to solve my problems?
>>>
>>>
>>> Hugues Rérolle
>>>
>>>
Re: Volatile Modification Figure [message #178688 is a reply to message #178665] Fri, 21 March 2008 22:16 Go to previous message
Hugues Rérolle is currently offline Hugues RérolleFriend
Messages: 60
Registered: July 2009
Member
Thanks! It's work very well!!!

Regards,

Hugues

Boris Blajer a écrit :
> Hi Hugues,
>
> Oops, I meant
> ((FillStyle)view.getStyle(NotationPackage.eINSTANCE.getFillS tyle())).setFillColor(...).
>
>
>
> Best regards,
> Boris
>
> Hugues Rérolle wrote:
>> Thanks Boris,
>>
>>
>> I try your solution, but I didn't found the method "setFillColor" in
>> org.eclipse.gmf.runtime.notation.Style Class...
>>
>> Did I miss something ?
>>
>> Thanks again
>>
>> Hugues
>>
>>
>> Boris Blajer a écrit :
>>> Hi Hugues,
>>>
>>> Instead of changing the color of the IFigure directly, you should
>>> execute
>>> view.getStyle(NotationPackage.eINSTANCE.getFillStyle()).setF illColor(...);
>>>
>>>
>>> Best regards,
>>> Boris.
>>>
>>> Hugues Rérolle wrote:
>>>> Hi all,
>>>>
>>>> I modify programaticaly figures of a diagram by changing background
>>>> colors, this works fine.
>>>>
>>>> But I need that my program has the follows behaviour:
>>>> 1. these changes are not saved when the diagram is saved
>>>> 2. these changes don't ask for save
>>>>
>>>> Someone knows how to solve my problems?
>>>>
>>>>
>>>> Hugues Rérolle
>>>>
>>>>
Previous Topic:How do I make a shape opaque?
Next Topic:port connection
Goto Forum:
  


Current Time: Fri Apr 19 14:20:19 GMT 2024

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

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

Back to the top