Gantt: remove Connections [message #595285] |
Fri, 19 June 2009 11:58 |
Manuel Steurer Messages: 37 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
--
|
|
|
Powered by
FUDForum. Page generated in 0.03295 seconds