mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 10:46:02 +02:00
This commit is contained in:
parent
f4b27bf0ee
commit
79e6c110a2
2 changed files with 17 additions and 17 deletions
|
@ -1,3 +1,9 @@
|
|||
2003-03-12 David Inglis
|
||||
* src/org/eclipse/cdt/internal/ui/BuildConsoleManager.java,v
|
||||
Removed buffering of build console as it was preventing output from being
|
||||
visible during long builds.
|
||||
http://bugs.eclipse.org/bugs/show_bug.cgi?id=32012
|
||||
|
||||
2003-03-02 Alain Magloire
|
||||
|
||||
* src/org/eclipse/cdt/ui/wizards/BinaryParserBlock.java:
|
||||
|
|
|
@ -116,23 +116,17 @@ public class BuildConsoleManager implements IBuildConsoleManager, IResourceChang
|
|||
}
|
||||
|
||||
public void flush() throws IOException {
|
||||
flush(false);
|
||||
}
|
||||
|
||||
public void flush(boolean force) throws IOException {
|
||||
if (force || fBuffer.length() > 512) {
|
||||
Display.getDefault().syncExec(new Runnable() {
|
||||
public void run() {
|
||||
if (BuildConsolePreferencePage.isConsoleOnTop())
|
||||
bringConsoleOnTop();
|
||||
try {
|
||||
int len = fDocument.getLength();
|
||||
fDocument.replace(len, 0, readBuffer());
|
||||
} catch (BadLocationException x) {
|
||||
}
|
||||
Display.getDefault().syncExec(new Runnable() {
|
||||
public void run() {
|
||||
if (BuildConsolePreferencePage.isConsoleOnTop())
|
||||
bringConsoleOnTop();
|
||||
try {
|
||||
int len = fDocument.getLength();
|
||||
fDocument.replace(len, 0, readBuffer());
|
||||
} catch (BadLocationException x) {
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
void bringConsoleOnTop() {
|
||||
|
@ -160,7 +154,7 @@ public class BuildConsoleManager implements IBuildConsoleManager, IResourceChang
|
|||
}
|
||||
|
||||
public void close() throws IOException {
|
||||
flush(true);
|
||||
flush();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue