NetBeans Plugins at Kenai

Do you still remember the plug in, I created last year to revamp the way hyperlink navigation was taking place for HTML files? Do you know there isn’t any such plug in yet bundled into the NetBeans IDE?

Yes/No.. Don’t say “Can’t say” ;)

Anyways, answers are Yes and No. There has never been any out-of-the-box support, that provides hyperlink navigation amongst HTML documents in the NetBeans IDE.

October 03, 2007

Geertjan Wielenga (prolific NetBeans blogger) created one, although its still not bundled with the NB, which did provide required support. There’s also a NetBeans Platform Tutorial for this plug in, you may give it a read. Although, its target release was NetBeans 6.0!

July 24, 2008

This month, I showed interest in upgrading the plug in by completing some of the tasks, specified in Next Steps section of the tutorial. You may read this blog entry for complete history and hence, I created another one. I got nice feedback from some of the community members and Geertjan, so I decided to write a tutorial for this revamped plug in.

January 09, 2009

Since, I got 2 plugins (uploaded to Plugin Portal) published into NetBeans 6.0 Update Center.. I thought why not contribute the code to the community’s codebase, i.e. contrib repository..  After interacting with the Technical Community Manager, NetBeans Dream Team and related personnel, I decided to setup a project at Project Kenai.

Today,

I decided to let you know how you can access the source code of the plug in and upgrade it according to your preferences/requirements. I am very late to notify this as I was busy with my internship program, which commenced on January 19th and culminated on 24th May (this year).

Revamped Hyperlink Navigation

…hosted at Project Kenai, you may access the source code from the SVN repository and you may also discuss about this plug in on the decidated forums. I will soon add the NBM in the downloads section, till then either you can download it from Plugin Portal (stable release) OR if you want to access it from within the NetBeans.

Update;

Then, goto Tools | Plugins and select the Settings tab. Now, click Add button and Update Center Customizer pops up. Enter Name as NetBeans UC 6.0 and URL as http://plugins.netbeans.org/nbpluginportal/updates/6.0/catalog.xml.gz. Wait for a while as NetBeans configures your new Update Center. Once done, select Available Plugins tab and you would find my plug in there. Hope this helps!

Stay tuned for more updates..

SQL Editor and NetBeans | #1

In the previous blog, I mentioned SQL Editor. NetBeans has improved it in every release in the past 2 years and it looks great these days. Here’s a sneak-peek;

Click to enlarge!

This figure shows the SQL Editor window along with the results shown for the command executed, written in the editor (select * from nbusers). Also, you can see numerous toolbar buttons, and results are shown in similar way as if it was any CRUD application. We will discuss this in more detail in following section and follow-up blogs.

Key Features..

Execute Command

To execute any SQL query within the NetBeans IDE, you must write the necessary queries in the SQL Editor shown above. Then, you may use a shortcut key (Ctrl-Shift-E) or make use of the icon (Run SQL (Ctrl+Shift+E)), clicking this toolbar button will execute the queries against the selected database (shown in drop-down list of Connection‘s), and relevant feedback is generated in the Output window (see figure). Also, results are shown as mentioned earlier.

Click to enlarge!

SQL History

Now, we will have a look at another cool feature, known as SQL History. You can read more about it on some of the Sun blogs written by;

John Baker

A new database feature in NetBeans 6.5 is the ability to save and reuse SQL statements that have been executed. A dialog listing SQL statements along with the date executed can be opened from the SQL Editor by right-clicking within the editor and choosing SQL History or clicking an image button for SQL History in the SQL Editor toolbar.

James Branam

The order the statements appears in is descending, the more recently executed statement appears at the top of the dialog. To help search for an SQL statement, you can choose the connection for the database against which the statement was executed.

Here’s a quick view of the feature;

Click to enlarge!

Integration with Database Explorer

This is also one of the coolest features about SQL Editor, i.e. its integrated with Database Explorer shown in Services window, goto “Window | Services” or hit the shortcut keys (Ctrl+5) on Windows Operating System to access the window.

Click to enlarge!

This figure shows Database Explorer on the left, while the SQL Editor on the right and Output window at the bottom of the two. Here you could see database (created for demonstration) named prayogshala is connected on MySQL Server running on localhost. It has only one table named nbusers, which consists of attributes (username, firstname, lastname).

Blast from the Past,

I google’d a bit about the presence of NetBeans SQL Editor on Sun blogosphere and I was amazed to find a blog which dates back to Year 2005, when SQL Editor was first introduced into the NetBeans IDE. It was none other than, Geertjan Wielenga who blogged about it…

One area that’s improved significantly in NetBeans IDE 5.0 is the SQL Editor. In fact, there never was an SQL Editor before. In NetBeans IDE 4.1 — and the releases before that — you had a very small space where you could type SQL commands for sending to the database.

Also, you could read more about the SQL Editor and related features from “David Van Couvering’s blog”, Embedding of SQL Editor support into PHP Editor from the “NetBeans PHP Team’s blog”. Finally, don’t miss out on the award-winning plugin (PL/SQL Editor) created during NetBeans Innovator Grants.

This is in fact my 150th blog entry over here.
Indeed, its a special one!

Hmmm…

So, this was just a brief overview of the features currently supported by NetBeans IDE. The follow-up blogs will continue to focus on either some/all of these features in detail.

This blog has been contributed to NetBeans Community Docs Program and for latest updates on this content, refer to the contribution.

Stay tuned for more..

Latest Updates..

Hmmm,

Its been a week, since I made a return to my home town and I have still not started doing anything productive. However, sooner/later you will found out from my blogs, what am I upto?

I have already subscribed to some of the mailing lists and looking forward to gain momentum in my efforts to understand NetBeans Platform. Also, having developed an interest in Java Enterprise Edition and Adobe Flex SDK over past couple of months, I am looking forward to gain more knowledge in these 2 technologies and how to put them together in use, effectively.

This time around, its more about doing rather than writing/talking. So, stay tuned to blog as I will present blogs that you may have never read before.

See ya..

MySQL, NetBeans and SQL Editor

I have been busy lately thanks to my internship project, which almost got screwed up. I was working in a team of 4 people, where we were building a web application, that was initially deployed at JBoss Server using JBoss Eclipse IDE (old version). Also, we had to interact with the centralized Oracle Server to setup our database for running the website.

Now, having being trained on some of those technologies in past few months, I thought it won’t be much of an issue. However, at the beginning of this month, I faced some weird issues which had no obvious answers. There weren’t any silly mistakes either. We were facing some issues with Oracle connectivity. I am not blaming Oracle or the company where we did the project. But, mix of old and new technologies, turned out to be quite confusing resulting in lot of trouble.

We were running out of time, so we decided to migrate our database to MySQL Server and use NetBeans 6.5 IDE, instead of old version of Eclipse. In the last 2 weeks, we were changing IDE’s, Servers and what not? After surpassing many hurdles, we completed the project and deployed it on the intranet with no issues.

Technologies Used

Servers: Apache Tomcat 6.0 Server running on one system, while the MySQL Server 4.x running on some other system.

Integrated Development Environments: JBoss IDE for Eclipse (2.0.0.beta2), Adobe Flex Builder 3 (Trial Version) and NetBeans 6.5

Experience

Although, we faced many hurdles while we strive towards  the project completion, I picked up many skills and learned many tricks to speed up the development. It was an amazing experience and certainly enriching one! Stay tuned to my blog to learn a few.

Also, I loved using SQL Editor provided by NetBeans IDE, it was so easy to manage the databases. Whenever you “Execute Command…” any SQL query, the data shown in form of the table is basically a CRUD application. It looked like the Java Application, you could have made using Swing Application Framework in NetBeans IDE. In the following blogs, you would get to know more about SQL Editor. Now, internship is over and I am back in my home town.