Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 332429

Summary: MessageConsole setWaterMarks scrollable area grows despite contents being limited
Product: [Eclipse Project] Platform Reporter: Andrew <andrew.rse+eclipse>
Component: DebugAssignee: Platform-Debug-Inbox <platform-debug-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: andrew.rse+eclipse, curtis.windatt.public
Version: 3.7   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Andrew CLA 2010-12-13 07:11:19 EST
Build Identifier:  20100917-0705

If you use setWaterMarks on a MessageConsole the contents will be deleted but the scrollable area will grow as if it has not been.

You can scroll far down even though it's just whitespace.

The buffer is actually cleared, so using setWaterMarks to improve performance is still valid but it's not very useful for the user.

Reproducible: Always

Steps to Reproduce:
MessageConsole console = new MessageConsole("example", null);
console.setWaterMarks(100, 500);
for(int i = 0; i < 10000000; i++)
{
    console.getDocument().set(console.getDocument() + "a");
}
Comment 1 Curtis Windatt CLA 2010-12-13 12:01:25 EST
Moving to Debug
Comment 2 Andrew CLA 2010-12-14 06:44:06 EST

*** This bug has been marked as a duplicate of bug 323814 ***