Commit 7f3a5ca
committed
Console does not need to start UI job every second
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).1 parent 39c64e8 commit 7f3a5ca
1 file changed
Lines changed: 8 additions & 15 deletions
File tree
- debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/console
Lines changed: 8 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
110 | 109 | | |
111 | 110 | | |
112 | 111 | | |
| |||
115 | 114 | | |
116 | 115 | | |
117 | 116 | | |
118 | | - | |
| 117 | + | |
119 | 118 | | |
120 | 119 | | |
121 | 120 | | |
| |||
136 | 135 | | |
137 | 136 | | |
138 | 137 | | |
139 | | - | |
| 138 | + | |
140 | 139 | | |
141 | | - | |
| 140 | + | |
142 | 141 | | |
143 | 142 | | |
144 | 143 | | |
| |||
649 | 648 | | |
650 | 649 | | |
651 | 650 | | |
652 | | - | |
653 | | - | |
654 | | - | |
655 | | - | |
656 | | - | |
657 | | - | |
658 | | - | |
659 | | - | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
660 | 655 | | |
661 | | - | |
662 | | - | |
663 | | - | |
| 656 | + | |
664 | 657 | | |
665 | 658 | | |
666 | 659 | | |
| |||
0 commit comments