[RSS]

JavaFX Plugin New and Noteworthy

Milestones 4,5 have been skiped to better align with other teams.

Milestone 2 (expected release Apr/21, 2008)

JavaFX Platform

A new JavaFX platform has been introduced in NetBeans JavaFX plugin. You can always find the default instance of JavaFX platform in Java Platform Manager. The default JavaFX platform is based on the default Java SE platform and bundled JavaFX libraries. The default JavaFX platform is used for every new JavaFX project so there is no extra setup required before the first usage.

PlatformManager.png

Add Platform Wizard has been extended to allow installation of additional JavaFX platforms.

AddPlatform1.png

For every new JavaFX platform there is necessary to specify: platform name, Java platform it is based on and folder with JavaFX libraries (javafxrt.jar, javafxc.jar, Scenario.jar, etc...). JavaFX platform can be based on Java Development Kit (JDK) or just on Java Runtime Environment (JRE) so there is an extra option to specify custom location of Java platform when necessary.

AddPlatform2.png

Each JavaFX project can now select from the installed JavaFX platforms. Selected platform is used for compilation, debugging and execution of the project.

ProjectProperties.png

Code folding

CodeFolding.png

Code folding adds the handles to the left side of the editor allowing to collapse parts of the code

Code completion

CodeCompletion.png

Code completion allows to hit CTRL-SPACE and get context sensitive help when typing in the editor.

Variables and methods highlighting

Highlighting.png

Variable declarations and methods highlighting.

Best Practices Demos

Over 25 demos showing simple JavaFX practices on few lines of code. Each demo could be created as new project so user quickly deep into the language. More details are here JavaFXBestPractices.

demos_screenshots.png

ErrorHighlighting in the editor

The errors are now red underlined and marked on the right side of the editor (even without compilation).

errorHighlighting.png

Profiler

Profiler facility added to allow user profile JavaFX Script application. Right-click the project node to start project profiling:

JavaFXProfiler_invoke.png

Select desired Profiler options on the appeared Profiler control dialog window and press Run:

JavaFXProfiler_run.png

Monitor collected data:

JavaFXProfiler_results.png

Note that single file profiling is not supported so far. Note also that currently Profiler is not JavaFX Script specific and works in Java terms only.

Run as Applet

JavaFX Script Applets are now supported.

To create JavaFX Script Applet, please right-click project or package node and select "New"-"JavaFX Applet" menu item:

RunApplet_template.png

Write some applet code using the appeared applet's template. To run the applet, right-click the file and select "Run Applet" menu item:

RunApplet_invoke.png

The result of file execution will be shown in the standard J2SE AppletViewer window (the plugin generates required html launcher and policy file automatically):

RunApplet_results.png

Preview

The Preview allows developer to see the changes made by modifying of the source code without having to continually rebuild and execute the JavaFX application.

Preview.png

Go to source/declaration

The editor displays resolved type and kind of an identifier in a tooltip and can navigate (inside single source file) to variable declaration or its' type declaration using standard Ctrl(+Shift)+B:

gotosource.png

Navigator

Navigator has been implemented. Several filters, both way goto support, etc.

navigator.png

Feature to add

Another description. Screenshots are highly recommended...

Milestone 3 (expected release end of July, 2008)

Code Snippets - Palette

Using drag and drop the developer could prototype new application very effectively in very short time. This feature helps developer to avoid typing of code which could be spent designing of the developed application. Dropped code part is live template so developer could change necessary values or parts of code right after the drop.

http://wiki.netbeans.org/attach/JavaFXM3NewAndNoteworthy/CodeSnippetsPalette.png

Code completion has been improved

The code completion feature has been improved in this milestone. For building the import statement we show the project packages (unlike in the previous version). There should be less cases where we show nothing (there are still such cases).

http://wiki.netbeans.org/attach/JavaFXM3NewAndNoteworthy/completion-packages.png

Navigator has been improved

Now it correctly works with "magic" members, what actually are not members. See picture below. PS: Sorry, picture is incorrect, red highlighting there covered attributes. "Magic" vars are: angle1, angle2 and transform.

http://wiki.netbeans.org/attach/JavaFXM3NewAndNoteworthy/navigator2.png

Improved Reformat

Now we are able to reformat code and code fragments to provide better reading experience.

Milestone 6 (expected availability mid Sep, 2008)

New Feature

Profiler: Profiling Root Methods selector implemented

This feature allows user to specify instrumentation root methods in Analyzing CPU Performance profiling mode. Profiling data is collected when one of the application's threads enters and leaves the root method.

http://wiki.netbeans.org/attach/JavaFXM6NewAndNoteworthy/SelectProfilingRootMethods.png

Profiler: Add As Profiling Root Method added to the editor's pop-up menu

Facility to add currently selected method to the Profiling Root Methods list.

http://wiki.netbeans.org/attach/JavaFXM6NewAndNoteworthy/AddAsProfilingRoot.png

Profiler: Select Profiling Root Method added to the editor's pop-up menu

Facility to select class of method (including library classes) currently under cursor to the Profiling Root Methods list. Note: so far only class-level roots supported for library classes (it's not possible to select exact method or inner class from library classes).

http://wiki.netbeans.org/attach/JavaFXM6NewAndNoteworthy/SelectProfilingRootMethodsPopup.png

Navigator: Java doc support has been implemented

http://wiki.netbeans.org/attach/JavaFXM6NewAndNoteworthy/javafxdoc.png

Improvements

Profiler: Go To Source support in class and function levels added

A simple way to find a source code of a function selected in Live Profiling Results table.

http://wiki.netbeans.org/attach/JavaFXM6NewAndNoteworthy/GoToSource.png

Milestone 7 (expected soon: "I'l be back!")

New Features

Navigator: Javadoc panel and javadoc pane for codecompletion have been implemented

http://wiki.netbeans.org/attach/JavaFXM7NewAndNoteworthy/javafxdoc2.png

JavaFX Packager with Mobile support: project build system now delegates to the new JavaFX SDK tool called "javafxpackager"

http://wiki.netbeans.org/attach/JavaFXM7NewAndNoteworthy/Image17.png

Mobile build artefacts: build system generates appropriate build artefacts according to the JavaFX Profile specification.

http://wiki.netbeans.org/attach/JavaFXM7NewAndNoteworthy/Image14.png

Desktop and Web build artefacts

http://wiki.netbeans.org/attach/JavaFXM7NewAndNoteworthy/Image15.png

Multiple Execution Models: it is now possible to run application also in browser, Mobile emulator and through WebStart.

http://wiki.netbeans.org/attach/JavaFXM7NewAndNoteworthy/Image7.png

Run Customization: supports multiple run configurations with alternate execution models and Main class

http://wiki.netbeans.org/attach/JavaFXM7NewAndNoteworthy/Image4.png

New Application Options

http://wiki.netbeans.org/attach/JavaFXM7NewAndNoteworthy/Image5.png

Code Completion and Error Annotation is based of JavaFX Profiles (defined by selection of execution model)

http://wiki.netbeans.org/attach/JavaFXM7NewAndNoteworthy/Image10.png

Mobile Code Completion and Error Annotation

http://wiki.netbeans.org/attach/JavaFXM7NewAndNoteworthy/Image11.png

JavaFXDoc: new and customizable

http://wiki.netbeans.org/attach/JavaFXM7NewAndNoteworthy/Image3.png

Improvements

Project Customizer Improvements - Sources Panel

http://wiki.netbeans.org/attach/JavaFXM7NewAndNoteworthy/Image1.png

Project Customizer Improvements - Libraries Panel

http://wiki.netbeans.org/attach/JavaFXM7NewAndNoteworthy/Image2.png

Compile File, Run File and Debug File actions are back

http://wiki.netbeans.org/attach/JavaFXM7NewAndNoteworthy/Image8.png