To get the editor pane to show line numbers go to 'Window' -> 'Preferences' -> 'General' -> 'Text Editors' and click the checkbox labelled 'Show line numbers.
In graphical form: Posted by Srdan Dukic at 21:54 Labels: eclipse, editor, line numbers Marcus Wellington said...

Otherwise, you can also type 'CTRL+1' and then "line", which will give you access to the command "Show line numbers"

27 August 2011 at 05:22 Srdan Dukic
Auckland, Auckland, New Zealand
[null, {"document_url": "http://srdandukic.blogspot.com/2011/07/eclipse-how-to-show-line-numbers.html", "unformatted_src": "http://4.bp.blogspot.com/-C85gooA8bUY/Ti_hfZ7BmEI/AAAAAAAAAIU/J4RmEVPcrHk/s400/eclipse_line_numbers.png", "src": "http://4.bp.blogspot.com/-C85gooA8bUY/Ti_hfZ7BmEI/AAAAAAAAAIU/J4RmEVPcrHk/s400/eclipse_line_numbers.png", "formatted_filename": "eclipse line numbers"}, null, null, null, null, null, null, null]