Skip to content

Migrate NewTypeWizardPage.createType() from SubProgressMonitor to SubMonitor#2988

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

Migrate NewTypeWizardPage.createType() from SubProgressMonitor to SubMonitor#2988
vogella wants to merge 1 commit into
eclipse-jdt:masterfrom
vogella:migrate-newtypewizardpage-submonitor

Conversation

@vogella
Copy link
Copy Markdown
Contributor

@vogella vogella commented May 15, 2026

Replace the deprecated SubProgressMonitor pattern in createType() with the modern SubMonitor API. The method previously called monitor.beginTask() once and then passed the same raw monitor repeatedly to Progress.subMonitor(), which internally creates SubProgressMonitor instances. The new code calls SubMonitor.convert() once at the entry point and uses split() for each unit of work, including the previously bare monitor.worked(1) calls. The unused Progress import is also removed.

…Monitor

Replace the deprecated SubProgressMonitor pattern (beginTask + worked) 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