Skip to content

Commit

Permalink
Merge pull request apache#6551 from mbien/update-dukescript-wizard-ca…
Browse files Browse the repository at this point in the history
…tegory

Update JavaFX wizard names and move DukeScript wizard to a better position.
  • Loading branch information
mbien authored Oct 10, 2023
2 parents 24aefa9 + f384c5b commit ee97428
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,22 +39,19 @@ public class JavaFXWizardIterator {
// return ArchetypeWizards.definedArchetype("org.codehaus.mojo.archetypes", "sample-javafx", "0.5", null, LBL_Maven_JavaFx_Sample_Archetype());
// }
@TemplateRegistration(folder = ArchetypeWizards.TEMPLATE_FOLDER, position = 925, displayName = "#LBL_Maven_FXML_Archetype", iconBase = "org/netbeans/modules/javafx2/kit/resources/jaricon.png", description = "javafx.html")
@Messages("LBL_Maven_FXML_Archetype=FXML JavaFX Maven Archetype (Gluon)")
@Messages("LBL_Maven_FXML_Archetype=FXML JavaFX Maven Archetype")
public static WizardDescriptor.InstantiatingIterator<?> openJFXFML() {
return definedFXArchetype("com.raelity.jfx", "javafx-archetype-fxml-netbeans", "0.0.4", Bundle.LBL_Maven_FXML_Archetype());
}

@TemplateRegistration(folder = ArchetypeWizards.TEMPLATE_FOLDER, position = 926, displayName = "#LBL_Maven_Simple_Archetype", iconBase = "org/netbeans/modules/javafx2/kit/resources/jaricon.png", description = "javafx.html")
@Messages("LBL_Maven_Simple_Archetype=Simple JavaFX Maven Archetype (Gluon)")
@Messages("LBL_Maven_Simple_Archetype=Simple JavaFX Maven Archetype")
public static WizardDescriptor.InstantiatingIterator<?> openJFXSimple() {
return definedFXArchetype("com.raelity.jfx", "javafx-archetype-simple-netbeans", "0.0.4", Bundle.LBL_Maven_Simple_Archetype());
}

private static WizardDescriptor.InstantiatingIterator<?> definedFXArchetype(String g, String a, String v, String name) {
Map<String, String> props = new HashMap<>();
if (System.getProperty("java.version").startsWith("1.8")) {
props.put("javafx-version", "1.8");
}
props.put("add-debug-configuration", "Y");
return ArchetypeWizards.definedArchetype(g, a, v, null, name, props);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
})
public class DukeScriptWizard {
@TemplateRegistration(
position = 120,
position = 955,
page = "dukeScriptWizard.html",
content = "dukescript.archetype",
folder = "Project/Maven2",
Expand All @@ -66,7 +66,7 @@ public class DukeScriptWizard {
description = "description.html"
)

@Messages("DukeScriptWizard_displayName=Java Frontend Application")
@Messages("DukeScriptWizard_displayName=DukeScript Frontend Application")
public static WizardData javafxWebViewAppWizard() {
WizardData data = new WizardData();
data.init(Boolean.TRUE, Boolean.TRUE, Boolean.TRUE, Boolean.TRUE);
Expand Down

0 comments on commit ee97428

Please sign in to comment.