Author: Chris Aniszczyk

Ever wanted to add spelling checking to a dialog, form or some editor in your Eclipse-based application? Well, I needed to do this recently for a project and thought I would share with people how it can be done (also, I had people emailing me to write more tips ;p). The spell checking infrastructure in Eclipse is handled by the text editor framework. Specifically, there's an...

Read More

I can't count how many times I have come across developers that aren't using project level settings. It makes me a bit sad in the beginning, but once I show people what you can do with project level settings, I'm immediately filled with glee. Why should you use project level settings? The main reason is that you can enforce these settings all across your team...

Read More

In honor of the Olympics, I figure a tip about something involving splits is in order: Unfortunately, I'm not a good gymnast so I can't teach you about the types of splits in the picture above, however, I can help you in the OSGi world. In an OSGi-based system, there are cases when you want to do some heavy refactoring but run the risk of breaking...

Read More

I was catching up with a colleague today at a coffee shop about his OSGi-based product and the topic of versioning came up (he also bribed me with free espresso shots). My colleague's company recently released the "2.0" version of their product and were ready to move to the next release (3.0). The common pattern they were using was to simply artificially synchronize all plug-in...

Read More

Ever use the OSGi console included in Eclipse (i.e., run the eclipse executable with -console)? Ever wanted to add your own console commands for your application? If so, the process is pretty easy and straightforward. The first step is to implement the CommandProvider interface. Here is a simple and fun example: [code lang="java"] package com.code9.examples.console; import org.eclipse.osgi.framework.console.CommandInterpreter; import org.eclipse.osgi.framework.console.CommandProvider; public class MyCommandProvider implements CommandProvider { public Object _iddqd(CommandInterpreter intp) { intp.println("Immortal mode enabled"); ...

Read More

I had to help someone internationalize their RCP application today and I didn't really have a straight forward simple example to point them to so I figure I'd share something here for everyone's benefit. I'll use the famous RCP mail example to get things started. The first step in internalization is making sure our strings are externalized so translators can actually do something with them....

Read More

I was helping a colleague today with a key binding issue that I think is fairly common. To illustrate the problem, let's look at what happens when you press CMD+N in the RCP mail sample: What!? New Project Wizard? That's not what I wanted! In this case, I actually wanted a 'New Message' to pop up instead of that new wizard. I don't want any of...

Read More