bzupages.com 18-nov-15 eclipse. most slides from: bzupages.com 2 introduction eclipse is a...
TRANSCRIPT
![Page 1: BZUPAGES.COM 18-Nov-15 Eclipse. Most slides from: BZUPAGES.COM 2 INTRODUCTION Eclipse is a multi-language](https://reader035.vdocument.in/reader035/viewer/2022081603/56649f2b5503460f94c466fc/html5/thumbnails/1.jpg)
Apr 20, 2023BZUPAGES.COM
Eclipse
![Page 2: BZUPAGES.COM 18-Nov-15 Eclipse. Most slides from: BZUPAGES.COM 2 INTRODUCTION Eclipse is a multi-language](https://reader035.vdocument.in/reader035/viewer/2022081603/56649f2b5503460f94c466fc/html5/thumbnails/2.jpg)
2Most slides from: www.eclipse.org/eclipse/presentation/eclipse-slides.pptBZUPAGES.COM
INTRODUCTION
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.
![Page 3: BZUPAGES.COM 18-Nov-15 Eclipse. Most slides from: BZUPAGES.COM 2 INTRODUCTION Eclipse is a multi-language](https://reader035.vdocument.in/reader035/viewer/2022081603/56649f2b5503460f94c466fc/html5/thumbnails/3.jpg)
3Most slides from: www.eclipse.org/eclipse/presentation/eclipse-slides.pptBZUPAGES.COM
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.
![Page 4: BZUPAGES.COM 18-Nov-15 Eclipse. Most slides from: BZUPAGES.COM 2 INTRODUCTION Eclipse is a multi-language](https://reader035.vdocument.in/reader035/viewer/2022081603/56649f2b5503460f94c466fc/html5/thumbnails/4.jpg)
4Most slides from: www.eclipse.org/eclipse/presentation/eclipse-slides.pptBZUPAGES.COM
Released under the terms of the Eclipse Public License, Eclipse is free and open source software.
![Page 5: BZUPAGES.COM 18-Nov-15 Eclipse. Most slides from: BZUPAGES.COM 2 INTRODUCTION Eclipse is a multi-language](https://reader035.vdocument.in/reader035/viewer/2022081603/56649f2b5503460f94c466fc/html5/thumbnails/5.jpg)
5Most slides from: www.eclipse.org/eclipse/presentation/eclipse-slides.pptBZUPAGES.COM
About IDEs
An IDE is an Integrated Development Environment Different IDEs meet different needs
BlueJ, DrJava are designed as teaching tools Emphasis is on ease of use for beginners Little to learn, so students can concentrate on learning Java
![Page 6: BZUPAGES.COM 18-Nov-15 Eclipse. Most slides from: BZUPAGES.COM 2 INTRODUCTION Eclipse is a multi-language](https://reader035.vdocument.in/reader035/viewer/2022081603/56649f2b5503460f94c466fc/html5/thumbnails/6.jpg)
6Most slides from: www.eclipse.org/eclipse/presentation/eclipse-slides.pptBZUPAGES.COM
Eclipse, JBuilder, NetBeans are designed as professional-level work tools
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
![Page 7: BZUPAGES.COM 18-Nov-15 Eclipse. Most slides from: BZUPAGES.COM 2 INTRODUCTION Eclipse is a multi-language](https://reader035.vdocument.in/reader035/viewer/2022081603/56649f2b5503460f94c466fc/html5/thumbnails/7.jpg)
7Most slides from: www.eclipse.org/eclipse/presentation/eclipse-slides.pptBZUPAGES.COM
Workbench Terminology
Tool bar
PerspectiveandFast Viewbar
ResourceNavigatorview
Propertiesview
Tasksview
Outlineview
Bookmarksview
Menu bar
Messagearea
EditorStatusarea
Texteditor
![Page 8: BZUPAGES.COM 18-Nov-15 Eclipse. Most slides from: BZUPAGES.COM 2 INTRODUCTION Eclipse is a multi-language](https://reader035.vdocument.in/reader035/viewer/2022081603/56649f2b5503460f94c466fc/html5/thumbnails/8.jpg)
8Most slides from: www.eclipse.org/eclipse/presentation/eclipse-slides.pptBZUPAGES.COM
Help Component
Help is presented in a standard web browser
![Page 9: BZUPAGES.COM 18-Nov-15 Eclipse. Most slides from: BZUPAGES.COM 2 INTRODUCTION Eclipse is a multi-language](https://reader035.vdocument.in/reader035/viewer/2022081603/56649f2b5503460f94c466fc/html5/thumbnails/9.jpg)
9Most slides from: www.eclipse.org/eclipse/presentation/eclipse-slides.pptBZUPAGES.COM
Java Development Tools
JDT = Java development tools
Built atop Eclipse Platform Implemented as Eclipse plug-ins Using Eclipse Platform APIs and extension points
Included in Eclipse Project releases Available as separately installable feature
![Page 10: BZUPAGES.COM 18-Nov-15 Eclipse. Most slides from: BZUPAGES.COM 2 INTRODUCTION Eclipse is a multi-language](https://reader035.vdocument.in/reader035/viewer/2022081603/56649f2b5503460f94c466fc/html5/thumbnails/10.jpg)
10Most slides from: www.eclipse.org/eclipse/presentation/eclipse-slides.pptBZUPAGES.COM
Java Perspective Java-centric view of files in Java projects
Java elements meaningful for Java programmers
Javaproject
package
class
field
method
Javaeditor
![Page 11: BZUPAGES.COM 18-Nov-15 Eclipse. Most slides from: BZUPAGES.COM 2 INTRODUCTION Eclipse is a multi-language](https://reader035.vdocument.in/reader035/viewer/2022081603/56649f2b5503460f94c466fc/html5/thumbnails/11.jpg)
11Most slides from: www.eclipse.org/eclipse/presentation/eclipse-slides.pptBZUPAGES.COM
Java Perspective Search for Java elements
Declarations or references Including libraries and other projects
Hitsflaggedin marginof editor
All search results
![Page 12: BZUPAGES.COM 18-Nov-15 Eclipse. Most slides from: BZUPAGES.COM 2 INTRODUCTION Eclipse is a multi-language](https://reader035.vdocument.in/reader035/viewer/2022081603/56649f2b5503460f94c466fc/html5/thumbnails/12.jpg)
12Most slides from: www.eclipse.org/eclipse/presentation/eclipse-slides.pptBZUPAGES.COM
Java Editor
Hovering over identifier shows Javadoc spec
![Page 13: BZUPAGES.COM 18-Nov-15 Eclipse. Most slides from: BZUPAGES.COM 2 INTRODUCTION Eclipse is a multi-language](https://reader035.vdocument.in/reader035/viewer/2022081603/56649f2b5503460f94c466fc/html5/thumbnails/13.jpg)
13Most slides from: www.eclipse.org/eclipse/presentation/eclipse-slides.pptBZUPAGES.COM
Java Editor
Method completion in Java editor
List of plausible methods Doc for method
![Page 14: BZUPAGES.COM 18-Nov-15 Eclipse. Most slides from: BZUPAGES.COM 2 INTRODUCTION Eclipse is a multi-language](https://reader035.vdocument.in/reader035/viewer/2022081603/56649f2b5503460f94c466fc/html5/thumbnails/14.jpg)
14Most slides from: www.eclipse.org/eclipse/presentation/eclipse-slides.pptBZUPAGES.COM
Java Editor
On-the-fly spell check catches errors early
Preview
Clickto seefixes
ProblemQuickfixes
![Page 15: BZUPAGES.COM 18-Nov-15 Eclipse. Most slides from: BZUPAGES.COM 2 INTRODUCTION Eclipse is a multi-language](https://reader035.vdocument.in/reader035/viewer/2022081603/56649f2b5503460f94c466fc/html5/thumbnails/15.jpg)
15Most slides from: www.eclipse.org/eclipse/presentation/eclipse-slides.pptBZUPAGES.COM
Java Editor
Other features of Java editor include Local method history Code formatter Source code for binary libraries Built-in refactoring
![Page 16: BZUPAGES.COM 18-Nov-15 Eclipse. Most slides from: BZUPAGES.COM 2 INTRODUCTION Eclipse is a multi-language](https://reader035.vdocument.in/reader035/viewer/2022081603/56649f2b5503460f94c466fc/html5/thumbnails/16.jpg)
16Most slides from: www.eclipse.org/eclipse/presentation/eclipse-slides.pptBZUPAGES.COM
Refactoring
Refactoring is changing the structure of a program without changing its functionality
![Page 17: BZUPAGES.COM 18-Nov-15 Eclipse. Most slides from: BZUPAGES.COM 2 INTRODUCTION Eclipse is a multi-language](https://reader035.vdocument.in/reader035/viewer/2022081603/56649f2b5503460f94c466fc/html5/thumbnails/17.jpg)
17Most slides from: www.eclipse.org/eclipse/presentation/eclipse-slides.pptBZUPAGES.COM
Refactoring
JDT has actions for refactoring Java code
![Page 18: BZUPAGES.COM 18-Nov-15 Eclipse. Most slides from: BZUPAGES.COM 2 INTRODUCTION Eclipse is a multi-language](https://reader035.vdocument.in/reader035/viewer/2022081603/56649f2b5503460f94c466fc/html5/thumbnails/18.jpg)
18Most slides from: www.eclipse.org/eclipse/presentation/eclipse-slides.pptBZUPAGES.COM
Refactoring
Refactoring actions rewrite source code Within a single Java source file Across multiple interrelated Java source files
Refactoring actions preserve program semantics Does not alter what program does Just affects the way it does it
Encourages exploratory programming Encourages higher code quality
Makes it easier to rewrite poor code
![Page 19: BZUPAGES.COM 18-Nov-15 Eclipse. Most slides from: BZUPAGES.COM 2 INTRODUCTION Eclipse is a multi-language](https://reader035.vdocument.in/reader035/viewer/2022081603/56649f2b5503460f94c466fc/html5/thumbnails/19.jpg)
19Most slides from: www.eclipse.org/eclipse/presentation/eclipse-slides.pptBZUPAGES.COM
Refactoring Full preview of all ensuing code changes
Programmer can veto individual changes
List of changes
“before” vs. “after”
![Page 20: BZUPAGES.COM 18-Nov-15 Eclipse. Most slides from: BZUPAGES.COM 2 INTRODUCTION Eclipse is a multi-language](https://reader035.vdocument.in/reader035/viewer/2022081603/56649f2b5503460f94c466fc/html5/thumbnails/20.jpg)
20Most slides from: www.eclipse.org/eclipse/presentation/eclipse-slides.pptBZUPAGES.COM
Refactoring
Growing catalog of refactoring actions Organize code Rename {field, method, class, package} Move {field, method, class} Extract method Reorder method parameters
![Page 21: BZUPAGES.COM 18-Nov-15 Eclipse. Most slides from: BZUPAGES.COM 2 INTRODUCTION Eclipse is a multi-language](https://reader035.vdocument.in/reader035/viewer/2022081603/56649f2b5503460f94c466fc/html5/thumbnails/21.jpg)
21Most slides from: www.eclipse.org/eclipse/presentation/eclipse-slides.pptBZUPAGES.COM
Eclipse Java Compiler
Eclipse Java compiler 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 Syntax and spell checking Analyze structure inside Java source file Name resolution Content assist Refactoring Searches
![Page 22: BZUPAGES.COM 18-Nov-15 Eclipse. Most slides from: BZUPAGES.COM 2 INTRODUCTION Eclipse is a multi-language](https://reader035.vdocument.in/reader035/viewer/2022081603/56649f2b5503460f94c466fc/html5/thumbnails/22.jpg)
22Most slides from: www.eclipse.org/eclipse/presentation/eclipse-slides.pptBZUPAGES.COM
Eclipse Java Debugger Run or debug Java programs
Threads and stack
frames
Editor with breakpoint
marks
Console I/O
Local variables
![Page 23: BZUPAGES.COM 18-Nov-15 Eclipse. Most slides from: BZUPAGES.COM 2 INTRODUCTION Eclipse is a multi-language](https://reader035.vdocument.in/reader035/viewer/2022081603/56649f2b5503460f94c466fc/html5/thumbnails/23.jpg)
23Most slides from: www.eclipse.org/eclipse/presentation/eclipse-slides.pptBZUPAGES.COM
Eclipse Java Debugger Run Java programs
Console provides stdout, stdin, stderr Scrapbook pages for executing Java code
Debug Java programs Full source code debugging
Debugger features include Method and exception breakpoints Conditional breakpoints Watchpoints Step over, into, return; run to line Inspect and modify fields and local variables
![Page 24: BZUPAGES.COM 18-Nov-15 Eclipse. Most slides from: BZUPAGES.COM 2 INTRODUCTION Eclipse is a multi-language](https://reader035.vdocument.in/reader035/viewer/2022081603/56649f2b5503460f94c466fc/html5/thumbnails/24.jpg)
24Most slides from: www.eclipse.org/eclipse/presentation/eclipse-slides.pptBZUPAGES.COM
Prerequisites for installation eclipse
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.
![Page 25: BZUPAGES.COM 18-Nov-15 Eclipse. Most slides from: BZUPAGES.COM 2 INTRODUCTION Eclipse is a multi-language](https://reader035.vdocument.in/reader035/viewer/2022081603/56649f2b5503460f94c466fc/html5/thumbnails/25.jpg)
25Most slides from: www.eclipse.org/eclipse/presentation/eclipse-slides.pptBZUPAGES.COM
The End