Bug 187189 [ViewMgmt] TreeViewer disposes of widget when the third item in the tree is deleted
Build ID: 3.3.0M7 Steps To Reproduce: 1.Run attached sample code 2.Use button to delete tree items from bottom until exception is thrown. 3. More information: M6 does not exhibit this behavior. Exception in thread "main" org.eclipse.swt.SWTException: Widget is disposed at org.eclipse.swt.SWT.error(SWT.java:3547) at org.eclipse.swt.SWT.error(SWT.java:3465) at org.eclipse.swt.SWT.error(SWT.java:3436) at org.eclipse.swt.widgets.Widget.error(Widget.java:432) at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:325) at org.eclipse.swt.widgets.TreeItem.getBounds(TreeItem.java:401) at org.eclipse.jface.viewers.TreeViewerRow.getBounds(TreeViewerRow.java:48) at org.eclipse.jface.viewers.ViewerCell.getBounds(ViewerCell.java:83) at org.eclipse.jface.viewers.FocusCellOwnerDrawHighlighter.focusCellChanged(FocusCellOwnerDrawHighlighter.java:147) at org.eclipse.jface.viewers.SWTFocusCellManager.setFocusCell(SWTFocusCellManager.java:151) at org.eclipse.jface.viewers.SWTFocusCellManager.handleSelection(SWTFocusCellManager.java:101) at org.eclipse.jface.viewers.SWTFocusCellManager.access$2(SWTFocusCellManager.java:92) at org.eclipse.jface.viewers.SWTFocusCellManager$1.handleEvent(SWTFocusCellManager.java:126)
bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/SWTFocusCellManager.java
/*******************************************************************************
 * Copyright (c) 2007 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 ******************************************************************************/
package org.eclipse.jface.viewers;
import org.eclipse.core.runtime.Assert;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Listener;
/**
 * This class is responsible to provide cell management base features for the
 * SWT-Controls {@link org.eclipse.swt.widgets.Table} and
 * {@link org.eclipse.swt.widgets.Tree}.
 * 
 * @since 3.3
 * 
 */
abstract class SWTFocusCellManager {