Presentation is loading. Please wait.

Presentation is loading. Please wait.

Eclipse and JUnit. Eclipse Terms The Workbench Perspective –Collection of editors and views –Exampes: Java Pers., Debugging Persp. Editors (create a file)

Similar presentations


Presentation on theme: "Eclipse and JUnit. Eclipse Terms The Workbench Perspective –Collection of editors and views –Exampes: Java Pers., Debugging Persp. Editors (create a file)"— Presentation transcript:

1 Eclipse and JUnit

2 Eclipse Terms The Workbench Perspective –Collection of editors and views –Exampes: Java Pers., Debugging Persp. Editors (create a file) Views –Metadata presentation of info –E.g. Package explorer, Properties, Problems

3 More details One Perspective per workbench window –Can get Window->New Window –Use tab/buttons at top right of Workbench –Might try out: Java Browsing, or Java Type Hierarchy

4 Views Have their own toolbar Might be used for navigation, tasks, JUnit Controlling display with FastView –right-click on the view’s tab –Look for icons at bottom-right of Workbench Tasks view: may who lines of code that need attention. Click to go there. See them all: Window->Show View

5 Views in Java Perspective Package Explorer view –By package not by folder-paths Outline view –For given class, shows fields, methods, imports Problems view –Errors and warnings JUnit view –More later!

6 Views in Java Perspective (2) Tasks view –Lines marked by Javadoc comments in your code: TODO, FIXME, XXX Hierarchy View –Right click from Outline or Package on class –See the inheritance tree –Try its three display options (buttons) Call Hierarchy View for seeing call-trees –Drag and drop method from the Outline view –Shows who calls this method, or what this method calls

7 Java Editor What you might expect –Colored syntax; configurable formatting; templates; bracket-matching; line numbers; space/tab conversion; etc etc. But wait – there’s more! –Auto-indent of pasted code –Automatic Javadoc comment creation –Refactoring –And… incremental compiling! Close a file, it’s compiled. Make an error, see the problem. Then Quick Fix! Write code with something missing, the let Quick Fix add that for you!


Download ppt "Eclipse and JUnit. Eclipse Terms The Workbench Perspective –Collection of editors and views –Exampes: Java Pers., Debugging Persp. Editors (create a file)"

Similar presentations


Ads by Google