Bug 143659 [Accessibility] Press Tab key will cause eclipse crash when focus isn't on any report item in Editor view
Press Tab key will cause eclipse crash when focus isn't on any report item in Editor view Steps to reproduce: 1. New a report 2. Click the blank area in Layout of Editor view 3. Press Tab key Expected result: Something in layout will get focus Actual result: Eclipse crashed
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/parts/ReportFocusTraverseManager.java
}
	
	/**
	 * Returns the IFigure that will receive focus upon a 'tab' traverse event.
	 * 
	 * @param root the {@link LightweightSystem LightweightSystem's} root figure
	 * @param focusOwner the IFigure who currently owns focus
	 * @return the next focusable figure
	 */
	public IFigure getNextFocusableFigureInSameOrder(IFigure root, IFigure focusOwner) {
		boolean found = false;
		IFigure nextFocusOwner = focusOwner;
		
		/* If no Figure currently has focus,
		 * apply focus to root figure's first focusable child
		 */
		if (focusOwner == null) {
			if (root.getChildren().size() != 0) {
				nextFocusOwner = ((IFigure)root.getChildren().get(0));
				if (isFocusEligible(nextFocusOwner))
					return nextFocusOwner;
			} else
				return null;
		}
		while (!found) {
			IFigure parent = nextFocusOwner.getParent();
			
			/*
			 * Figure traversal is implemented using the pre-order left to right
			 * tree traversal algorithm.