I Wrote My First Plugin for NetBeans



When I saw the newest tutorial from Geertjan I decided it's time for me to write my first NetBeans plug-in. I am a software quality engineer (fancy title for a tester), so I do not know much about development of NetBeans plug-ins. Anyway, after several hours of experimenting my first plug-in is alive :-) This is how it looks like:



Not very beautiful, I know, but that was not the goal. I wanted to experiment with writing plug-ins to find out how easy or hard it is. The development is a lot simplified by a wizard which helps you create the backbone of the plug-in. The rest needs a bit of investigation on the platform website and NetBeans APIs.

If you are really interested, the sources are here. Open the project in latest development build of NetBeans, you also need to get Open APIs support from Update Center, otherwise you won't be able to open it. This plug-in is extremely simple so you can use study it to see how to write NetBeans plug-ins. I don't guarantee that this is the best way how to do it, but it works for me. A lot of things could be improved, but I wanted to keep it as simple as possible if others would like to take a look at it.

If you still wonder what is the purpose of the plug-in, see this.

Update: This e-mail is what you need if you want to add external libraries into your nbm. If you want to try my extremely useful module, download it here (works only in dev builds).
Comments:

I cannot open the project in the new dev-build, Netbeans really can recognize it, but when I try to open it,it enters into next deep dir of this project. I detect it has a difference - there isn't a project name appeared in the 'Project Name' when selecting it. would you like to see it. -pprun

Posted by pprun on červenec 02, 2005 at 09:08 dop. CEST #

after a brief view in text editor(because of the above reason), it the plugin systems existing in both netbeans and eclipse are rather similarity than difference. (the number of java file to written and the setting XML file) Currently, could we edit the Lay.xml file by visual fashion instead of edit it in xml editor?
thanks
-pprun

Posted by pprun on červenec 02, 2005 at 09:28 dop. CEST #

Ad 1: Do you have Open APIs support installed? You need to get the module from update center. I forgot to mention it in the post.

Ad 2: Wizards for generating layer.xml + wizards which generate code are being prepeared for 4.2.

Posted by Roman Strobl on červenec 02, 2005 at 11:47 dop. CEST #

Delete the "private" folder (it's inside the "nbproject" folder). When you do this, you'll be able to open the project. Maybe Roman should remove that folder and re-upload it to the blog.

Posted by Geertjan on červenec 02, 2005 at 01:54 odp. CEST #

Oops, thanks Geertjan, uploaded again.

Posted by Roman Strobl on červenec 02, 2005 at 02:15 odp. CEST #

Nice plug-in, by the way!

Posted by Geertjan on červenec 02, 2005 at 02:27 odp. CEST #

Increases your productivity by at least 100% :-)

Posted by Roman Strobl on červenec 02, 2005 at 06:33 odp. CEST #

Ok now, thanks all.

Posted by pprun on červenec 03, 2005 at 01:42 dop. CEST #

gr8 plugin to start with....I am new to dev appl on top of netbean plateform.I am not using any IDE..i have already done a module...For one module similiar to urs after clicking the menue option("TestTop") a blank is getting displayed in disable mode.Please suggest me how to correct it to get the action done by the action class

Posted by Abhisek on září 18, 2007 at 09:59 odp. CEST #

Post a Comment:
Comments are closed for this entry.
About

Roman Strobl

Search

Archives
« duben 2014
PoÚtStČtSoNe
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Today