Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Connection not showing up after a restart of eclipse on a diagram created by a wizard...
Connection not showing up after a restart of eclipse on a diagram created by a wizard... [message #220466] Tue, 03 March 2009 16:09 Go to next message
Brian Jakubik is currently offline Brian JakubikFriend
Messages: 140
Registered: July 2009
Senior Member
I have my wizards setup to create my diagrams with existing nodes and
connections... The problem I am seeing is that when I create a new
diagram, everything looks good (2 nodes and a connection between them),
but when I restart eclipse, I only see the 2 nodes on the diagram, no
connection... If I drop another node, on, the connection will appear...

I did not have this problem in 2.0.*, but am having it in 2.2.0m5a

The nodes in the wizard are created using ViewService.createNode(...)
and the connection is created by

IElementType elementType = (IElementType)
MyxmlElementTypes.DefaultConnection_4001;
CreateRelationshipRequest relationReq = new CreateRelationshipRequest(
nBegin, nEnd, elementType);
DefaultConnectionCreateCommand create = new
DefaultConnectionCreateCommand( relationReq,
relationReq.getSource(), relationReq.getTarget());
try {
create.execute(new NullProgressMonitor(), null);
} catch (ExecutionException e) {
e.printStackTrace();
}

looking at the text of the .diagram before (after restart but before the
connection appears) and after (after dropping a new node on the diagram,
causing the connection to appear) I see an edge element for that
connection, that was not present after the wizard created the diagram,
after that is in, it appears to work as it should for this diagram...

I have tried ViewService.createEdge, but it always returns null for me?
not sure why...

Hope that makes sense, any help would be apreciated...
Thanks
Brian Jakubik
Re: Connection not showing up after a restart of eclipse on a diagram created by a wizard... [message #220575 is a reply to message #220466] Wed, 04 March 2009 20:49 Go to previous message
Brian Jakubik is currently offline Brian JakubikFriend
Messages: 140
Registered: July 2009
Senior Member
We have resolved this issue.

Brian Jakubik wrote:
> I have my wizards setup to create my diagrams with existing nodes and
> connections... The problem I am seeing is that when I create a new
> diagram, everything looks good (2 nodes and a connection between them),
> but when I restart eclipse, I only see the 2 nodes on the diagram, no
> connection... If I drop another node, on, the connection will appear...
>
> I did not have this problem in 2.0.*, but am having it in 2.2.0m5a
>
> The nodes in the wizard are created using ViewService.createNode(...)
> and the connection is created by
>
> IElementType elementType = (IElementType)
> MyxmlElementTypes.DefaultConnection_4001;
> CreateRelationshipRequest relationReq = new CreateRelationshipRequest(
> nBegin, nEnd, elementType);
> DefaultConnectionCreateCommand create = new
> DefaultConnectionCreateCommand( relationReq,
> relationReq.getSource(), relationReq.getTarget());
> try {
> create.execute(new NullProgressMonitor(), null);
> } catch (ExecutionException e) {
> e.printStackTrace();
> }
>
> looking at the text of the .diagram before (after restart but before the
> connection appears) and after (after dropping a new node on the diagram,
> causing the connection to appear) I see an edge element for that
> connection, that was not present after the wizard created the diagram,
> after that is in, it appears to work as it should for this diagram...
>
> I have tried ViewService.createEdge, but it always returns null for me?
> not sure why...
>
> Hope that makes sense, any help would be apreciated...
> Thanks
> Brian Jakubik
Previous Topic:Set a label not visible in the creation of its Node
Next Topic:How to install Flex plugin?
Goto Forum:
  


Current Time: Thu Apr 18 09:35:15 GMT 2024

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

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

Back to the top