Skip to content

Conversation

@iloveeclipse
Copy link
Member

In order to update console status line, ProcessConsole.computeName() calls resetName() every second once console is created. This causes new UI job to be started every second via timerExec(), with code already being executed on UI thread. It is a misuse of Jobs framework, it makes use of jobs dispatching where no jobs are needed. The code can use Display.execute() for a more lightweight console status update.

As a nice side effect no jobs are flashing in the Progress view every second (if system jobs are shown).

In order to update console status line, ProcessConsole.computeName()
calls resetName() every second once console is created. This causes new
UI job to be started every second via timerExec(), with code already
being executed on UI thread. It is a misuse of Jobs framework, it makes
use of jobs dispatching where no jobs are needed. The code can use
Display.execute() for a more lightweight console status update.

As a nice side effect no jobs are flashing in the Progress view every
second (if system jobs are shown).
@github-actions
Copy link
Contributor

github-actions bot commented Jan 18, 2026

Test Results

 1 977 files  ±0   1 977 suites  ±0   1h 34m 35s ⏱️ + 3m 43s
 4 743 tests ±0   4 719 ✅ ±0   24 💤 ±0  0 ❌ ±0 
14 229 runs  ±0  14 047 ✅ ±0  182 💤 ±0  0 ❌ ±0 

Results for commit 0f46b6a. ± Comparison against base commit 39c64e8.

♻️ This comment has been updated with latest results.

Compiler warnings:

1) Varargs methods should only override or be overridden by other
varargs methods unlike
StringVariableSelectionDialog.setListElements(Object[]) and
AbstractElementListSelectionDialog.setListElements(Object...)

2) Type IStringVariable[] of the last argument to method
setListElements(Object...) doesn't exactly match the vararg parameter
type. Cast to Object[] to confirm the non-varargs invocation, or pass
individual arguments of type Object for a varargs invocation.

Side effect of the signature change in
org.eclipse.ui.dialogs.AbstractElementListSelectionDialog.setListElements(Object...)

See eclipse-platform/eclipse.platform.ui@647256d
/ eclipse-platform/eclipse.platform.ui#3675
@iloveeclipse iloveeclipse merged commit da4f877 into eclipse-platform:master Jan 18, 2026
18 checks passed
@iloveeclipse iloveeclipse deleted the no_job branch January 18, 2026 15:53
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