Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -259,10 +259,15 @@ public IStatus runInUIThread(IProgressMonitor monitor) {
int treeHeight = getViewer().getTree().getBounds().height;
int numVisibleItems = treeHeight / getViewer().getTree().getItemHeight();
long stopTime = SOFT_MAX_EXPAND_TIME + System.currentTimeMillis();

updateToolbar(true);

if (items.length > 0
&& recursiveExpand(items, monitor, stopTime, new int[] { numVisibleItems })) {
return Status.CANCEL_STATUS;
}
} else {
updateToolbar(false);
}
} finally {
// done updating the tree - set redraw back to true
Expand Down Expand Up @@ -310,10 +315,6 @@ private boolean recursiveExpand(TreeItem[] items, IProgressMonitor monitor, long
};
}

/**
* @deprecated As of 4.13 not used anymore
*/
@Deprecated(since = "2025-03", forRemoval = true)
protected void updateToolbar(boolean visible) {
// nothing to do
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -430,10 +430,15 @@ public IStatus runInUIThread(IProgressMonitor monitor) {
int treeHeight = getViewer().getTree().getBounds().height;
int numVisibleItems = treeHeight / getViewer().getTree().getItemHeight();
long stopTime = SOFT_MAX_EXPAND_TIME + System.currentTimeMillis();

updateToolbar(true);

if (items.length > 0
&& recursiveExpand(items, monitor, stopTime, new int[] { numVisibleItems })) {
return Status.CANCEL_STATUS;
}
} else {
updateToolbar(false);
}
} finally {
// done updating the tree - set redraw back to true
Expand Down Expand Up @@ -488,9 +493,7 @@ private boolean recursiveExpand(TreeItem[] items, IProgressMonitor monitor, long
* override.
*
* @param visible boolean
* @deprecated As of 4.13 not used anymore
*/
@Deprecated(since = "2025-03", forRemoval = true)
protected void updateToolbar(boolean visible) {
// nothing to do
}
Expand Down
Loading