children= getSortedChildren(o); if (children != null && children.length > 0) { for (int j= 0; j < children.length; j++) { o= children[j];
Object[] sortedChildren= getSortedChildren(o); if (sortedChildren != null && sortedChildren.length > 0) { for (int j= 0; j < sortedChildren.length; j++) { o= sortedChildren[j];
	protected void initialSelection() {		Object firstClass= null;		Object o= getRoot();		if (o != null) {			Object[] children= getSortedChildren(o);			if (children != null && children.length > 0) {				for (int i= 0; i < children.length; i++) {					o= children[i];					children= getSortedChildren(o);					if (children != null && children.length > 0) {						for (int j= 0; j < children.length; j++) {							o= children[j];							if (o instanceof DiffNode) {								DiffNode dn= (DiffNode) o;								ITypedElement e= dn.getId();								if (e instanceof JavaNode) {									JavaNode jn= (JavaNode) e;									int tc= jn.getTypeCode();									if (tc == JavaNode.CLASS || tc == JavaNode.INTERFACE) {										firstClass= dn;									}								}							}						}					}				}			}		}		if (firstClass != null)			expandToLevel(firstClass, 1);		else			expandToLevel(2);	}