Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » links are not deleted
links are not deleted [message #487289] Tue, 22 September 2009 16:28 Go to next message
Patrick Tessier is currently offline Patrick TessierFriend
Messages: 341
Registered: July 2009
Location: Paris Saclay, France
Senior Member
Hi,

When I suppress a node incoming links are deleted.
When I flow it into the debugger the delete command does not remove the
link. Do you know why?

Thanks,
Patrick
Re: links are not deleted [message #487302 is a reply to message #487289] Tue, 22 September 2009 17:36 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 31
Registered: September 2009
Member
Might be the NotationViewDependentsAdvice which is registered by the org.eclipse.gmf.runtime.diagram.core plug-in as follows:

     <extension
           point="org.eclipse.gmf.runtime.emf.type.core.elementTypes">
        <metamodel nsURI="http://www.eclipse.org/emf/2002/Ecore">
           <adviceBinding
                 class="org.eclipse.gmf.runtime.diagram.core.edithelpers.NotationViewDependentsAdvice"
                 id="org.eclipse.gmf.runtime.diagram.core.advice.notationDepdendents"
                 inheritance="none"
                 typeId="*"/>
           <adviceBinding
                 class="org.eclipse.gmf.runtime.diagram.core.edithelpers.RemoveBookmarksAdvice"
                 id="org.eclipse.gmf.runtime.diagram.core.advice.removeBookmarks"
                 inheritance="none"
                 typeId="*"/>
        </metamodel>
     </extension>
     
     <extension point="org.eclipse.gmf.runtime.emf.type.core.elementTypeBindings">
        <binding context="org.eclipse.gmf.runtime.emf.type.core.defaultContext">
           <elementType ref="org.eclipse.gmf.runtime.diagram.core.advice.notationDepdendents"/>
           <elementType ref="org.eclipse.gmf.runtime.diagram.core.advice.removeBookmarks"/>
        </binding>
     </extension>


Due to the binding for the default context this advice is consulted for (nearly) every diagram element (i.e. diagram, nodes and edges).

Just try to set a breakpoint in NotationViewDependentsAdvice to identify whether it might be the source of your concern.


Best regards,

sas
Re: links are not deleted [message #487421 is a reply to message #487302] Wed, 23 September 2009 08:14 Go to previous messageGo to next message
Patrick Tessier is currently offline Patrick TessierFriend
Messages: 341
Registered: July 2009
Location: Paris Saclay, France
Senior Member
It does not run.

the class NotationViewDependentsAdvice is never called.
<news.sascha.gessler@googlemail.com> a
Re: links are not deleted [message #487455 is a reply to message #487421] Wed, 23 September 2009 10:05 Go to previous message
Patrick Tessier is currently offline Patrick TessierFriend
Messages: 341
Registered: July 2009
Location: Paris Saclay, France
Senior Member
I have found may mistake, a bad extension was put in other plugin that
interfers this fucntionality.

Thanks for your help.

"Patrick Tessier" <Patrick.Tessier@cea.fr> a
Previous Topic:Get EditPart under mouse location
Next Topic:Links disappear on Eclipse restart
Goto Forum:
  


Current Time: Thu Apr 25 09:51:37 GMT 2024

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

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

Back to the top