[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.nebula] Gantt: remove Connections

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().getGanttConnections())
;
		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

--