Skip to content

Use ILog instead of CompareUIPlugin logging helpers#2790

Closed
vogella wants to merge 1 commit into
eclipse-platform:masterfrom
vogella:compare-log-ilog
Closed

Use ILog instead of CompareUIPlugin logging helpers#2790
vogella wants to merge 1 commit into
eclipse-platform:masterfrom
vogella:compare-log-ilog

Conversation

@vogella

@vogella vogella commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

This replaces the static CompareUIPlugin.log/logErrorMessage helpers with org.eclipse.core.runtime.ILog at every call site in org.eclipse.compare and removes the three helpers.
Severity and messages are preserved, so there is no behavior change; it just moves logging off the CompareUIPlugin activator and drops one more use of the getDefault() singleton.
All call sites in the bundle were migrated and the bundle compiles cleanly.

Replace the static CompareUIPlugin.log/logErrorMessage helpers with
org.eclipse.core.runtime.ILog at all call sites and remove the helpers.
Severity and messages are preserved. This removes logging from the
CompareUIPlugin activator and its getDefault() singleton dependency.
@merks

merks commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

This actually looks more verbose, so an advantage seems unclear to me. Also the log call needs to look up the bundle form the class so this will perform less well, not that it really much matters. But in the end, I don't see the motivation nor advantage here.

@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Test Results

    54 files  ±0      54 suites  ±0   59m 25s ⏱️ + 1m 13s
 4 680 tests ±0   4 658 ✅ ±0   22 💤 ±0  0 ❌ ±0 
11 934 runs  ±0  11 781 ✅ ±0  153 💤 ±0  0 ❌ ±0 

Results for commit 6db8b00. ± Comparison against base commit 9ec007a.

@vogella vogella closed this Jul 2, 2026
@vogella vogella deleted the compare-log-ilog branch July 2, 2026 07:40
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