NewAndNoteworthy69m1

Revision as of 13:05, 12 February 2010 by Dsimonek (Talk | contribs)

Contents

New And Noteworthy for NetBeans 6.9 Milestone 1

NetBeans switched to build and run on JDK 6 only

NetBeans.org build infrastructure, NetBeans launchers and installers are now changed to require JDK 6, not allowing use of Java 5 anymore.

As a consequence NetBeans launchers now use -splash option to give NetBeans as fast indication of the start as possible.

NetBeans Platform OSGi interoperability

The long time experimental project Netigso has matured and became an official part of NetBeans 6.9. NetBeans by default provides you the Felix 2.0.3 OSGi container during runtime. There is however also experimental support for equinox. See it in action in our demo screencast.

Ant

Now you can smoothly include 3rd party OSGi bundles into your NetBeans platform based applications and use them from your existing Ant projects.

Image:OSGiAndNetBeansImportBundles4.png

Maven

The "Maven" category of projects in New Project wizard now makes four new project archetypes available directly from the first panel of the wizard - "Maven OSGi Bundle", "Maven NetBeans Module using OSGi", "Maven NetBeans Module" and "Maven NetBeans Application".

Image:Maven-69m1-new-archetypes.png

Maven support in NetBeans is extended to support more visibly a development of plain OSGi bundles. See "Maven OSGi Bundle" project template under "Maven" category in the New Project wizard.

It's now also possible to define OSGi export packages using GUI in project's properties.

Image:Export_packages.png

GUI support for creating OSGi Bundle Activator was added to file templates into new OSGi category.

Image:Bundle_activator.png

Our Maven NBM plugin has been enhanced to handle OSGi dependencies correctly as well. So you can add OSGi bundles as dependencies in "Maven NetBeans Module using OSGi" projects.

Running in unmodified OSGi container

There is an experimental support for converting NetBeans modules into OSGi bundles and running them in an unmodified OSGi container with no special startup procedure. Actions "Build OSGi Bundles" and "Run in OSGi" are available in module suite's project popup menu. See NetBeansInOSGi for details.

REST Webservices support for RCP applications

  • Added a new Action: "Generate REST Client..." to Insert Code action group (available also in Netbeans plugin modules):
File:Generate_rest_client_action.png
  • The action allows user to select a REST resource from projects open in Netbeans, then, according to the selection, generates an internal REST Client class, based on Jersey REST Client API:

CRUD Application Sample built on NetBeans RCP

  • A new NetBeans Platform sample included. It should help you get started creating one of the most typical applications on the NetBeans Platform, i.e., a customer maintenance application.

Performance

The revolutionary slowness detector has been enhanced and used in Go To Type dialogs and Code Completion popup window. As a result you, the NetBeans IDE users, can send us in the field detected slowness reports. We are going to use them to speed up your favorite IDE. Don't hesitate to send us your reports and welcome to the performance team!

PHP

Ruby

  • Possibility to specify the gems that the IDE should index (for Rails applications). These can be set separately for sources and for tests. Only methods/classses/modules from the indexed gems will be displayed in code completion.

File:gems.pnq

    • A quick way to set the gems is to run rake gems and then click on the displayed link:

File:rake-gems.pnq

  • Error badges:

File:ruby-error-badges.pnq

  • Code completion improvements
    • Better support for helper methods in views
    • CC for HTTP status codes

File:cc-status-codes.pnq

Web Languages

CSS Refactoring / Find Usages Support

Rename refactoring is now available for css code. It works not only in css files, but in all files embedding css code (html, jsp, php ...).

CSS type elements, class and id selectors can be refactored either with respect to the relations between files or (if the relations are defined by some framework or higher level templating language) in all project files. You can specify this in the rename/where used dialogs refactoring dialogs.

Such unrelated occurances are visibly marked in the refactoring preview/find occurances windows.

You can also find usages of css files itself when invoking the Find Usages action on file node in the explorer.

Css Code completion

The css code completion now allows to complete id or class selector which are used in current or any of the imported files. It works in common css code or inside html's class or id attributes.

Java and editor

We have started using JDK 7 javac compiler (currently in milestone 5 build). Initial support is part of Netbeans 6.9 M1 - more deatils here: (Java_EditorJDK7)

Support for annotation processors in the editor

There is a new tab on the libraries allowing to add annotation processors to your project (besides putting them directly into the classpath): File:Ap1.png

To see the results of the annotation processors immediately in the editor you have to enable them: File:Ap2.png

and finally you can see the effects of the annotation processor directly in the code completion or navigator: File:Ap3.png

Go to Implementation

You can now directly jump to overridden or implemented method from the original method: File:Go-to-implementation.png

Additional hints

In this release we are adding additional hints to the java editor. You can check what is there e.g. in the options dialog or directly in the editor while coding: File:More-hints.png

New applet support and JNLP

We are trying to refine and fine tune support for applets and JNLP deployment. Check the changes on the following screenshot: File:Web-start.png

Stack trace analyzer

If you want to quickly jump from a stack trace to the corresponding line in the editor the new stack trace analyzer window can be handy: File:Stack-trace-analyzer.png

Support for URLs in the editor (Ctrl-click works on URLs)

You can now directly jump from the NetBeans editor to your web browser using the new "URL jump" functionality in the editor File:Urls-in-editor.png

Java EE

Context and Dependency Injection

Support for Context and Dependency Injection (CDI)(JSR-299) has been added. The support is also available for NetBeans 6.8 via Patch 1.

New Web/Java EE project wizard allows users to enable CDI in project which results in empty beans.xml file being automatically created in the project:

Image:cdi-wizard.png

New File wizard has a new dedicated category for CDI containing common file templates:

Image:cdi-newfile.png

Go To Injectables and Inspect Injectables actions were added - right click any inject point and open Navigate menu:

Image:cdi-inspect.png

Go To Injectable action opens Java element which is going to be injected - a class or a producer method. In case of ambiguity a popup will be shown which will list all suitable injectables:

Image:cdi-goto.png


Code completion in JSP scriptlets automatically inserts imports

Choosing a class name item in code completion inside scriptlets automatically inserts the 'page/tag import' directive when necessary.

Code completion for JSP tags when taglib declaration is missing

Now the JSP code completion is offering tags for popular prefixes even when relevant taglib declaration is missing. Should such item be selected the taglib declaration will be inserted automatically.

Spring Framework

Added Spring 3.0 libraries into Netbeans and added ability to choose Spring Framework library version.

Image:new_spring.png


Updated Spring configuration files generation according to the chosen Spring version.

JavaFX

JavaFX support remains important for NetBeans and we continue improving JavaFX Script editor and debugger. Preview 2 of JavaFX Composer is available on NetBeans 6.8 Update Center. Unfortunately current work involves integration with the version of JavaFX SDK which has not been released yet, this means JavaFX support can not be included in public release of NetBeans 6.9M1.

Image:javafx_composer.png

C/C++

"Overrides" annotations

If a method overrides some parent method, a special annotation is displayed besides its declaration in gutter area:

Clicking on this annotation navigates to the declaration of the parent method this one overrides.

File:CNDOverridenAnnotation.png

"Is Overridden" annotations

If a method is overridden in some descendant classes, then s special annotation is displayed besides its declaration in gutter area:

Clicking on this annotation navigates to the method (or methods) that override this one. If there are several overriding methods, user can choose which one he or she wants to navigate to.

File:CNDOverridesAnnotation.png

Multiple hyper links

This is similar to "Is Overridden" annotation, but concerns usage of method rather than its declaration.

If user clicks on the usage of a method in code, and this method is overridden in some of the descendant classes, a small menu pops up. It allows user to select to which of the overridden methods he or she wants to navigate to.

Downloading project files modified while building on remote host

Some projects (e.g. Lexx/Yacc sample) generate some of their source files during build process.

In the case of remote development, such files are generated remotely. In such case, a notification appears in the lower right IDE window corner upon build is completed:

File:CNDDownloadNotification.png

When clicked, the notifications pops up a dialog that allows user to select, whether these files should be downloaded to the local host.

File:CNDDownloadRemoteUpdatesDialog.png

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