Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 342961

Summary: Events disappear when adding new event from menu item after vertical scroll on Linux and OS X
Product: z_Archived Reporter: Uwe Kubosch <uwe>
Component: NebulaAssignee: Emil Crumhorn <emil.crumhorn>
Status: CLOSED INVALID QA Contact:
Severity: blocker    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
Modified GanttSectionsExample.java none

Description Uwe Kubosch CLA 2011-04-15 08:16:28 EDT
Created attachment 193360 [details]
Modified GanttSectionsExample.java

Hi!

When running the GanttSectionsExample snippet with one small change, some events disappear.

This happens on Linux and OS X, but not on Windows XP.

The change we have made is adding the following code inside the handleEvent method of the menu item listener:


Calendar c1 = Calendar.getInstance();
c1.add(Calendar.DATE, 8);
Calendar c2 = Calendar.getInstance();
c2.add(Calendar.DATE, 9);
GanttEvent eventFoo = new GanttEvent(ganttChart, "Event foo", c1, c2, 10);
eventFoo.setStatusColor(ColorCache.getColor(254, 0, 0));
eventFoo.setGradientStatusColor(ColorCache.getColor(168, 185, 216));
gg.addEvent(eventFoo);


To trigger the error, reduce the size of the window so you get a vertical scroll bar, scroll a bit down, then select the context menu on the checkpoint twice.  You will see a red event appear, then disappear.

Any help on this is greatly appreciated.
Comment 1 Wim Jongman CLA 2019-12-12 15:56:31 EST
This bug does not have a target milestone assigned and is automatically closed as part of the 2.3.0 release cleanup.

It could be that this bug is accidentally closed for which we apologize.

If this bug is still relevant, please re-open and set a target milestone.