Bug 5571 JAR Packager: Reveal first checked project
If the list of projects in the JAR Packager is long it is possible that the shown projects are not checked even though there are checked projects (due to current selection). ==> reveal the first checked project.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/CheckboxTreeAndListGroup.java
while (listItemsEnum.hasNext())
				fListViewer.setChecked(listItemsEnum.next(), true);
		}
	}
	/**
	 *	Removes the passed listener from self's collection of clients
	 *	that listen for changes to element checked states
	 *
	 *	@param listener ICheckStateListener
	 */
	public void removeCheckStateListener(ICheckStateListener listener) {
		fListeners.remove(listener);
	}
	/**
	 *	Handles the selection of an item in the tree viewer
	 *
	 *	@param selection ISelection
	 */
	public void selectionChanged(SelectionChangedEvent event) {
		IStructuredSelection selection= (IStructuredSelection) event.getSelection();
		Object selectedElement= selection.getFirstElement();
		if (selectedElement == null) {
			fCurrentTreeSelection= null;
			fListViewer.setInput(fCurrentTreeSelection);
			return;
		}
		
		if (selectedElement != fCurrentTreeSelection)
			populateListViewer(selectedElement);
		fCurrentTreeSelection= selectedElement;