Geertjan's Blog

  • December 19, 2014

Integrating Cloud Providers into NetBeans IDE (Part 3)

Geertjan Wielenga
Product Manager

Now that we (1) can register new Cloud providers under the Cloud node and (2) automatically enable the resources made available by our Cloud provider to be displayed under the Servers node, let's take the next logical step in the development of our generic Cloud provider plugin for NetBeans IDE.

And what is the next logical step? Well, when the user creates a new Java web application, whether Ant-based or Maven-based, they need to be able to choose the server made available by your Cloud provider, which is "Foo" in our case:

When they click Next above, assuming the user hasn't registered the Cloud provider already, the same dialog as shown when registering the Cloud provider from the Cloud node needs to be shown:

And then the user should be able to set the standard settings, such as the Java EE version and the context path, as shown below: 

When Finish is clicked, the project structure shown below, both Ant-based and Maven-based (depending on which of the wizards was selected) needs to be generated: 

In addition, since the Cloud provider has been registered in the New Web Application wizard, the Servers node and the Cloud node should now both display relevant child nodes: 

All of the above is made possible by means of the org.netbeans.modules.foo.j2ee package that you see below, which contains classes that are registered in the "J2EE/DeploymentPlugins/Foo" folder in the layer.xml file: 

The complete source code of the current state of the plugin is here: 


Be the first to comment

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