Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Double connection
Double connection [message #169651] Thu, 24 January 2008 06:05 Go to next message
Eclipse UserFriend
Originally posted by: andia.maleki.gmail.com

Hi,
i would like to know, how it is possible to create a connection (by user)
and at the same time create another connection (programaticly)with
opposite direction. i mean junst change source and target.

Thanks in advance,
Andy
Re: Double connection [message #169684 is a reply to message #169651] Thu, 24 January 2008 09:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: andia.maleki.gmail.com

i extended the AbstractEdithHelperAdvice and implemented
getAfterCreateRelationshipCommand, and installed it via the elementTypes
extension point:
<extension point="org.eclipse.gmf.runtime.emf.type.core.elementTypes">
<metamodel nsURI="tam">
<specializationType
id="com.sap.mi.gmf.tam.diagram.Modify1_3007"
name="%metatype.name.Modify1_3007"
kind="org.eclipse.gmf.runtime.emf.type.core.IHintedType"

edithelperadvice="com.sap.mi.gmf.tam.implemented.ModifyAdvice ">
<specializes
id="org.eclipse.gmf.runtime.emf.type.core.null"/>
<param name="semanticHint" value="3007"/>
</specializationType>
</metamodel>
</extension>

but the method getAfterCreateRelationshipCommand is not called? did i miss
anything?

Andy
Re: Double connection [message #169749 is a reply to message #169651] Thu, 24 January 2008 11:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: trommas.yahoo.com

Andy wrote:
> Hi,
> i would like to know, how it is possible to create a connection (by
> user) and at the same time create another connection (programaticly)with
> opposite direction. i mean junst change source and target.
>

If it is an opposite relation, you only have to make sure that you have
both defined in the gmfgraph. If you want to create others, I'd suggest
using a command.


HTH,

Tomas Zijdemans
Re: Double connection [message #169765 is a reply to message #169749] Thu, 24 January 2008 11:46 Go to previous message
Eclipse UserFriend
Originally posted by: andia.maleki.gmail.com

I have already defined an opposite connection in gmfgraph, but the problem
is that getAfterCreateRelationshipCommand is not called, so i cant call
the Modify2CreateCommand !
Previous Topic:Getting an IAdaptable from an EObject
Next Topic:How to provide DND from TreeViewer to GMF generated Editor?
Goto Forum:
  


Current Time: Wed Jul 23 15:30:58 EDT 2025

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

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

Back to the top