regarding GMF Commands [message #76382] |
Fri, 10 November 2006 00:44  |
Eclipse User |
|
|
|
Originally posted by: ravikanth.pramati.com
I have a graphical editor which has editparts listening to notifications,
when I close the editor is it possible for the edit parts to continue
listening to the model changes, as I make changes to the model from outside
the editor.
Pls provide thoughts and opinions!
|
|
|
|
Re: regarding GMF Commands [message #77924 is a reply to message #76557] |
Wed, 15 November 2006 11:48  |
Eclipse User |
|
|
|
Originally posted by: ravikanth.pramati.com
I have other editors working on the domain model elements outside of the
graphical editor.
A familiar example would be, using the project navigator to display the UML
classes(of a class diagram) synchronizing with that of the Graphical editor.
Use case:
create a class using the Graphical editor(this creates the notational and
the domain element for the class created). I then close my editor and delete
the class element using actions throught the project navigator, this would
end up deleting the domain model element associated with the class element,
but when the graphical editor is opened up the next time, it still displays
the figure since the notational figure still remain. If I were to receive
notifications to my editpart when the editor is closed I could have handled
the removal of the notational element from the model.
I hope that explanation helps. Please let me know if you have any idea as a
likely solution for this.
Thanks.
Ravi
"Cherie Revells" <crevells@ca.ibm.com> wrote in message
news:ej21va$srr$1@utils.eclipse.org...
> Hello Ravikanth,
>
> When the editor is closed, the viewer is destroyed and all the editparts.
>
> When the editor is reopened, on a canonical diagram or container, the
> editparts would be recreated based on the model elements at that point.
> The display of a particular editpart should also reflect the properties of
> the element at that point. What exactly are you trying to accomplish?
>
> Regards,
> Cherie
>
> Ravikanth wrote:
>> I have a graphical editor which has editparts listening to notifications,
>> when I close the editor is it possible for the edit parts to continue
>> listening to the model changes, as I make changes to the model from
>> outside the editor.
>>
>> Pls provide thoughts and opinions!
|
|
|
Powered by
FUDForum. Page generated in 0.04481 seconds