mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
fixed bug # 72074
This commit is contained in:
parent
7288ace27a
commit
6a973b377a
1 changed files with 22 additions and 10 deletions
|
@ -114,8 +114,17 @@ public class BuildConsolePage extends Page implements ISelectionListener, IPrope
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void consoleChange(IBuildConsoleEvent event) {
|
public void consoleChange(final IBuildConsoleEvent event) {
|
||||||
if (event.getType() == IBuildConsoleEvent.CONSOLE_START || event.getType() == IBuildConsoleEvent.CONSOLE_CLOSE) {
|
if (event.getType() == IBuildConsoleEvent.CONSOLE_START || event.getType() == IBuildConsoleEvent.CONSOLE_CLOSE) {
|
||||||
|
Control control = getControl();
|
||||||
|
if (control != null && !control.isDisposed()) {
|
||||||
|
Display display = control.getDisplay();
|
||||||
|
display.asyncExec(new Runnable() {
|
||||||
|
|
||||||
|
/* (non-Javadoc)
|
||||||
|
* @see java.lang.Runnable#run()
|
||||||
|
*/
|
||||||
|
public void run() {
|
||||||
if (isAvailable()) {
|
if (isAvailable()) {
|
||||||
if (event.getType() == IBuildConsoleEvent.CONSOLE_CLOSE && getProject() != event.getProject()) {
|
if (event.getType() == IBuildConsoleEvent.CONSOLE_CLOSE && getProject() != event.getProject()) {
|
||||||
return;
|
return;
|
||||||
|
@ -127,6 +136,9 @@ public class BuildConsolePage extends Page implements ISelectionListener, IPrope
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean isAvailable() {
|
boolean isAvailable() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue