Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » [GanttChart] Removing Sections
[GanttChart] Removing Sections [message #1523327] Mon, 22 December 2014 21:44 Go to next message
Giovanni J is currently offline Giovanni JFriend
Messages: 15
Registered: November 2014
Junior Member
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 21:54]

Report message to a moderator

Re: [GanttChart] Removing Sections [message #1523390 is a reply to message #1523327] Mon, 22 December 2014 22:31 Go to previous messageGo to next message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 493
Registered: July 2009
Senior Member

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 08:23 Go to previous messageGo to next message
Giovanni J is currently offline Giovanni JFriend
Messages: 15
Registered: November 2014
Junior Member
Yes latest one, bug filed: 456011


[Updated on: Tue, 23 December 2014 08:25]

Report message to a moderator

Re: [GanttChart] Removing Sections [message #1524133 is a reply to message #1523390] Tue, 23 December 2014 08:40 Go to previous message
Dirk Fauth is currently offline Dirk FauthFriend
Messages: 2902
Registered: July 2012
Senior Member
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: Sat Jun 08 17:01:00 GMT 2024

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

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

Back to the top