Eclipse Plug-in Architecture – Extension Processing

This post starts with the question – how the callback method is called in Eclipse Platform.

Short answer is: call back method is called by host plug-in.

The example used is from a previous post which is about creating a sample plugin with a menu through plug-in wizard. I believe anyone who have played a little bit with plug-in has used it before.

Read more

Decipher Eclipse Architecture: IAdaptable – Part 3 – Show Properties for Items in a View

This example shows how IAdaptable is used in Eclipse in a real example. To get a taste of how Adapter design pattern works in Eclipse, go to those posts: post1 post2. Suppose you have created a view by using eclipse “Extension wizard”. (If you do not know this, try to play around and get this … Read more

Decipher Eclipse Architecture: IAdaptable – Part 2 – Simple Example

Adapter Design Pattern How Adapter design pattern is used in Eclipse platform? Eclipse Platform Runtime has a good example of this pattern. First of all, Adapter design pattern has a simple idea behind – wrapping the object and making it to be compatible to another interface clients expect. You can take a look at the … Read more

Java Design Pattern: Adapter

Adapter pattern is frequently used in modern Java frameworks. It comes into place when you want to use an existing class, and its interface does not match the one you need, or you want to create a reusable class that cooperates with unrelated classes with incompatible interfaces. 1. Adapter pattern story The Adapter idea can … Read more

Best Free Fast Spring MVC Tutorial

Here is a good site about Spring MVC. http://maestric.com/doc/java/spring/hello_world I guess this is the right way to make a tutorial. While there are so many posts out there talking about Spring MVC examples, sample applications or tutorials, there is still a reason to make a new one. This is a good example that can make … Read more

Design Patterns Used in Eclipse Platform

Here I summarize the design patterns used in Eclipse platform. Understanding design patterns used in Eclipse is the key for understanding Eclipse platform. Eclipse architecture has a clear layered structure. Each layer is independent to each other but interactive with each other. To better understand a framework, it is a good idea to start from … Read more

How to Design a Java Framework? – A Simple Example

You may be curious about how a framework works? A simple framework example will be made here to demonstrate the idea of frameworks. Goal of a Framework First of all, why do we need a framework other than just a normal library? The goal of framework is defining a process which let developers implement certain … Read more

Library vs. Framework?

What is the difference between a Java Library and a framework? The two concepts are important but sometimes confusing for Java developers. 1. Key Difference and Definition of Library and Framework The key difference between a library and a framework is “Inversion of Control”. When you call a method from a library, you are in … Read more