X

Geertjan's Blog

  • August 13, 2008

Project Type Sample

Geertjan Wielenga
Product Manager
In the coming weeks, a free on-line NetBeans Platform Training Course will be made available. It will be based on Tim's excellent "PovRay" series, which is currently severely out of date and has been causing a lot of questions for a while, even though those who work their way through the problems tend to end up with the result they were looking for in the first place. In that context, his tutorial will be removed from the web because it will be part of the course. The most interesting part of his tutorial, on a technical NetBeans Platform level, is the material relating to the creation of NetBeans project types. Those taking the course won't necessarily be interested in that, but will probably be taking the course to gain a general understanding of how to work with the NetBeans Platform.

But what about those who're interested specifically in creating new NetBeans project types? They first need to ask themselves whether they really need a new project type because since 6.1 it is possible to extend existing project types, which should be seen as the preferred approach, as outlined in the NetBeans Project Type Extension Module Tutorial. However, what if you STILL need to create a new project type? For these special cases, a sample is now available:

http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=12170

It will create a new project type. The project type will treat any folder as a NetBeans project if it has a subfolder called "texts". The content of the "texts" folder will be displayed in the Projects window. The project will have some of the typical project-level commands at its disposal:

So, if in the coming weeks the PovRay tutorial suddenly disappears, now you know why. At that point, you can either take the free on-line NetBeans Platform Training Course or (and in the period where it isn't available yet) you can simply download the sample and adapt it to your own needs.

The sample was created in NetBeans IDE 6.5 Beta, so you need at least that release if you need to work with it.

Join the discussion

Comments ( 9 )
  • Varun Thursday, August 14, 2008

    Hi Geertjan,

    Recently, I came across this PovRay tutorial, though have not seen it completely.

    But, I would like to know, whether the new sample, will be able to provide enough information, for creating a new project type?

    I am waiting for the upgradation!

    Thanks ;)


  • Alex Thursday, August 14, 2008

    Hi, Geertjan.

    May I ask you an offtopic question? As I can see you use Ubuntu linux. Probably you know the reason of this issue I have: I have got the following issue with combo-box drawing in java applications (including NetBeans IDE): http://sandlex.files.wordpress.com/2008/08/nbcomboissue.png

    I have Ubuntu 8.04.1 with “human” theme and “extra” visual effects turned on. Java version is jdk 1.6.0_10-rc. I don’t remember for sure but it seems I had the same issue on my previous Ubuntu installation 7.10 with jdk 6u02.

    Any ideas how to fix it? Everywhere in operating system interface everything is OK with combos.

    Here the link to this question in my blog (just in case) http://sandlex.com/2008/08/15/nb-and-java-combo-box-issue-in-ubuntu

    Thank you,

    Alex


  • khalil Saturday, August 16, 2008

    Hi Geertjan,

    I am testing the release 6.5 Beta, I am testing different NB platform applications. I found a strange "behavior of the IDE". Lets take the Paint Application sample. It runs perfectly the first time. But If I add or remove any extra modules (even the unused one) I got the following message (see below). The same problem happened with any other platform application!!

    Thanks

    Khalil

    Scanning for modules in C:\\Program Files\\NetBeans 6.5 Beta

    Scanning for modules in suite D:\\Documents and Settings\\Khalil\\Mes documents\\NetBeansProjects\\PaintApp

    C:\\Program Files\\NetBeans 6.5 Beta\\harness\\suite.xml:106: The following error occurred while executing this line:

    C:\\Program Files\\NetBeans 6.5 Beta\\harness\\build.xml:97: The module org.openide.awt cannot be compiled against because it is part of the cluster platform9 which has been excluded from the target platform in your suite configuration


  • Geertjan Saturday, August 16, 2008

    I've not had that experience myself, Khalil.


  • Oleksandr Fedotov Sunday, August 17, 2008

    I have the same trouble.


  • Alex Sunday, August 17, 2008

    Oleksandr Fedotov, take a look at this discussion - http://community.livejournal.com/ru_java/695601.html


  • Oleksandr Fedotov Sunday, August 17, 2008

    Problem seems to be fixed in 6.5 builds after 14 aug 2008


  • Alex Monday, August 18, 2008

    Oleksandr Fedotov, I still have the same issue with NB 6.5. And that's clear that the problem in system java look and feel. Do you know by chance where can I specify the default look and feel for all java applications I run?


  • Pavel Kotlov Wednesday, August 20, 2008

    Since I’ve installed the 6.5 all my old projects gone mad. Even if I delete the 6.5 platform from the platform list every project choose it automatically and I have to restart NetBeans sometimes to let the projects run in the 6.1 again. Since in 6.5 Platform no modules are selected i get the same problem. Changing from one suite to another must be a bit straiter forward.

    The PovRay Project helped me a lot but it gets really hard in the end since i am not really interested in povray. More standard design issues for custom projects, the usage of XML to define properties and some more Information on custom ordering and positioning of Nodes (like in Java Project) would very helpful.


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.