Skip to main content



      Home
Home » Eclipse Projects » Nebula » [GanttChart] Removing Sections
[GanttChart] Removing Sections [message #1523327] Mon, 22 December 2014 16:44 Go to next message
Eclipse UserFriend
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

Re: [GanttChart] Removing Sections [message #1523390 is a reply to message #1523327] Mon, 22 December 2014 17:31 Go to previous messageGo to next message
Eclipse UserFriend
Hi Gio,

Are you using the latest Gantt? If so, please file a bug.

Cheers,

Wim
Re: [GanttChart] Removing Sections [message #1524108 is a reply to message #1523390] Tue, 23 December 2014 03:23 Go to previous messageGo to next message
Eclipse UserFriend
Yes latest one, bug filed: 456011


[Updated on: Tue, 23 December 2014 03:25] by Moderator

Re: [GanttChart] Removing Sections [message #1524133 is a reply to message #1523390] Tue, 23 December 2014 03:40 Go to previous message
Eclipse UserFriend
Thanks for the hint and reporting the issue via https://bugs.eclipse.org/bugs/show_bug.cgi?id=456011

It should be fixed with https://git.eclipse.org/r/#/c/38704/
Previous Topic:Xviewer performances
Next Topic:[GanttChart] refreshing composite
Goto Forum:
  


Current Time: Fri May 02 23:13:39 EDT 2025

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

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

Back to the top