Bug 236049

Summary: [console] 'Clear' context menu item enable when no text is available to be cleared
Product: [Eclipse Project] Platform Reporter: Joe Luebker <joe_luebker>
Component: DebugAssignee: Platform-Debug-Inbox <platform-debug-inbox>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: curtis.windatt.public, jacek.pospychala, Michael_Rennie
Version: 3.3.1Keywords: bugday, contributed
Target Milestone: 3.5 M1   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Patch to solve this bug Michael_Rennie: iplog+, Michael_Rennie: review+

Description Joe Luebker CLA 2008-06-06 10:15:32 EDT
Build ID: M20071023-1652

Steps To Reproduce:
1.Open the Console View.
2.When there is no text displayed in the view right-click in the view to display the context menu.
3.Notice that that 'Clear' menu item is enabled even though there is nothing to clear. The 'Find/Replace' item is disabled and only becomes enabled when text is added to the view. It seems that the Clear menu item should behave in a similar manner.


More information:
Comment 1 Livar Cunha CLA 2008-07-24 20:39:59 EDT
Created attachment 108408 [details]
Patch to solve this bug
Comment 2 Michael Rennie CLA 2008-07-28 11:11:20 EDT
Applied patch, with additional NPE check and updated copyrights.

Thanks for the patch Livar.
Comment 3 Michael Rennie CLA 2008-07-28 11:12:51 EDT
verified.