Select the Clear command [ ] to remove all of the contents from the view.
This command applies to:
Java views Java perspectives
Context Menu Items