Monday, March 08, 2010

How to create Mylyn Connector Plugin - part 1

Quite recently I struggled with my company's internal bug tracker, especially lack of Mylyn integration in Eclipse. The easiest way to make it work was just to develop it :) I started with Mylyn/Integrator Reference but as usual Eclipse documentation sucks (I used to develop a lot of SWT/JFace applications and the best documentation I found was outside of Eclipse). It's too short, too shallow and most of all written by/to people who knows Mylyn APIs and architecture quite well. As far as I understand someone who wants just to integrate Mylyn with some bug tracker doesn't have to have this kind of knowledge, but I also understand that Mylyn guys don't really have time for stuff like this.

Anyway, I also found very short tutorial (http://jvliet.blogspot.com/2007/02/creating-mylar-connector-plugin-for.html) explaining in a bit more details how to create Eclipse PDT project etc. But this tutorial doesn't explain all the tiny details that made me spend many hours wondering HTF it should all work together.

In this short series of posts I'll try to give you much simpler tutorial (for morons like me) how to start new Mylyn Connector Plugin even if you're new to Eclipse Plug-in Development. I'll save your time!

OK - let's start. First video shows how to checkout Eclipse Mylyn and Trac packages (only packages required for connector development reference). In all tutorials authors say that you should take Trac Connector as example but they never point to concrete CVS repository and CVSROOT directory. I do:



Second video shows how to create new Mylyn connector project and make it visible in the new Mylyn Connection wizard (I took icons from Trac for simplicity - you can/should use your own). All steps in this tutorial are MANDATORY - if you miss something I'm 99.9% sure it will not work:



Enjoy and stay tuned for more videos in the upcoming weeks...

PS. I used Eclipse 3.5 (Galileo):

12 comments:

aspen said...

Thank you for a great tutorial! Waiting for the next episode.

Bráulio said...

It seems Mylyn sources are now located at /cvsroot/mylyn, not /cvsroot/tools.

Mari said...

I love your tutorial!! I was wondering if you are going to continue it?

Przemysław Bielicki said...

Thanks for nice words - I'd love to continue it but I haven't had any time recently (as you can see from my (in)activity on the blog.

Will try later :)

DMG said...

You have significantly reduced the pain in this process. Let me just emphasize for others that you MUST download the source of the Mylyn dependencies, linking to the compiled binaries that ship with eclipse doesn't work.

Maher Belkhiria said...

Great tutorial ! are you planning to post the third part ? anyway great job !

casaout said...

Great tutorial. I really hope, you will continue the tutorial. I was unable to find something else useful on the web... Thanks!

Unknown said...

Videos are gone :(

Przemysław Bielicki said...

yes, it apperas that idiots from blip.tv removed my account (thus, all my videos from this blog) without even telling or warning me. nice work blip.tv - you suck!

Michelan Arendse said...

Hi can you upload the videos maybe on YouTube, or are all the videos gone?

Przemysław Bielicki said...

sorry guys but you have to wait at least until January. I'm on vacation and I don't have an access to my master copy

Przemysław Bielicki said...

I found the videos and posted them on youtube - enjoy!

and sorry for the delay