SlideShare a Scribd company logo
Unleashing the Java Tooling in IDE
TIPS & TRICKS!
Noopur Gupta
Eclipse JDT co-lead
IBM | ACM FCA
@noopur2507
@EclipseJavaIDE
@WomenTechNet
#WTGC2020
Appearance
Navigation
Investigation
Coding
Debugging
Java Tooling
JUnit 5 Tooling
OVERVIEW
• Window > Appearance
• Hide Toolbar, Status Bar
• Full Screen (Alt + F11)
• Show key bindings when command is invoked
• Zoom in Text Editors
• Zoom In: Ctrl + + (or) Ctrl + =
• Zoom Out: Ctrl + -
• Pinch gestures on touch-enabled devices
• Working Sets
• Preferences > Java > Appearance
• Abbreviate Package Names with Custom Rules
• Sort Library Entries Alphabetically in Package Explorer
APPEARANCE
Noopur Gupta, IBM | WomenTech Global Conference 2020 3
• Quick Access / Find Actions (Ctrl + 3)
• Quick Switch Editor (Ctrl + E) – Open editors list
• ‘Delete’ key – close editor
• Quick Outline (Ctrl + O, twice to show inherited members)
• In-place Outline (Ctrl + F3)
• Configure problem severity quick fix (Ctrl + 1)
• Hovers (Preferences > Java > Editor > Hovers)
• In-place Javadoc (with error/warning on element)
• Ctrl + Shift and hover, or use Javadoc view
• In-place source code
• Shift and hover, or use Declaration view
• Sticky Hover (F2) – Open attached Javadoc in a Browser
• Expand vertical ruler icons upon hovering
NAVIGATION
4Noopur Gupta, IBM | WomenTech Global Conference 2020
NAVIGATION
• Search Dialog (Ctrl + H)
• Quick Text Search (Ctrl + Alt + Shift + L)
• Go to last edit location (Ctrl + Q)
• Alt + Left/Right – move backward/forward in editor navigation history
• Markers
• Bookmarks
• Right-click on left editor pane > Add Bookmark…
• Bookmarks view
• Tasks
• Right-click on left editor pane > Add Task…
• Tasks view
• Preferences > Java > Compiler > Task Tags
• Show In (Alt + Shift + W) > System Explorer
5Noopur Gupta, IBM | WomenTech Global Conference 2020
INVESTIGATION
• Plug-in Spies
• Alt + Shift + F1 – Plug-in Selection Spy
• Alt + Shift + F2 – Plug-in Menu Spy
• Alt + Shift + F3 – Show Contributing Plug-in
• Ctrl + Alt + Shift + F9 – Layout Spy
• Plug-in Image Browser
• Externalized Strings
• Ctrl + Click on key in .properties file to find referencing code
• Show Revision Information
• To determine who last modified a line of code and when
• Right-click on left editor pane > Show Revision Information
6Noopur Gupta, IBM | WomenTech Global Conference 2020
INVESTIGATION
• UI Responsiveness Monitoring
• For automatic detection and logging of stack traces when Eclipse UI is
unresponsive
• Window > Preferences > General > UI Responsiveness Monitoring
• Java Stack Trace Console
• Copy stack trace from log file and Navigate > Open from Clipboard
(Ctrl + Shift + V)
• Click on hyperlinks to jump to the code
• Click on exception name hyperlink to create an exception breakpoint
7Noopur Gupta, IBM | WomenTech Global Conference 2020
CODING
• Content Assist - Insert or Overwrite
• Replace existing text while invoking content assist
• Press ‘Ctrl’ to toggle while content assist is active
• Content Assist Templates
• Configure/Create in Templates view, Export/Import in Preferences
• Content Assist Postfix Proposals
• Preferences > Java > Editor > Content Assist > Advanced
• Auto Activation of Content Assist (Preferences > Java > Editor > Content Assist)
• Auto activation triggers for Java
• Disable insertion triggers except ‘Enter’
• Type Filters (Preferences > Java > Appearance > Type Filters)
• Ignore certain types from content assist, imports organization, quick fixes, open
type dialog etc.
8Noopur Gupta, IBM | WomenTech Global Conference 2020
CODING
• Code Minings (as decorative text; via extension point)
• Preferences > Java > Editor > Code Minings
• Show references
• Show implementations
• Show method parameter names
or, Show method parameter hints – Ctrl + Shift + Space
• Block Selection Mode (Alt + Shift + A)
• To edit a large number of almost identical lines at the same time
• Expand selection to enclosing element (Alt + Shift + Up / Down)
• Duplicate lines (Ctrl + Alt + Up / Down)
• Move lines (Alt + Up / Down)
• Delete lines (Ctrl + D)
9Noopur Gupta, IBM | WomenTech Global Conference 2020
DEBUGGING
• Smart Step Into (Ctrl + F5 or Ctrl + Alt + Click)
o To step into a single method within a series of chained or nested method calls
• Step Filters
o To filter out specified classes and packages while stepping into code
o Preferences > Java > Debug > Step Filtering
• Run to Line (Ctrl + Alt + Click on left editor pane)
• Grouping and Sharing breakpoints – Breakpoints view
o Sort by name or creation time
o Group by various categories or create working sets
o Share by exporting/importing breakpoint groups
10Noopur Gupta, IBM | WomenTech Global Conference 2020
DEBUGGING
• Tracepoint
• A point in code where the debugger does not break the execution but
only prints to console
• Prevents the addition of print statements in code while debugging
• Can be used to debug race conditions or to see the order of execution
of threads
• Run > Toggle Tracepoint
• Trigger Point
• Set a breakpoint as trigger point in Breakpoint Properties
• All the breakpoints (except trigger points) are disabled until a trigger
point is hit
• All the trigger points are disabled after a trigger point is hit and all the
trigger points will be re-enabled for the next run
• Remove all trigger points – context-menu action in Breakpoints view
• Hit count - The breakpoint suspends the execution of a thread only when it
is encountered for the Nth time.
11Noopur Gupta, IBM | WomenTech Global Conference 2020
JAVA TOOLING
• Paste Code on Package Explorer
• A new Java project will be created and the file will be opened in Java editor
• Java 14 – Records, Text Blocks, Switch Expressions
• Configure > Enable preview features
• New > Java > Record
• Text blocks
• Ctrl + Shift + ' to insert triple quotes
• Double-click to select text block content
• Ctrl + I to indent
• Switch Expressions and Enhanced Switch Statements
• Add missing case statements and default case
• Split case labels
• Ctrl + Click on ‘case’ and ‘default’ to jump to the target location in switch
12Noopur Gupta, IBM | WomenTech Global Conference 2020
JAVA TOOLING
• Java 11 - ‘var’ support
• Declare extracted local variable’s type as ‘var’
• Replace ‘var’ with inferred type & vice-versa
• Hover to view the inferred type for ‘var’
• Ctrl + Click to navigate to the inferred type of ‘var’
• Java 9 – Java Platform Module System
• Convert to modular project - create module-info.java action
• Add libraries to module path
• Configure properties of module graph (Module Dependencies)
• Quick fix to identify and add required module to module-info.java
• Create and export a non-empty package in a single step from module-info.java
• Quick fix to provide a service implementation from module-info.java
13Noopur Gupta, IBM | WomenTech Global Conference 2020
JAVA TOOLING
• Java 8 – Lambda Expressions and Method References
• Convert anonymous class to lambda and back
• Convert lambda to method reference and back
• Add inferred lambda parameter types
• View and navigate to the functional method
• Refactoring on functional interface instances e.g.
Change method signature
14Noopur Gupta, IBM | WomenTech Global Conference 2020
JUNIT 5 TOOLING
• Quick assist to create JUnit Jupiter test class and test method
• Grouped assertions and combined result comparison
• Navigate to failing source location
• Double-click on entry in JUnit view’s failure trace
• Click "Show Stack Trace in Console View" button and use the hyperlinks
• Tagging and Filtering (@Tag)
• Configure Tags dialog in JUnit launch configuration
• Ctrl + Click on a launch name in the toolbar history to directly open it
in the launch configuration dialog
• Embracing JUnit 5 with Eclipse IDE – Webinar
15Noopur Gupta, IBM | WomenTech Global Conference 2020
RESOURCES
• List all keyboard shortcuts (Ctrl + Shift + L)
• Configure keyboard shortcuts (Ctrl + Shift + L - twice): Preferences > General > Keys
• Eclipse Help > Tips and Tricks…
• Eclipse Help > Welcome > What’s new
• New and Noteworthy: https://www.eclipse.org/eclipse/news/4.x
• Twitter
• @EclipseJavaIDE
• #EclipseTips
16Noopur Gupta, IBM | WomenTech Global Conference 2020
Thank You!
@noopur2507
@EclipseJavaIDE
@WomenTechNet
#WTGC2020

More Related Content

Similar to Unleashing the Java Tooling in Eclipse IDE - Tips & Tricks!

AOP on Android
AOP on AndroidAOP on Android
AOP on Android
Tibor Srámek
 
Toad tipstricksexpertinsight
Toad tipstricksexpertinsightToad tipstricksexpertinsight
Toad tipstricksexpertinsight
Raj esh
 
Zend Studio Tips and Tricks #zendcon 10
Zend Studio Tips and Tricks #zendcon 10Zend Studio Tips and Tricks #zendcon 10
Zend Studio Tips and Tricks #zendcon 10
Roy Ganor
 
Pekka_Aho_Complementing GUI Testing Scripts - Testing Assembly 2022.pdf
Pekka_Aho_Complementing GUI Testing Scripts -  Testing Assembly 2022.pdfPekka_Aho_Complementing GUI Testing Scripts -  Testing Assembly 2022.pdf
Pekka_Aho_Complementing GUI Testing Scripts - Testing Assembly 2022.pdf
FiSTB
 
java.pptx
java.pptxjava.pptx
Java development with the dynamo framework
Java development with the dynamo frameworkJava development with the dynamo framework
Java development with the dynamo framework
Patrick Deenen
 
How and what to unit test
How and what to unit testHow and what to unit test
How and what to unit test
Eugenio Lentini
 
Productivity Enhencement with Visual Studio
Productivity Enhencement with Visual StudioProductivity Enhencement with Visual Studio
Productivity Enhencement with Visual StudioAhasan Habib
 
[Webinar] Qt Test-Driven Development Using Google Test and Google Mock
[Webinar] Qt Test-Driven Development Using Google Test and Google Mock[Webinar] Qt Test-Driven Development Using Google Test and Google Mock
[Webinar] Qt Test-Driven Development Using Google Test and Google Mock
ICS
 
Алексей Ященко и Ярослав Волощук "False simplicity of front-end applications"
Алексей Ященко и Ярослав Волощук "False simplicity of front-end applications"Алексей Ященко и Ярослав Волощук "False simplicity of front-end applications"
Алексей Ященко и Ярослав Волощук "False simplicity of front-end applications"
Fwdays
 
Continuous improvements of developer efficiency with modern IDE
Continuous improvements of developer efficiency with modern IDEContinuous improvements of developer efficiency with modern IDE
Continuous improvements of developer efficiency with modern IDE
Mikalai Alimenkou
 
Qt test framework
Qt test frameworkQt test framework
Qt test framework
ICS
 
Mastering your Eclipse IDE - Tips, Tricks, Java 8 tooling & More!
Mastering your Eclipse IDE - Tips, Tricks, Java 8 tooling & More!Mastering your Eclipse IDE - Tips, Tricks, Java 8 tooling & More!
Mastering your Eclipse IDE - Tips, Tricks, Java 8 tooling & More!
Noopur Gupta
 
Refactoring
RefactoringRefactoring
Refactoring
AngelLuisBlasco
 
Grails Spock Testing
Grails Spock TestingGrails Spock Testing
Grails Spock Testing
TO THE NEW | Technology
 
ITFT - Java Coding
ITFT - Java CodingITFT - Java Coding
ITFT - Java Coding
Blossom Sood
 
The Evolution of Development Testing
The Evolution of Development TestingThe Evolution of Development Testing
The Evolution of Development Testing
Cathal King
 
Software Qualitiy with Sonar Tool 2013_4
Software Qualitiy with Sonar Tool 2013_4Software Qualitiy with Sonar Tool 2013_4
Software Qualitiy with Sonar Tool 2013_4
Max Kleiner
 
Staging and Deployment
Staging and DeploymentStaging and Deployment
Staging and Deployment
heyrocker
 
Add-On Development: EE Expects that Every Developer will do his Duty
Add-On Development: EE Expects that Every Developer will do his DutyAdd-On Development: EE Expects that Every Developer will do his Duty
Add-On Development: EE Expects that Every Developer will do his Duty
Leslie Doherty
 

Similar to Unleashing the Java Tooling in Eclipse IDE - Tips & Tricks! (20)

AOP on Android
AOP on AndroidAOP on Android
AOP on Android
 
Toad tipstricksexpertinsight
Toad tipstricksexpertinsightToad tipstricksexpertinsight
Toad tipstricksexpertinsight
 
Zend Studio Tips and Tricks #zendcon 10
Zend Studio Tips and Tricks #zendcon 10Zend Studio Tips and Tricks #zendcon 10
Zend Studio Tips and Tricks #zendcon 10
 
Pekka_Aho_Complementing GUI Testing Scripts - Testing Assembly 2022.pdf
Pekka_Aho_Complementing GUI Testing Scripts -  Testing Assembly 2022.pdfPekka_Aho_Complementing GUI Testing Scripts -  Testing Assembly 2022.pdf
Pekka_Aho_Complementing GUI Testing Scripts - Testing Assembly 2022.pdf
 
java.pptx
java.pptxjava.pptx
java.pptx
 
Java development with the dynamo framework
Java development with the dynamo frameworkJava development with the dynamo framework
Java development with the dynamo framework
 
How and what to unit test
How and what to unit testHow and what to unit test
How and what to unit test
 
Productivity Enhencement with Visual Studio
Productivity Enhencement with Visual StudioProductivity Enhencement with Visual Studio
Productivity Enhencement with Visual Studio
 
[Webinar] Qt Test-Driven Development Using Google Test and Google Mock
[Webinar] Qt Test-Driven Development Using Google Test and Google Mock[Webinar] Qt Test-Driven Development Using Google Test and Google Mock
[Webinar] Qt Test-Driven Development Using Google Test and Google Mock
 
Алексей Ященко и Ярослав Волощук "False simplicity of front-end applications"
Алексей Ященко и Ярослав Волощук "False simplicity of front-end applications"Алексей Ященко и Ярослав Волощук "False simplicity of front-end applications"
Алексей Ященко и Ярослав Волощук "False simplicity of front-end applications"
 
Continuous improvements of developer efficiency with modern IDE
Continuous improvements of developer efficiency with modern IDEContinuous improvements of developer efficiency with modern IDE
Continuous improvements of developer efficiency with modern IDE
 
Qt test framework
Qt test frameworkQt test framework
Qt test framework
 
Mastering your Eclipse IDE - Tips, Tricks, Java 8 tooling & More!
Mastering your Eclipse IDE - Tips, Tricks, Java 8 tooling & More!Mastering your Eclipse IDE - Tips, Tricks, Java 8 tooling & More!
Mastering your Eclipse IDE - Tips, Tricks, Java 8 tooling & More!
 
Refactoring
RefactoringRefactoring
Refactoring
 
Grails Spock Testing
Grails Spock TestingGrails Spock Testing
Grails Spock Testing
 
ITFT - Java Coding
ITFT - Java CodingITFT - Java Coding
ITFT - Java Coding
 
The Evolution of Development Testing
The Evolution of Development TestingThe Evolution of Development Testing
The Evolution of Development Testing
 
Software Qualitiy with Sonar Tool 2013_4
Software Qualitiy with Sonar Tool 2013_4Software Qualitiy with Sonar Tool 2013_4
Software Qualitiy with Sonar Tool 2013_4
 
Staging and Deployment
Staging and DeploymentStaging and Deployment
Staging and Deployment
 
Add-On Development: EE Expects that Every Developer will do his Duty
Add-On Development: EE Expects that Every Developer will do his DutyAdd-On Development: EE Expects that Every Developer will do his Duty
Add-On Development: EE Expects that Every Developer will do his Duty
 

More from Noopur Gupta

Java 14 support in Eclipse IDE
Java 14 support in Eclipse IDEJava 14 support in Eclipse IDE
Java 14 support in Eclipse IDE
Noopur Gupta
 
What's cool in Eclipse goody bag!
What's cool in Eclipse goody bag!What's cool in Eclipse goody bag!
What's cool in Eclipse goody bag!
Noopur Gupta
 
High productivity development with Eclipse and Java 8
High productivity development with Eclipse and Java 8High productivity development with Eclipse and Java 8
High productivity development with Eclipse and Java 8
Noopur Gupta
 
Java 8 tooling in Eclipse
Java 8 tooling in EclipseJava 8 tooling in Eclipse
Java 8 tooling in Eclipse
Noopur Gupta
 
Eclipse Luna - What's New!
Eclipse Luna - What's New!Eclipse Luna - What's New!
Eclipse Luna - What's New!
Noopur Gupta
 
JDT Embraces Lambda Expressions - EclipseCon North America 2014
JDT Embraces Lambda Expressions - EclipseCon North America 2014JDT Embraces Lambda Expressions - EclipseCon North America 2014
JDT Embraces Lambda Expressions - EclipseCon North America 2014
Noopur Gupta
 
Eclipse Tips & Tricks - EclipseCon North America 2014
Eclipse Tips & Tricks - EclipseCon North America 2014Eclipse Tips & Tricks - EclipseCon North America 2014
Eclipse Tips & Tricks - EclipseCon North America 2014
Noopur Gupta
 
Eclipse and Java 8 - Eclipse Day India 2013
Eclipse and Java 8 - Eclipse Day India 2013Eclipse and Java 8 - Eclipse Day India 2013
Eclipse and Java 8 - Eclipse Day India 2013
Noopur Gupta
 

More from Noopur Gupta (8)

Java 14 support in Eclipse IDE
Java 14 support in Eclipse IDEJava 14 support in Eclipse IDE
Java 14 support in Eclipse IDE
 
What's cool in Eclipse goody bag!
What's cool in Eclipse goody bag!What's cool in Eclipse goody bag!
What's cool in Eclipse goody bag!
 
High productivity development with Eclipse and Java 8
High productivity development with Eclipse and Java 8High productivity development with Eclipse and Java 8
High productivity development with Eclipse and Java 8
 
Java 8 tooling in Eclipse
Java 8 tooling in EclipseJava 8 tooling in Eclipse
Java 8 tooling in Eclipse
 
Eclipse Luna - What's New!
Eclipse Luna - What's New!Eclipse Luna - What's New!
Eclipse Luna - What's New!
 
JDT Embraces Lambda Expressions - EclipseCon North America 2014
JDT Embraces Lambda Expressions - EclipseCon North America 2014JDT Embraces Lambda Expressions - EclipseCon North America 2014
JDT Embraces Lambda Expressions - EclipseCon North America 2014
 
Eclipse Tips & Tricks - EclipseCon North America 2014
Eclipse Tips & Tricks - EclipseCon North America 2014Eclipse Tips & Tricks - EclipseCon North America 2014
Eclipse Tips & Tricks - EclipseCon North America 2014
 
Eclipse and Java 8 - Eclipse Day India 2013
Eclipse and Java 8 - Eclipse Day India 2013Eclipse and Java 8 - Eclipse Day India 2013
Eclipse and Java 8 - Eclipse Day India 2013
 

Recently uploaded

20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
Matthew Sinclair
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
Kari Kakkonen
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
DianaGray10
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...
ThomasParaiso2
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
Ralf Eggert
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
Adtran
 
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdfSAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
Peter Spielvogel
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
Matthew Sinclair
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
Alpen-Adria-Universität
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
Uni Systems S.M.S.A.
 

Recently uploaded (20)

20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)PHP Frameworks: I want to break free (IPC Berlin 2024)
PHP Frameworks: I want to break free (IPC Berlin 2024)
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
 
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdfSAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
 

Unleashing the Java Tooling in Eclipse IDE - Tips & Tricks!

  • 1. Unleashing the Java Tooling in IDE TIPS & TRICKS! Noopur Gupta Eclipse JDT co-lead IBM | ACM FCA @noopur2507 @EclipseJavaIDE @WomenTechNet #WTGC2020
  • 3. • Window > Appearance • Hide Toolbar, Status Bar • Full Screen (Alt + F11) • Show key bindings when command is invoked • Zoom in Text Editors • Zoom In: Ctrl + + (or) Ctrl + = • Zoom Out: Ctrl + - • Pinch gestures on touch-enabled devices • Working Sets • Preferences > Java > Appearance • Abbreviate Package Names with Custom Rules • Sort Library Entries Alphabetically in Package Explorer APPEARANCE Noopur Gupta, IBM | WomenTech Global Conference 2020 3
  • 4. • Quick Access / Find Actions (Ctrl + 3) • Quick Switch Editor (Ctrl + E) – Open editors list • ‘Delete’ key – close editor • Quick Outline (Ctrl + O, twice to show inherited members) • In-place Outline (Ctrl + F3) • Configure problem severity quick fix (Ctrl + 1) • Hovers (Preferences > Java > Editor > Hovers) • In-place Javadoc (with error/warning on element) • Ctrl + Shift and hover, or use Javadoc view • In-place source code • Shift and hover, or use Declaration view • Sticky Hover (F2) – Open attached Javadoc in a Browser • Expand vertical ruler icons upon hovering NAVIGATION 4Noopur Gupta, IBM | WomenTech Global Conference 2020
  • 5. NAVIGATION • Search Dialog (Ctrl + H) • Quick Text Search (Ctrl + Alt + Shift + L) • Go to last edit location (Ctrl + Q) • Alt + Left/Right – move backward/forward in editor navigation history • Markers • Bookmarks • Right-click on left editor pane > Add Bookmark… • Bookmarks view • Tasks • Right-click on left editor pane > Add Task… • Tasks view • Preferences > Java > Compiler > Task Tags • Show In (Alt + Shift + W) > System Explorer 5Noopur Gupta, IBM | WomenTech Global Conference 2020
  • 6. INVESTIGATION • Plug-in Spies • Alt + Shift + F1 – Plug-in Selection Spy • Alt + Shift + F2 – Plug-in Menu Spy • Alt + Shift + F3 – Show Contributing Plug-in • Ctrl + Alt + Shift + F9 – Layout Spy • Plug-in Image Browser • Externalized Strings • Ctrl + Click on key in .properties file to find referencing code • Show Revision Information • To determine who last modified a line of code and when • Right-click on left editor pane > Show Revision Information 6Noopur Gupta, IBM | WomenTech Global Conference 2020
  • 7. INVESTIGATION • UI Responsiveness Monitoring • For automatic detection and logging of stack traces when Eclipse UI is unresponsive • Window > Preferences > General > UI Responsiveness Monitoring • Java Stack Trace Console • Copy stack trace from log file and Navigate > Open from Clipboard (Ctrl + Shift + V) • Click on hyperlinks to jump to the code • Click on exception name hyperlink to create an exception breakpoint 7Noopur Gupta, IBM | WomenTech Global Conference 2020
  • 8. CODING • Content Assist - Insert or Overwrite • Replace existing text while invoking content assist • Press ‘Ctrl’ to toggle while content assist is active • Content Assist Templates • Configure/Create in Templates view, Export/Import in Preferences • Content Assist Postfix Proposals • Preferences > Java > Editor > Content Assist > Advanced • Auto Activation of Content Assist (Preferences > Java > Editor > Content Assist) • Auto activation triggers for Java • Disable insertion triggers except ‘Enter’ • Type Filters (Preferences > Java > Appearance > Type Filters) • Ignore certain types from content assist, imports organization, quick fixes, open type dialog etc. 8Noopur Gupta, IBM | WomenTech Global Conference 2020
  • 9. CODING • Code Minings (as decorative text; via extension point) • Preferences > Java > Editor > Code Minings • Show references • Show implementations • Show method parameter names or, Show method parameter hints – Ctrl + Shift + Space • Block Selection Mode (Alt + Shift + A) • To edit a large number of almost identical lines at the same time • Expand selection to enclosing element (Alt + Shift + Up / Down) • Duplicate lines (Ctrl + Alt + Up / Down) • Move lines (Alt + Up / Down) • Delete lines (Ctrl + D) 9Noopur Gupta, IBM | WomenTech Global Conference 2020
  • 10. DEBUGGING • Smart Step Into (Ctrl + F5 or Ctrl + Alt + Click) o To step into a single method within a series of chained or nested method calls • Step Filters o To filter out specified classes and packages while stepping into code o Preferences > Java > Debug > Step Filtering • Run to Line (Ctrl + Alt + Click on left editor pane) • Grouping and Sharing breakpoints – Breakpoints view o Sort by name or creation time o Group by various categories or create working sets o Share by exporting/importing breakpoint groups 10Noopur Gupta, IBM | WomenTech Global Conference 2020
  • 11. DEBUGGING • Tracepoint • A point in code where the debugger does not break the execution but only prints to console • Prevents the addition of print statements in code while debugging • Can be used to debug race conditions or to see the order of execution of threads • Run > Toggle Tracepoint • Trigger Point • Set a breakpoint as trigger point in Breakpoint Properties • All the breakpoints (except trigger points) are disabled until a trigger point is hit • All the trigger points are disabled after a trigger point is hit and all the trigger points will be re-enabled for the next run • Remove all trigger points – context-menu action in Breakpoints view • Hit count - The breakpoint suspends the execution of a thread only when it is encountered for the Nth time. 11Noopur Gupta, IBM | WomenTech Global Conference 2020
  • 12. JAVA TOOLING • Paste Code on Package Explorer • A new Java project will be created and the file will be opened in Java editor • Java 14 – Records, Text Blocks, Switch Expressions • Configure > Enable preview features • New > Java > Record • Text blocks • Ctrl + Shift + ' to insert triple quotes • Double-click to select text block content • Ctrl + I to indent • Switch Expressions and Enhanced Switch Statements • Add missing case statements and default case • Split case labels • Ctrl + Click on ‘case’ and ‘default’ to jump to the target location in switch 12Noopur Gupta, IBM | WomenTech Global Conference 2020
  • 13. JAVA TOOLING • Java 11 - ‘var’ support • Declare extracted local variable’s type as ‘var’ • Replace ‘var’ with inferred type & vice-versa • Hover to view the inferred type for ‘var’ • Ctrl + Click to navigate to the inferred type of ‘var’ • Java 9 – Java Platform Module System • Convert to modular project - create module-info.java action • Add libraries to module path • Configure properties of module graph (Module Dependencies) • Quick fix to identify and add required module to module-info.java • Create and export a non-empty package in a single step from module-info.java • Quick fix to provide a service implementation from module-info.java 13Noopur Gupta, IBM | WomenTech Global Conference 2020
  • 14. JAVA TOOLING • Java 8 – Lambda Expressions and Method References • Convert anonymous class to lambda and back • Convert lambda to method reference and back • Add inferred lambda parameter types • View and navigate to the functional method • Refactoring on functional interface instances e.g. Change method signature 14Noopur Gupta, IBM | WomenTech Global Conference 2020
  • 15. JUNIT 5 TOOLING • Quick assist to create JUnit Jupiter test class and test method • Grouped assertions and combined result comparison • Navigate to failing source location • Double-click on entry in JUnit view’s failure trace • Click "Show Stack Trace in Console View" button and use the hyperlinks • Tagging and Filtering (@Tag) • Configure Tags dialog in JUnit launch configuration • Ctrl + Click on a launch name in the toolbar history to directly open it in the launch configuration dialog • Embracing JUnit 5 with Eclipse IDE – Webinar 15Noopur Gupta, IBM | WomenTech Global Conference 2020
  • 16. RESOURCES • List all keyboard shortcuts (Ctrl + Shift + L) • Configure keyboard shortcuts (Ctrl + Shift + L - twice): Preferences > General > Keys • Eclipse Help > Tips and Tricks… • Eclipse Help > Welcome > What’s new • New and Noteworthy: https://www.eclipse.org/eclipse/news/4.x • Twitter • @EclipseJavaIDE • #EclipseTips 16Noopur Gupta, IBM | WomenTech Global Conference 2020