What's the Difference? Creating Diffs with JGit

What’s the Difference? Creating Diffs with JGit

In this post, I will dig into the details of how to diff revisions and create patches with JGit. Starting ... Read More
JUnit 5

How to Replace Rules in JUnit 5

The recently published JUnit 5 (aka JUnit Lambda) alpha release caught my interest, and while skimming through the documentation I ... Read More
SWT ScrolledComposite Explained

SWT ScrolledComposite Explained

Like a friend of mine once put it, SWTs ScrolledComposite is a nasty beast. And to some point, I do ... Read More

Getting Started with JGit

If you ever wondered how basic Git commands like git init, git checkout and so on are executed in JGit, ... Read More
How to Clone Git Repositories with JGit

How to Clone Git Repositories with JGit

Whatever you plan to do with an existing repository, first a clone has to be created. Whether you plan to ... Read More
From Arrays to Streams and Back with Java 8

From Arrays to Streams and Back with Java 8

Not long ago we upgraded some Eclipse plug-in projects to Java 8. And never looked back since. Among many other ... Read More
Integration Tests

Clean Integration Testing with JUnit Rules

The benefits of JUnit Rules, especially when dealing with integration testing, can hardly be overrated. In this post, we'll shine ... Read More

Initializing Git Repositories with JGit

I was recently asked how to initialize a new Git repository with JGit, i.e. achieve what git init /path/to/repo does.While ... Read More
Java Event Notification

Getting Java Event Notification Right

Implementing the observer pattern to provide Java event notification seems to be a straight forward thing to do. However, there ... Read More
map distinct value types using java generics

How to Map Distinct Value Types Using Java Generics

Occasionally the average developer runs into a situation where he has to map values of arbitrary types within a particular ... Read More
OSGi Service Test: ServiceRegistrationRule

OSGi Service Test Helper: ServiceRegistrationRule

OSGi Service Tests can be an efficient means to avoid problems related to dangling service references. As promised in my ... Read More
OSGi Service: Service Collector

OSGi Service Test Helper: ServiceCollector

OSGi services come in handy for the development of systems based on loosely coupled components. But loose coupling can make ... Read More
Apache FOP

Apache FOP Integration with Eclipse and OSGi

Apache FOP is an open source print processor driven by XSL formatting objects (XSL-FO). It can be quite useful to ... Read More
Custom SWT Scrollbar

Sacrilege – a Custom SWT Scrollbar

SWT is a thin abstraction layer on top of native OS widgets. Which is a very good thing if you ... Read More
JGit Authentication Explained

JGit Authentication Explained

Authentication in JGit is mostly on par with native Git. Commonly used protocols like SSH and HTTP(S) and their authentication ... Read More
JFace Viewers: DeferredContentManager

Deferred Fetching of Model Elements with JFace Viewers

Model elements displayed by Eclipse JFace Viewers sometimes take a considerable amount of time to load. Because of this the ... Read More