Friday Jan 30, 2015

NetBeans has Integrated javac from jdk8u40-b22

The 'javac' from the latest JDK, that is, JDK 8 Update 40 b22, is now in NetBeans IDE development builds.

As a result, Lukas Eder should be happy to see sources of jOOQ now look like this in NetBeans (click to enlarge):

(Install the 'Dark Look and Feel Themes' plugin if you want NetBeans to look like the above.)

Instead of this (click to enlarge):

Related issue, thanks Lukas:

https://netbeans.org/bugzilla/show_bug.cgi?id=249956

Tuesday Jan 27, 2015

Displaying and Processing Yeoman Generators and Commands

Each Yeoman generator, when installed, makes available one or more Yeoman commands. On the command line, you don't run a Yeoman generator, but a command provided by a generator. To make that distinction, the user interface of the Yeoman wizard has been changed a bit:

A generator that is available without having been installed is iconized by means of a green download arrow. When that icon is right-clicked, an Install action can be invoked, which will run "npm install -g generator-xyz" from within NetBeans IDE. Once that has been done, the "yo --help" command will be run again, automatically, to populate the upper view with the newly available Yeoman commands.

When a Yeoman command is selected and Next is clicked, the Yeoman command will be run, via "yo ko:app", or whatever the selected command is. Then the generated application will automatically open in NetBeans IDE.

From the above, it's very clear what the biggest advantage of Yeoman integration in NetBeans IDE will be: anyone will be able to browse through (the lower view above has built-in search and filtering features) the available generators and pick the ones they'd like to use directly in the place where the generated applications will be developed.

Monday Jan 26, 2015

Exposing Yeoman Generators to NetBeans IDE

The plan is to, as shown below, show all of the Yeoman generators and let the user select the generator they want to use.

Above, all of them are shown, including those already installed. The next step is to distinguish those that are installed from those that are not. If an uninstalled generator is selected, it will automatically be installed via 'npm install -g', after which it will immediately be used. If it is already installed, it will simply be used when selected, after Next is clicked above, and a folder is specified.

The biggest problem at that point will be ensuring that the generator runs non-interactively. Or to enable the user to enter somehow the arguments and parameters requested by the selected generator. Finally, the generated application will then automatically be opened into NetBeans IDE when the Yeoman process completes.

Friday Jan 23, 2015

Processing Output on the Yeoman Command Line

Here's where things are right now for Yeoman in NetBeans IDE. First, as pointed out yesterday, just like Maven projects from archetypes, you can create HTML5 applications from Yeoman:

When Next is clicked above, all the Yeoman generators that have been installed are shown, exactly as when you run "yo --help" on the command line:

(A feature I'd like to have would be to either have hardcoded or somehow generated the Yeoman generators that are listed here and then to let the user select the ones they'd like to have installed for them via NetBeans.)

(Also need to work more on the responses required from the generators. Right now, Enter is clicked automatically and the default generator is run.)

When Next is clicked above, the name of the selected generator determines the suggested project name of the application that will be generated.

When Finish is clicked, the generator is run in the location specified above, with the result shown below.

The next step is for me to add an 'nbproject' folder in there, with the correct content, so that the application will be recognized as a NetBeans HTML5 application. And then it will automatically be opened into NetBeans IDE, i.e., as soon as it has been generated via the steps above!

Thursday Jan 22, 2015

Parsing the Yeoman Command Line

The Yeoman command line, when you run "yo --help", shows you the available Yeoman generators that you have installed:

Integrating Yeoman into NetBeans IDE means that you want to let the user make use of those generators from within a New Project wizard, i.e., as discussed in this blog yesterday. So, here you go, thanks to Steve Souza (sitting on the couch at Concerto in Amsterdam next to me, great coffee and free Wifi hurray) and me:

The code for this is here on GitHub: YeomanHelpParser.java. You'll see the Yo executable is hardcoded, that's one thing I'll be working on, via a new item in the Options window.

Now that the above is done, things are looking pretty good. The user will select one of the installed generators (there'll also be a list of available generators that haven't been installed yet), click Next, and then the "yo" command will be called from NetBeans, the app will be generated, and will open automatically as an HTML5 project (from existing sources) in NetBeans. (JBoss Forge and LazyBones support for NetBeans should be implemented in a similar way.)

Wednesday Jan 21, 2015

How to Implement Yeoman in NetBeans IDE

I've been looking into what it would take to support Yeoman in NetBeans IDE. My initial idea was to use the dynamic actions mechanism (see it on YouTube here), to create something like the "External Tools" functionality in IntelliJ IDEA, where you can register Yeoman configurations as external tools, which means each configuration gets a keyboard shortcut, menu item, and toolbar button for invoking the configuration.

I showed the above approach to Ralph Ruijs yesterday and his immediate reaction was along the lines of: "That's just weird. If I want to create a new project via Yeoman, I'd expect to be able to go to the New Project wizard and have access to all the available Yeoman commands via a Yeoman category." Of course, it's a pity I can't use the dynamic actions approach but I agree that it doesn't apply so well in this context. So then I spent some time working on "dynamic project templates" instead of "dynamic actions", which is doable, but even more difficult.

And then... I thought about how Maven archetypes are suppored in NetBeans IDE:

When you want to create a Maven project from an archetype from the on-line Maven repository, you go to the above project template in the New Project wizard. When you click Next above, you see this dialog:

What that means for Yeoman (and for JBoss Forge, I believe) is that, assuming one wants to be consistent with the existing NetBeans IDE approaches, is to create an entry point like this:

When Next is clicked above, a dialog should appear similar to the second step of the Maven archetype wizard. At that point, "yo -- help" should be run (same as is done for grails and griffon in NetBeans IDE), which will then give access to the available generators, which should be made available in a drop-down list, which the user can then select, at which stage the generators are executed.

In other words, that means (1) no dynamic actions are needed and (2) no dynamic project templates are needed. Instead, a much simpler solution based on an existing NetBeans pattern is applicable here and, as you can see above, will provide a very clear entrypoint into Yeoman from within NetBeans IDE.

Monday Jan 19, 2015

Gulp for NetBeans IDE (Part 2)

Turns out there was no point in getting started making Gulp support for NetBeans IDE myself, since it's already part of daily development builds, and much better than my support was going to be.

For details on this and all the other awesome new features that are already available, go here:

wiki.netbeans.org/NewAndNoteworthyNB81 

Sunday Jan 18, 2015

Gulp for NetBeans IDE (Part 1)

The first part of Gulp support is complete. When the plugin is installed, the 'gulpfile.js', if it exists, is parsed and all the Gulp tasks are shown as child nodes of a new Gulp node in the Projects window:

Creating the above was trivial. Initially I got into all kinds of problems when I started by creating a new file type for Gulp files. But the solution ended up being much simpler than that. Using the NetBeans Project Type Extension Tutorial, I registered a new org.netbeans.spi.project.ui.support.NodeFactory for the org-netbeans-modules-web-clientproject project type.

All the code is here:

github.com/GeertjanWielenga/Gulp

The next step I'm working on is being able to run those Gulp tasks from within NetBeans. Once that's done I'll publish the plugin in the NetBeans Plugin Portal.

Saturday Jan 17, 2015

Knockout.js in 2 Minutes (Part 3)

Instead of hardcoding the values, let's read them from a JSON file, "courses.json", which I have in the same folder as the "index.html" file:

[
    {
        "name": "John",
        "courses": [{"title":"History"},{"title":"Geography"}]
        
    },
    {
        "name": "Bob",
        "courses": [{"title":"Science"}]
        
    },
    {
        "name": "Susan",
        "courses": [{"title":"Math"},{"title":"English"}]
        
    }
]

Code:


        
    

Friday Jan 16, 2015

Knockout.js in 2 Minutes (Part 2)

If you liked part 1, you should squeeze in another 2 minutes and watch part 2!

Code:

<script src="js/libs/knockout/knockout-min.js" type="text/javascript"></script>

Name: <input data-bind="value: name, valueUpdate:'afterkeydown'" />

<h3>
    Hello, <span data-bind="text: name"></span>.
</h3>
<ul data-bind="foreach: courses">
    <li><span data-bind="text: title"></span></li>
</ul>

<script type="text/javascript">
    
    var viewModel = {
        name: ko.observable("John"),  
        courses: ko.observableArray([{"title":"History"},{"title":"Geography"}])  
    };
    ko.applyBindings(viewModel);
    
</script>

Thursday Jan 15, 2015

Knockout.js in 2 Minutes (Part 1)

Scratching your head over Knockout.js? Spend two minutes getting your feet wet here:

Code:

<script src="js/libs/knockout/knockout-min.js" type="text/javascript"></script>

Name: <input data-bind="value: name, valueUpdate:'afterkeydown'" />

<h3>
    Hello, <span data-bind="text: name"></span>.
</h3>

<script type="text/javascript">
    
    var viewModel = {
        name: ko.observable('John')  
    };
    ko.applyBindings(viewModel);
    
</script>

Wednesday Jan 14, 2015

NetBeans Day in the Netherlands: 12 February 2015

During NetBeans Day 2014 in San Francisco, mention was made of more NetBeans Days being planned over the coming months. NetBeans Day Germany was held in Munich during December, hosted by Oracle, see the pic below, and read the report here.

In the Netherlands, the equivalent event to the above will be held on 12 February, i.e., less than a month from now, again hosted by Oracle:

Fill in the registration form and join the NetBeans community at the event:

https://pidome.wordpress.com/netbeans-day-februari-12th-2015-the-netherlands/

Or, even better, if you're not available to be there, because you're in some other country, set up a NetBeans Day yourself! Drop me an e-mail (geertjan dot wielenga at oracle dot com) and the NetBeans team will help set up the day, contact an Oracle office if needed for the location and food, and assist in getting speakers for your NetBeans Day!

Tuesday Jan 13, 2015

Free: Learn NetBeans on Udemy

Free! An excellent course for anyone working with NetBeans IDE, covers all the basics, as well as many advanced features. It is unbelievable that a course this good is available for free, make use of the opportunity today!

Click the image above or click here to get directly to the site to get started with the course!

Monday Jan 12, 2015

Free: Learn Java with NetBeans on Android

Free! Start learning Java and NetBeans on your Android phone today. A step by step guide is available that can be installed on Android, with many instructions and a thorough guide to Java with many illustrations and insights into NetBeans IDE:

Go here or click the link above and happy learning!

https://play.google.com/store/apps/details?id=net.samaysoftware.javanetbeans

Friday Jan 09, 2015

YouTube: Dynamic Actions in the NetBeans Platform

Sometimes you'd like your users to be able to create their own Actions at runtime, in addition to the Actions you may have predefined for them. Here's an example of how that would work, i.e., add new Actions and their Presenters to the User Directory, as shown here:

Thursday Jan 08, 2015

Classpath for Python Projects in NetBeans IDE

I've mentioned in this blog a few times recently the strides being made in rejuvenating the NetBeans support for Python, most recently in YouTube: Code Completion for Python in NetBeans IDE 8.0.2.

The newest development in that regard is new support for registering libraries on the classpath of Python projects (click to enlarge the image):

The above new feature isn't available in binary form yet, it's still being worked on. For the current state of the NetBeans IDE 8.0.2 plugin for Python, which includes quite some features already, including basic code completion, go here:

http://plugins.netbeans.org/plugin/56795/python4netbeans802

And, if you're lucky enough to be attending NetBeans Day in the Netherlands (12 February 2015), you'll find there'll be a session where the new Python features for NetBeans IDE 8.0.2 will be shown. Sign up for that event here:

http://pidome.wordpress.com/netbeans-day-februari-12th-2015-the-netherlands/

Wednesday Jan 07, 2015

NetBeans Software for Explosive Ordnance Disposal & Clearance Divers

Operating from offices in Edinburgh, Scotland, and San Diego, California, SeeByte has achieved a position of leadership in the development of smart software for underwater vehicles, sensors and systems in both the Military and Oil & Gas sectors. SeeByte provides products and services to major government and commercial clients around the world and a number of these products are developed using the NetBeans Platform.

SeeTrack Military is the leading technology used by Explosive Ordnance Disposal (EOD) and Clearance Divers around the world, to achieve success in managing their off-board assets during dangerous and demanding missions. As a commercially available, equipment independent mission planning, monitoring and post-mission analysis tool, SeeTrack Military generates a single integrated picture of events from multiple sensors and platforms, providing actionable information and fast results when it matters most. Designed with the operator in mind, this unique system for rapid on-site analysis and fusion of sensor data has been effectively utilized within numerous military & security exercises, surveys and operations.

Thursday Jan 01, 2015

NetBeans Top 5 Highlights of 2014

It's been a great NetBeans year in 2014 and here are the highlights as I see them!

  1. Release of NetBeans IDE 8.0, 8.0.1, and 8.0.2. Continuing a trend set in place by Oracle, NetBeans 8 was released in parallel with Java 8 this year. Need to refactor all your code to use lambdas and the Streams API? Look no further than NetBeans 8 to provide all the tools you need, as well as a great tutorial.


    Together with the strong focus on Java 8, the NetBeans 8 release integrates even more closely than before with new web technologies, such as Cordova, as well as HTML5, which is the subject of the next highlight.

  2. Continually growing commitment and innovation around HTML5. With its strong foundation in the Java ecosystem, NetBeans has over the past years been expanding its features in step with the needs of its users. Where once applets and JSP were dominant technologies, now JavaScript, with all its frameworks from Angular to Knockout and with all its supporting technologies such as Grunt and Karma, is the central domain of innovation. And that's where NetBeans is now squarely positioned, too. NetBeans as a tool for web development? Yes, indeed:

    Next, don't be surprised when you see NetBeans providing even more, and even deeper, support in these areas. For example, how about integration with Docker? So, don't be surprised when you hear more about that in the coming period...

  3. Very successful JavaOne 2014 and more NetBeans Days. I've blogged about the successful NetBeans Day at Java One 2014 before, but let me reiterate again how successful it was.

    Full rooms, especially James Gosling drawing crowds (so that we had to switch to a larger room than planned at the last minute), and the great panel discussions (i.e., sessions with 5 speakers, all talking about a common theme, e.g., teaching with NetBeans or Maven and NetBeans, etc.) NetBeans as a tool for "Internet of Things", as the very best tool available for Maven development, as well as for Java EE and HTML5, these were very clear themes in NetBeans Day and at JavaOne as a whole.

    Also announced was the new NetBeans Teachers community and the start of a continual series of NetBeans Days around the world, the first of which was the recently held NetBeans Day Germany. And, guess what, 12 February will be NetBeans Day Netherlands and 16 March NetBeans Day Germany, again! More details about these here and elsewhere when they become available.

  4. NetBeans Dream Team expansion. Over the past months, 16 new members joined the NetBeans Dream Team, mainly from Germany, the UK, and USA. They bring expertise and insight into all the areas of software technology and are a great benefit in keeping the NetBeans team in touch with ongoing discussions in the community at large. Moreoever, they're great representatives of the core ideas of the NetBeans ecosystem at conferences and events around the world. Over the coming year, I'm looking forward to seeing even more new faces in the NetBeans Dream Team, there's already several who have indicated that they'd like to be part of this community too. The enthusiasm around NetBeans is simply unstoppable!

  5. Books. More books have been written about NetBeans over the past year than ever before. On NetBeans IDE itself, as a tool, see NetBeans IDE 8 Cookbook, by David Salter and Rhawi Dantas; on Java EE and NetBeans, see Java EE 7 Development with NetBeans 8 by David Heffelfinger, on Java EE, HTML5, and NetBeans, see Java EE and HTML5 Enterprise Application Development, by Arun Gupta, JB Brock, and myself, and on NetBeans Platform, see NetBeans Platform for Beginners by Walter Nyland and Jason Wexbridge and JavaFX Rich Client Programming on the NetBeans Platform by Gail and Paul Anderson.

    For example, here's the excellent book by Walter Nyland, and Jason Wexbridge, on the ins and outs of the NetBeans Platform, a book you absolutely must get if you're interested in extending/building on top of NetBeans in any way at all:

    NetBeans Platform for Beginners -  book cover

    Can you believe these were all published over the past year? Plus there are probably some that I left out.

Into the New Year, and throughout 2015, I'm excited about the support for other technologies around NetBeans, thanks to the great community around NetBeans. In particular (and click the following links for details), support for Scala, Python, Android, and UML has been increasing further over the last few months and will continue to do so over the coming year. Also, you should expect NetBeans Facebook and the NetBeans YouTube Channel to grow even further than it did over the past year, while the new NetBeans Community Podcasts will power on, too!

More and more, I'm seeing NetBeans as a mechanism for getting to see friends around the world. :-) (And a big highlight in that regard was the GDG Conference in Istanbul, Turkey last month.) Looking forward to seeing them all again this year and making many new ones!

Sunday Dec 28, 2014

YouTube: Code Completion for Python in NetBeans IDE 8.0.2

In 5 minutes, learn how to get started with Python in NetBeans IDE 8.0.2, including for the first time basic code completion.

Get the plugin here: http://plugins.netbeans.org/plugin/56795/python4netbeans802

Friday Dec 26, 2014

YouTube: OpenShift and NetBeans IDE

Watch a quick movie about how, in addition to using Oracle Cloud, Amazon Beanstalk, and Jelastic, you can also use Red Hat's OpenShift directly from within NetBeans IDE.

Get the plugin here: http://plugins.netbeans.org/plugin/56913

About

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.

Search

Archives
« April 2015
SunMonTueWedThuFriSat
   
4
5
11
12
18
19
20
21
22
23
24
25
26
27
28
29
30
  
       
Today