Sonntag, 9. September 2007

db4o-netbeans project launched

I've just started a new project to build a netbeans plugin for the db4o object database. Keep a bookmark to http://code.google.com/p/db4o-netbeans/. Soon, I will add artifacts there that you can download and use.

As a preview, here are some of the first screen shots and some information about the initial version:

db4o database are accessed by simply creating a custom file type choosing New File on the File menu and adding it to an opened java project.













After entering a name, a file of type db4o is added to the java project.












Using the context menu item Open Db4o Editor opens the editor to visualize the db4o database content. The editor may be used to navigate the database content, add or remove objects to or from the database or change values of stored objects.


















Values are edited and changed in the regular properties window provided by net beans.



















A first simple approach to add support for db4o database is by constructing soda based queries. The elements of a query will be added as sub nodes to the db4o database node in the projects navigation view.



















However, this approach has some limitations but is easy to implement.
Executing the query opens another editor window for the query results.


















The count of objects affected by the query is additionally displayed in the title.

Well, the project has just been started and there is quite a lot to do to make it smooth.
Especially, improving the query approach to the latest db4o features and editing capabilities are quite challenging.
Moreover, currently db4o 6.1 is used. I need to make sure that the plugin is independent on a certain db4o version. And last but not least, support for net beans 6.0 is on the list as well.

If you are interested in the project and would like to know more about it, please post a comment here. Contributions are welcome.

Kommentare:

jos hat gesagt…

installation is not clear.

1. i have downloaded db4o-netbeans-plugin version 0.6 + .pdf

2. unzip file to map c:\x

2.netbeans 6.0-> tools-> plugin-> downloaded-> add plugin-> select all downloaded .nmb files -> select all-> install-> ERROR:
MISSING REQUIRED MODULES FOR PLUGIN DB40 NETBEANS MODULE;
modele org.netbeans.modules.autoupdate/1 >2.16.31
org.netbeans.modules.java/1

Solution:
A. select only db4o.x-java->install
B. select only db4o.sql->install
C. select netbean-utilitys->install
D. select netbeans-API->install
E. select netbeans-Editor->install

I can not install db4o-netbeans module .. ->error

After installing 5 from the 6 plugins ...
Netbeans60->Tools->Pluggins->Settings-> ... i dont see db40. I can add db4o but what must be the url ?

Lisandro hat gesagt…

i`ve the same problem. I`ve netbeans 6.0 RC1...

Richard hat gesagt…

Hi

I'm using version 0.6.0 of plugin with Netbeans 5.5.1. I followed your tutorial to connect to database file but content of database is not displayed.

Under Database Content tree 2 entries appear:-
GenericClass Db4oObjects.Db40.StaticField, Db40objects.Db40
GenericClass Db4oObjects.Db40.StaticClass, Db40objects.Db40

When I access the program from Java program, I can see the database does have content. Any ideas what I'm doing wrong?