Eclipse BZUPAGES COM INTRODUCTION n n Eclipse is
Eclipse BZUPAGES. COM
INTRODUCTION n n Eclipse is a multi-language software development environment comprising an integrated development environment (IDE) and an extensible plug-in system. It is written primarily in Java and can be used to develop applications in Java and, by means of the various plug-ins, in other languages as well, including C, C++, COBOL, Python, Perl, PHP. BZUPAGES. COM Most slides from: www. eclipse. org/eclipse/presentation/eclipse-slides. ppt 2
n Users can extend its capabilities by installing plug-ins written for the Eclipse software framework, such as development toolkits for other programming languages, and can write and contribute their own plug-in modules. BZUPAGES. COM Most slides from: www. eclipse. org/eclipse/presentation/eclipse-slides. ppt 3
n Released under the terms of the Eclipse Public License, Eclipse is free and open source software. BZUPAGES. COM Most slides from: www. eclipse. org/eclipse/presentation/eclipse-slides. ppt 4
About IDEs n n An IDE is an Integrated Development Environment Different IDEs meet different needs n Blue. J, Dr. Java are designed as teaching tools n n Emphasis is on ease of use for beginners Little to learn, so students can concentrate on learning Java BZUPAGES. COM Most slides from: www. eclipse. org/eclipse/presentation/eclipse-slides. ppt 5
n Eclipse, JBuilder, Net. Beans are designed as professional-level work tools n n n Emphasis is on supporting professional programmers More to learn, but well worth it in the long run We will use Eclipse, but other professional IDEs are similar BZUPAGES. COM Most slides from: www. eclipse. org/eclipse/presentation/eclipse-slides. ppt 6
Workbench Terminology Menu bar Text editor Tool bar Perspective and Fast View bar Outline view Resource Navigator view Bookmarks view Properties view Message area BZUPAGES. COM Tasks view Editor Status area Most slides from: www. eclipse. org/eclipse/presentation/eclipse-slides. ppt 7
Help Component n Help is presented in a standard web browser BZUPAGES. COM Most slides from: www. eclipse. org/eclipse/presentation/eclipse-slides. ppt 8
Java Development Tools n JDT = Java development tools n Built atop Eclipse Platform n n n Implemented as Eclipse plug-ins Using Eclipse Platform APIs and extension points Included in Eclipse Project releases n Available as separately installable feature BZUPAGES. COM Most slides from: www. eclipse. org/eclipse/presentation/eclipse-slides. ppt 9
Java Perspective n Java-centric view of files in Java projects n Java elements meaningful for Java programmers Java project package class field method Java editor BZUPAGES. COM Most slides from: www. eclipse. org/eclipse/presentation/eclipse-slides. ppt 10
Java Perspective n Search for Java elements n n Declarations or references Including libraries and other projects Hits flagged in margin of editor All search results BZUPAGES. COM Most slides from: www. eclipse. org/eclipse/presentation/eclipse-slides. ppt 11
Java Editor n Hovering over identifier shows Javadoc spec BZUPAGES. COM Most slides from: www. eclipse. org/eclipse/presentation/eclipse-slides. ppt 12
Java Editor n Method completion in Java editor List of plausible methods BZUPAGES. COM Doc for method Most slides from: www. eclipse. org/eclipse/presentation/eclipse-slides. ppt 13
Java Editor n On-the-fly spell check catches errors early Click to see fixes Problem Quick fixes BZUPAGES. COM Preview Most slides from: www. eclipse. org/eclipse/presentation/eclipse-slides. ppt 14
Java Editor n Other features of Java editor include n n Local method history Code formatter Source code for binary libraries Built-in refactoring BZUPAGES. COM Most slides from: www. eclipse. org/eclipse/presentation/eclipse-slides. ppt 15
Refactoring n Refactoring is changing the structure of a program without changing its functionality BZUPAGES. COM Most slides from: www. eclipse. org/eclipse/presentation/eclipse-slides. ppt 16
Refactoring n JDT has actions for refactoring Java code BZUPAGES. COM Most slides from: www. eclipse. org/eclipse/presentation/eclipse-slides. ppt 17
Refactoring n Refactoring actions rewrite source code n n n Refactoring actions preserve program semantics n n Within a single Java source file Across multiple interrelated Java source files Does not alter what program does Just affects the way it does it Encourages exploratory programming Encourages higher code quality n Makes it easier to rewrite poor code BZUPAGES. COM Most slides from: www. eclipse. org/eclipse/presentation/eclipse-slides. ppt 18
Refactoring n Full preview of all ensuing code changes n Programmer can veto individual changes List of changes “before” vs. “after” BZUPAGES. COM Most slides from: www. eclipse. org/eclipse/presentation/eclipse-slides. ppt 19
Refactoring n Growing catalog of refactoring actions n n n Organize code Rename {field, method, class, package} Move {field, method, class} Extract method Reorder method parameters BZUPAGES. COM Most slides from: www. eclipse. org/eclipse/presentation/eclipse-slides. ppt 20
Eclipse Java Compiler n Eclipse Java compiler n n n Helpful error messages Generates runnable code even in presence of errors Fully-automatic incremental recompilation High performance Scales to large projects Multiple other uses besides the obvious n n n Syntax and spell checking Analyze structure inside Java source file Name resolution Content assist Refactoring Searches BZUPAGES. COM Most slides from: www. eclipse. org/eclipse/presentation/eclipse-slides. ppt 21
Eclipse Java Debugger n Run or debug Java programs Local variables Threads and stack frames Editor with breakpoint marks Console I/O BZUPAGES. COM Most slides from: www. eclipse. org/eclipse/presentation/eclipse-slides. ppt 22
Eclipse Java Debugger n Run Java programs n n n Debug Java programs n n Console provides stdout, stdin, stderr Scrapbook pages for executing Java code Full source code debugging Debugger features include n n n Method and exception breakpoints Conditional breakpoints Watchpoints Step over, into, return; run to line Inspect and modify fields and local variables BZUPAGES. COM Most slides from: www. eclipse. org/eclipse/presentation/eclipse-slides. ppt 23
Prerequisites for installation eclipse n n A 1. 6 JDK installed in a standard place Ensure JAVA_HOME is set (e. g. , export JAVA_HOME=/usr/lib/jvm/java) Ant version 1. 7. 1 or newer At least 3 GB of storage available. BZUPAGES. COM Most slides from: www. eclipse. org/eclipse/presentation/eclipse-slides. ppt 24
The End BZUPAGES. COM Most slides from: www. eclipse. org/eclipse/presentation/eclipse-slides. ppt 25
- Slides: 25