NewAndNoteworthy69m1

(Difference between revisions)
(PHP)
(New And Noteworthy for NetBeans 6.9 Milestone 1)
Line 46: Line 46:
* [http://blogs.sun.com/netbeansphp/entry/error_badges Error badges]
* [http://blogs.sun.com/netbeansphp/entry/error_badges Error badges]
* [https://netbeans.org/bugzilla/show_bug.cgi?id=170775 Symfony projects with custom directory structure supported]
* [https://netbeans.org/bugzilla/show_bug.cgi?id=170775 Symfony projects with custom directory structure supported]
 +
* Formatting - the setting for formatting PHP code was extended and there are categories: Tabs and Indents, Braces, New Lines, Spaces. See more:
 +
** [http://blogs.sun.com/netbeansphp/entry/formatting_tabs_and_indents Tabs and Indents]
 +
** [http://blogs.sun.com/netbeansphp/entry/formatting_braces_update Braces]
=== Web Languages ===
=== Web Languages ===

Revision as of 16:21, 9 February 2010

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.

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:

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

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

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