How can I remove a section which contains a GanttGroup item?
I'm trying to use the usual method getGanttComposite().removeSection(SectionName) but it doesn't work since I'm getting an exception:
java.lang.ClassCastException: org.eclipse.nebula.widgets.ganttchart.GanttGroup cannot be cast to org.eclipse.nebula.widgets.ganttchart.GanttEvent
at org.eclipse.nebula.widgets.ganttchart.GanttComposite.internalRemoveSection(GanttComposite.java:5363)
at org.eclipse.nebula.widgets.ganttchart.GanttComposite.removeSection(GanttComposite.java:953)
The culprit should be this snippet:
private void internalRemoveSection(final GanttSection section) {
//if section is removed also remove the events that belong to that section
for (Iterator it = section.getEvents().iterator(); it.hasNext();) {
internalRemoveEvent((GanttEvent)it.next());
}
Does anybody have removed a GanttGroup so far?
[Updated on: Mon, 22 December 2014 16:54] by Moderator