SlideShare uma empresa Scribd logo
1 de 39
Baixar para ler offline
Eclipse Day India 2014 | Eclipse Tips and Tricks 
1 
Noopur Gupta 
Eclipse JDT/UI Committer 
IBM Software Labs, Bangalorenoopur_gupta@in.ibm.com
Eclipse Day India 2014 | Eclipse Tips and Tricks 
2
Eclipse Day India 2014 | Eclipse Tips and Tricks 
3
Eclipse Day India 2014 | Eclipse Tips and Tricks 
4 
Show Workspace Location in the Title Bar 
OR 
(-showLocation)
Eclipse Day India 2014 | Eclipse Tips and Tricks 
5 
Show Workspace Name in the Title Bar 
(Window > Preferences > General > Workspace)
Eclipse Day India 2014 | Eclipse Tips and Tricks 
6 
Create Eclipse shortcuts with default workspaces 
(-data workspacePath)
Eclipse Day India 2014 | Eclipse Tips and Tricks 
7 
Working Sets 
Package Explorer > 
Configure Working Sets… 
Package Explorer > 
Top Level Elements > 
Working Sets
Eclipse Day India 2014 | Eclipse Tips and Tricks 
8 
Abbreviate package names with custom rules 
Window > Preferences > 
Java > Appearance > Abbreviate package names
Eclipse Day India 2014 | Eclipse Tips and Tricks 
9 
Export/Import 
File > Export… 
General > Preferences 
File > Import… 
General > Preferences
Eclipse Day India 2014 | Eclipse Tips and Tricks 
10
Eclipse Day India 2014 | Eclipse Tips and Tricks 
11 
Talk to Eclipse : Start typing and get the results from many categories of UI elements. 
+ 
Ctrl 
3
Eclipse Day India 2014 | Eclipse Tips and Tricks 
+ 
Ctrl 
O 
12 
Quick Outline: 
To list the structural elements of the file (such as classes, fields, methods for a Java source file). In-place Outline: 
To pop up an in-place outline of the element at the current cursor position. 
+ 
Ctrl 
F3
Eclipse Day India 2014 | Eclipse Tips and Tricks 
13 
Toggle Breadcrumb tool bar buttonShowsthepathtotheelementatthecursorposition. Navigatetootherelementsviadrop-downsandinvokeactions(whenotherviewsarenotvisible). Also available on multiple editors that are open side-by-side.
Eclipse Day India 2014 | Eclipse Tips and Tricks 
14 
Ctrl+Clickonapropertykeyinthe*.propertiesfileshowstheplacesinsourcecodewhereitisbeingusedandtakesyoutothereferencingcode.
Eclipse Day India 2014 | Eclipse Tips and Tricks 
15 
Findsundefined,unusedandduplicatekeys. 
Source > Find Broken Externalized Strings
Eclipse Day India 2014 | Eclipse Tips and Tricks 
16 
Fromastacktraceinlogfile,insteadoflocatingthefileandgoingtothelinenumberviaCtrl+L,useJavaStackTraceConsole. Copythestacktracefromlogfileandclick: Copythestacktraceandpasteontheconsole: ClickonthehyperlinksforJavaclassnameswithlinenumberstonavigate. Clickingontheexceptionnameinstacktracewillcreateanexceptionbreakpoint. 
Navigate > Open from Clipboard 
Console view > Open Console (drop-down menu) > Java Stack Trace Console 
OR
Eclipse Day India 2014 | Eclipse Tips and Tricks 
17 
Toopenthefoldercontainingaresource,inyoursystem'sfileexplorer. 
Context menu: Show In > System Explorer
Eclipse Day India 2014 | Eclipse Tips and Tricks 
18
Eclipse Day India 2014 | Eclipse Tips and Tricks 
19 
+ 
+ 
Alt 
 
F1 
+ 
+ 
Alt 
 
F2
Eclipse Day India 2014 | Eclipse Tips and Tricks 
20 
JustcopytheJavacodeandpasteonPackageExplorer. AnewJavaprojectwillbecreatedandthefilewillbeopenedintheJavaeditor.
Eclipse Day India 2014 | Eclipse Tips and Tricks 
21 
Todeterminewholastmodifiedalineofcodeandwhen.
Eclipse Day India 2014 | Eclipse Tips and Tricks 
 
+ 
Ctrl 
 
22 
ToseetheJavadocinsuchcases,pressandhover. Whenthereisanerror/warningatanidentifier,thecorrespondingmessageisshownonhoverinsteadoftheJavadoc. Updatetexthoverkeymodifersat: 
Window > Preferences > 
Java > Editor > HoversToseethesourceonhover, 
pressandhover. 
Or use Javadoc view. 
Or use Declaration view.
Eclipse Day India 2014 | Eclipse Tips and Tricks 
23 
ToignorecertaintypesfromtheOpenTypedialog,contentassist,quickfixproposals,importorganizationetc. 
Window > Preferences > Java > Appearance > Type FiltersExample:
Eclipse Day India 2014 | Eclipse Tips and Tricks 
24 
TemplatesareshowntogetherwiththeContentAssist(Ctrl+Space) proposals. Thereareexistingtemplatesthatyoucanconfigureordefinenewtemplates. 
Window > Preferences > 
Java > Editor > Templates 
OR 
Templates view
Eclipse Day India 2014 | Eclipse Tips and Tricks 
25 
Tofindallread/writeaccessestotheselectedfieldorlocalvariableinthechosenscope. 
OR
Eclipse Day India 2014 | Eclipse Tips and Tricks 
26 
Toeditlargenumberofalmostidenticallines.
Eclipse Day India 2014 | Eclipse Tips and Tricks 
27 
Tovieworeditmultiplesectionsofalargefileatonce. 
splits the editor one above the other 
splits the editor side by side 
+ 
+ 
Ctrl 
Ctrl 
_ 
{
Eclipse Day India 2014 | Eclipse Tips and Tricks 
28 
FormatterOff/Ontagscanbeusedinanycommenttoturntheformatteroffandon. Example:TopreventformattingofSQLqueries.
Eclipse Day India 2014 | Eclipse Tips and Tricks 
+ 
Ctrl 
1 
29 
Don’ttypetoomuchyourself–LetEclipsehelpyouwithquickfixes, quickassists,refactorings,contentassistandmore. Examples: 
Quick Assist: 
Quick Fix:
Eclipse Day India 2014 | Eclipse Tips and Tricks 
+ 
= 
Delete current line 
Ctrl 
D 
+ 
/ 
= 
Move line(s) 
Alt 
 
 
+ 
= 
Maximize/Minimize Editor/View 
Ctrl 
M 
+ 
+ 
= 
To upper case/ lower case 
Ctrl 
 
X 
+ 
= 
Comment/Uncomment line 
Ctrl 
/ 
/ 
Y 
+ 
= 
Quick Switch Editor 
Ctrl 
E 
+ 
+ 
Alt 
 
 
= 
Expand selection to enclosing element 
+ 
+ 
= 
Lists all keyboard short cuts 
Ctrl 
 
L 
30 
Examples:
Eclipse Day India 2014 | Eclipse Tips and Tricks 
31
Eclipse Day India 2014 | Eclipse Tips and Tricks 
32 
Tostepintoasinglemethodwithinaseriesofchainedornestedmethodcalls. Example: 
+ 
+ 
Ctrl 
Alt 
Click 
+ 
Ctrl 
F5 
OR 
OR
Eclipse Day India 2014 | Eclipse Tips and Tricks 
33 
LineBreakpointConditionalBreakpointExceptionBreakpoint: 
Whenexceptionsarepassedoverseverallayers,theyareoftenwrappedordiscardedinanotherexception.Tofindtheoriginsofanexception,useExceptionbreakpoint.Theexecutionwillsuspendwhenevertheexceptionisthrownorcaught.
Eclipse Day India 2014 | Eclipse Tips and Tricks 
34 
ClassloadBreakpoint: 
Toinspectwhoistryingtoloadtheclassorwhereisitusedforthefirsttime. Watchpoint: 
Tosuspendtheexecutionwhereafieldisaccessedormodified. MethodBreakpoint: 
Tosuspendtheexecutionwhenthemethodisenteredorexited.
Eclipse Day India 2014 | Eclipse Tips and Tricks 
35 
:Apointincodewherethedebuggerdoesnotbreaktheexecutionbutonlyprintstoconsole. Todebugraceconditionsortoseetheorderofthreadsexecution. Topreventtheadditionofprintstatementsinthecodewhiledebugging. 
Set a conditional breakpoint withSuspend when 'true'option and a condition which is always false (eg: return false;) as the last statement.
Eclipse Day India 2014 | Eclipse Tips and Tricks 
36 
Tofilteroutspecifiedclassesandpackageswhilestepingintocodeduringdebugging. 
IntheDebugview,theselectedstackframe'spackageordeclaringtypecanbequicklyaddedtothelistoffiltersbyselectingFilterTypeorFilterPackagefromthestackframe'scontextmenu. 
Window > Preferences > 
Java > Debug > Step Filtering 
OR
Eclipse Day India 2014 | Eclipse Tips and Tricks 
37 
Acontainerforrandomsnippetsofcodethatcanbeexecutedanytimewithoutacontext. ToexperimentwithanAPIortestapieceofcode(algorithm/method). Noneedtocreateanewproject/class/mainmethod/ runtheapplicationtotest.
Eclipse Day India 2014 | Eclipse Tips and Tricks 
38 
LASTBUTNOTTHELEAST! 
Help > Welcome > 
What’s New 
Help > Tips and Tricks...
Eclipse Day India 2014 | Eclipse Tips and Tricks

Mais conteúdo relacionado

Mais procurados

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 2013Noopur Gupta
 
ALPHA Script - Keywords and Symbols
ALPHA Script - Keywords and SymbolsALPHA Script - Keywords and Symbols
ALPHA Script - Keywords and SymbolsPROBOTEK
 
Eclipse Pocket T I P Sn T R I C K S
Eclipse Pocket  T I P Sn T R I C K SEclipse Pocket  T I P Sn T R I C K S
Eclipse Pocket T I P Sn T R I C K Sguestd8c458
 
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 2014Noopur Gupta
 
Graphics programming in Java
Graphics programming in JavaGraphics programming in Java
Graphics programming in JavaTushar B Kute
 
#42 green lantern framework
#42   green lantern framework#42   green lantern framework
#42 green lantern frameworkSrilu Balla
 
Introduction to JavaFX Dialogs
Introduction to JavaFX DialogsIntroduction to JavaFX Dialogs
Introduction to JavaFX DialogsKenji HASUNUMA
 
Basic of Java Netbeans
Basic of Java NetbeansBasic of Java Netbeans
Basic of Java NetbeansShrey Goswami
 
Green Lantern Framework with Selenium IDE
Green Lantern Framework with Selenium IDEGreen Lantern Framework with Selenium IDE
Green Lantern Framework with Selenium IDESrilu Balla
 
Eclipse IDE Tips and Tricks - Lakshmi Priya Shanmugam
Eclipse IDE Tips and Tricks - Lakshmi Priya ShanmugamEclipse IDE Tips and Tricks - Lakshmi Priya Shanmugam
Eclipse IDE Tips and Tricks - Lakshmi Priya ShanmugamEclipse Day India
 
Rails VUWIT workshop
Rails VUWIT workshopRails VUWIT workshop
Rails VUWIT workshopbreccan
 
Developing a new Epsilon Language through Grammar Extension: The Epsilon Dem...
Developing a new Epsilon Language through Grammar Extension: The Epsilon Dem...Developing a new Epsilon Language through Grammar Extension: The Epsilon Dem...
Developing a new Epsilon Language through Grammar Extension: The Epsilon Dem...Dimitris Kolovos
 
The swift programming language
The swift programming languageThe swift programming language
The swift programming languagePardeep Chaudhary
 
Chapter3: fundamental programming
Chapter3: fundamental programmingChapter3: fundamental programming
Chapter3: fundamental programmingNgeam Soly
 
Android Homework for-july-19th-2015
Android Homework for-july-19th-2015Android Homework for-july-19th-2015
Android Homework for-july-19th-2015Rishi Kumar
 
From OOP to FP : the validation case
From OOP to FP : the validation caseFrom OOP to FP : the validation case
From OOP to FP : the validation caseEmmanuel Nhan
 
Homework seriesandroidworkshop JUly 12th
Homework seriesandroidworkshop JUly 12thHomework seriesandroidworkshop JUly 12th
Homework seriesandroidworkshop JUly 12thRishi Kumar
 

Mais procurados (18)

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
 
ALPHA Script - Keywords and Symbols
ALPHA Script - Keywords and SymbolsALPHA Script - Keywords and Symbols
ALPHA Script - Keywords and Symbols
 
Eclipse Pocket T I P Sn T R I C K S
Eclipse Pocket  T I P Sn T R I C K SEclipse Pocket  T I P Sn T R I C K S
Eclipse Pocket T I P Sn T R I C K S
 
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
 
Graphics programming in Java
Graphics programming in JavaGraphics programming in Java
Graphics programming in Java
 
#42 green lantern framework
#42   green lantern framework#42   green lantern framework
#42 green lantern framework
 
Introduction to JavaFX Dialogs
Introduction to JavaFX DialogsIntroduction to JavaFX Dialogs
Introduction to JavaFX Dialogs
 
Basic of Java Netbeans
Basic of Java NetbeansBasic of Java Netbeans
Basic of Java Netbeans
 
Green Lantern Framework with Selenium IDE
Green Lantern Framework with Selenium IDEGreen Lantern Framework with Selenium IDE
Green Lantern Framework with Selenium IDE
 
Eclipse IDE Tips and Tricks - Lakshmi Priya Shanmugam
Eclipse IDE Tips and Tricks - Lakshmi Priya ShanmugamEclipse IDE Tips and Tricks - Lakshmi Priya Shanmugam
Eclipse IDE Tips and Tricks - Lakshmi Priya Shanmugam
 
Rails VUWIT workshop
Rails VUWIT workshopRails VUWIT workshop
Rails VUWIT workshop
 
Developing a new Epsilon Language through Grammar Extension: The Epsilon Dem...
Developing a new Epsilon Language through Grammar Extension: The Epsilon Dem...Developing a new Epsilon Language through Grammar Extension: The Epsilon Dem...
Developing a new Epsilon Language through Grammar Extension: The Epsilon Dem...
 
The swift programming language
The swift programming languageThe swift programming language
The swift programming language
 
Chapter3: fundamental programming
Chapter3: fundamental programmingChapter3: fundamental programming
Chapter3: fundamental programming
 
Android Homework for-july-19th-2015
Android Homework for-july-19th-2015Android Homework for-july-19th-2015
Android Homework for-july-19th-2015
 
From OOP to FP : the validation case
From OOP to FP : the validation caseFrom OOP to FP : the validation case
From OOP to FP : the validation case
 
Coding standards
Coding standardsCoding standards
Coding standards
 
Homework seriesandroidworkshop JUly 12th
Homework seriesandroidworkshop JUly 12thHomework seriesandroidworkshop JUly 12th
Homework seriesandroidworkshop JUly 12th
 

Semelhante a Eclipse Tips & Tricks

Debugging Drupal - How to Debug your Drupal Application
Debugging Drupal - How to Debug your Drupal ApplicationDebugging Drupal - How to Debug your Drupal Application
Debugging Drupal - How to Debug your Drupal ApplicationZyxware Technologies
 
Basic structure of C++ program
Basic structure of C++ programBasic structure of C++ program
Basic structure of C++ programmatiur rahman
 
Eclipse Day India 2010 - UI Patterns in Eclipse
Eclipse Day India 2010 - UI Patterns in EclipseEclipse Day India 2010 - UI Patterns in Eclipse
Eclipse Day India 2010 - UI Patterns in Eclipsedeepakazad
 
The Ring programming language version 1.5.4 book - Part 6 of 185
The Ring programming language version 1.5.4 book - Part 6 of 185The Ring programming language version 1.5.4 book - Part 6 of 185
The Ring programming language version 1.5.4 book - Part 6 of 185Mahmoud Samir Fayed
 
Java for android developers
Java for android developersJava for android developers
Java for android developersAly Abdelkareem
 
JShell: An Interactive Shell for the Java Platform
JShell: An Interactive Shell for the Java PlatformJShell: An Interactive Shell for the Java Platform
JShell: An Interactive Shell for the Java PlatformJavaDayUA
 
Introduction to Eclipse
Introduction to Eclipse Introduction to Eclipse
Introduction to Eclipse Arpana Awasthi
 
Decaf language specification
Decaf language specificationDecaf language specification
Decaf language specificationSami Said
 
Lecture 3.1.1 Try Throw Catch.pptx
Lecture 3.1.1 Try Throw Catch.pptxLecture 3.1.1 Try Throw Catch.pptx
Lecture 3.1.1 Try Throw Catch.pptxsunilsoni446112
 
distage: Purely Functional Staged Dependency Injection; bonus: Faking Kind Po...
distage: Purely Functional Staged Dependency Injection; bonus: Faking Kind Po...distage: Purely Functional Staged Dependency Injection; bonus: Faking Kind Po...
distage: Purely Functional Staged Dependency Injection; bonus: Faking Kind Po...7mind
 
Java Basics for selenium
Java Basics for seleniumJava Basics for selenium
Java Basics for seleniumapoorvams
 
Understanding And Using Reflection
Understanding And Using ReflectionUnderstanding And Using Reflection
Understanding And Using ReflectionGanesh Samarthyam
 
PHP 7 Crash Course - php[world] 2015
PHP 7 Crash Course - php[world] 2015PHP 7 Crash Course - php[world] 2015
PHP 7 Crash Course - php[world] 2015Colin O'Dell
 
The Ring programming language version 1.5.3 book - Part 6 of 184
The Ring programming language version 1.5.3 book - Part 6 of 184The Ring programming language version 1.5.3 book - Part 6 of 184
The Ring programming language version 1.5.3 book - Part 6 of 184Mahmoud Samir Fayed
 
A gentle intro of Apache zeppelin
A gentle intro of Apache zeppelinA gentle intro of Apache zeppelin
A gentle intro of Apache zeppelinAhyoung Ryu
 
Knowledge of Javascript
Knowledge of JavascriptKnowledge of Javascript
Knowledge of JavascriptSamuel Abraham
 

Semelhante a Eclipse Tips & Tricks (20)

Debugging Drupal - How to Debug your Drupal Application
Debugging Drupal - How to Debug your Drupal ApplicationDebugging Drupal - How to Debug your Drupal Application
Debugging Drupal - How to Debug your Drupal Application
 
Basic structure of C++ program
Basic structure of C++ programBasic structure of C++ program
Basic structure of C++ program
 
Eclipse Day India 2010 - UI Patterns in Eclipse
Eclipse Day India 2010 - UI Patterns in EclipseEclipse Day India 2010 - UI Patterns in Eclipse
Eclipse Day India 2010 - UI Patterns in Eclipse
 
ANDROID FDP PPT
ANDROID FDP PPTANDROID FDP PPT
ANDROID FDP PPT
 
The Ring programming language version 1.5.4 book - Part 6 of 185
The Ring programming language version 1.5.4 book - Part 6 of 185The Ring programming language version 1.5.4 book - Part 6 of 185
The Ring programming language version 1.5.4 book - Part 6 of 185
 
Java for android developers
Java for android developersJava for android developers
Java for android developers
 
Need 4 Speed FI
Need 4 Speed FINeed 4 Speed FI
Need 4 Speed FI
 
JShell: An Interactive Shell for the Java Platform
JShell: An Interactive Shell for the Java PlatformJShell: An Interactive Shell for the Java Platform
JShell: An Interactive Shell for the Java Platform
 
L04 Software Design Examples
L04 Software Design ExamplesL04 Software Design Examples
L04 Software Design Examples
 
Spring boot
Spring bootSpring boot
Spring boot
 
Introduction to Eclipse
Introduction to Eclipse Introduction to Eclipse
Introduction to Eclipse
 
Decaf language specification
Decaf language specificationDecaf language specification
Decaf language specification
 
Lecture 3.1.1 Try Throw Catch.pptx
Lecture 3.1.1 Try Throw Catch.pptxLecture 3.1.1 Try Throw Catch.pptx
Lecture 3.1.1 Try Throw Catch.pptx
 
distage: Purely Functional Staged Dependency Injection; bonus: Faking Kind Po...
distage: Purely Functional Staged Dependency Injection; bonus: Faking Kind Po...distage: Purely Functional Staged Dependency Injection; bonus: Faking Kind Po...
distage: Purely Functional Staged Dependency Injection; bonus: Faking Kind Po...
 
Java Basics for selenium
Java Basics for seleniumJava Basics for selenium
Java Basics for selenium
 
Understanding And Using Reflection
Understanding And Using ReflectionUnderstanding And Using Reflection
Understanding And Using Reflection
 
PHP 7 Crash Course - php[world] 2015
PHP 7 Crash Course - php[world] 2015PHP 7 Crash Course - php[world] 2015
PHP 7 Crash Course - php[world] 2015
 
The Ring programming language version 1.5.3 book - Part 6 of 184
The Ring programming language version 1.5.3 book - Part 6 of 184The Ring programming language version 1.5.3 book - Part 6 of 184
The Ring programming language version 1.5.3 book - Part 6 of 184
 
A gentle intro of Apache zeppelin
A gentle intro of Apache zeppelinA gentle intro of Apache zeppelin
A gentle intro of Apache zeppelin
 
Knowledge of Javascript
Knowledge of JavascriptKnowledge of Javascript
Knowledge of Javascript
 

Mais de Eclipse Day India

Java Performance Testing for Everyone - Shelley Lambert
Java Performance Testing for Everyone - Shelley LambertJava Performance Testing for Everyone - Shelley Lambert
Java Performance Testing for Everyone - Shelley LambertEclipse Day India
 
Pattern Matching in Java - Srikanth Sankaran
Pattern Matching in Java - Srikanth SankaranPattern Matching in Java - Srikanth Sankaran
Pattern Matching in Java - Srikanth SankaranEclipse Day India
 
Machine Learning for Java Developers - Nasser Ebrahim
Machine Learning for Java Developers - Nasser EbrahimMachine Learning for Java Developers - Nasser Ebrahim
Machine Learning for Java Developers - Nasser EbrahimEclipse Day India
 
Scaling Eclipse on HiDPI Monitors - Niraj Modi
Scaling Eclipse on HiDPI Monitors - Niraj ModiScaling Eclipse on HiDPI Monitors - Niraj Modi
Scaling Eclipse on HiDPI Monitors - Niraj ModiEclipse Day India
 
Please Behave Yourself: BDD and automating Eclipse RCP applications using JBe...
Please Behave Yourself: BDD and automating Eclipse RCP applications using JBe...Please Behave Yourself: BDD and automating Eclipse RCP applications using JBe...
Please Behave Yourself: BDD and automating Eclipse RCP applications using JBe...Eclipse Day India
 
Supporting Java™ 9 in Eclipse - A critical perspective - Stephan Herrmann
Supporting Java™ 9 in Eclipse - A critical perspective - Stephan HerrmannSupporting Java™ 9 in Eclipse - A critical perspective - Stephan Herrmann
Supporting Java™ 9 in Eclipse - A critical perspective - Stephan HerrmannEclipse Day India
 
Eclipse Day India 2015 - Rest with Java (jax rs) and jersey
Eclipse Day India 2015 - Rest with Java (jax rs) and jerseyEclipse Day India 2015 - Rest with Java (jax rs) and jersey
Eclipse Day India 2015 - Rest with Java (jax rs) and jerseyEclipse Day India
 
Eclipse Day India 2015 - Java bytecode analysis and JIT
Eclipse Day India 2015 - Java bytecode analysis and JITEclipse Day India 2015 - Java bytecode analysis and JIT
Eclipse Day India 2015 - Java bytecode analysis and JITEclipse Day India
 
Eclipse Day India 2015 - Java 8 Overview
Eclipse Day India 2015 - Java 8 OverviewEclipse Day India 2015 - Java 8 Overview
Eclipse Day India 2015 - Java 8 OverviewEclipse Day India
 
Eclipse Day India 2015 - Java 9
Eclipse Day India 2015 - Java 9Eclipse Day India 2015 - Java 9
Eclipse Day India 2015 - Java 9Eclipse Day India
 
Eclipse Day India 2015 - Keynote - Stephan Herrmann
Eclipse Day India 2015 - Keynote - Stephan HerrmannEclipse Day India 2015 - Keynote - Stephan Herrmann
Eclipse Day India 2015 - Keynote - Stephan HerrmannEclipse Day India
 
Eclipse Day India 2015 - Eclipse RCP testing using Jubula based automation
Eclipse Day India 2015 - Eclipse RCP testing using Jubula based automationEclipse Day India 2015 - Eclipse RCP testing using Jubula based automation
Eclipse Day India 2015 - Eclipse RCP testing using Jubula based automationEclipse Day India
 
Eclipse Day India 2015 - Oomph
Eclipse Day India 2015 - OomphEclipse Day India 2015 - Oomph
Eclipse Day India 2015 - OomphEclipse Day India
 
Eclipse Day India 2015 - Keynote (Mike Milinkovich)
Eclipse Day India 2015 - Keynote (Mike Milinkovich)Eclipse Day India 2015 - Keynote (Mike Milinkovich)
Eclipse Day India 2015 - Keynote (Mike Milinkovich)Eclipse Day India
 
Eclipse Day India 2015 - Unleashing the Java 8 Tooling in Eclipse
Eclipse Day India 2015 - Unleashing the Java 8 Tooling in EclipseEclipse Day India 2015 - Unleashing the Java 8 Tooling in Eclipse
Eclipse Day India 2015 - Unleashing the Java 8 Tooling in EclipseEclipse Day India
 

Mais de Eclipse Day India (20)

Java Performance Testing for Everyone - Shelley Lambert
Java Performance Testing for Everyone - Shelley LambertJava Performance Testing for Everyone - Shelley Lambert
Java Performance Testing for Everyone - Shelley Lambert
 
Pattern Matching in Java - Srikanth Sankaran
Pattern Matching in Java - Srikanth SankaranPattern Matching in Java - Srikanth Sankaran
Pattern Matching in Java - Srikanth Sankaran
 
Machine Learning for Java Developers - Nasser Ebrahim
Machine Learning for Java Developers - Nasser EbrahimMachine Learning for Java Developers - Nasser Ebrahim
Machine Learning for Java Developers - Nasser Ebrahim
 
Scaling Eclipse on HiDPI Monitors - Niraj Modi
Scaling Eclipse on HiDPI Monitors - Niraj ModiScaling Eclipse on HiDPI Monitors - Niraj Modi
Scaling Eclipse on HiDPI Monitors - Niraj Modi
 
Please Behave Yourself: BDD and automating Eclipse RCP applications using JBe...
Please Behave Yourself: BDD and automating Eclipse RCP applications using JBe...Please Behave Yourself: BDD and automating Eclipse RCP applications using JBe...
Please Behave Yourself: BDD and automating Eclipse RCP applications using JBe...
 
Supporting Java™ 9 in Eclipse - A critical perspective - Stephan Herrmann
Supporting Java™ 9 in Eclipse - A critical perspective - Stephan HerrmannSupporting Java™ 9 in Eclipse - A critical perspective - Stephan Herrmann
Supporting Java™ 9 in Eclipse - A critical perspective - Stephan Herrmann
 
Eclipse Day India 2015 - Rest with Java (jax rs) and jersey
Eclipse Day India 2015 - Rest with Java (jax rs) and jerseyEclipse Day India 2015 - Rest with Java (jax rs) and jersey
Eclipse Day India 2015 - Rest with Java (jax rs) and jersey
 
Eclipse Day India 2015 - Java bytecode analysis and JIT
Eclipse Day India 2015 - Java bytecode analysis and JITEclipse Day India 2015 - Java bytecode analysis and JIT
Eclipse Day India 2015 - Java bytecode analysis and JIT
 
Eclipse Day India 2015 - Java 8 Overview
Eclipse Day India 2015 - Java 8 OverviewEclipse Day India 2015 - Java 8 Overview
Eclipse Day India 2015 - Java 8 Overview
 
Eclipse Day India 2015 - Java 9
Eclipse Day India 2015 - Java 9Eclipse Day India 2015 - Java 9
Eclipse Day India 2015 - Java 9
 
Eclipse Day India 2015 - Keynote - Stephan Herrmann
Eclipse Day India 2015 - Keynote - Stephan HerrmannEclipse Day India 2015 - Keynote - Stephan Herrmann
Eclipse Day India 2015 - Keynote - Stephan Herrmann
 
Eclipse Day India 2015 - Eclipse RCP testing using Jubula based automation
Eclipse Day India 2015 - Eclipse RCP testing using Jubula based automationEclipse Day India 2015 - Eclipse RCP testing using Jubula based automation
Eclipse Day India 2015 - Eclipse RCP testing using Jubula based automation
 
Eclipse Day India 2015 - Oomph
Eclipse Day India 2015 - OomphEclipse Day India 2015 - Oomph
Eclipse Day India 2015 - Oomph
 
Eclipse Day India 2015 - Keynote (Mike Milinkovich)
Eclipse Day India 2015 - Keynote (Mike Milinkovich)Eclipse Day India 2015 - Keynote (Mike Milinkovich)
Eclipse Day India 2015 - Keynote (Mike Milinkovich)
 
Eclipse Day India 2015 - Unleashing the Java 8 Tooling in Eclipse
Eclipse Day India 2015 - Unleashing the Java 8 Tooling in EclipseEclipse Day India 2015 - Unleashing the Java 8 Tooling in Eclipse
Eclipse Day India 2015 - Unleashing the Java 8 Tooling in Eclipse
 
IDS and Bluemix
IDS and BluemixIDS and Bluemix
IDS and Bluemix
 
SWT - Technical Deep Dive
SWT - Technical Deep DiveSWT - Technical Deep Dive
SWT - Technical Deep Dive
 
PDE builds or Maven
PDE builds or MavenPDE builds or Maven
PDE builds or Maven
 
Orion - IDE on the cloud
Orion - IDE on the cloudOrion - IDE on the cloud
Orion - IDE on the cloud
 
KlighD
KlighDKlighD
KlighD
 

Último

Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 

Último (20)

Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 

Eclipse Tips & Tricks

  • 1. Eclipse Day India 2014 | Eclipse Tips and Tricks 1 Noopur Gupta Eclipse JDT/UI Committer IBM Software Labs, Bangalorenoopur_gupta@in.ibm.com
  • 2. Eclipse Day India 2014 | Eclipse Tips and Tricks 2
  • 3. Eclipse Day India 2014 | Eclipse Tips and Tricks 3
  • 4. Eclipse Day India 2014 | Eclipse Tips and Tricks 4 Show Workspace Location in the Title Bar OR (-showLocation)
  • 5. Eclipse Day India 2014 | Eclipse Tips and Tricks 5 Show Workspace Name in the Title Bar (Window > Preferences > General > Workspace)
  • 6. Eclipse Day India 2014 | Eclipse Tips and Tricks 6 Create Eclipse shortcuts with default workspaces (-data workspacePath)
  • 7. Eclipse Day India 2014 | Eclipse Tips and Tricks 7 Working Sets Package Explorer > Configure Working Sets… Package Explorer > Top Level Elements > Working Sets
  • 8. Eclipse Day India 2014 | Eclipse Tips and Tricks 8 Abbreviate package names with custom rules Window > Preferences > Java > Appearance > Abbreviate package names
  • 9. Eclipse Day India 2014 | Eclipse Tips and Tricks 9 Export/Import File > Export… General > Preferences File > Import… General > Preferences
  • 10. Eclipse Day India 2014 | Eclipse Tips and Tricks 10
  • 11. Eclipse Day India 2014 | Eclipse Tips and Tricks 11 Talk to Eclipse : Start typing and get the results from many categories of UI elements. + Ctrl 3
  • 12. Eclipse Day India 2014 | Eclipse Tips and Tricks + Ctrl O 12 Quick Outline: To list the structural elements of the file (such as classes, fields, methods for a Java source file). In-place Outline: To pop up an in-place outline of the element at the current cursor position. + Ctrl F3
  • 13. Eclipse Day India 2014 | Eclipse Tips and Tricks 13 Toggle Breadcrumb tool bar buttonShowsthepathtotheelementatthecursorposition. Navigatetootherelementsviadrop-downsandinvokeactions(whenotherviewsarenotvisible). Also available on multiple editors that are open side-by-side.
  • 14. Eclipse Day India 2014 | Eclipse Tips and Tricks 14 Ctrl+Clickonapropertykeyinthe*.propertiesfileshowstheplacesinsourcecodewhereitisbeingusedandtakesyoutothereferencingcode.
  • 15. Eclipse Day India 2014 | Eclipse Tips and Tricks 15 Findsundefined,unusedandduplicatekeys. Source > Find Broken Externalized Strings
  • 16. Eclipse Day India 2014 | Eclipse Tips and Tricks 16 Fromastacktraceinlogfile,insteadoflocatingthefileandgoingtothelinenumberviaCtrl+L,useJavaStackTraceConsole. Copythestacktracefromlogfileandclick: Copythestacktraceandpasteontheconsole: ClickonthehyperlinksforJavaclassnameswithlinenumberstonavigate. Clickingontheexceptionnameinstacktracewillcreateanexceptionbreakpoint. Navigate > Open from Clipboard Console view > Open Console (drop-down menu) > Java Stack Trace Console OR
  • 17. Eclipse Day India 2014 | Eclipse Tips and Tricks 17 Toopenthefoldercontainingaresource,inyoursystem'sfileexplorer. Context menu: Show In > System Explorer
  • 18. Eclipse Day India 2014 | Eclipse Tips and Tricks 18
  • 19. Eclipse Day India 2014 | Eclipse Tips and Tricks 19 + + Alt  F1 + + Alt  F2
  • 20. Eclipse Day India 2014 | Eclipse Tips and Tricks 20 JustcopytheJavacodeandpasteonPackageExplorer. AnewJavaprojectwillbecreatedandthefilewillbeopenedintheJavaeditor.
  • 21. Eclipse Day India 2014 | Eclipse Tips and Tricks 21 Todeterminewholastmodifiedalineofcodeandwhen.
  • 22. Eclipse Day India 2014 | Eclipse Tips and Tricks  + Ctrl  22 ToseetheJavadocinsuchcases,pressandhover. Whenthereisanerror/warningatanidentifier,thecorrespondingmessageisshownonhoverinsteadoftheJavadoc. Updatetexthoverkeymodifersat: Window > Preferences > Java > Editor > HoversToseethesourceonhover, pressandhover. Or use Javadoc view. Or use Declaration view.
  • 23. Eclipse Day India 2014 | Eclipse Tips and Tricks 23 ToignorecertaintypesfromtheOpenTypedialog,contentassist,quickfixproposals,importorganizationetc. Window > Preferences > Java > Appearance > Type FiltersExample:
  • 24. Eclipse Day India 2014 | Eclipse Tips and Tricks 24 TemplatesareshowntogetherwiththeContentAssist(Ctrl+Space) proposals. Thereareexistingtemplatesthatyoucanconfigureordefinenewtemplates. Window > Preferences > Java > Editor > Templates OR Templates view
  • 25. Eclipse Day India 2014 | Eclipse Tips and Tricks 25 Tofindallread/writeaccessestotheselectedfieldorlocalvariableinthechosenscope. OR
  • 26. Eclipse Day India 2014 | Eclipse Tips and Tricks 26 Toeditlargenumberofalmostidenticallines.
  • 27. Eclipse Day India 2014 | Eclipse Tips and Tricks 27 Tovieworeditmultiplesectionsofalargefileatonce. splits the editor one above the other splits the editor side by side + + Ctrl Ctrl _ {
  • 28. Eclipse Day India 2014 | Eclipse Tips and Tricks 28 FormatterOff/Ontagscanbeusedinanycommenttoturntheformatteroffandon. Example:TopreventformattingofSQLqueries.
  • 29. Eclipse Day India 2014 | Eclipse Tips and Tricks + Ctrl 1 29 Don’ttypetoomuchyourself–LetEclipsehelpyouwithquickfixes, quickassists,refactorings,contentassistandmore. Examples: Quick Assist: Quick Fix:
  • 30. Eclipse Day India 2014 | Eclipse Tips and Tricks + = Delete current line Ctrl D + / = Move line(s) Alt   + = Maximize/Minimize Editor/View Ctrl M + + = To upper case/ lower case Ctrl  X + = Comment/Uncomment line Ctrl / / Y + = Quick Switch Editor Ctrl E + + Alt   = Expand selection to enclosing element + + = Lists all keyboard short cuts Ctrl  L 30 Examples:
  • 31. Eclipse Day India 2014 | Eclipse Tips and Tricks 31
  • 32. Eclipse Day India 2014 | Eclipse Tips and Tricks 32 Tostepintoasinglemethodwithinaseriesofchainedornestedmethodcalls. Example: + + Ctrl Alt Click + Ctrl F5 OR OR
  • 33. Eclipse Day India 2014 | Eclipse Tips and Tricks 33 LineBreakpointConditionalBreakpointExceptionBreakpoint: Whenexceptionsarepassedoverseverallayers,theyareoftenwrappedordiscardedinanotherexception.Tofindtheoriginsofanexception,useExceptionbreakpoint.Theexecutionwillsuspendwhenevertheexceptionisthrownorcaught.
  • 34. Eclipse Day India 2014 | Eclipse Tips and Tricks 34 ClassloadBreakpoint: Toinspectwhoistryingtoloadtheclassorwhereisitusedforthefirsttime. Watchpoint: Tosuspendtheexecutionwhereafieldisaccessedormodified. MethodBreakpoint: Tosuspendtheexecutionwhenthemethodisenteredorexited.
  • 35. Eclipse Day India 2014 | Eclipse Tips and Tricks 35 :Apointincodewherethedebuggerdoesnotbreaktheexecutionbutonlyprintstoconsole. Todebugraceconditionsortoseetheorderofthreadsexecution. Topreventtheadditionofprintstatementsinthecodewhiledebugging. Set a conditional breakpoint withSuspend when 'true'option and a condition which is always false (eg: return false;) as the last statement.
  • 36. Eclipse Day India 2014 | Eclipse Tips and Tricks 36 Tofilteroutspecifiedclassesandpackageswhilestepingintocodeduringdebugging. IntheDebugview,theselectedstackframe'spackageordeclaringtypecanbequicklyaddedtothelistoffiltersbyselectingFilterTypeorFilterPackagefromthestackframe'scontextmenu. Window > Preferences > Java > Debug > Step Filtering OR
  • 37. Eclipse Day India 2014 | Eclipse Tips and Tricks 37 Acontainerforrandomsnippetsofcodethatcanbeexecutedanytimewithoutacontext. ToexperimentwithanAPIortestapieceofcode(algorithm/method). Noneedtocreateanewproject/class/mainmethod/ runtheapplicationtotest.
  • 38. Eclipse Day India 2014 | Eclipse Tips and Tricks 38 LASTBUTNOTTHELEAST! Help > Welcome > What’s New Help > Tips and Tricks...
  • 39. Eclipse Day India 2014 | Eclipse Tips and Tricks