Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 322748 - Too many events fired, when using ISimpleNavigationNodeListener.markerChanged()
Summary: Too many events fired, when using ISimpleNavigationNodeListener.markerChanged()
Status: RESOLVED FIXED
Alias: None
Product: Riena
Classification: RT
Component: ridget (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-16 03:15 EDT by Steffen Kriese CLA
Modified: 2012-04-13 07:40 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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