Skip to content

Use ILog.of(Class) instead of Platform.getLog(Class)#3922

Merged
vogella merged 2 commits intoeclipse-platform:masterfrom
vogella:migrate/ilog-of-platform-getlog
Apr 22, 2026
Merged

Use ILog.of(Class) instead of Platform.getLog(Class)#3922
vogella merged 2 commits intoeclipse-platform:masterfrom
vogella:migrate/ilog-of-platform-getlog

Conversation

@vogella
Copy link
Copy Markdown
Contributor

@vogella vogella commented Apr 22, 2026

Summary

  • Replace the two remaining Platform.getLog(Class) call sites with the equivalent ILog.of(Class) (in ThemeEngine and GenericEditorPreferencePage), aligning with the convention used after the recent logging cleanup passes. Functionally identical (both return the bundle's ILog without a round-trip through the Activator).
  • Fix a small typo in the GenericEditorPreferencePage log message: "Cannot to save preferences." -> "Cannot save preferences."

Test plan

  • mvn clean compile -pl :org.eclipse.e4.ui.css.swt.theme,:org.eclipse.ui.genericeditor -Pbuild-individual-bundles -> BUILD SUCCESS
  • CI green

vogella added 2 commits April 22, 2026 10:21
Replace the two remaining Platform.getLog(Class) call sites with the
equivalent ILog.of(Class). Functionally identical (both return the
bundle's ILog without going through the Activator), but aligns with the
convention used across the rest of the repo after the recent logging
cleanup passes.

- org.eclipse.e4.ui.css.swt.theme: ThemeEngine
- org.eclipse.ui.genericeditor: GenericEditorPreferencePage
"Cannot to save preferences." -> "Cannot save preferences."
@vogella vogella marked this pull request as ready for review April 22, 2026 08:36
@github-actions
Copy link
Copy Markdown
Contributor

Test Results

   852 files  ±0     852 suites  ±0   56m 20s ⏱️ - 2m 44s
 7 911 tests ±0   7 668 ✅ ±0  243 💤 ±0  0 ❌ ±0 
20 235 runs  ±0  19 580 ✅ ±0  655 💤 ±0  0 ❌ ±0 

Results for commit c0a72ca. ± Comparison against base commit b7b54fc.

@vogella vogella merged commit 64aecb7 into eclipse-platform:master Apr 22, 2026
18 checks passed
@vogella vogella deleted the migrate/ilog-of-platform-getlog branch April 22, 2026 09:26
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