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

Bug 322748

Summary: Too many events fired, when using ISimpleNavigationNodeListener.markerChanged()
Product: [RT] Riena Reporter: Steffen Kriese <steffen.kriese>
Component: ridgetAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: nobody
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

Description Steffen Kriese CLA 2010-08-16 03:15:31 EDT
Suppose there is a view with 5 textridgets and each of them is set to mandatory(true) and in the configureRidgets-Method is a SimpleNavigationNodelistener like this:

getNavigationNode().addSimpleListener(new SimpleNavigationNodeAdapter() {
			@Override
			public void markerChanged(INavigationNode<?> source, IMarker marker) {
				if (marker instanceof MandatoryMarker) {
					System.out.println("MandatoryMarker changed " + marker);
				}
			}
		});

If we now start typing text in one of the textridgets, we receive 4 markerChanged events. I would expect to receive a single event, because only one textridgets mandatory state changed. It seems like that an event for every textridget is fired, that didn't change.
Comment 1 Nobody - feel free to take it CLA 2012-04-13 07:40:42 EDT
Fixed for ErrorMarker and MandatoryMarker