Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » Gantt: remove Connections
Gantt: remove Connections [message #595285] Fri, 19 June 2009 11:58
Manuel Steurer is currently offline Manuel SteurerFriend
Messages: 36
Registered: July 2009
Member
Hi,

I want to show specific connections when a user clicks on a GanttEvent.
Of course I have to remove/hide the old ones, how can I do this? I tried
disposing all connections, but this yields a NPE. I changed the source
accordingly (set the GanttConnection's parent), but is there another
way?

this is what I do (essentially):


Collection<GanttConnection> connections = new
HashSet<GanttConnection>();

connections.addAll(ganttChart.getGanttComposite().getGanttCo nnections())
;
for (GanttConnection conn : connections)
conn.dispose();
....
n times:
ganttChart.addConnection(parentEvent, childEvent);


I I call this twice, I get an NPE at the conn.dispose() line

Thanks,
Manuel

--
Previous Topic:Row-wise table editing
Next Topic:Row-wise table editing
Goto Forum:
  


Current Time: Fri May 24 20:49:56 GMT 2019

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

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

Back to the top