The Artima Developer Community
Sponsored Link

Java Community News
Sun's Gregg Sporar on the New NetBeans 6.0 Code Editor

4 replies on 1 page. Most recent reply: Dec 10, 2007 3:57 AM by Paulo Pinto

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 4 replies on 1 page
Frank Sommers

Posts: 2642
Nickname: fsommers
Registered: Jan, 2002

Sun's Gregg Sporar on the New NetBeans 6.0 Code Editor Posted: Dec 4, 2007 2:48 PM
Reply to this message Reply
Summary
A major new feature of the recently released NetBeans 6.0 IDE is a brand new editor infrastructure. In an interview with Artima, Sun's Gregg Sporar explains how the new editor in NetBeans 6.0 helps improve developer productivity.
Advertisement

Sun released the latest version of its open-source multi-language IDE, NetBeans 6.0. In addition to enhancements to its visual design tools, support for enterprise Java APIs, Ruby and Rails-aware wizards, NetBeans 6.0 features a completely re-designed code editor.

In this interview with Artima, Gregg Sporar, Sun's NetBeans evangelist, explains why a new editor was needed, and how it benefits developer productivity:

In NetBeans 6.0, the main feature we wanted to address was a complete rewrite of the editor infrastructure. When you use an IDE, you spend the majority of your time in the code editor. The community told us that we needed these enhancements to be competitive with the editor features in other IDEs. We heard very loud and clear from the community that our editor had fallen behind. For the most part, with the 6.0 release, we wanted to get to parity with other editors. So the editor in NetBeans 6.0 is at least as capable as editors in other IDEs, and there might be a few cases where we have slightly better features.

Our main goal was to make the editor smarter, faster, and to make users more productive. One example of that is faster and smarter code completion. The new editor is more aware of the context in which you are working. For example, if you declare a variable in your Java application as an ArrayList, and then on the right hand side of the equals sign you type new and press control-space, the editor will bring up the possible class types that can be assigned to that variable, which will be ArrayList and classes derived from ArrayList. In NetBeans 5.5, the list the editor shows includes the entire set of possible classes available on the classpath, with the most likely candidates mixed in with the rest in alphabetical order. In 6.0, the most likely candidates are listed at the top of the list.

There are many other things, too, that we wanted for a long time in the editor. For example, when creating the constructor of a class, we needed something that took all the parameters required to initialize the class and then automatically instantiate from those parameters instance variables of the class. Then there is also the ability to quickly and efficiently generate standard, boiler-plate methods of a Java class, such as the equals() or hashCode() methods. And we can also do things like highlighting all occurrences of a variable just by moving the cursor over a variable name.

In addition, the editor can now also provide quick refactorings without your fingers ever having to leave the keyboard. For example, if you have a method call and pass in, say, a String parameter just between standard double-quotes, you can select that String literal, press alt-enter. One of the refactoring options shown will let you, say, convert that String literal to a static final variable.

One of the things that the re-written editor allowed us to do was add cutting-edge support for other languages besides Java. The best example of that in 6.0 is support for Ruby. There's been a lot of activities in the developer world around Rails, and we wanted to be able to provide a set of tools for those folks interested in Ruby, and the editor infrastructure was one of the things that made that possible.

Going forward, what you'll see is continued improvement of the editor features. Second, going beyond that base, we want to improve our support for JavaScript, we're already working on adding support for PHP, and NetBeans will increasingly become a tool for working with many languages. Support for some other languages is coming from the community, too, besides Sun. One user is working on Erlang support, and another one on Scala support.

What do you think of NetBeans 6.0's editor features? What language would you like to see support for in NetBeans next?


Abraham Tehrani

Posts: 5
Nickname: atehrani
Registered: Mar, 2007

Re: Sun's Gregg Sporar on the New NetBeans 6.0 Code Editor Posted: Dec 4, 2007 10:12 PM
Reply to this message Reply
The new editor features are great. I would like to see Groovy supported by Netbeans.

Luiz Honda

Posts: 1
Nickname: lhonda
Registered: Dec, 2007

Re: Sun's Gregg Sporar on the New NetBeans 6.0 Code Editor Posted: Dec 9, 2007 7:45 AM
Reply to this message Reply
Hi Greg,

First of all, congratulations! Amazing work!
I've been using Netbeans since v4.0 and I must say that the new editor is the major improvement for Netbeans.

I noticed that v6.0 has Ruby support.
Is it possible to support Python with similar features that the editor provides to Java?

Jesper Nordenberg

Posts: 29
Nickname: megagurka
Registered: Dec, 2007

Re: Sun's Gregg Sporar on the New NetBeans 6.0 Code Editor Posted: Dec 10, 2007 3:40 AM
Reply to this message Reply
The new editor in NetBeans is excellent for Java and Ruby coding. What I really would like to see is support for Scala. I know there are some recently started efforts to implement this, but it would be nice with a larger, coordinated effort similar to what's been done with Ruby support.

Paulo Pinto

Posts: 4
Nickname: pjmlp
Registered: May, 2006

Re: Sun's Gregg Sporar on the New NetBeans 6.0 Code Editor Posted: Dec 10, 2007 3:57 AM
Reply to this message Reply
I would also like to see better Python support.

Flat View: This topic has 4 replies on 1 page
Topic: Alex Ruiz on the Dangers of Mock Objects Previous Topic   Next Topic Topic: Improving Code with Scala Patterns

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use