Project: SWT
Bug 183254 Mac: calling TreeItem.setText can cause a SetData callback
Reported: 2007-04-19 14:50:05 | Status: resolved fixed

Here is a stack trace of what I'm seeing. I don't think calling setText() should generate a callback. at java.lang.Thread.dumpStack(Thread.java:1176) at foo.Snippet172640$ViewContentProvider.updateElement(Snippet172640.java:132) at org.eclipse.jface.viewers.TreeViewer.virtualLazyUpdateWidget(TreeViewer.java:917) at org.eclipse.jface.viewers.TreeViewer.access$2(TreeViewer.java:899) at org.eclipse.jface.viewers.TreeViewer$2.handleEvent(TreeViewer.java:268) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1463) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1487) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1472) at org.eclipse.swt.widgets.Tree.checkData(Tree.java:367) at org.eclipse.swt.widgets.TreeItem.getImage(TreeItem.java:610) at org.eclipse.swt.widgets.TreeItem.calculateWidth(TreeItem.java:219) at org.eclipse.swt.widgets.Tree.setScrollWidth(Tree.java:2908) at org.eclipse.swt.widgets.TreeItem.setText(TreeItem.java:1323) at org.eclipse.jface.viewers.TreeViewerRow.setText(TreeViewerRow.java:139) at org.eclipse.jface.viewers.ViewerCell.setText(ViewerCell.java:152) at org.eclipse.jface.viewers.TableColumnViewerLabelProvider.update(TableColumnViewerLabelProvider.java:70) at org.eclipse.jface.viewers.ViewerColumn.refresh(ViewerColumn.java:135) at org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(AbstractTreeViewer.java:888) at org.eclipse.jface.viewers.AbstractTreeViewer$UpdateItemSafeRunnable.run(AbstractTreeViewer.java:97) at org.eclipse.jface.util.SafeRunnable$2.run(SafeRunnable.java:148) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:187) at org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem(AbstractTreeViewer.java:963) at org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRunnable.run(StructuredViewer.java:466) at org.eclipse.jface.util.SafeRunnable$2.run(SafeRunnable.java:148) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:187) at org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java:2014) at org.eclipse.jface.viewers.TreeViewer$4.run(TreeViewer.java:482) at org.eclipse.jface.viewers.TreeViewer.preservingSelection(TreeViewer.java:372) at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1325) at org.eclipse.jface.viewers.TreeViewer.replace(TreeViewer.java:437) at foo.Snippet172640$ViewContentProvider.updateElement(Snippet172640.java:138) at org.eclipse.jface.viewers.TreeViewer.virtualLazyUpdateWidget(TreeViewer.java:917) at org.eclipse.jface.viewers.TreeViewer.createChildren(TreeViewer.java:542) at org.eclipse.jface.viewers.AbstractTreeViewer.internalExpand(AbstractTreeViewer.java:1508) at org.eclipse.jface.viewers.AbstractTreeViewer.setSelectionToWidget(AbstractTreeViewer.java:2339)

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Table.java bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/TableItem.java bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/TreeItem.java