Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » With double click on element...
With double click on element... [message #141865] Mon, 09 July 2007 16:44 Go to next message
Eclipse UserFriend
Hi all,
With double click on diagram element I open the new diagram. Is it possible
to make so, that child elements in the old diagram were not displayed in
new?

Thanks in advance,

Irina
Re: With double click on element... [message #141893 is a reply to message #141865] Tue, 10 July 2007 04:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Halimatou.Pouye-Diaw.thomson.net

Hi, Irina
Sorry for advance, I can't answer to your question.
I created a post relative to the double action action on element. I
implemented that with the OpenEditPolicy as described on the FAQ. But I
don't have any new diagram, and I don't know why.
Do you mind explaining how you did to implement that?

Thank you.

Best regards.

Lima.
Re: With double click on element... [message #141922 is a reply to message #141865] Tue, 10 July 2007 09:08 Go to previous message
Eclipse UserFriend
Hi Irina,

By default, the new diagram is initialized with the same underlying
element as the one the notational element being double-clicked has (and
therefore it will have the same child elements).
This is however controlled by the method getDiagramDomainElement() in
the generated OpenDiagramCommand. You may fine-tune this method manually
(or generate it differently with custom templates) to associate the
diagram you are creating with an arbitrary element.

Best regards,
Boris


Irina wrote:
> Hi all,
> With double click on diagram element I open the new diagram. Is it possible
> to make so, that child elements in the old diagram were not displayed in
> new?
>
> Thanks in advance,
>
> Irina
>
>
Previous Topic:Call a method if diagram is valid
Next Topic:Create a new view for an existing diagram
Goto Forum:
  


Current Time: Fri Jul 25 17:23:25 EDT 2025

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

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

Back to the top