Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Connection creation using Port eObjects
Connection creation using Port eObjects [message #174966] Fri, 29 February 2008 13:30 Go to next message
Sandip is currently offline SandipFriend
Messages: 39
Registered: July 2009
Member
Hi Guys,

This is the Typical port and connection problem.

I have in my object model a connection object, with its source and target
objects set correctly.

I have written CreateViewRequest createViewRequest = new
CreateViewRequest(viewDescriptors) to create my ports.

Next within the same loop I want a command in GMF to create this
connection.

What command should I use to create this edge? I tried using couple of
CreateConnectionView commands but I observed that in most cases, they need
the source and target edit part or view as input to the descriptor. I dont
have it with me yet.

Is there any command in GMF where I pass the source and target eObjects
for an edge and it draws the connection correctly?
Re: Connection creation using Port eObjects [message #176469 is a reply to message #174966] Fri, 07 March 2008 15:47 Go to previous message
Cherie Revells is currently offline Cherie RevellsFriend
Messages: 299
Registered: July 2009
Senior Member
Sandip,

The DeferredCreateConnectionViewAndElementCommand or
DeferredCreateConnectionViewCommand can be used in this scenario. Take
a look at the javadoc for more info.

Regards,
Cherie

Sandip wrote:
> Hi Guys,
>
> This is the Typical port and connection problem.
>
> I have in my object model a connection object, with its source and
> target objects set correctly.
>
> I have written CreateViewRequest createViewRequest = new
> CreateViewRequest(viewDescriptors) to create my ports.
> Next within the same loop I want a command in GMF to create this
> connection.
> What command should I use to create this edge? I tried using couple of
> CreateConnectionView commands but I observed that in most cases, they
> need the source and target edit part or view as input to the descriptor.
> I dont have it with me yet.
> Is there any command in GMF where I pass the source and target eObjects
> for an edge and it draws the connection correctly?
>
Previous Topic:Creating connection between two nodes with ports
Next Topic:How to make persistent Z-Order in a gmf diagram ?
Goto Forum:
  


Current Time: Thu Apr 18 01:48:52 GMT 2024

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

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

Back to the top