Connection not showing up after a restart of eclipse on a diagram created by a wizard... [message #220466] |
Tue, 03 March 2009 16:09 |
Brian Jakubik 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 |
Brian Jakubik 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
|
|
|
Powered by
FUDForum. Page generated in 1.60195 seconds