NetBeans 72 NewAndNoteworthy

Revision as of 14:15, 22 February 2012 by Tmysik (Talk | contribs)



Background Indexing

The indexes and indexing infrastructure were rewritten to use transactions. The project scanning and up to date check do not block editor features nor navigation. These features see the previous committed index. Also the write transaction are suspended by read transactions, so the background indexing has lower priority then user actions.

Parallel Indexers

The binary indexers run in parallel which makes indexing of java project faster.


Import/Export ZIP

New items under the File menu let you save a project (or tree of projects) as a ZIP file - excluding build products - and conversely unpack a ZIP and open any projects found inside.

Collapse All

The blank area in the Projects and Files tab now has a context menu item to collapse all nodes.


Package View

You can now view Java packages in "reduced tree" mode. (A third option in the submenu available when right-clicking the empty space in the Projects tab.) This mode differs from plain "tree" mode in that multiple package components with no other children (for example "com.mycorp.mydept") are collapsed into one node for easier navigation.


Replace Constructor With Factory

New refactoring Replace Constructor With Factory


Replace Constructor With Builder

New refactoring Replace Constructor With Builder


Invert Boolean

New refactoring Invert Boolean


Move Members (Method/Field)

New refactoring Move Members



Introduce Local Extension

New refactoring Introduce Local Extension


Improved Java Beans Support

Generate getters and setters now supports "encapsulate fields" option to invoke encapsulate fields refactoring.


Encapsulate Fields refactoring has new option "property change support"


Code Generation

You can now customize order of the generated class members via a new panel added to 'Tools -> Options -> Editor -> Formatting -> Java'.



Generate Implementing/Extending Class

When you put the cursor in a class declaration header, a new hint should appear.




When the hint is invoked, the new class, with all its required methods, is automatically generated, as a separate class (a dialog pops up letting you specify the name of the class and the package where the class should be created).


Command-line equivalent

When running an Ant process, the closest equivalent command line is displayed at the top of the Output Window for convenience.

Debug target

You can now run the Ant debugger from the context menu of a target node.


Bundled version

The bundled version of Maven was upgraded to 3.0.4.

Repository browser

The list of repositories has been moved under the Services tab rather than needing its own window.

The actions available on artifact version nodes has been expanded and made more consistent, notably including the ability to download sources and Javadoc.

Quick Search hits for Maven artifacts now select the version node here, rather than opening the multiview. You can still open the multiview by double-clicking the node if you want.

The multiview now includes a tab displaying the text of the POM.

Dependency display

Non-classpath dependencies are now shown under their own nodes.

Show Dependency Graph has been replaced with Open POM; the graph is shown as a tab in the pom.xml editor window.

New archetype wizard

The wizard panel for selecting an archetype (to create a new project) has been rewritten and now features a search field.

Source/Javadoc attachment

Automatic attachment of Source/Javadoc will now search the Maven repository for matches if your binary JAR is identical to one in the Maven repository, even if it is somewhere else on disk (say, in a library directory of an Ant-based project).

Plugin handling

<annotationProcessors> from maven-compiler-plugin is now considered by the Java editor.

POM editor

Expressions in POM files allow hyperlinks, jumping to the location in current or parent file where the property is defined. Works both for the ${foo} and ${} expressions. While hyperlink the action, the tooltip shows the value of the expression as it resolves in the current project.



View config.xml

A new action on a job lets you view its raw configuration data quickly.

Quick-search provider

You can now jump to the node for a Hudson job from the Quick Search toolbar.

Java EE

JPA Support

JPQL support

JPQL validation is added for named queries.


JPQL completion support is added.


Generation options

New mapping options are added for entities from database:

'Use defaults if possible' is used to use fewer annotations in generated code and 'Generate fields for unresolved relationships' is used to generate usual fields if relationship can't be coded (for example opposite side of relationship isn't generated or mossed for any other reason).





Properties completion is added to persistence.xml, main support is provided for ecipselink jpa 2.0 provider.


CDI Warnings for non-portable behavior

See details at Enhancements for 7.2


Java FX

Project Auto-Update

On opening a JavaFX 2.0+ project from older NB version in newer NB version the project build scripts are auto-updated to ensure correct functionality.

Version Control

Search History redesigned

Search history view in Git, Mercurial and Subversion version control systems is now more intuitive and individual revisions are easier to inspect.



Queues support

The IDE now supports Mercurial Queues, you can now create, refresh and finish patches, switch between individual patches in a queue and review patch diffs directly from the IDE.

Image:Hg queues1.png

Image:Hg queues2.png


Breakpoints have a possibility to enable/disable other breakpoints when hit

Breakpoint Properties have two new options ("Enable Group" and "Disable Group"), that allow to specify a name of a group containing breakpoints, that are enabled or disabled, when the breakpoint is hit.


The associated combo-box pop-up menu lists all user defined breakpoint groups (go to Breakpoints window to move breakpoints into user-defined groups) and also automatic grouping by file names, projects or breakpoint types.


Source scanning does not block debugger stepping

Stepping through the source code is no longer blocked by source scanning task. The step was analyzing where specifically is the program suspended on the given line. Now this analysis does not prevent from issuing a next step.

Zoom of the debugger GUI snapshot

The GUI snapshot of an application created under a debugger, can be zoomed to fit comfortably into the window area.



PHP 5.4

  • Traits added
  • Short array syntax added
  • Array dereferencing added
  • Built-in web server add
  • Related hints added
  • Callable type hint added
  • Anonymous object variable added
  • Binary notation for integers added
  • Static method call with an expression added


PHP Annotations

Support for PHP annotations added for PHPUnit, ApiGen/PHPDoc, Doctrine2, Symfony2 - TODO add link to blog


  • Support for Skeleton Generator added
  • Support for PHPUnit annotations added - TODO add link to blog
  • PHPUnit per project can be specified


Hudson support added.


  • Symfony2 support added
  • Support for Symfony2 annotations added - TODO add link to blog


Twig support added


  • Doctrine2 support added
  • Support for Doctrine2 annotations added - TODO add link to blog


ApiGen support added


Neon files support added.

Apache Config file

Apache config files support added

New Hints

  • Identical comparisons added
  • Immutable variables added


Options Window Redesign

  • "Ant", "GUI Builder", "Java Card", "Java Debugger", "Java ME", "Maven" and "Profiler" sub-categories have been moved to the newly created Java category

  • "Appearance" sub-category was renamed to "Windows" and now the Miscellaneous category contains
    "Diff", "Files", "Groovy", "Issue Tracking", "JavaScript", "SVG", "Tasks", "Terminal", "Versioning" and "Windows" sub-categories

  • Fonts and color part of "Terminal" sub-category of Miscellaneous category now look similar to other color management UI elements under the "Fonts and Colors" category

  • the "Spellchecker" sub-category was moved under the Editor category


Window System

It is possible to have multiple rows of editor tabs and to change the tab placement (top/bottom/left/right). See menu Tools - Options - Miscellaneous - Windows.

A window header can have (animated) notification that it is currently busy, e.g. it's content is being loaded.


Changed location of userdir and cachedir

The default location of NetBeans userdir and cachedir was changed to system specific paths. More information in UserdirAndCachedirFoldersInSystemSpecificPaths.

Maven-based module development

Archetypes using the 3.7 version of the plugin are now offered.

The major feature in this version is integral support for creating installers (NBI); this goal is suggested in the application archetype in -Pdeployment. The old Ant-based context menu item "Build Installers" is available only for earlier plugin versions and is deprecated.

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo