Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Unleashing the Java 8 tooling in Eclipse - EclipseCon North America 2015

Noopur
March 10, 2015

Unleashing the Java 8 tooling in Eclipse - EclipseCon North America 2015

With Java 8 out the door, it is an exciting time to be a Java developer. The new features in Java 8 are about to change the way you write code and to give it a spin, you have the tooling support in Eclipse ready at your disposal. The Eclipse compiler for Java supports all the new Java 8 language enhancements. The existing IDE functionality has been retooled and new tools have been added to make Eclipse ready for Java 8.

If you have a basic understanding of the new features in Java 8, come here and get a glimpse of the goodies provided by Eclipse as part of its Java 8 support. This session is not intended to introduce the Java 8 concepts, but rather demonstrate the Java 8 tooling in Eclipse.

In this session, I will use JDK 8 and Eclipse to show how to get started with Java 8 in Eclipse. I will demonstrate how the new Java 8 constructs blend with the existing functionality in Eclipse and how the new tooling features make your experience with Java 8 more convenient and pleasant.

Some of the features that you will see in action include:
• Converting anonymous class creations to lambda expressions (and back)
• Converting method references to lambda expressions (and back)
• Changing lambda’s body to block or expression
• Adding inferred lambda parameter types
• Identifying and navigating to the functional method
• Code formatter options for lambda expressions
• Content assist, Search, Debug support
• Quick fixes supporting interface methods
• Type annotations based static null analysis

Link: https://www.eclipsecon.org/na2015/session/unleashing-java-8-tooling-eclipse

Noopur

March 10, 2015
Tweet

More Decks by Noopur

Other Decks in Technology

Transcript

  1. EclipseCon NA 2015 | Unleashing the Java 8 tooling in

    Eclipse 1 Noopur Gupta Eclipse JDT/UI Committer IBM India [email protected]
  2. EclipseCon NA 2015 | Unleashing the Java 8 tooling in

    Eclipse 2 Java 8 features  Java Programming Language Project Lambda o Functional interfaces o Lambda expressions o Method references o Default & Static methods Type annotations Method parameter reflection Repeating annotations  Java Libraries – Streams, Date/Time API  Compact profiles  …
  3. EclipseCon NA 2015 | Unleashing the Java 8 tooling in

    Eclipse 3 Eclipse features for Java 8
  4. EclipseCon NA 2015 | Unleashing the Java 8 tooling in

    Eclipse 4 “Java 8 Tooling in Eclipse” Demo Booth Exhibit Area 11:50 – 12:40 Tomorrow (Wednesday, March 11 2015)
  5. EclipseCon NA 2015 | Unleashing the Java 8 tooling in

    Eclipse 5 Getting started  Download Eclipse (Luna & above)  Add a JRE for JDK 1.8 (Windows > Preferences > Java > Installed JREs)  Set Compiler compliance level to 1.8 (Windows > Preferences > Java > Compiler)  Create a Java Project with JRE 1.8
  6. EclipseCon NA 2015 | Unleashing the Java 8 tooling in

    Eclipse Demo overview  Eclipse tooling for: Project Lambda o Functional interfaces o Lambda expressions o Method references o Default & Static methods Type annotations Method parameter reflection  AST view  Java Element view 6
  7. EclipseCon NA 2015 | Unleashing the Java 8 tooling in

    Eclipse 7 Demo Click here to download the Eclipse workspace used for demo.
  8. EclipseCon NA 2015 | Unleashing the Java 8 tooling in

    Eclipse 8 AST view & Java Element view  Install via update site: http://www.eclipse.org/jdt/ui/update-site  AST view https://eclipse.org/jdt/ui/astview  Java Element view https://eclipse.org/jdt/ui/jeview
  9. EclipseCon NA 2015 | Unleashing the Java 8 tooling in

    Eclipse 10 Tomorrow, 11:50 – 12:40 “Java 8 Tooling in Eclipse” Demo Booth