Home | Screenshots | Download | Forums | Feature Requests | Bugs | |
Creating new Nodes in the Database Structure ViewEclipse SQL Explorer provides the 'net.sourceforge.sqlexplorer.node' extension point, which allows you to create new nodes in the database structure view. There are 3 different classes you can extend to create a new node:
Creating a new SQL Folder NodeIn this tutorial, we'll create a new Procedures folder node for the MySQL database. Step 1: Assuming that you've already created a fragment project, open the fragment.xml and go to the extensions tab. We haven't used this extension point yet, so we need to add it first using the 'Add' button.
Step 2: Select the net.sourceforge.sqlexplore.node extension point.
Step 3: Right click the extension point and create a new node.
Step 4: This is where we define the most important details for our new extension point. In the name field, we have to provide a name for this node. This name is only used to make it easy to identify your node.
Let's call this new node the Procedure Folder node.
Step 5: Change the super class to AbstractSQLFolderNode.
Step 6: Once the class is generated, we create a new entry in our text.properties file to hold the label for our procedure node.
Step 7: Update the methods of the generated class. The image says it all..
All we have to do now is save everything and run SQL Explorer with our new extension. Here's the end result.
|