Skip to content

Migrate AddCustomConstructorOperation.run() from SubProgressMonitor to SubMonitor#2989

Open
vogella wants to merge 1 commit into
eclipse-jdt:masterfrom
vogella:migrate-addcustomconstructor-submonitor
Open

Migrate AddCustomConstructorOperation.run() from SubProgressMonitor to SubMonitor#2989
vogella wants to merge 1 commit into
eclipse-jdt:masterfrom
vogella:migrate-addcustomconstructor-submonitor

Conversation

@vogella
Copy link
Copy Markdown
Contributor

@vogella vogella commented May 15, 2026

Replace the deprecated SubProgressMonitor pattern in run() with the modern SubMonitor API. The method previously called beginTask() and setTaskName() separately on the raw monitor and then passed that same monitor to Progress.subMonitor(), which internally calls SubMonitor.convert() and triggers a second beginTask() on the same monitor. The fix replaces both calls with a single SubMonitor.convert() at the entry point (passing the task name directly) and uses split() for each unit of work. The unused Progress import is removed.

…o SubMonitor

Replace beginTask/setTaskName/Progress.subMonitor with a single SubMonitor.convert()
at the method entry followed by split() calls.
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.

1 participant