Using Eclipse IDE
Using Eclipse IDE
Eclipse IDE (or any other IDE) has lots of features to enable people to interact with code,
both writing and comprehending code, more effectively than simple text editors
The objective of this guide is on using Eclipse IDE to read code than writing code.
Object-oriented
• Abstraction
i. Class hierarchies
ii. Interfaces, abstract classes
• Encapsulation
i. private/public/protected
• Polymorphism
Runtime
o Classpath
o Library dependencies
how it works and how to resolve issues
About Eclipse IDE
Key feature of Eclipse IDE, and basic operations in Eclipse
Eclipse workspace
o When would you want to create a different workspace
o Similar to VS ‘solution’
Perspectives
Layout of different views of interest to make yourself comfortable with
operation that you are doing. One can modify the layout of views, add more
views etc…
o Java
o Debug
How to Open
o Files of interest
o Classes of interest
Java Editor
o Go to methods/fields
In this class
In super classes
In sub classes
o Go to definition of methods
Debugging approaches
These are general debugging approaches that apply to any IDE. We are highlighting how
to go about it
Breakpoints
o Important entry-point methods
Inspecting variables
o Catching changes in variables
Search -
Ctrl+F - search in current file
Ctrl+K, Ctrl+Shift+K - continue search forward/backward in current file (like F3 in UltraEdit
VC++)
Ctrl+H - Advanced Search dialog
General –
Ctrl+M - Maximize/Restore of any view