Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » After unhiding connection drawn in left corner.
After unhiding connection drawn in left corner. [message #482750] Thu, 27 August 2009 19:11 Go to next message
Artur Kronenberg is currently offline Artur KronenbergFriend
Messages: 159
Registered: August 2009
Senior Member
Hi,

I hide and unhide my nodes and after unhiding some nodes are in the
diagram but their connections are drawn in the left upper corner. The
weird thing is that I don't get any exceptions. My log is empty and when I
try to just get a Throwable as an exception nothing happens.

I hide the components in an AbstractEMFOperation like this:

node.getNotationView().setVisible(false);

I unhide them by going into the parent of my Diagram, get the notationview
and the children from there. After that I set the visibility to true in an
AbstractEMFOperation again.

The weird thing also is, that the first connection is drawn correctly
while all the others aren't. So for example:

If I hide all predecessors of a component a then the direct outgoing
connections of a are drawn while the connections after that aren't.

a ->b -> c

Connection a->b is drawn, connection b->c is not.

So i thought maybe the source of the second connection is not there, but
when I check all my relations for source and target they all have the
right source and the right target. Also I tried to set the visibility
recoursivley just following the connections but this didn't work either.

I read a lot of previous thread but it seems like I am hiding/unhiding
components in the right way. Still it won't work.

BUT: If I unhid all components and I have the weird relations in the left
corner, I can reopen my diagram and everything gets drawn in the right
way.
I tried calling refresh on every node after setting the visibility and it
didn't work. I refreshed the diagram after setting all the nodes to
visible and that didn't work. I tried unhiding/hiding the
connectioneditparts too but that also didn't work.

Now I ran out of ideas..

I hope one of you can help me :)

Artur
Re: After unhiding connection drawn in left corner. [message #483215 is a reply to message #482750] Mon, 31 August 2009 15:34 Go to previous message
Artur Kronenberg is currently offline Artur KronenbergFriend
Messages: 159
Registered: August 2009
Senior Member
Found a solution for this. Don't know if that is the smoothest way, but if
I call refresh on every ConnectionEditPart the connections get drawn right.


But I have the <...> in the corner. Does someone know what that is
supposed to mean? When I click on it, the connection gets directed there
and I can move it around, but that totally screws up my "Arrange All"
action.

Best regards,
Artur

Artur Kronenberg wrote:

> Hi,

> I hide and unhide my nodes and after unhiding some nodes are in the
> diagram but their connections are drawn in the left upper corner. The
> weird thing is that I don't get any exceptions. My log is empty and when I
> try to just get a Throwable as an exception nothing happens.

> I hide the components in an AbstractEMFOperation like this:

> node.getNotationView().setVisible(false);

> I unhide them by going into the parent of my Diagram, get the notationview
> and the children from there. After that I set the visibility to true in an
> AbstractEMFOperation again.

> The weird thing also is, that the first connection is drawn correctly
> while all the others aren't. So for example:

> If I hide all predecessors of a component a then the direct outgoing
> connections of a are drawn while the connections after that aren't.

> a ->b -> c

> Connection a->b is drawn, connection b->c is not.

> So i thought maybe the source of the second connection is not there, but
> when I check all my relations for source and target they all have the
> right source and the right target. Also I tried to set the visibility
> recoursivley just following the connections but this didn't work either.

> I read a lot of previous thread but it seems like I am hiding/unhiding
> components in the right way. Still it won't work.

> BUT: If I unhid all components and I have the weird relations in the left
> corner, I can reopen my diagram and everything gets drawn in the right
> way.
> I tried calling refresh on every node after setting the visibility and it
> didn't work. I refreshed the diagram after setting all the nodes to
> visible and that didn't work. I tried unhiding/hiding the
> connectioneditparts too but that also didn't work.

> Now I ran out of ideas..

> I hope one of you can help me :)

> Artur
Previous Topic:Get all Diagram EditParts
Next Topic:[Announce] Eclipse Modeling Days
Goto Forum:
  


Current Time: Fri Apr 26 11:14:59 GMT 2024

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

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

Back to the top