Baccou Bonneville Blogs Eclipse Blog Process Improvement Blog Java Blog Web Design Blog Miscellaneous .NET Blog

09/28/05

English (US)   How to create a plug-in with Eclipse 3.1?  -  Categories: Eclipse Platform, Eclipse plug-ins, Tutorials  -  @ 02:32:59 pm
Plug-in Until now, I was only a user of the Eclipse Platform. Today, I want to know how to create a new simple plug-in with Eclipse 3.1 using the Plug-in Development Environment (PDE). The first goal is really simple: use the PDE to create a kind of Hello World plug-in. What a nice surprise when I have discovered that the Eclipse guys have the idea to create a wizard to do that! This wizard really simplify the creation of a Hello World Eclipse plug-in...

[More:]

Here a the steps to create a new Hello World plug-in with Eclipse 3.1:

The wizard will create your Hello World plug-in. You are automatically switched to the Plug-in Developement Environement perspective and you will see the following screen:

Eclipse Plug-in Overview Screen

Then, click on "Launch an Eclipse application". This will launch a new Eclipse window with your new menu (Sample Menu | Sample Action) and icon. Choose this menu or click on the icon: you will see your "Hello, World" message.

Easy, isn't it?

Click on "Export Wizard" to export your Hello World Plug-in into a distributable zip file that will contains the Plug-in Java Archive (JAR) file. You can copy the JAR file into c:\eclipse\plugins and then restart your Eclipse to see your brand new plug-in in action. Using the Eclipse menu Help | About Eclipse SDK and the button "Plug-in details", you will see that your plug-in is registered in your Eclipse.

I will continue my learning about Eclipse plug-in creation and I will certainly write some others blog notes on that topic...

Technorati tags:
4 comments

Comments:

Comment from: Newbie [Visitor]
Are there any example programs that can dynamically integrate added plugins on the fly?
PermalinkPermalink 06/13/06 @ 13:52
Comment from: Fernando [Visitor] Email
I want create a new editor.. I want select some code from this editor, launch a new SWT window (already created by myself) and then change the code color... How can I do that? Where can I find one efective example? I'm really desperate.. :(

Thank you..
PermalinkPermalink 11/25/06 @ 15:40
Comment from: Serge Baccou [Member] Email · http://www.baccoubonneville.com
I have never had to create a new editor. Sorry, I can't answer your question...
PermalinkPermalink 11/27/06 @ 08:12
Comment from: Adithya [Visitor] Email
i am new to plug-in development. can you please let me know how i can open a browse window on click of thr new menu item i created using your example?
PermalinkPermalink 07/12/07 @ 07:12

Leave a comment:

Your email address will not be displayed on this site.
Your URL will be displayed.

Allowed XHTML tags: <p, ul, ol, li, dl, dt, dd, address, blockquote, ins, del, span, bdo, br, em, strong, dfn, code, samp, kdb, var, cite, abbr, acronym, q, sub, sup, tt, i, b, big, small>
(Line breaks become <br />)
(Set cookies for name, email and url)
(Allow users to contact you through a message form (your email will NOT be displayed.))
This is a captcha-picture. It is used to prevent mass-access by robots.

Please enter the characters from the image above. (case insensitive)

Pingbacks:

No Pingbacks for this post yet...

powered by
b2evolution

Credits: blog software | web hosting | monetize