Skip to content

Use ILog.of(Class) in PositionTracker and SmartImportTests#3909

Merged
akurtakov merged 1 commit into
eclipse-platform:masterfrom
vogella:cleanup/ilog-refactor-simple
Apr 20, 2026
Merged

Use ILog.of(Class) in PositionTracker and SmartImportTests#3909
akurtakov merged 1 commit into
eclipse-platform:masterfrom
vogella:cleanup/ilog-refactor-simple

Conversation

@vogella
Copy link
Copy Markdown
Contributor

@vogella vogella commented Apr 20, 2026

Summary

  • Replace Plugin.getDefault().getLog().log(new Status(...)) with ILog.of(Class).error(...) / .info(...) in two simple sites.
  • Drops the Activator round-trip and the Status allocation in one go.

Sites

  • PositionTracker (org.eclipse.search): error log, same-bundle SearchPlugin removed along with unused IStatus/Status imports.
  • SmartImportTests (org.eclipse.ui.tests): info log, same-bundle TestPlugin removed along with unused Status import.

Log channel stays in the same bundle in both cases, so no behavior change.

Context: follow-up to the ILog.of(Class) migration suggested at https://github.com/vogellacompany/tasks/issues/1837#issuecomment-4275267304. Kept intentionally small — workbench bundle sites and cross-bundle sites (e.g. ProjectEncodingMarkerResolutionGenerator logging through UIPlugin) are deferred.

Test plan

  • mvn clean compile -pl :org.eclipse.search -Pbuild-individual-bundles succeeds
  • mvn clean compile -pl :org.eclipse.ui.tests,:org.eclipse.jface.tests -Pbuild-individual-bundles -am succeeds
  • CI green

Replace Plugin.getDefault().getLog().log(new Status(...)) with
ILog.of(Class).error(...)/info(...). Drops the Activator round-trip
and the Status allocation in one go. Log channel stays in the same
bundle in both cases.
@github-actions
Copy link
Copy Markdown
Contributor

Test Results

   852 files  ±0     852 suites  ±0   54m 59s ⏱️ - 7m 40s
 7 899 tests ±0   7 656 ✅ +2  243 💤 ±0  0 ❌ ±0 
20 199 runs  ±0  19 544 ✅ +2  655 💤 ±0  0 ❌ ±0 

Results for commit f5b0b1d. ± Comparison against base commit ba308b7.

@akurtakov akurtakov merged commit 27696dd into eclipse-platform:master Apr 20, 2026
18 checks passed
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