Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Problem in connecting a link to a node.
Problem in connecting a link to a node. [message #38499] Mon, 04 September 2006 06:38 Go to next message
Eclipse UserFriend
Originally posted by: surajitray.yahoo.co.uk

Hi, I am trying to develop a editor for the network model given in "IBM red
book for EMF and GEF" using gmf 1.0. My model elements are Network, Node and
Link. The network is the root element. But while mapping (wizard) the
"Link"is coming as node. I mark the "Link" as link and generate the editor
code. Iam able to create "nodes" in the editor but the link is not working
properly. If I drag the link from the node by default it is connecting to
comment box. I want to connect the "link" to another "network node". Any
suggestion??

Regards
Surajit Ray
Re: Problem in connecting a link to a node. [message #38632 is a reply to message #38499] Mon, 04 September 2006 11:31 Go to previous message
Eclipse UserFriend
Originally posted by: khai.n.situvista.com

Do you have the creation tool for the link in the palette?

If "yes" does it create the link properly when you select the tool,
click on source, then click on target?

If "no" then please give more specific description of the problem.

If the creation from the palette is working properly and you are talking
about dragging the arrows that appears over a node (which you can drag
to another node to create the link) then you're talking about the
ModelingAssistant.

For this you will have to override the default implementation of
....diagram.providers.XXXModelingAssistantProvider.

There are 5 methods to override:

getTypesForSource()
getTypesForTarget()
getRelTypesOnSource()
getRelTypesOnTarget()
getRelTypesOnSourceAndTarget()

The lists returned determine the element(s) that can be a source or
target and also which relationship type(s) they can be in.


If your problem is something else entirely then please provide more
info.

-- Khai --


Surajit wrote:
> Hi, I am trying to develop a editor for the network model given in "IBM red
> book for EMF and GEF" using gmf 1.0. My model elements are Network, Node and
> Link. The network is the root element. But while mapping (wizard) the
> "Link"is coming as node. I mark the "Link" as link and generate the editor
> code. Iam able to create "nodes" in the editor but the link is not working
> properly. If I drag the link from the node by default it is connecting to
> comment box. I want to connect the "link" to another "network node". Any
> suggestion??
>
> Regards
> Surajit Ray
>
>
Previous Topic:BPMN Designer based on GMF
Next Topic:Audits with Associations
Goto Forum:
  


Current Time: Thu Jul 17 19:50:53 EDT 2025

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

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

Back to the top