SlideShare a Scribd company logo
Eclipse May 18, 2010
About IDEs An IDE is an  I ntegrated  D evelopment  E nvironment 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 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 The following slides are taken from   www.eclipse.org/eclipse/presentation/eclipse-slides.ppt
Workbench Terminology Tool bar Perspective and Fast View bar Resource Navigator view Stacked views Properties view Tasks view Outline view Bookmarks view Menu bar Message area Editor Status area Text editor
Help Component Help is presented in a standard web browser
Java Development Tools JDT = Java development tools State of the art Java development environment 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 Part of Eclipse SDK drops
Java Perspective Java-centric view of files in Java projects Java elements meaningful for Java programmers Java project package class field method Java editor
Java Perspective Browse type hierarchies “ Up” hierarchy to supertypes “ Down” hierarchy to subtypes Type hierarchy Selected type’s members
Java Perspective Search for Java elements Declarations or references Including libraries and other projects Hits flagged in margin of editor All search results
Java Editor Hovering over identifier shows Javadoc spec
Java Editor Method completion in Java editor List of plausible methods Doc for method
Java Editor On-the-fly spell check catches errors early Click to see fixes Problem Preview Quick fixes
Java Editor Code templates help with drudgery Statement template Preview
Java Editor Method stub insertion for inherited methods Method stub insertion for anonymous inner types Java editor creates stub methods
Java Editor Variable name suggestion Argument hints and proposed argument names JavaDoc code assist Java editor helps programmers write good Java code
Java Editor Other features of Java editor include Local method history Code formatter Source code for binary libraries Built-in refactoring
Refactoring JDT has actions for refactoring Java code
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
Refactoring Full preview of all ensuing code changes Programmer can veto individual changes List of changes “ before” vs. “after”
Refactoring Growing catalog of refactoring actions Organize imports Rename {field, method, class, package} Move {field, method, class} Extract method Extract local variable Inline local variable Reorder method parameters
Eclipse Java Compiler Eclipse Java compiler JCK-compliant Java compiler (selectable 1.3 and 1.4) 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
Eclipse Java Debugger Run or debug Java programs Threads and stack frames Editor with breakpoint marks Console I/O Local variables
Eclipse Java Debugger Run Java programs In separate target JVM (user selectable) Console provides stdout, stdin, stderr Scrapbook pages for executing Java code snippets Debug Java programs Full source code debugging Any JPDA-compliant JVM Debugger features include Method and exception breakpoints Conditional breakpoints Watchpoints Step over, into, return; run to line Inspect and modify fields and local variables Evaluate snippets in context of method Hot swap (if target JVM supports)
The End

More Related Content

PPT
Java for Recruiters
ph7 -
 
PDF
What is Java
3trg
 
DOCX
Java and its features
Pydi Nikhil
 
PDF
JAVA Program Examples
Prof Chethan Raj C
 
PPT
1 2 java development
Ken Kretsch
 
PPT
Java intro
M Vishnuvardhan Reddy
 
DOC
Java 5
mannut2001
 
PPT
INTRODUCTION TO JAVA APPLICATION
Ajit Yadav
 
Java for Recruiters
ph7 -
 
What is Java
3trg
 
Java and its features
Pydi Nikhil
 
JAVA Program Examples
Prof Chethan Raj C
 
1 2 java development
Ken Kretsch
 
Java 5
mannut2001
 
INTRODUCTION TO JAVA APPLICATION
Ajit Yadav
 

What's hot (20)

PDF
Introduction to java (revised)
Sujit Majety
 
PPT
Java Presentation
pm2214
 
PPTX
Chapter 2.1
sotlsoc
 
PPTX
Features of java
laratechnologies
 
DOC
Grade 8: Introduction To Java
nandanrocker
 
PDF
Introduction to Java
Professional Guru
 
PPTX
21. Java High Quality Programming Code
Intro C# Book
 
PPTX
Features of java - javatportal
JavaTportal
 
PPTX
Scala and its Ecosystem
Petr Hošek
 
PDF
Java technologies explained to non-technical audience
Steinn 'Stan' Jónsson
 
PDF
J introtojava1-pdf
Emmanuel Alimpolos
 
PPTX
Features of java
Hitesh Kumar
 
PPT
Lecture 10 software development
Jehanzaib Yousuf
 
PDF
Introduction to Java Programming Language
jaimefrozr
 
PPTX
Groovy features
Ramakrishna kapa
 
PPT
Chapter 1 introduction to java technology
sshhzap
 
PPTX
Java Programming
Elizabeth alexander
 
PDF
Introduction to Java
Professional Guru
 
Introduction to java (revised)
Sujit Majety
 
Java Presentation
pm2214
 
Chapter 2.1
sotlsoc
 
Features of java
laratechnologies
 
Grade 8: Introduction To Java
nandanrocker
 
Introduction to Java
Professional Guru
 
21. Java High Quality Programming Code
Intro C# Book
 
Features of java - javatportal
JavaTportal
 
Scala and its Ecosystem
Petr Hošek
 
Java technologies explained to non-technical audience
Steinn 'Stan' Jónsson
 
J introtojava1-pdf
Emmanuel Alimpolos
 
Features of java
Hitesh Kumar
 
Lecture 10 software development
Jehanzaib Yousuf
 
Introduction to Java Programming Language
jaimefrozr
 
Groovy features
Ramakrishna kapa
 
Chapter 1 introduction to java technology
sshhzap
 
Java Programming
Elizabeth alexander
 
Introduction to Java
Professional Guru
 
Ad

Viewers also liked (14)

KEY
Eclipse using tricks
Jay Xu
 
PDF
Eclipse workshop presentation
Miguel Pardal
 
PDF
Eclipse vs. IntelliJ IDEA : Refactorings Showdown
akraievoy
 
PDF
ARIES: An Eclipse Plug-in To Support Extract Class Refactoring
Fabio Palomba
 
ODP
Automated Refactoring
Janeve George
 
PPT
Mockito with a hint of PowerMock
Ying Zhang
 
PDF
Refactoring to SOLID Code
Adil Mughal
 
PDF
Intro to Eclipse Che, by Tyler Jewell
jwi11iams
 
PPT
Code Refactoring
Charlie Berg
 
KEY
Clean code and Code Smells
Mario Sangiorgio
 
PDF
Refactoring - An Introduction
Giorgio Vespucci
 
PDF
ATL tutorial - EclipseCon 2009
William Piers
 
PDF
Eclipse refactoring
srcid
 
PPT
Refactoring Tips by Martin Fowler
Igor Crvenov
 
Eclipse using tricks
Jay Xu
 
Eclipse workshop presentation
Miguel Pardal
 
Eclipse vs. IntelliJ IDEA : Refactorings Showdown
akraievoy
 
ARIES: An Eclipse Plug-in To Support Extract Class Refactoring
Fabio Palomba
 
Automated Refactoring
Janeve George
 
Mockito with a hint of PowerMock
Ying Zhang
 
Refactoring to SOLID Code
Adil Mughal
 
Intro to Eclipse Che, by Tyler Jewell
jwi11iams
 
Code Refactoring
Charlie Berg
 
Clean code and Code Smells
Mario Sangiorgio
 
Refactoring - An Introduction
Giorgio Vespucci
 
ATL tutorial - EclipseCon 2009
William Piers
 
Eclipse refactoring
srcid
 
Refactoring Tips by Martin Fowler
Igor Crvenov
 
Ad

Similar to Eclipse (20)

PPT
Java platform
BG Java EE Course
 
DOCX
Unit of competency
loidasacueza
 
PPTX
Introduction to java
princeirfancivil
 
PPTX
Introduction to java
Veerabadra Badra
 
PPTX
Unit1 introduction to Java
DevaKumari Vijay
 
PPT
R:\ap java\class slides\chapter 1\1 2 java development
Ken Kretsch
 
PPT
Introduction
richsoden
 
PPTX
brief introduction to core java programming.pptx
ansariparveen06
 
PPTX
Java fundamentals 2
prathushalaxmi
 
PPTX
Core java introduction
Beenu Gautam
 
PPT
01slide
Usha Sri
 
PPT
01slide
cdclabs_123
 
PPTX
Java Introduction
javeed_mhd
 
PPTX
2 22CA026_Advance Java Programming_Data types and Operators.pptx
dolphiverma80
 
PPTX
Introduction to java
javeed_mhd
 
PPTX
Introduction to java
Phaniu
 
PPTX
Programming in HTML5 With Java Script and CSS3
Testbells
 
PPTX
java tutorial for beginner - Free Download
TIB Academy
 
Java platform
BG Java EE Course
 
Unit of competency
loidasacueza
 
Introduction to java
princeirfancivil
 
Introduction to java
Veerabadra Badra
 
Unit1 introduction to Java
DevaKumari Vijay
 
R:\ap java\class slides\chapter 1\1 2 java development
Ken Kretsch
 
Introduction
richsoden
 
brief introduction to core java programming.pptx
ansariparveen06
 
Java fundamentals 2
prathushalaxmi
 
Core java introduction
Beenu Gautam
 
01slide
Usha Sri
 
01slide
cdclabs_123
 
Java Introduction
javeed_mhd
 
2 22CA026_Advance Java Programming_Data types and Operators.pptx
dolphiverma80
 
Introduction to java
javeed_mhd
 
Introduction to java
Phaniu
 
Programming in HTML5 With Java Script and CSS3
Testbells
 
java tutorial for beginner - Free Download
TIB Academy
 

More from guestb66fe26 (10)

PPTX
Sistemul nervos
guestb66fe26
 
PPTX
Sistemul circulatorpoint
guestb66fe26
 
DOCX
Sistemul endocrin
guestb66fe26
 
PPT
Tabagism
guestb66fe26
 
PPT
Tabagism
guestb66fe26
 
PPT
Tabagism
guestb66fe26
 
PPTX
Sistemul circulatorpoint
guestb66fe26
 
PPT
Caderedemeteoriti
guestb66fe26
 
PPT
0cosmosul
guestb66fe26
 
PPT
Sistemulsolar
guestb66fe26
 
Sistemul nervos
guestb66fe26
 
Sistemul circulatorpoint
guestb66fe26
 
Sistemul endocrin
guestb66fe26
 
Tabagism
guestb66fe26
 
Tabagism
guestb66fe26
 
Tabagism
guestb66fe26
 
Sistemul circulatorpoint
guestb66fe26
 
Caderedemeteoriti
guestb66fe26
 
0cosmosul
guestb66fe26
 
Sistemulsolar
guestb66fe26
 

Eclipse

  • 2. About IDEs An IDE is an I ntegrated D evelopment E nvironment 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 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 The following slides are taken from www.eclipse.org/eclipse/presentation/eclipse-slides.ppt
  • 3. Workbench Terminology Tool bar Perspective and Fast View bar Resource Navigator view Stacked views Properties view Tasks view Outline view Bookmarks view Menu bar Message area Editor Status area Text editor
  • 4. Help Component Help is presented in a standard web browser
  • 5. Java Development Tools JDT = Java development tools State of the art Java development environment 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 Part of Eclipse SDK drops
  • 6. Java Perspective Java-centric view of files in Java projects Java elements meaningful for Java programmers Java project package class field method Java editor
  • 7. Java Perspective Browse type hierarchies “ Up” hierarchy to supertypes “ Down” hierarchy to subtypes Type hierarchy Selected type’s members
  • 8. Java Perspective Search for Java elements Declarations or references Including libraries and other projects Hits flagged in margin of editor All search results
  • 9. Java Editor Hovering over identifier shows Javadoc spec
  • 10. Java Editor Method completion in Java editor List of plausible methods Doc for method
  • 11. Java Editor On-the-fly spell check catches errors early Click to see fixes Problem Preview Quick fixes
  • 12. Java Editor Code templates help with drudgery Statement template Preview
  • 13. Java Editor Method stub insertion for inherited methods Method stub insertion for anonymous inner types Java editor creates stub methods
  • 14. Java Editor Variable name suggestion Argument hints and proposed argument names JavaDoc code assist Java editor helps programmers write good Java code
  • 15. Java Editor Other features of Java editor include Local method history Code formatter Source code for binary libraries Built-in refactoring
  • 16. Refactoring JDT has actions for refactoring Java code
  • 17. 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
  • 18. Refactoring Full preview of all ensuing code changes Programmer can veto individual changes List of changes “ before” vs. “after”
  • 19. Refactoring Growing catalog of refactoring actions Organize imports Rename {field, method, class, package} Move {field, method, class} Extract method Extract local variable Inline local variable Reorder method parameters
  • 20. Eclipse Java Compiler Eclipse Java compiler JCK-compliant Java compiler (selectable 1.3 and 1.4) 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
  • 21. Eclipse Java Debugger Run or debug Java programs Threads and stack frames Editor with breakpoint marks Console I/O Local variables
  • 22. Eclipse Java Debugger Run Java programs In separate target JVM (user selectable) Console provides stdout, stdin, stderr Scrapbook pages for executing Java code snippets Debug Java programs Full source code debugging Any JPDA-compliant JVM Debugger features include Method and exception breakpoints Conditional breakpoints Watchpoints Step over, into, return; run to line Inspect and modify fields and local variables Evaluate snippets in context of method Hot swap (if target JVM supports)

Editor's Notes

  • #4: [Contains animated elements]
  • #10: [Contains animated elements]
  • #11: [Contains animated elements]
  • #12: [Contains animated elements] Syntax and spell checking are done on-the-fly. Calls Java compiler to parse source code and resolve names in context. Developers refer to those wavy red lines as “the red sea” :-). Problem markers are appear in the left margin of editor. “ Red X” instead of “light bulb” if no proposed corrections.
  • #13: [Contains animated elements]
  • #14: [Contains animated elements]
  • #15: [Contains animated elements]
  • #19: Screen shot shows Extract Method applied to the print statement in HelloWorld.main method.
  • #21: Scales to large projects, like Eclipse itself.