Tuesday January 28
Download
Report
Transcript Tuesday January 28
Integrated
Development
Environments
Today We Will:
• Go over more advanced functionality of Eclipse.
• Break up into teams to work on presentation and
final project proposals.
Some Advanced Features of Eclipse
•
•
•
•
•
•
•
•
Setting preferences
Importing and exporting files
Debugging
Error reporting.
Packages
Views and perspectives
Refresh and rebuild
Options under Source menu item
– Java docs
Setting Some Basic Preferences
• Workbench
– Appearance
– File associations
– Fonts
• Debug
– Console
– Variable views
• Java
–
–
–
–
–
–
–
Appearance
Classpath variables
Code formatter
Code generation
Editor
Installed JREs
Templates
Importing and Exporting Files
• In Eclipse, you need to import and export files
from the working repository.
• You do this by using the import and export options
under the file menu.
Debugging
• Eclipse has a built-in debugger that lets you run
applications directly in the editor.
• You can set arguments when running applications.
• You can set breakpoints that stop the executing
program in various places.
– You can view the settings for various variables at these
breakpoints.
Error Reporting
• Eclipse helps you when you are writing code by
pointing out errors as you type the code.
– These errors are highlighted even before you compile.
– You can see the error by placing the mouse cursor over
the error icon.
• The developer can even look up documentation
directly within the platform to resolve problems.
Packages
• Package directly structures are directly translated
during import and export functions.
Views and Perspectives
• Package browser
• Java
• Debug.
More Options
•
•
•
•
Generating getter/setter methods in Source.
Setting up main method for applications.
Adding javadocs.
Commenting/uncommenting a block of code