Skip to content

Replace InfiniteSubProgressMonitor with SubMonitor in org.eclipse.team.core#2660

Draft
vogella wants to merge 2 commits into
masterfrom
replace-infinite-sub-progress-monitor
Draft

Replace InfiniteSubProgressMonitor with SubMonitor in org.eclipse.team.core#2660
vogella wants to merge 2 commits into
masterfrom
replace-infinite-sub-progress-monitor

Conversation

@vogella
Copy link
Copy Markdown
Contributor

@vogella vogella commented May 14, 2026

Planned for 4.41

InfiniteSubProgressMonitor was an internal class in org.eclipse.team.core that worked around the old SubProgressMonitor limitation of overshooting allocated parent ticks. SubMonitor's built-in proportional scaling handles this naturally, making the custom halving algorithm unnecessary.

This removes InfiniteSubProgressMonitor, the infiniteSubMonitorFor helper in Policy, and replaces the two call sites in BackgroundEventHandler and AbstractResourceVariantTree with direct SubMonitor usage.

SubMonitor's proportional scaling handles the same use case as
InfiniteSubProgressMonitor without the custom halving algorithm.
The anonymous SubProgressMonitor subclass in SubscriberSyncInfoEventHandler
is replaced with ProgressMonitorWrapper, which allows the same
override-and-delegate pattern without subclassing the deprecated class.

Removes InfiniteSubProgressMonitor and the infiniteSubMonitorFor helper
in Policy since both are internal and unused after this change.
@vogella vogella force-pushed the replace-infinite-sub-progress-monitor branch from f35d4ac to c75e9ff Compare May 14, 2026 04:09
@eclipse-platform-bot
Copy link
Copy Markdown
Contributor

This pull request changes some projects for the first time in this development cycle.
Therefore the following files need a version increment:

team/bundles/org.eclipse.team.core/META-INF/MANIFEST.MF

An additional commit containing all the necessary changes was pushed to the top of this PR's branch. To obtain these changes (for example if you want to push more changes) either fetch from your fork or apply the git patch.

Git patch
From 9d03eebeac4735b7bfb8f41a2ac6f4ed316d9cbb Mon Sep 17 00:00:00 2001
From: Eclipse Platform Bot <platform-bot@eclipse.org>
Date: Thu, 14 May 2026 04:14:58 +0000
Subject: [PATCH] Version bump(s) for 4.40 stream


diff --git a/team/bundles/org.eclipse.team.core/META-INF/MANIFEST.MF b/team/bundles/org.eclipse.team.core/META-INF/MANIFEST.MF
index 0a67c9ef3d..dddea179e5 100644
--- a/team/bundles/org.eclipse.team.core/META-INF/MANIFEST.MF
+++ b/team/bundles/org.eclipse.team.core/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
 Bundle-ManifestVersion: 2
 Bundle-Name: %pluginName
 Bundle-SymbolicName: org.eclipse.team.core; singleton:=true
-Bundle-Version: 3.10.1000.qualifier
+Bundle-Version: 3.10.1100.qualifier
 Bundle-Activator: org.eclipse.team.internal.core.TeamPlugin
 Bundle-Vendor: %providerName
 Bundle-Localization: plugin
-- 
2.53.0

Further information are available in Common Build Issues - Missing version increments.

@github-actions
Copy link
Copy Markdown
Contributor

Test Results

    54 files  ±0      54 suites  ±0   34m 55s ⏱️ - 2m 38s
 4 666 tests ±0   4 644 ✅ +1   22 💤 ±0  0 ❌  - 1 
11 892 runs  ±0  11 739 ✅ +1  153 💤 ±0  0 ❌  - 1 

Results for commit aab9c6a. ± Comparison against base commit 8bfe3ed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants