Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 332429 - MessageConsole setWaterMarks scrollable area grows despite contents being limited
Summary: MessageConsole setWaterMarks scrollable area grows despite contents being lim...
Status: CLOSED DUPLICATE of bug 323814
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-13 07:11 EST by Andrew CLA
Modified: 2010-12-14 06:44 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***