if (checked) { while(parent != null) { setChecked(parent, checked); boolean grayed= isPartlyActive(parent); setGrayed(parent, grayed); parent= getParent(parent); } } else { setParentsGrayed(parent, true);
while(parent != null) { setChecked(parent, checked); setGrayed(parent, isPartlyActive(parent)); parent= getParent(parent);
			public void checkStateChanged(CheckStateChangedEvent event){				IMember element= (IMember)event.getElement();				boolean checked= event.getChecked();				if (checked)					fActiveElements.add(element);				else					fActiveElements.remove(element);				setSubtreeChecked(element, checked);				setSubtreeGrayed(element, false);				IJavaElement parent= getParent(element);				if (parent == null)						return;				if (checked) {					while(parent != null) {						setChecked(parent, checked);						boolean grayed= isPartlyActive(parent);						setGrayed(parent, grayed);						parent= getParent(parent);					}				} else {					setParentsGrayed(parent, true);				}			}