Top Banner
Bending the Eclipse IDE to your will EclipseCon Europe 2016
17

Bending the Eclipse IDE to your will - EclipseCon France2018 · Bending the Eclipse IDE to your will EclipseCon Europe 2016. Lars Vogel Simon Scholz. Target for this talk How to extend

Dec 26, 2018

Download

Documents

phungdang
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Bending the Eclipse IDE to your will - EclipseCon France2018 · Bending the Eclipse IDE to your will EclipseCon Europe 2016. Lars Vogel Simon Scholz. Target for this talk How to extend

Bending the Eclipse IDE

to your will

EclipseCon Europe 2016

Page 2: Bending the Eclipse IDE to your will - EclipseCon France2018 · Bending the Eclipse IDE to your will EclipseCon Europe 2016. Lars Vogel Simon Scholz. Target for this talk How to extend

Lars Vogel Simon Scholz

Page 3: Bending the Eclipse IDE to your will - EclipseCon France2018 · Bending the Eclipse IDE to your will EclipseCon Europe 2016. Lars Vogel Simon Scholz. Target for this talk How to extend

Target for this talk

How to extend or even replace stuff in the IDE

Page 4: Bending the Eclipse IDE to your will - EclipseCon France2018 · Bending the Eclipse IDE to your will EclipseCon Europe 2016. Lars Vogel Simon Scholz. Target for this talk How to extend

Creating a Plugin

Page 5: Bending the Eclipse IDE to your will - EclipseCon France2018 · Bending the Eclipse IDE to your will EclipseCon Europe 2016. Lars Vogel Simon Scholz. Target for this talk How to extend

Wizards for almost everything

● Add a new wizard● Add a new menu● Contribute to an existing menu● Create a new view● Create a new editor● and much more...

Page 6: Bending the Eclipse IDE to your will - EclipseCon France2018 · Bending the Eclipse IDE to your will EclipseCon Europe 2016. Lars Vogel Simon Scholz. Target for this talk How to extend

Testing a plug-in or a change

● Right-click on your plug-in -> Run As -> Eclipse Application

Page 7: Bending the Eclipse IDE to your will - EclipseCon France2018 · Bending the Eclipse IDE to your will EclipseCon Europe 2016. Lars Vogel Simon Scholz. Target for this talk How to extend

Deploying a plug-in

● File -> Export -> Deployment plug-ins and fragments

● Directory -> Place into dropins folder

Page 8: Bending the Eclipse IDE to your will - EclipseCon France2018 · Bending the Eclipse IDE to your will EclipseCon Europe 2016. Lars Vogel Simon Scholz. Target for this talk How to extend

Find Entry Points of the IDE

Page 9: Bending the Eclipse IDE to your will - EclipseCon France2018 · Bending the Eclipse IDE to your will EclipseCon Europe 2016. Lars Vogel Simon Scholz. Target for this talk How to extend

Eclipse Spys

● PDE Plugin Spy (ALT + SHIFT + F1)● PDE Menu Spy (ALT + SHIFT + F2)● E4 Model Spy (ALT + SHIFT + F9)

Page 10: Bending the Eclipse IDE to your will - EclipseCon France2018 · Bending the Eclipse IDE to your will EclipseCon Europe 2016. Lars Vogel Simon Scholz. Target for this talk How to extend

Files and Source Code

● ResourcesPlugin and IWorkspaceRoot● org.eclipse.core.runtime● org.eclipse.core.resources

● JDT Abstract Syntax Tree● org.eclipse.jdt.core

Page 11: Bending the Eclipse IDE to your will - EclipseCon France2018 · Bending the Eclipse IDE to your will EclipseCon Europe 2016. Lars Vogel Simon Scholz. Target for this talk How to extend

Quick Assist and Quick Fixes

● Quick Assist● Can be applied to general source code

● Quick Fixes● Find ProblemIds for Quick fixes● Can be applied for markers (errors, ...)

Page 12: Bending the Eclipse IDE to your will - EclipseCon France2018 · Bending the Eclipse IDE to your will EclipseCon Europe 2016. Lars Vogel Simon Scholz. Target for this talk How to extend

Changing the IDE directly

git clone -b master --recursive git://git.eclipse.org/gitroot/platform/eclipse.platform.releng.aggregator.git

Do your changes...

mvn clean verify

Page 13: Bending the Eclipse IDE to your will - EclipseCon France2018 · Bending the Eclipse IDE to your will EclipseCon Europe 2016. Lars Vogel Simon Scholz. Target for this talk How to extend

Why should I care?

● Automate manual efforts for your needs

● Put several steps together

● Be more productive!

Page 14: Bending the Eclipse IDE to your will - EclipseCon France2018 · Bending the Eclipse IDE to your will EclipseCon Europe 2016. Lars Vogel Simon Scholz. Target for this talk How to extend

Further Reading...

● http://www.vogella.com/tutorials/EclipsePlugin/article.html

● http://www.vogella.com/tutorials/EclipseWizards/article.html

● http://www.vogella.com/tutorials/EclipseJDTQuickfix/article.html

● http://www.vogella.com/tutorials/EclipseCodeAccess/article.html

● https://github.com/vogellacompany/codemodify Example for code refactoring JUnit 3 tests to JUnit4

Page 15: Bending the Eclipse IDE to your will - EclipseCon France2018 · Bending the Eclipse IDE to your will EclipseCon Europe 2016. Lars Vogel Simon Scholz. Target for this talk How to extend

Questions?

Page 17: Bending the Eclipse IDE to your will - EclipseCon France2018 · Bending the Eclipse IDE to your will EclipseCon Europe 2016. Lars Vogel Simon Scholz. Target for this talk How to extend