The NetBeansIDE-AfterburnerFX-Plugin
is a NetBeans IDE plugin which supports
the file generation in convention with the library afterburner.fx in a JavaFX
project.
The following primary files [FileName].fxml
, [FileName]Presenter.java
, [FileName]View.java
and optional [FileName].css
, [FileName].properties
and configuration.properties
can be created in a new wizard.
One conditional is that [FileName].toLowerCase() must be equals with the last choosen package name.
Press
Interview
withAdam Bien
about me and the plugin: afterburner.fx NetBeans plugin release - an interviewAdam Bien
introduced my plugin in one of his videosDI, IoC and MVP With Java FX -- afterburner.fx Deep Dive
(see at 48:00)):
The following screenshots shows the workflow to create the new 'AfterburnerFX Files'. The screenshots are taken under Windows 10.
- The plugin create a new wizard in NetBeans IDE which allowed the fast generation from the Model-View-Controller files for your JavaFX project in convention with the library afterburner.fx.
- The plugin is developed with the NetBeans IDE 8.0.2.
- The plugin is a NetBeans IDE plugin .
- The plugin is an Open Source project.
- The plugin is tested with JUnit tests.
Following files can be created in the new wizard:
- Primary files are
[FileName].fxml
,[FileName]Presenter.java
and[FileName]View.java
where [FileName].toLowerCase() must be equals with the last choosen package name.- Additional option: File
[FileName].fxml
should be lowercase.
- Additional option: File
- Optional files are
[FileName]
.css,[FileName]
.properties andconfiguration.properties
.- Additional options: File
[FileName].css
and/or file[FileName].properties
and/orconfiguration.properties
should be lowercase.
- Additional options: File
- The optional files can also additional injected into following files:
- The
[FileName].css
file can additional injected into the[FileName]
.fxml file. - The
[FileName].properties
can additional injected into into the[FileName]Presenter.java
file.
- The
Comparison with/without injection from the Optional File ImportDialog.css
in ImportDialog.fxml
.
Without injection:
<AnchorPane id="AnchorPane" prefHeight="400.0" prefWidth="600.0" xmlns:fx="http://javafx.com/fxml/1" fx:controller="org.my.demoapplication.importdialog.ImportdialogPresenter">
</AnchorPane>
With injection:
<AnchorPane id="AnchorPane" prefHeight="400.0" prefWidth="600.0" styleClass="mainFxmlClass" xmlns:fx="http://javafx.com/fxml/1" fx:controller="org.my.demoapplication.importdialog.ImportdialogPresenter">
<stylesheets>
<URL value="@Importdialog.css"/>
</stylesheets>
</AnchorPane>
Comparison with/without injection from the Optional File ImportDialog.properties
in ImportDialogPresenter.java`.
Without injection:
public class ImportdialogPresenter implements Initializable {
@Override
public void initialize(URL location, ResourceBundle resources) {
}
}
With injection:
public class ImportdialogPresenter implements Initializable {
private ResourceBundle resources = null;
@Override
public void initialize(URL location, ResourceBundle resources) {
this.resources = resources;
}
}
- The wizard gives the user
feedback
if the choosen[FileName]
andpackage name
aren't in convention with the library afterburner.fx. The [FileName].toLowerCase() and the last choosen package name must be equals. - Feedback is also given if the choosen
[FileName]
and / orpackage name
doesn't follow the rules from the Java Naming Convention.
- On your system you need JRE 8 or JDK 8 installed.
- You should use NetBeans IDE as your development ide .
- The plugin should be installed in your NetBeans IDE .
- In your JavaFX project the library afterburner.fx should be injected .
- If not installed download the JRE 8 or the JDK 8.
- Optional: To work better with FXML files in a JavaFX application download the JavaFX Scene Builder in the section 'Additional Resources'.
- If not installed download the NetBeans IDE.
Manual installation from the plugin in NetBeans IDE
- Download the plugin from here NetBeansIDE-AfterburnerFX-Plugin.nbm (GitHub) or from here NetBeansIDE-AfterburnerFX-Plugin.nbm (NetBeans Plugin Portal).
- Click in the toolbar from the NetBeans IDE on
Tools
, thenPlugins
. - In the opened dialog click on the tab 'Downloaded`.
- Click on the button
Add Plugins...
and select then downloaded plugin. - Clicking
Install
will prompt the dialogVerify Certifcate
.- Optional: You can view the certificate with the button
Show certificate
. - Click the button
Continue
for installing the plugin.
- Optional: You can view the certificate with the button
Plugin installation through the Update Center
from NetBeans IDE
- Click on
Tool
->Plugins
action in the IDE. - Click on the tab
Available Plugins
and thenCheck for Newest
. - Search and checked the plugin in the list from available plugins.
- Clicking
Install
will prompt the dialogVerify Certifcate
.- Optional: You can view the certificate with the button
Show certificate
. - Click the button
Continue
for installing the plugin.
- Optional: You can view the certificate with the button
- If you find a
Bug
I will be glad if you will report an Issue. - If you want to contribute to the project plz fork the project and do a Pull Request.
- The project
NetBeansIDE-AfterburnerFX-Plugin
is licensed under General Public License 3.0.
- The
smilys
in this document are from famfamfam. Click famfamfam ReadMe for more information. - The action icon is the changed NetBeans IDE
class.png
icon from the moduljava.source
.
- The project
NetBeansIDE-AfterburnerFX-Plugin
is maintained by me, Peter Rogge. See Contact.
- You can reach me under [email protected].