NetBeans 73 NewAndNoteworthy
HTML5 Application Project
The wizard allows to create an empty project or utilize one of public online templates:
Created project can be run in one of the browsers:
Unfortunately the Chrome does not allow to hide the notification - closing it disconnects the NetBeans from the browser.
The execution can be further customize via project properties. By default all files are open via internal lightweight webserver:
and running/debugging JavaScipt unit tests is not different from other languages:
HTML5 Application project can be turned into a template for new projects. Simply right click project's node and 'Save As Template' it and later user the template from New Project wizard:
When you execute a project or a file then the following views are opened by default.
- HTML View in Navigator - displays the structure (DOM tree) of the page
- Web Browser (embedded or external) - renders the page itself
- CSS Styles view - provides information about CSS styles
- Rule Editor - allows editing of CSS rules
See more information about each view below.
HTML View in Navigator
HTML View shows the DOM tree of the executed page.
When you execute a page then the page is opened in a browser pane and you can interact with it as you are used to. When you want to select an element for styling purposes you can either do so in Navigator or you can switch the browser into Select Mode and select the element in the browser directly.
You can switch the Select Mode on/off using the toolbar button or Ctrl+Shift+S shortcut.
Resizing and Zooming
You can check how the executed page would look on devices with a different resolution.
NetBeans IDE is bundled with a Chrome extension that provides a smooth interaction between NetBeans IDE and Chrome.
You can switch the Select Mode on/off using the context menu, Ctrl+Shift+S shortcut or using the popup that is displayed by clicking on a NetBeans cube in the address bar.
Browser Window Dimensions
Chrome extension allows to resize browser window to the specific dimensions.
These dimensions can be easily customized.
CSS Styles view shows style information related to the executed page or selection.
Document section of CSS Styles view shows all stylesheets used by the executed page. The list of the displayed rules can be filtered using the field at the top.
Selection section of CSS Styles view shows a summary of CSS rules affecting the selected element. Each row of the Styles table shows the selector of a rule and the name of the element from which this rule is inherited by the selected element. Property Summary provides list of all CSS properties modified by these rules.
You can use Go to Source action (or double-click) on any rule or property in CSS Styles view to jump to the corresponding source code.
When you select a rule in CSS Styles view (or when you place a caret into a rule in a .css file) then Rule Editor displays details of the rule and allows you to edit it.
Note that any modification of a CSS file is reflected in the executed page immediately.
- The coloring schema was changed and improved.
- New formatter with many options
- Model based code completion - new the code completion should be more clever, suggestions should more fit what you need.
- Supporting ScriptDoc, ExtDoc and JsDoc in version 2.
- Better occurrence support, also in the documentation.
- Better supporting for JQuery
- Core signature files updated to EcmaScript 5.1
|Brand new formatter with lot of options including indentation, spaces and wrapping.|
|code completion improvements - completion per documentation tool, CC entry templates|
|mark occurences within documentation for names and declared types|
|instant rename on found occurences|
- Call Stack
- Browser Log
The debugger supports several kinds of breakpoint:
- Line breakpoints
- DOM Breakpoints
- Event Breakpoints
- XMLHttpRequest Breakpoints
New breakpoints can be set using the Debug -> New Breakpoint... menu item.
Line breakpoints are triggered when the script reaches a particular code line.
DOM breakpoints are triggered when there is a change to a particular DOM node.
Besides the New Breakpoint dialog, DOM breakpoints can also be set in the popup menu of the Navigator window for HTML files.
Event breakpoints are triggered when particular events in the page happen.
XMLHttpRequest breakpoints are hit when network communication using XMLHttpRequest is performed.
Breakpoints can be disabled either on a case-by-case basis, or deactivated quickly all at once. This is managed in the Breakpoints window, and reflected in the editor.
Evaluating Variables and Expressions
Variables that are valid in the current scope can be inspected in the Variables window.
Next, it is possible to evaluate arbitrary expressions using the Debug -> Evaluate Expression... menu item. An evaluator window is opened in bottom editor area and evaluation result is visible in Variables window.
Another way to evaluate values of variables is using the debugger tooltip, which has an expandable tree structure.
The Browser Log shows all exceptions, errors, warnings, etc. as they happen in browser.
REST service consumption
NB allows to choose RESTful web service from the existing Web project ( REST as a Java code ) and generate JS client for it.
REST JS client wizard
The generated code requires Backbone.js library so in case the library is already in the project it will be included in the final html with its dependencies. Otherwise user is able to choose local Backbone usage via wizard checkbox. The wizard contains two steps and the second is optional: html file generation could be skipped. It is possible to generate some skeleton code ( without UI with further manual code customization ) and code based on some table grid UI ( tablesorter jQuery plugin ).
Backbone based REST client generation
The result of the wizard is generated JS code and (optionally) HTML file which has a skeleton which gives an idea to the user how the code could be customized. If REST service has an interface around of data collection and Tablesorter UI has been chosen then generated code will be adopted to use it with Tablesorter jQuery plugin. The REST data is rendered as a table grid in the latter case.
There is a new full-blown embedded browser based on Webkit. The implementation is provided by JavaFX component WebView. JavaFX SDK version 2.2 or better is required.
Show number of matches in searchbar
A new navigation bar shows the current embedding in the editor.
Clicking on the arrows shows the children like members/methods.
In the left margin you can now see an extra bracket that shows you how far the block contained in the brackets stretches.
Out-of-sight brackets will be also displayed in a popup.
(Screenshots from https://blogs.oracle.com/geertjan/entry/lost_in_code)
Copy File Path
A new action to copy file path of file to clipboard has been added to the context menu of a file tab. You can also select files or projects in project/files view, invoke the shortcut and their files paths are copied to clipboard separated by new space. When there are spaces within the path, the copied path will be surrounded by quotation marks.
'Go To File'-dialog
Support of line numbers
The file dialog was enhanced to support line numbers. For example 'MyClassObject.java:123' will open the file MyClassObject.java at line 123, if the line number is valid for the file.
Redesign of inspect members and hierarchy
Added filters for the Find Usages results.
You can filter for
- read-access, write-access, read-write-access
- tests (this allows to filter out results from test-sources)
Export/Import Formatting options
A new warning that shows places that may cause NullPointException was added:
A new optional warning checking that class' members follow the selected formatting setting was added, together with a fix for that warning:
"Remove @Override Annotation" hint
Source Menu Actions
Organize Members and Organize Imports hint are now available as explicit actions in the Source menu:
Implement Unimplemented Methods
When the caret is on an implemented interface or extended class, an option is given to implement only the methods from the interface or class:
An option is given to invert the condition of the if statement, together with swapping the then and else section of the statement:
Move initilization to constructor
An option is given to move a field initialization into constructors:
Customizable Method Bodies
Bodies of newly created methods can now be customized in
'Go To Type'-Dialog
Support of fully qualified names
Now it supports fully qualified names like
- java.util.Collection -> finds java.util.Collection, java.util.Collection
- j.u.col -> finds java.util.Collection, java.util.Collection
- java.u.AL -> finds java.util.ArrayList, java.util.AbstractList, ...
Highlighting of matching patterns
Matching patterns are highlighted bold
Bundled Ant upgraded to 1.8.4.
- Less memory needed to for Maven projects, in some cases significantly
- Effective POM editor tab in pom.xml editor
- Code Generator for pom.xml files to generate License elements with list of licenses known to the IDE. Added benefit there is automatic license header generation for new files.
- POM Hint marking blacklisted repositories for deletion from the pom.xml file. Blacklist configurable, with java.net repositories as default value.
- Introduce property POM hint takes selected text and offers to create a new property or existing one if it covers the selected text. The selection is replaced by property expression.
- Compile on Save is disabled by default.
Sampled memory profiling
- Memory profiler now provides sampled histograms of live objects imposing virtually no overhead to the profiled app.
Comparing CPU snapshots
- CPU snapshots can now be compared the same way as memory snapshots.
Retained size by class
- Classes view in HeapWalker now provides cumulative retained sizes per class.
New Attach Settings dialog
- Attach Wizard has been replaced by a much simpler Attach Settings dialog.
Support for Linux ARM architecture
- Profiler can now attach to a remote Java application running on a Linux ARM machine.
Stand alone jpql editor is added, you can run your jpql from ide directly instead of running your jpa application, you may need to register connection and database driver on Services tab if connection isn't registered withing Netbeans already and you need to build your application. JPQL Editor support code completion for JPQL keywords and for managed entities, it can provide you SQL representation of your JPQL query if eclipselink or hibernate provider is used or hints what is wrong with your JPQL query.
Jersey based configuration automatically extends project's classpath with Jersey libraries ( with packaging disabled if they are bundled with target JEE server ) and JSON related improvement is implemented ( see issue 209969 ).
- Parsers for Namespaced Annotations (Symfony 2, Doctrine 2, etc.)
- "Insert code" item at Context menu
- Fluent Setters and Type Hints - Allow user to generate setters with fluent interface
- Fix Uses - Improved Aliases - Newly created aliases can be generated from first letters of namespaces: \Nette\Security as NS (and then numbered)
- CC for "use trait" statements - Code Completion works for traits in "use trait" statements
- Ambiguous Comparison Hint - Tries to reveal typos in assignments (assignments with more than one assignment operator)
- Improved Error Hanlding
- Basic Composer Integration (Dependency Manager for PHP)
- Detect and resolve project problems (invalid source roots, include path)
- Code Completion (with documentation)
- Groovy 2.0 integration
- Error-badges in Groovy/Grails projects
- Groovy support in Java EE projects
- Groovy JUnit test support
- Run/Debug/Test/Test Debug actions in groovy file context menu
- Better editor occurrences highlighting
- Find Usages and Rename refactoring implemented (for classes, methods, variables)
- Memory usage improvements - requires 2x less memory for big projects
- Parser speed and scalability improvements
- Relocatable index - with some setup project index may be kept with project metadata and used even if the project was moved
- VCS ready projects - major improvement in how projects are stored in VCS
- Breakpoints grouping (per file, project, type etc.)
FXML / SceneBuilder Support
- Implemented code completion for raw .fxml editor
- Controllers can be generated or existing controllers updated from .fxml file
- Partial validation with error hints
- Platform infrastructure updated to support JDK 7u6+ on Windows, Mac, Linux
- Optimized build infrastructure makes repeated project runs and rebuilds faster
- Support multiple concurrent runs of the same FX Project
- Support native deployment introduced in JDK 7u6/FX SDK 2.2
- Insert Code... ->Add Property... now supports JavaFX 2 properties
- UI indication of main toolbar overflow with a new possibility to see the items in a drop down menu rather then being cut and invisible.
- New action introduced for reopening the recently closed document - File / Open Recent File submenu, and a new shortcut CTRL+ALT+T.
- There's a new switch in Tools - Options - Miscellaneous - Windows to use native file chooser on Mac OS X.
- When dragging a window to a new location there's visual indication when document type window will be mixed with non-document windows and vice versa.
Filtering of the contents of Options dialog (Tools / Options) - new search field available in the top right corner of the dialog.
- Allow to install locally downloaded OSGi bundles jars in the Download tab in Plugin Manager (Issue 181683)
- In the end of installation the IDE the installer will be check Update Centers for possible updates, also JUnit library if the license accepted, will be installed directly during IDE installation.