Bug 53034 showItem() not working when setRedraw(false)
I20040224 tree.setRedraw(false); getTreeViewer().refresh(); getTreeViewer().setSelection(selection, true); tree.setRedraw(true); does not reveal my selection while the followin does: tree.setRedraw(false); getTreeViewer().refresh(); tree.setRedraw(true); getTreeViewer().setSelection(selection, true);
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/JavaOutlineInformationControl.java
/** 
		 * Creates the action.
		 * 
		 * @param outlineViewer the outline viewer
		 */
		private SortByDefiningTypeAction(TreeViewer outlineViewer) {
			super(TextMessages.getString("JavaOutlineInformationControl.SortByDefiningTypeAction.label")); 
			setDescription(TextMessages.getString("JavaOutlineInformationControl.SortByDefiningTypeAction.description")); 
			setToolTipText(TextMessages.getString("JavaOutlineInformationControl.SortByDefiningTypeAction.tooltip")); 
			
			JavaPluginImages.setLocalImageDescriptors(this, "definingtype_sort_co.gif"); 
			
			fOutlineViewer= outlineViewer;
			
			WorkbenchHelp.setHelp(this, IJavaHelpContextIds.SORT_BY_DEFINING_TYPE_ACTION);
	 
			boolean state= getDialogSettings().getBoolean(STORE_SORT_BY_DEFINING_TYPE_CHECKED);
			setChecked(state);
			fInnerLabelProvider.setShowDefiningType(state);
		}
		
		/*
		 * @see Action#actionPerformed
		 */	
		public void run() {
			BusyIndicator.showWhile(fOutlineViewer.getControl().getDisplay(), new Runnable() {
				public void run() {
					fInnerLabelProvider.setShowDefiningType(isChecked());
					getDialogSettings().put(STORE_SORT_BY_DEFINING_TYPE_CHECKED, isChecked());