1
0
Fork 0
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:
David Inglis 2004-08-25 13:42:41 +00:00
parent 7288ace27a
commit 6a973b377a

View file

@ -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() {