Product Version = NetBeans IDE 7.3 Beta (Build 201210011125)
Operating System = Mac OS X version 10.8.2 running on x86_64
Java; VM; Vendor = 1.7.0_10-ea
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.6-b04
I tried to add a new fxml file to an existing maven project (one the already contains other FXML components).
I did not see a menu command to do so. I ended up doing "other->empty file"
There should be "Empty FXML" type under "JavaFX" category in "New File" wizard.
If it's not there, maybe JavaFX support is not activated - verify in "Tools | Plugins" under "Installed (#)" tab (tick Show details and look for JavaFX 2 Support).
Created attachment 126297 [details]
SCREENSHOT showing javafx support is enabeld.
Created attachment 126299 [details]
Screenshot showing no javafx option
Does not work for me. I suspect javafx support is only enabled if a project is organized in a particular way.
(In reply to comment #4)
> Does not work for me. I suspect javafx support is only enabled if a project is
> organized in a particular way.
Indeed, the JavaFX category is completely missing on Maven projects.
Actually so far there has been no specific JavaFX support in Maven projects, we have supported only the Ant-based "JavaFX Application" project type. See Issue #221184 for more details. For the same reason there has been so far no explicit support added in New File dialog to create FX artifacts in Maven project - this action is technically not the same as in the Ant project and requires different implementation. Maven requires strict distinguishing between source and resource artifacts, what would have various consequences, e.g., the New File wizard creating FXML would have to produce artifacts in different locations than is the case in current FX Application project, the "create controller from fxml" editor action would have to be changed in Maven context, etc. For this reason I am changing this issue to be a part of a bigger Enhancement issue targeted at adding complex JavaFX2 support in Maven projects.
New File dialogs need to be adjusted for Maven in order to generate the various non-java artifacts (fxml, css) to places expected by Maven. Will depend on the planned javafx maven archetype and project template.
fixed in jetmain
all FX New File dialogs are now available in Maven projects. The biggest change is in New FXML dialog which is now improved both in Ant and Maven projects. It creates FXML file and optionally a controller and css file. In Maven the resource files are placed to resource source root. In both Ant and Maven projects it is now possible to select sourcegroup and package not only for the FXML file but also for controller and css.
Integrated into 'main-golden', will be available in build *201304202301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Petr Somol <firstname.lastname@example.org>
Log: #220520 - No option for adding an fxml file to a maven project