First of all you need to find out why connection disappears. Possible
scenarios are:
1) Edge#setVisible(boolean) gets called
2) Editpart #refreshVisibility() method gets called
3) If connection is inside a compartment then it could be
ConnectionRefreshMgr
Find out which one of these (if any) make your connection disappear first.