Browse Source

Remove deprecated methods, use the constants in Wizard panels

Toni Helenius 5 years ago
parent
commit
a9b9effcbc
35 changed files with 278 additions and 290 deletions
  1. 31 21
      jme3-angelfont/src/com/jme3/gde/angelfont/AngelFontWizardIterator.java
  2. 5 6
      jme3-assetpack-support/src/com/jme3/gde/assetpack/project/actions/ConvertOgreBinaryMeshesAction.java
  3. 5 6
      jme3-assetpack-support/src/com/jme3/gde/assetpack/project/actions/ImportAssetAction.java
  4. 9 10
      jme3-assetpack-support/src/com/jme3/gde/assetpack/project/actions/PublishAssetPackAction.java
  5. 5 6
      jme3-assetpack-support/src/com/jme3/gde/assetpack/project/wizards/CreateProjectWizardIterator.java
  6. 11 11
      jme3-core/src/com/jme3/gde/core/appstates/NewAppStateWizardAction.java
  7. 9 9
      jme3-core/src/com/jme3/gde/core/appstates/RunAppStateAction.java
  8. 10 11
      jme3-core/src/com/jme3/gde/core/codeless/CodelessProjectWizardAction.java
  9. 6 7
      jme3-core/src/com/jme3/gde/core/filters/impl/NewBloomFilterAction.java
  10. 6 7
      jme3-core/src/com/jme3/gde/core/filters/impl/NewDirectionalLightShadowFilterAction.java
  11. 6 7
      jme3-core/src/com/jme3/gde/core/filters/impl/NewPointLightShadowFilterAction.java
  12. 6 7
      jme3-core/src/com/jme3/gde/core/filters/impl/NewSpotLightShadowFilterAction.java
  13. 5 6
      jme3-core/src/com/jme3/gde/core/filters/impl/bloom/BloomWizardAction.java
  14. 5 6
      jme3-core/src/com/jme3/gde/core/filters/impl/dlsf/DLSFWizardAction.java
  15. 5 6
      jme3-core/src/com/jme3/gde/core/filters/impl/plsf/PLSFWizardAction.java
  16. 5 6
      jme3-core/src/com/jme3/gde/core/filters/impl/slsf/SLSFWizardAction.java
  17. 15 15
      jme3-core/src/com/jme3/gde/core/properties/ComboBoxPropertyEditor.java
  18. 23 15
      jme3-core/src/com/jme3/gde/core/properties/ParticleInfluencerPropertyEditor.java
  19. 5 5
      jme3-core/src/com/jme3/gde/core/properties/SliderPropertyEditor.java
  20. 13 16
      jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/actions/impl/NewCustomControlWizardAction.java
  21. 10 11
      jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/actions/impl/tracks/AudioTrackWizardAction.java
  22. 12 13
      jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/actions/impl/tracks/EffectTrackWizardAction.java
  23. 3 3
      jme3-materialeditor/src/com/jme3/gde/shadernodedefinition/wizard/SNDefWizardIterator.java
  24. 6 7
      jme3-model-importer/src/com/jme3/gde/modelimporter/ImportModel.java
  25. 6 7
      jme3-navmesh-gen/src/com/jme3/gde/nmgen/wizard/NewNavMeshWizardAction.java
  26. 6 7
      jme3-templates/src/com/jme3/gde/templates/basic/BasicGamePanelVisual.java
  27. 2 3
      jme3-templates/src/com/jme3/gde/templates/basic/BasicGameWizardIterator.java
  28. 14 15
      jme3-terrain-editor/src/com/jme3/gde/terraineditor/AddTerrainAction.java
  29. 7 8
      jme3-terrain-editor/src/com/jme3/gde/terraineditor/CreateTerrainWizardAction.java
  30. 6 7
      jme3-terrain-editor/src/com/jme3/gde/terraineditor/sky/AddSkyboxAction.java
  31. 5 6
      jme3-terrain-editor/src/com/jme3/gde/terraineditor/sky/SkyboxWizardAction.java
  32. 6 7
      jme3-tests-template/src/com/jme3/gde/templates/tests/testsandroid/JME3TestsAndroidPanelVisual.java
  33. 2 3
      jme3-tests-template/src/com/jme3/gde/templates/tests/testsandroid/JME3TestsAndroidWizardIterator.java
  34. 6 7
      jme3-tests-template/src/com/jme3/gde/templates/tests/testsdesktop/JmeTestsPanelVisual.java
  35. 2 3
      jme3-tests-template/src/com/jme3/gde/templates/tests/testsdesktop/JmeTestsWizardIterator.java

+ 31 - 21
jme3-angelfont/src/com/jme3/gde/angelfont/AngelFontWizardIterator.java

@@ -1,22 +1,22 @@
 /*
 /*
  *  Copyright (c) 2009-2019 jMonkeyEngine
  *  Copyright (c) 2009-2019 jMonkeyEngine
  *  All rights reserved.
  *  All rights reserved.
- * 
+ *
  *  Redistribution and use in source and binary forms, with or without
  *  Redistribution and use in source and binary forms, with or without
  *  modification, are permitted provided that the following conditions are
  *  modification, are permitted provided that the following conditions are
  *  met:
  *  met:
- * 
+ *
  *  * Redistributions of source code must retain the above copyright
  *  * Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  *  * Redistributions in binary form must reproduce the above copyright
  *  * Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  *  * Neither the name of 'jMonkeyEngine' nor the names of its contributors
  *  * Neither the name of 'jMonkeyEngine' nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
  *    without specific prior written permission.
- * 
+ *
  *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  *  TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  *  TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
@@ -82,16 +82,15 @@ public final class AngelFontWizardIterator implements WizardDescriptor.Instantia
                 if (c instanceof JComponent) { // assume Swing components
                 if (c instanceof JComponent) { // assume Swing components
                     JComponent jc = (JComponent) c;
                     JComponent jc = (JComponent) c;
                     // Sets step number of a component
                     // Sets step number of a component
-                    // TODO if using org.openide.dialogs >= 7.8, can use WizardDescriptor.PROP_*:
-                    jc.putClientProperty("WizardPanel_contentSelectedIndex", i);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_SELECTED_INDEX, i);
                     // Sets steps names for a panel
                     // Sets steps names for a panel
-                    jc.putClientProperty("WizardPanel_contentData", steps);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DATA, steps);
                     // Turn on subtitle creation on each step
                     // Turn on subtitle creation on each step
-                    jc.putClientProperty("WizardPanel_autoWizardStyle", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_AUTO_WIZARD_STYLE, Boolean.TRUE);
                     // Show steps on the left side with the image on the background
                     // Show steps on the left side with the image on the background
-                    jc.putClientProperty("WizardPanel_contentDisplayed", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DISPLAYED, Boolean.TRUE);
                     // Turn on numbering of all steps
                     // Turn on numbering of all steps
-                    jc.putClientProperty("WizardPanel_contentNumbered", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_NUMBERED, Boolean.TRUE);
                 }
                 }
             }
             }
         }
         }
@@ -104,6 +103,7 @@ public final class AngelFontWizardIterator implements WizardDescriptor.Instantia
      * @throws IOException
      * @throws IOException
      */
      */
     @SuppressWarnings("unchecked")
     @SuppressWarnings("unchecked")
+    @Override
     public Set<FileObject> instantiate() throws IOException {
     public Set<FileObject> instantiate() throws IOException {
 
 
         String fontName = (String) wizard.getProperty("font_name");
         String fontName = (String) wizard.getProperty("font_name");
@@ -119,7 +119,7 @@ public final class AngelFontWizardIterator implements WizardDescriptor.Instantia
         ProjectAssetManager pm = project.getLookup().lookup(ProjectAssetManager.class);
         ProjectAssetManager pm = project.getLookup().lookup(ProjectAssetManager.class);
         if (pm == null) {
         if (pm == null) {
             Logger.getLogger(AngelFontWizardIterator.class.getName()).log(Level.WARNING, "No ProjectAssetManager found!");
             Logger.getLogger(AngelFontWizardIterator.class.getName()).log(Level.WARNING, "No ProjectAssetManager found!");
-            return Collections.EMPTY_SET;
+            return Collections.emptySet();
         }
         }
         AngelFont font = FontCreator.buildFont(fontName, fileName, imageSize, fontSize, style, paddingX, paddingY, letterSpacing, false);
         AngelFont font = FontCreator.buildFont(fontName, fileName, imageSize, fontSize, style, paddingX, paddingY, letterSpacing, false);
         BufferedImage fontImage = font.getImage();
         BufferedImage fontImage = font.getImage();
@@ -135,48 +135,55 @@ public final class AngelFontWizardIterator implements WizardDescriptor.Instantia
         try {
         try {
             //create PNG file
             //create PNG file
             imageFile = FileUtil.createData(pm.getAssetFolder(), "Interface/Fonts/" + fileName + ".png");
             imageFile = FileUtil.createData(pm.getAssetFolder(), "Interface/Fonts/" + fileName + ".png");
-            OutputStream out = imageFile.getOutputStream();
-            ImageIO.write(fontImage, "PNG", out);
-            out.close();
+            try (OutputStream out = imageFile.getOutputStream()) {
+                ImageIO.write(fontImage, "PNG", out);
+            }
             //create fnt file
             //create fnt file
             descriptionFile = FileUtil.createData(pm.getAssetFolder(), "Interface/Fonts/" + fileName + ".fnt");
             descriptionFile = FileUtil.createData(pm.getAssetFolder(), "Interface/Fonts/" + fileName + ".fnt");
-            OutputStreamWriter out2 = new OutputStreamWriter(descriptionFile.getOutputStream());
-            out2.write(font.getDescription());
-            out2.close();
+            try (OutputStreamWriter out2 = new OutputStreamWriter(descriptionFile.getOutputStream())) {
+                out2.write(font.getDescription());
+            }
         } catch (Exception e) {
         } catch (Exception e) {
             Exceptions.printStackTrace(e);
             Exceptions.printStackTrace(e);
-            return Collections.EMPTY_SET;
+            return Collections.emptySet();
         }
         }
-        Set<FileObject> set = new HashSet<FileObject>();
+        Set<FileObject> set = new HashSet<>();
         set.add(imageFile);
         set.add(imageFile);
         set.add(descriptionFile);
         set.add(descriptionFile);
         return set;
         return set;
     }
     }
 
 
+    @Override
     public void initialize(WizardDescriptor wizard) {
     public void initialize(WizardDescriptor wizard) {
         this.wizard = wizard;
         this.wizard = wizard;
     }
     }
 
 
+    @Override
     public void uninitialize(WizardDescriptor wizard) {
     public void uninitialize(WizardDescriptor wizard) {
         panels = null;
         panels = null;
     }
     }
 
 
+    @Override
     public WizardDescriptor.Panel current() {
     public WizardDescriptor.Panel current() {
         return getPanels()[index];
         return getPanels()[index];
     }
     }
 
 
+    @Override
     public String name() {
     public String name() {
         return index + 1 + ". from " + getPanels().length;
         return index + 1 + ". from " + getPanels().length;
     }
     }
 
 
+    @Override
     public boolean hasNext() {
     public boolean hasNext() {
         return index < getPanels().length - 1;
         return index < getPanels().length - 1;
     }
     }
 
 
+    @Override
     public boolean hasPrevious() {
     public boolean hasPrevious() {
         return index > 0;
         return index > 0;
     }
     }
 
 
+    @Override
     public void nextPanel() {
     public void nextPanel() {
         if (!hasNext()) {
         if (!hasNext()) {
             throw new NoSuchElementException();
             throw new NoSuchElementException();
@@ -184,6 +191,7 @@ public final class AngelFontWizardIterator implements WizardDescriptor.Instantia
         index++;
         index++;
     }
     }
 
 
+    @Override
     public void previousPanel() {
     public void previousPanel() {
         if (!hasPrevious()) {
         if (!hasPrevious()) {
             throw new NoSuchElementException();
             throw new NoSuchElementException();
@@ -192,9 +200,11 @@ public final class AngelFontWizardIterator implements WizardDescriptor.Instantia
     }
     }
 
 
     // If nothing unusual changes in the middle of the wizard, simply:
     // If nothing unusual changes in the middle of the wizard, simply:
+    @Override
     public void addChangeListener(ChangeListener l) {
     public void addChangeListener(ChangeListener l) {
     }
     }
 
 
+    @Override
     public void removeChangeListener(ChangeListener l) {
     public void removeChangeListener(ChangeListener l) {
     }
     }
 
 
@@ -230,7 +240,7 @@ public final class AngelFontWizardIterator implements WizardDescriptor.Instantia
     // client code.
     // client code.
     private String[] createSteps() {
     private String[] createSteps() {
         String[] beforeSteps = null;
         String[] beforeSteps = null;
-        Object prop = wizard.getProperty("WizardPanel_contentData");
+        Object prop = wizard.getProperty(WizardDescriptor.PROP_CONTENT_DATA);
         if (prop != null && prop instanceof String[]) {
         if (prop != null && prop instanceof String[]) {
             beforeSteps = (String[]) prop;
             beforeSteps = (String[]) prop;
         }
         }

+ 5 - 6
jme3-assetpack-support/src/com/jme3/gde/assetpack/project/actions/ConvertOgreBinaryMeshesAction.java

@@ -108,16 +108,15 @@ public final class ConvertOgreBinaryMeshesAction implements Action {
                 if (c instanceof JComponent) { // assume Swing components
                 if (c instanceof JComponent) { // assume Swing components
                     JComponent jc = (JComponent) c;
                     JComponent jc = (JComponent) c;
                     // Sets step number of a component
                     // Sets step number of a component
-                    // TODO if using org.openide.dialogs >= 7.8, can use WizardDescriptor.PROP_*:
-                    jc.putClientProperty("WizardPanel_contentSelectedIndex", i);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_SELECTED_INDEX, i);
                     // Sets steps names for a panel
                     // Sets steps names for a panel
-                    jc.putClientProperty("WizardPanel_contentData", steps);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DATA, steps);
                     // Turn on subtitle creation on each step
                     // Turn on subtitle creation on each step
-                    jc.putClientProperty("WizardPanel_autoWizardStyle", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_AUTO_WIZARD_STYLE, Boolean.TRUE);
                     // Show steps on the left side with the image on the background
                     // Show steps on the left side with the image on the background
-                    jc.putClientProperty("WizardPanel_contentDisplayed", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DISPLAYED, Boolean.TRUE);
                     // Turn on numbering of all steps
                     // Turn on numbering of all steps
-                    jc.putClientProperty("WizardPanel_contentNumbered", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_NUMBERED, Boolean.TRUE);
                 }
                 }
             }
             }
         }
         }

+ 5 - 6
jme3-assetpack-support/src/com/jme3/gde/assetpack/project/actions/ImportAssetAction.java

@@ -115,16 +115,15 @@ public final class ImportAssetAction implements Action {
                 if (c instanceof JComponent) { // assume Swing components
                 if (c instanceof JComponent) { // assume Swing components
                     JComponent jc = (JComponent) c;
                     JComponent jc = (JComponent) c;
                     // Sets step number of a component
                     // Sets step number of a component
-                    // TODO if using org.openide.dialogs >= 7.8, can use WizardDescriptor.PROP_*:
-                    jc.putClientProperty("WizardPanel_contentSelectedIndex", i);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_SELECTED_INDEX, i);
                     // Sets steps names for a panel
                     // Sets steps names for a panel
-                    jc.putClientProperty("WizardPanel_contentData", steps);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DATA, steps);
                     // Turn on subtitle creation on each step
                     // Turn on subtitle creation on each step
-                    jc.putClientProperty("WizardPanel_autoWizardStyle", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_AUTO_WIZARD_STYLE, Boolean.TRUE);
                     // Show steps on the left side with the image on the background
                     // Show steps on the left side with the image on the background
-                    jc.putClientProperty("WizardPanel_contentDisplayed", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DISPLAYED, Boolean.TRUE);
                     // Turn on numbering of all steps
                     // Turn on numbering of all steps
-                    jc.putClientProperty("WizardPanel_contentNumbered", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_NUMBERED, Boolean.TRUE);
                 }
                 }
             }
             }
         }
         }

+ 9 - 10
jme3-assetpack-support/src/com/jme3/gde/assetpack/project/actions/PublishAssetPackAction.java

@@ -76,10 +76,10 @@ public final class PublishAssetPackAction implements Action {
     private void packZip(WizardDescriptor wiz) {
     private void packZip(WizardDescriptor wiz) {
         try {
         try {
             String outFilename = context.getProjectDirectory().getPath() + "/" + wiz.getProperty("filename");
             String outFilename = context.getProjectDirectory().getPath() + "/" + wiz.getProperty("filename");
-            ZipOutputStream out = new ZipOutputStream(new FileOutputStream(new File(outFilename)));
-            out.setLevel(9);
-            zipDir(((AssetPackProject) context).getProjectDirectory(), out, (String) wiz.getProperty("filename"));
-            out.close();
+            try (ZipOutputStream out = new ZipOutputStream(new FileOutputStream(new File(outFilename)))) {
+                out.setLevel(9);
+                zipDir(((AssetPackProject) context).getProjectDirectory(), out, (String) wiz.getProperty("filename"));
+            }
         } catch (IOException e) {
         } catch (IOException e) {
             Logger.getLogger(this.getClass().getName()).log(Level.SEVERE, "Error creating ZIP file!");
             Logger.getLogger(this.getClass().getName()).log(Level.SEVERE, "Error creating ZIP file!");
         }
         }
@@ -162,16 +162,15 @@ public final class PublishAssetPackAction implements Action {
                 if (c instanceof JComponent) { // assume Swing components
                 if (c instanceof JComponent) { // assume Swing components
                     JComponent jc = (JComponent) c;
                     JComponent jc = (JComponent) c;
                     // Sets step number of a component
                     // Sets step number of a component
-                    // TODO if using org.openide.dialogs >= 7.8, can use WizardDescriptor.PROP_*:
-                    jc.putClientProperty("WizardPanel_contentSelectedIndex", i);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_SELECTED_INDEX, i);
                     // Sets steps names for a panel
                     // Sets steps names for a panel
-                    jc.putClientProperty("WizardPanel_contentData", steps);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DATA, steps);
                     // Turn on subtitle creation on each step
                     // Turn on subtitle creation on each step
-                    jc.putClientProperty("WizardPanel_autoWizardStyle", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_AUTO_WIZARD_STYLE, Boolean.TRUE);
                     // Show steps on the left side with the image on the background
                     // Show steps on the left side with the image on the background
-                    jc.putClientProperty("WizardPanel_contentDisplayed", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DISPLAYED, Boolean.TRUE);
                     // Turn on numbering of all steps
                     // Turn on numbering of all steps
-                    jc.putClientProperty("WizardPanel_contentNumbered", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_NUMBERED, Boolean.TRUE);
                 }
                 }
             }
             }
         }
         }

+ 5 - 6
jme3-assetpack-support/src/com/jme3/gde/assetpack/project/wizards/CreateProjectWizardIterator.java

@@ -67,16 +67,15 @@ public final class CreateProjectWizardIterator implements WizardDescriptor.Insta
                 if (c instanceof JComponent) { // assume Swing components
                 if (c instanceof JComponent) { // assume Swing components
                     JComponent jc = (JComponent) c;
                     JComponent jc = (JComponent) c;
                     // Sets step number of a component
                     // Sets step number of a component
-                    // TODO if using org.openide.dialogs >= 7.8, can use WizardDescriptor.PROP_*:
-                    jc.putClientProperty("WizardPanel_contentSelectedIndex", i);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_SELECTED_INDEX, i);
                     // Sets steps names for a panel
                     // Sets steps names for a panel
-                    jc.putClientProperty("WizardPanel_contentData", steps);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DATA, steps);
                     // Turn on subtitle creation on each step
                     // Turn on subtitle creation on each step
-                    jc.putClientProperty("WizardPanel_autoWizardStyle", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_AUTO_WIZARD_STYLE, Boolean.TRUE);
                     // Show steps on the left side with the image on the background
                     // Show steps on the left side with the image on the background
-                    jc.putClientProperty("WizardPanel_contentDisplayed", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DISPLAYED, Boolean.TRUE);
                     // Turn on numbering of all steps
                     // Turn on numbering of all steps
-                    jc.putClientProperty("WizardPanel_contentNumbered", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_NUMBERED, Boolean.TRUE);
                 }
                 }
             }
             }
         }
         }

+ 11 - 11
jme3-core/src/com/jme3/gde/core/appstates/NewAppStateWizardAction.java

@@ -1,22 +1,22 @@
 /*
 /*
  *  Copyright (c) 2009-2010 jMonkeyEngine
  *  Copyright (c) 2009-2010 jMonkeyEngine
  *  All rights reserved.
  *  All rights reserved.
- * 
+ *
  *  Redistribution and use in source and binary forms, with or without
  *  Redistribution and use in source and binary forms, with or without
  *  modification, are permitted provided that the following conditions are
  *  modification, are permitted provided that the following conditions are
  *  met:
  *  met:
- * 
+ *
  *  * Redistributions of source code must retain the above copyright
  *  * Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  *  * Redistributions in binary form must reproduce the above copyright
  *  * Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  *  * Neither the name of 'jMonkeyEngine' nor the names of its contributors
  *  * Neither the name of 'jMonkeyEngine' nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
  *    without specific prior written permission.
- * 
+ *
  *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  *  TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  *  TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
@@ -64,6 +64,7 @@ public final class NewAppStateWizardAction implements ActionListener {
         this.fakeApp = fakeApp;
         this.fakeApp = fakeApp;
     }
     }
 
 
+    @Override
     public void actionPerformed(ActionEvent e) {
     public void actionPerformed(ActionEvent e) {
         //TODO: actual action to open/close via keyboard etc?
         //TODO: actual action to open/close via keyboard etc?
     }
     }
@@ -147,16 +148,15 @@ public final class NewAppStateWizardAction implements ActionListener {
                 if (c instanceof JComponent) { // assume Swing components
                 if (c instanceof JComponent) { // assume Swing components
                     JComponent jc = (JComponent) c;
                     JComponent jc = (JComponent) c;
                     // Sets step number of a component
                     // Sets step number of a component
-                    // TODO if using org.openide.dialogs >= 7.8, can use WizardDescriptor.PROP_*:
-                    jc.putClientProperty("WizardPanel_contentSelectedIndex", i);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_SELECTED_INDEX, i);
                     // Sets steps names for a panel
                     // Sets steps names for a panel
-                    jc.putClientProperty("WizardPanel_contentData", steps);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DATA, steps);
                     // Turn on subtitle creation on each step
                     // Turn on subtitle creation on each step
-                    jc.putClientProperty("WizardPanel_autoWizardStyle", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_AUTO_WIZARD_STYLE, Boolean.TRUE);
                     // Show steps on the left side with the image on the background
                     // Show steps on the left side with the image on the background
-                    jc.putClientProperty("WizardPanel_contentDisplayed", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DISPLAYED, Boolean.TRUE);
                     // Turn on numbering of all steps
                     // Turn on numbering of all steps
-                    jc.putClientProperty("WizardPanel_contentNumbered", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_NUMBERED, Boolean.TRUE);
                 }
                 }
             }
             }
         }
         }

+ 9 - 9
jme3-core/src/com/jme3/gde/core/appstates/RunAppStateAction.java

@@ -1,22 +1,22 @@
 /*
 /*
  * Copyright (c) 2003-2012 jMonkeyEngine
  * Copyright (c) 2003-2012 jMonkeyEngine
  * All rights reserved.
  * All rights reserved.
- * 
+ *
  * Redistribution and use in source and binary forms, with or without
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are
  * modification, are permitted provided that the following conditions are
  * met:
  * met:
- * 
+ *
  * * Redistributions of source code must retain the above copyright
  * * Redistributions of source code must retain the above copyright
  *   notice, this list of conditions and the following disclaimer.
  *   notice, this list of conditions and the following disclaimer.
- * 
+ *
  * * Redistributions in binary form must reproduce the above copyright
  * * Redistributions in binary form must reproduce the above copyright
  *   notice, this list of conditions and the following disclaimer in the
  *   notice, this list of conditions and the following disclaimer in the
  *   documentation and/or other materials provided with the distribution.
  *   documentation and/or other materials provided with the distribution.
- * 
+ *
  * * Neither the name of 'jMonkeyEngine' nor the names of its contributors
  * * Neither the name of 'jMonkeyEngine' nor the names of its contributors
  *   may be used to endorse or promote products derived from this software
  *   may be used to endorse or promote products derived from this software
  *   without specific prior written permission.
  *   without specific prior written permission.
- * 
+ *
  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
@@ -71,7 +71,7 @@ import org.openide.util.NbBundle.Messages;
     category = "jMonkeyEngine",
     category = "jMonkeyEngine",
 id = "com.jme3.gde.core.appstates.RunAppStateAction")
 id = "com.jme3.gde.core.appstates.RunAppStateAction")
 @ActionRegistration(
 @ActionRegistration(
-displayName = "#CTL_RunAppState")
+        displayName = "#CTL_RunAppState", lazy = true)
 @ActionReferences({
 @ActionReferences({
     @ActionReference(path = "Loaders/text/x-java/Actions", position = 1050),
     @ActionReference(path = "Loaders/text/x-java/Actions", position = 1050),
     @ActionReference(path = "Editors/text/x-java/Popup", position = 1740)
     @ActionReference(path = "Editors/text/x-java/Popup", position = 1740)
@@ -128,7 +128,7 @@ public class RunAppStateAction implements ContextAwareAction {
 
 
     @Override
     @Override
     public void actionPerformed(ActionEvent e) {
     public void actionPerformed(ActionEvent e) {
-        //TODO: better way to access scene request        
+        //TODO: better way to access scene request
         if (config == null) {
         if (config == null) {
             logger.log(Level.SEVERE, "Performing unconfigured RunAppState action");
             logger.log(Level.SEVERE, "Performing unconfigured RunAppState action");
             return;
             return;
@@ -179,7 +179,7 @@ public class RunAppStateAction implements ContextAwareAction {
                 logger.log(Level.FINE, "No DataObject");
                 logger.log(Level.FINE, "No DataObject");
                 return null;
                 return null;
             }
             }
-            Project proj = FileOwnerQuery.getOwner(dObj.getPrimaryFile());;
+            Project proj = FileOwnerQuery.getOwner(dObj.getPrimaryFile());
             if (proj != null) {
             if (proj != null) {
                 ret.manager = proj.getLookup().lookup(ProjectAssetManager.class);
                 ret.manager = proj.getLookup().lookup(ProjectAssetManager.class);
             } else {
             } else {
@@ -235,7 +235,7 @@ public class RunAppStateAction implements ContextAwareAction {
                 @Override
                 @Override
                 public void cancel() {
                 public void cancel() {
                 }
                 }
-                
+
             };
             };
             src.runUserActionTask(task, true);
             src.runUserActionTask(task, true);
             return ret;
             return ret;

+ 10 - 11
jme3-core/src/com/jme3/gde/core/codeless/CodelessProjectWizardAction.java

@@ -1,22 +1,22 @@
 /*
 /*
  *  Copyright (c) 2009-2010 jMonkeyEngine
  *  Copyright (c) 2009-2010 jMonkeyEngine
  *  All rights reserved.
  *  All rights reserved.
- * 
+ *
  *  Redistribution and use in source and binary forms, with or without
  *  Redistribution and use in source and binary forms, with or without
  *  modification, are permitted provided that the following conditions are
  *  modification, are permitted provided that the following conditions are
  *  met:
  *  met:
- * 
+ *
  *  * Redistributions of source code must retain the above copyright
  *  * Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  *  * Redistributions in binary form must reproduce the above copyright
  *  * Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  *  * Neither the name of 'jMonkeyEngine' nor the names of its contributors
  *  * Neither the name of 'jMonkeyEngine' nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
  *    without specific prior written permission.
- * 
+ *
  *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  *  TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  *  TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
@@ -134,16 +134,15 @@ public final class CodelessProjectWizardAction extends CallableSystemAction {
                 if (c instanceof JComponent) { // assume Swing components
                 if (c instanceof JComponent) { // assume Swing components
                     JComponent jc = (JComponent) c;
                     JComponent jc = (JComponent) c;
                     // Sets step number of a component
                     // Sets step number of a component
-                    // TODO if using org.openide.dialogs >= 7.8, can use WizardDescriptor.PROP_*:
-                    jc.putClientProperty("WizardPanel_contentSelectedIndex", i);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_SELECTED_INDEX, i);
                     // Sets steps names for a panel
                     // Sets steps names for a panel
-                    jc.putClientProperty("WizardPanel_contentData", steps);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DATA, steps);
                     // Turn on subtitle creation on each step
                     // Turn on subtitle creation on each step
-                    jc.putClientProperty("WizardPanel_autoWizardStyle", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_AUTO_WIZARD_STYLE, Boolean.TRUE);
                     // Show steps on the left side with the image on the background
                     // Show steps on the left side with the image on the background
-                    jc.putClientProperty("WizardPanel_contentDisplayed", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DISPLAYED, Boolean.TRUE);
                     // Turn on numbering of all steps
                     // Turn on numbering of all steps
-                    jc.putClientProperty("WizardPanel_contentNumbered", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_NUMBERED, Boolean.TRUE);
                 }
                 }
             }
             }
         }
         }

+ 6 - 7
jme3-core/src/com/jme3/gde/core/filters/impl/NewBloomFilterAction.java

@@ -3,7 +3,7 @@
  * <p/>
  * <p/>
  * Redistribution and use in source and binary forms, with or without
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are met:
  * modification, are permitted provided that the following conditions are met:
- * 
+ *
  *  * Redistributions of source code must retain the above copyright
  *  * Redistributions of source code must retain the above copyright
  * notice, this list of conditions and the following disclaimer.
  * notice, this list of conditions and the following disclaimer.
  * <p/>
  * <p/>
@@ -105,16 +105,15 @@ public class NewBloomFilterAction extends AbstractNewFilterWizardAction {
                 if (c instanceof JComponent) { // assume Swing components
                 if (c instanceof JComponent) { // assume Swing components
                     JComponent jc = (JComponent) c;
                     JComponent jc = (JComponent) c;
                     // Sets step number of a component
                     // Sets step number of a component
-                    // TODO if using org.openide.dialogs >= 7.8, can use WizardDescriptor.PROP_*:
-                    jc.putClientProperty("WizardPanel_contentSelectedIndex", i);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_SELECTED_INDEX, i);
                     // Sets steps names for a panel
                     // Sets steps names for a panel
-                    jc.putClientProperty("WizardPanel_contentData", steps);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DATA, steps);
                     // Turn on subtitle creation on each step
                     // Turn on subtitle creation on each step
-                    jc.putClientProperty("WizardPanel_autoWizardStyle", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_AUTO_WIZARD_STYLE, Boolean.TRUE);
                     // Show steps on the left side with the image on the background
                     // Show steps on the left side with the image on the background
-                    jc.putClientProperty("WizardPanel_contentDisplayed", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DISPLAYED, Boolean.TRUE);
                     // Turn on numbering of all steps
                     // Turn on numbering of all steps
-                    jc.putClientProperty("WizardPanel_contentNumbered", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_NUMBERED, Boolean.TRUE);
                 }
                 }
             }
             }
         }
         }

+ 6 - 7
jme3-core/src/com/jme3/gde/core/filters/impl/NewDirectionalLightShadowFilterAction.java

@@ -3,7 +3,7 @@
  * <p/>
  * <p/>
  * Redistribution and use in source and binary forms, with or without
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are met:
  * modification, are permitted provided that the following conditions are met:
- * 
+ *
  *  * Redistributions of source code must retain the above copyright
  *  * Redistributions of source code must retain the above copyright
  * notice, this list of conditions and the following disclaimer.
  * notice, this list of conditions and the following disclaimer.
  * <p/>
  * <p/>
@@ -102,16 +102,15 @@ public class NewDirectionalLightShadowFilterAction extends AbstractNewFilterWiza
                 if (c instanceof JComponent) { // assume Swing components
                 if (c instanceof JComponent) { // assume Swing components
                     JComponent jc = (JComponent) c;
                     JComponent jc = (JComponent) c;
                     // Sets step number of a component
                     // Sets step number of a component
-                    // TODO if using org.openide.dialogs >= 7.8, can use WizardDescriptor.PROP_*:
-                    jc.putClientProperty("WizardPanel_contentSelectedIndex", i);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_SELECTED_INDEX, i);
                     // Sets steps names for a panel
                     // Sets steps names for a panel
-                    jc.putClientProperty("WizardPanel_contentData", steps);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DATA, steps);
                     // Turn on subtitle creation on each step
                     // Turn on subtitle creation on each step
-                    jc.putClientProperty("WizardPanel_autoWizardStyle", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_AUTO_WIZARD_STYLE, Boolean.TRUE);
                     // Show steps on the left side with the image on the background
                     // Show steps on the left side with the image on the background
-                    jc.putClientProperty("WizardPanel_contentDisplayed", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DISPLAYED, Boolean.TRUE);
                     // Turn on numbering of all steps
                     // Turn on numbering of all steps
-                    jc.putClientProperty("WizardPanel_contentNumbered", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_NUMBERED, Boolean.TRUE);
                 }
                 }
             }
             }
         }
         }

+ 6 - 7
jme3-core/src/com/jme3/gde/core/filters/impl/NewPointLightShadowFilterAction.java

@@ -3,7 +3,7 @@
  * <p/>
  * <p/>
  * Redistribution and use in source and binary forms, with or without
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are met:
  * modification, are permitted provided that the following conditions are met:
- * 
+ *
  *  * Redistributions of source code must retain the above copyright
  *  * Redistributions of source code must retain the above copyright
  * notice, this list of conditions and the following disclaimer.
  * notice, this list of conditions and the following disclaimer.
  * <p/>
  * <p/>
@@ -101,16 +101,15 @@ public class NewPointLightShadowFilterAction extends AbstractNewFilterWizardActi
                 if (c instanceof JComponent) { // assume Swing components
                 if (c instanceof JComponent) { // assume Swing components
                     JComponent jc = (JComponent) c;
                     JComponent jc = (JComponent) c;
                     // Sets step number of a component
                     // Sets step number of a component
-                    // TODO if using org.openide.dialogs >= 7.8, can use WizardDescriptor.PROP_*:
-                    jc.putClientProperty("WizardPanel_contentSelectedIndex", i);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_SELECTED_INDEX, i);
                     // Sets steps names for a panel
                     // Sets steps names for a panel
-                    jc.putClientProperty("WizardPanel_contentData", steps);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DATA, steps);
                     // Turn on subtitle creation on each step
                     // Turn on subtitle creation on each step
-                    jc.putClientProperty("WizardPanel_autoWizardStyle", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_AUTO_WIZARD_STYLE, Boolean.TRUE);
                     // Show steps on the left side with the image on the background
                     // Show steps on the left side with the image on the background
-                    jc.putClientProperty("WizardPanel_contentDisplayed", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DISPLAYED, Boolean.TRUE);
                     // Turn on numbering of all steps
                     // Turn on numbering of all steps
-                    jc.putClientProperty("WizardPanel_contentNumbered", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_NUMBERED, Boolean.TRUE);
                 }
                 }
             }
             }
         }
         }

+ 6 - 7
jme3-core/src/com/jme3/gde/core/filters/impl/NewSpotLightShadowFilterAction.java

@@ -3,7 +3,7 @@
  * <p/>
  * <p/>
  * Redistribution and use in source and binary forms, with or without
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are met:
  * modification, are permitted provided that the following conditions are met:
- * 
+ *
  *  * Redistributions of source code must retain the above copyright
  *  * Redistributions of source code must retain the above copyright
  * notice, this list of conditions and the following disclaimer.
  * notice, this list of conditions and the following disclaimer.
  * <p/>
  * <p/>
@@ -102,16 +102,15 @@ public class NewSpotLightShadowFilterAction extends AbstractNewFilterWizardActio
                 if (c instanceof JComponent) { // assume Swing components
                 if (c instanceof JComponent) { // assume Swing components
                     JComponent jc = (JComponent) c;
                     JComponent jc = (JComponent) c;
                     // Sets step number of a component
                     // Sets step number of a component
-                    // TODO if using org.openide.dialogs >= 7.8, can use WizardDescriptor.PROP_*:
-                    jc.putClientProperty("WizardPanel_contentSelectedIndex", i);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_SELECTED_INDEX, i);
                     // Sets steps names for a panel
                     // Sets steps names for a panel
-                    jc.putClientProperty("WizardPanel_contentData", steps);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DATA, steps);
                     // Turn on subtitle creation on each step
                     // Turn on subtitle creation on each step
-                    jc.putClientProperty("WizardPanel_autoWizardStyle", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_AUTO_WIZARD_STYLE, Boolean.TRUE);
                     // Show steps on the left side with the image on the background
                     // Show steps on the left side with the image on the background
-                    jc.putClientProperty("WizardPanel_contentDisplayed", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DISPLAYED, Boolean.TRUE);
                     // Turn on numbering of all steps
                     // Turn on numbering of all steps
-                    jc.putClientProperty("WizardPanel_contentNumbered", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_NUMBERED, Boolean.TRUE);
                 }
                 }
             }
             }
         }
         }

+ 5 - 6
jme3-core/src/com/jme3/gde/core/filters/impl/bloom/BloomWizardAction.java

@@ -54,16 +54,15 @@ public final class BloomWizardAction implements ActionListener {
                 if (c instanceof JComponent) { // assume Swing components
                 if (c instanceof JComponent) { // assume Swing components
                     JComponent jc = (JComponent) c;
                     JComponent jc = (JComponent) c;
                     // Sets step number of a component
                     // Sets step number of a component
-                    // TODO if using org.openide.dialogs >= 7.8, can use WizardDescriptor.PROP_*:
-                    jc.putClientProperty("WizardPanel_contentSelectedIndex", i);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_SELECTED_INDEX, i);
                     // Sets steps names for a panel
                     // Sets steps names for a panel
-                    jc.putClientProperty("WizardPanel_contentData", steps);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DATA, steps);
                     // Turn on subtitle creation on each step
                     // Turn on subtitle creation on each step
-                    jc.putClientProperty("WizardPanel_autoWizardStyle", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_AUTO_WIZARD_STYLE, Boolean.TRUE);
                     // Show steps on the left side with the image on the background
                     // Show steps on the left side with the image on the background
-                    jc.putClientProperty("WizardPanel_contentDisplayed", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DISPLAYED, Boolean.TRUE);
                     // Turn on numbering of all steps
                     // Turn on numbering of all steps
-                    jc.putClientProperty("WizardPanel_contentNumbered", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_NUMBERED, Boolean.TRUE);
                 }
                 }
             }
             }
         }
         }

+ 5 - 6
jme3-core/src/com/jme3/gde/core/filters/impl/dlsf/DLSFWizardAction.java

@@ -54,16 +54,15 @@ public final class DLSFWizardAction implements ActionListener {
                 if (c instanceof JComponent) { // assume Swing components
                 if (c instanceof JComponent) { // assume Swing components
                     JComponent jc = (JComponent) c;
                     JComponent jc = (JComponent) c;
                     // Sets step number of a component
                     // Sets step number of a component
-                    // TODO if using org.openide.dialogs >= 7.8, can use WizardDescriptor.PROP_*:
-                    jc.putClientProperty("WizardPanel_contentSelectedIndex", i);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_SELECTED_INDEX, i);
                     // Sets steps names for a panel
                     // Sets steps names for a panel
-                    jc.putClientProperty("WizardPanel_contentData", steps);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DATA, steps);
                     // Turn on subtitle creation on each step
                     // Turn on subtitle creation on each step
-                    jc.putClientProperty("WizardPanel_autoWizardStyle", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_AUTO_WIZARD_STYLE, Boolean.TRUE);
                     // Show steps on the left side with the image on the background
                     // Show steps on the left side with the image on the background
-                    jc.putClientProperty("WizardPanel_contentDisplayed", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DISPLAYED, Boolean.TRUE);
                     // Turn on numbering of all steps
                     // Turn on numbering of all steps
-                    jc.putClientProperty("WizardPanel_contentNumbered", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_NUMBERED, Boolean.TRUE);
                 }
                 }
             }
             }
         }
         }

+ 5 - 6
jme3-core/src/com/jme3/gde/core/filters/impl/plsf/PLSFWizardAction.java

@@ -53,16 +53,15 @@ public final class PLSFWizardAction implements ActionListener {
                 if (c instanceof JComponent) { // assume Swing components
                 if (c instanceof JComponent) { // assume Swing components
                     JComponent jc = (JComponent) c;
                     JComponent jc = (JComponent) c;
                     // Sets step number of a component
                     // Sets step number of a component
-                    // TODO if using org.openide.dialogs >= 7.8, can use WizardDescriptor.PROP_*:
-                    jc.putClientProperty("WizardPanel_contentSelectedIndex", i);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_SELECTED_INDEX, i);
                     // Sets steps names for a panel
                     // Sets steps names for a panel
-                    jc.putClientProperty("WizardPanel_contentData", steps);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DATA, steps);
                     // Turn on subtitle creation on each step
                     // Turn on subtitle creation on each step
-                    jc.putClientProperty("WizardPanel_autoWizardStyle", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_AUTO_WIZARD_STYLE, Boolean.TRUE);
                     // Show steps on the left side with the image on the background
                     // Show steps on the left side with the image on the background
-                    jc.putClientProperty("WizardPanel_contentDisplayed", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DISPLAYED, Boolean.TRUE);
                     // Turn on numbering of all steps
                     // Turn on numbering of all steps
-                    jc.putClientProperty("WizardPanel_contentNumbered", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_NUMBERED, Boolean.TRUE);
                 }
                 }
             }
             }
         }
         }

+ 5 - 6
jme3-core/src/com/jme3/gde/core/filters/impl/slsf/SLSFWizardAction.java

@@ -53,16 +53,15 @@ public final class SLSFWizardAction implements ActionListener {
                 if (c instanceof JComponent) { // assume Swing components
                 if (c instanceof JComponent) { // assume Swing components
                     JComponent jc = (JComponent) c;
                     JComponent jc = (JComponent) c;
                     // Sets step number of a component
                     // Sets step number of a component
-                    // TODO if using org.openide.dialogs >= 7.8, can use WizardDescriptor.PROP_*:
-                    jc.putClientProperty("WizardPanel_contentSelectedIndex", i);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_SELECTED_INDEX, i);
                     // Sets steps names for a panel
                     // Sets steps names for a panel
-                    jc.putClientProperty("WizardPanel_contentData", steps);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DATA, steps);
                     // Turn on subtitle creation on each step
                     // Turn on subtitle creation on each step
-                    jc.putClientProperty("WizardPanel_autoWizardStyle", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_AUTO_WIZARD_STYLE, Boolean.TRUE);
                     // Show steps on the left side with the image on the background
                     // Show steps on the left side with the image on the background
-                    jc.putClientProperty("WizardPanel_contentDisplayed", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DISPLAYED, Boolean.TRUE);
                     // Turn on numbering of all steps
                     // Turn on numbering of all steps
-                    jc.putClientProperty("WizardPanel_contentNumbered", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_NUMBERED, Boolean.TRUE);
                 }
                 }
             }
             }
         }
         }

+ 15 - 15
jme3-core/src/com/jme3/gde/core/properties/ComboBoxPropertyEditor.java

@@ -1,22 +1,22 @@
 /*
 /*
  *  Copyright (c) 2009-2010 jMonkeyEngine
  *  Copyright (c) 2009-2010 jMonkeyEngine
  *  All rights reserved.
  *  All rights reserved.
- * 
+ *
  *  Redistribution and use in source and binary forms, with or without
  *  Redistribution and use in source and binary forms, with or without
  *  modification, are permitted provided that the following conditions are
  *  modification, are permitted provided that the following conditions are
  *  met:
  *  met:
- * 
+ *
  *  * Redistributions of source code must retain the above copyright
  *  * Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  *  * Redistributions in binary form must reproduce the above copyright
  *  * Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  *  * Neither the name of 'jMonkeyEngine' nor the names of its contributors
  *  * Neither the name of 'jMonkeyEngine' nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
  *    without specific prior written permission.
- * 
+ *
  *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  *  TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  *  TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
@@ -35,7 +35,6 @@ import com.jme3.gde.core.util.ComboInplaceEditor;
 import java.beans.PropertyChangeEvent;
 import java.beans.PropertyChangeEvent;
 import java.beans.PropertyChangeListener;
 import java.beans.PropertyChangeListener;
 import java.beans.PropertyEditorSupport;
 import java.beans.PropertyEditorSupport;
-import java.util.Iterator;
 import java.util.LinkedList;
 import java.util.LinkedList;
 import java.util.List;
 import java.util.List;
 import org.openide.explorer.propertysheet.ExPropertyEditor;
 import org.openide.explorer.propertysheet.ExPropertyEditor;
@@ -48,23 +47,24 @@ import org.openide.explorer.propertysheet.PropertyEnv;
  */
  */
 public class ComboBoxPropertyEditor extends PropertyEditorSupport implements ExPropertyEditor, InplaceEditor.Factory {
 public class ComboBoxPropertyEditor extends PropertyEditorSupport implements ExPropertyEditor, InplaceEditor.Factory {
 
 
-    private LinkedList<PropertyChangeListener> listeners = new LinkedList<PropertyChangeListener>();
-    PropertyEnv env;
-    private ComboInplaceEditor ed = null;
+    private final LinkedList<PropertyChangeListener> listeners = new LinkedList<>();
+    private PropertyEnv env;
+    private final ComboInplaceEditor ed;
 
 
     public ComboBoxPropertyEditor(List<String> list) {
     public ComboBoxPropertyEditor(List<String> list) {
         ed = new ComboInplaceEditor(list);
         ed = new ComboInplaceEditor(list);
     }
     }
 
 
+    @Override
     public void attachEnv(PropertyEnv env) {
     public void attachEnv(PropertyEnv env) {
         this.env = env;
         this.env = env;
         env.registerInplaceEditorFactory(this);
         env.registerInplaceEditorFactory(this);
     }
     }
-    
+
     public void setList(List<String> list){
     public void setList(List<String> list){
         ed.setList(list);
         ed.setList(list);
     }
     }
-   
+
     public int getNumElements(){
     public int getNumElements(){
         return ed.getNumElements();
         return ed.getNumElements();
     }
     }
@@ -77,11 +77,12 @@ public class ComboBoxPropertyEditor extends PropertyEditorSupport implements ExP
     @Override
     @Override
     public void setAsText(String s) {
     public void setAsText(String s) {
         Object o = ed.getValue();
         Object o = ed.getValue();
-        ((ComboInplaceEditor) ed).setAsText(s);
+        ed.setAsText(s);
         notifyListeners(o, ed.getValue());
         notifyListeners(o, ed.getValue());
     }
     }
- 
 
 
+
+    @Override
     public InplaceEditor getInplaceEditor() {
     public InplaceEditor getInplaceEditor() {
         return ed;
         return ed;
     }
     }
@@ -112,8 +113,7 @@ public class ComboBoxPropertyEditor extends PropertyEditorSupport implements ExP
     }
     }
 
 
     private void notifyListeners(Object before, Object after) {
     private void notifyListeners(Object before, Object after) {
-        for (Iterator<PropertyChangeListener> it = listeners.iterator(); it.hasNext();) {
-            PropertyChangeListener propertyChangeListener = it.next();
+        for (PropertyChangeListener propertyChangeListener : listeners) {
             //TODO: check what the "programmatic name" is supposed to be here.. for now its Quaternion
             //TODO: check what the "programmatic name" is supposed to be here.. for now its Quaternion
             propertyChangeListener.propertyChange(new PropertyChangeEvent(this, null, before, after));
             propertyChangeListener.propertyChange(new PropertyChangeEvent(this, null, before, after));
         }
         }

+ 23 - 15
jme3-core/src/com/jme3/gde/core/properties/ParticleInfluencerPropertyEditor.java

@@ -1,22 +1,22 @@
 /*
 /*
  *  Copyright (c) 2009-2010 jMonkeyEngine
  *  Copyright (c) 2009-2010 jMonkeyEngine
  *  All rights reserved.
  *  All rights reserved.
- * 
+ *
  *  Redistribution and use in source and binary forms, with or without
  *  Redistribution and use in source and binary forms, with or without
  *  modification, are permitted provided that the following conditions are
  *  modification, are permitted provided that the following conditions are
  *  met:
  *  met:
- * 
+ *
  *  * Redistributions of source code must retain the above copyright
  *  * Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  *  * Redistributions in binary form must reproduce the above copyright
  *  * Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  *  * Neither the name of 'jMonkeyEngine' nor the names of its contributors
  *  * Neither the name of 'jMonkeyEngine' nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
  *    without specific prior written permission.
- * 
+ *
  *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  *  TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  *  TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
@@ -42,7 +42,7 @@ import java.awt.Rectangle;
 import java.beans.PropertyChangeEvent;
 import java.beans.PropertyChangeEvent;
 import java.beans.PropertyChangeListener;
 import java.beans.PropertyChangeListener;
 import java.beans.PropertyEditor;
 import java.beans.PropertyEditor;
-import java.util.Iterator;
+import java.lang.reflect.InvocationTargetException;
 import java.util.LinkedList;
 import java.util.LinkedList;
 import java.util.List;
 import java.util.List;
 import org.netbeans.api.project.Project;
 import org.netbeans.api.project.Project;
@@ -57,7 +57,7 @@ import org.openide.util.Exceptions;
 @SuppressWarnings({"unchecked", "rawtypes"})
 @SuppressWarnings({"unchecked", "rawtypes"})
 public class ParticleInfluencerPropertyEditor implements PropertyEditor {
 public class ParticleInfluencerPropertyEditor implements PropertyEditor {
 
 
-    private LinkedList<PropertyChangeListener> listeners = new LinkedList<PropertyChangeListener>();
+    private final LinkedList<PropertyChangeListener> listeners = new LinkedList<>();
     private JmeParticleEmitter jmePe;
     private JmeParticleEmitter jmePe;
     private ParticleInfluencer pi;
     private ParticleInfluencer pi;
     private Project proj;
     private Project proj;
@@ -71,38 +71,45 @@ public class ParticleInfluencerPropertyEditor implements PropertyEditor {
         this.proj = project;
         this.proj = project;
     }
     }
 
 
+    @Override
     public void setValue(Object value) {
     public void setValue(Object value) {
         if (value instanceof ParticleInfluencer) {
         if (value instanceof ParticleInfluencer) {
             pi = (ParticleInfluencer) value;
             pi = (ParticleInfluencer) value;
         }
         }
     }
     }
 
 
+    @Override
     public Object getValue() {
     public Object getValue() {
         return pi;
         return pi;
     }
     }
 
 
+    @Override
     public boolean isPaintable() {
     public boolean isPaintable() {
         return false;
         return false;
     }
     }
 
 
+    @Override
     public void paintValue(Graphics gfx, Rectangle box) {
     public void paintValue(Graphics gfx, Rectangle box) {
         throw new UnsupportedOperationException("Not supported yet.");
         throw new UnsupportedOperationException("Not supported yet.");
     }
     }
 
 
+    @Override
     public String getJavaInitializationString() {
     public String getJavaInitializationString() {
         return null;
         return null;
     }
     }
 
 
+    @Override
     public String getAsText() {
     public String getAsText() {
         return pi.getClass().getSimpleName();
         return pi.getClass().getSimpleName();
     }
     }
 
 
+    @Override
     public void setAsText(String text) throws IllegalArgumentException {
     public void setAsText(String text) throws IllegalArgumentException {
         if(pi.getClass().getName().equals(text)){
         if(pi.getClass().getName().equals(text)){
             return;
             return;
         }
         }
         ParticleInfluencer old = pi;
         ParticleInfluencer old = pi;
-        ProjectAssetManager manager = (ProjectAssetManager) proj.getLookup().lookup(ProjectAssetManager.class);
+        ProjectAssetManager manager = proj.getLookup().lookup(ProjectAssetManager.class);
         List<ClassLoader> loaders = manager.getClassLoaders();
         List<ClassLoader> loaders = manager.getClassLoaders();
 
 
 
 
@@ -121,16 +128,13 @@ public class ParticleInfluencerPropertyEditor implements PropertyEditor {
         }
         }
         if (clazz != null) {
         if (clazz != null) {
             try {
             try {
-                Object obj = clazz.newInstance();
+                Object obj = clazz.getDeclaredConstructor().newInstance();
                 if (obj instanceof ParticleInfluencer) {
                 if (obj instanceof ParticleInfluencer) {
                     pi = (ParticleInfluencer) obj;
                     pi = (ParticleInfluencer) obj;
                 } else {
                 } else {
                     DialogDisplayer.getDefault().notifyLater(new NotifyDescriptor.Message("This is no ParticleInfluencer class!"));
                     DialogDisplayer.getDefault().notifyLater(new NotifyDescriptor.Message("This is no ParticleInfluencer class!"));
                 }
                 }
-            } catch (InstantiationException ex) {
-                Exceptions.printStackTrace(ex);
-                DialogDisplayer.getDefault().notifyLater(new NotifyDescriptor.Message("Error instatiating class!"));
-            } catch (IllegalAccessException ex) {
+            } catch (InstantiationException | IllegalAccessException | NoSuchMethodException | InvocationTargetException ex) {
                 Exceptions.printStackTrace(ex);
                 Exceptions.printStackTrace(ex);
                 DialogDisplayer.getDefault().notifyLater(new NotifyDescriptor.Message("Error instatiating class!"));
                 DialogDisplayer.getDefault().notifyLater(new NotifyDescriptor.Message("Error instatiating class!"));
             }
             }
@@ -142,6 +146,7 @@ public class ParticleInfluencerPropertyEditor implements PropertyEditor {
         }
         }
     }
     }
 
 
+    @Override
     public String[] getTags() {
     public String[] getTags() {
         return null;
         return null;
 //        List<String> s = getSources();
 //        List<String> s = getSources();
@@ -207,25 +212,28 @@ public class ParticleInfluencerPropertyEditor implements PropertyEditor {
 //        }
 //        }
 //        return list;
 //        return list;
 //    }
 //    }
+    @Override
     public Component getCustomEditor() {
     public Component getCustomEditor() {
         return new ParticleInfluencerPicker(null, true, this, jmePe);
         return new ParticleInfluencerPicker(null, true, this, jmePe);
     }
     }
 
 
+    @Override
     public boolean supportsCustomEditor() {
     public boolean supportsCustomEditor() {
         return true;
         return true;
     }
     }
 
 
+    @Override
     public void addPropertyChangeListener(PropertyChangeListener listener) {
     public void addPropertyChangeListener(PropertyChangeListener listener) {
         listeners.add(listener);
         listeners.add(listener);
     }
     }
 
 
+    @Override
     public void removePropertyChangeListener(PropertyChangeListener listener) {
     public void removePropertyChangeListener(PropertyChangeListener listener) {
         listeners.remove(listener);
         listeners.remove(listener);
     }
     }
 
 
     private void notifyListeners(ParticleInfluencer before, ParticleInfluencer after) {
     private void notifyListeners(ParticleInfluencer before, ParticleInfluencer after) {
-        for (Iterator<PropertyChangeListener> it = listeners.iterator(); it.hasNext();) {
-            PropertyChangeListener propertyChangeListener = it.next();
+        for (PropertyChangeListener propertyChangeListener : listeners) {
             //TODO: check what the "programmatic name" is supposed to be here.. for now its Quaternion
             //TODO: check what the "programmatic name" is supposed to be here.. for now its Quaternion
             propertyChangeListener.propertyChange(new PropertyChangeEvent(this, null, before, after));
             propertyChangeListener.propertyChange(new PropertyChangeEvent(this, null, before, after));
         }
         }

+ 5 - 5
jme3-core/src/com/jme3/gde/core/properties/SliderPropertyEditor.java

@@ -4,7 +4,6 @@ import com.jme3.gde.core.util.SliderInplaceEditor;
 import java.beans.PropertyChangeEvent;
 import java.beans.PropertyChangeEvent;
 import java.beans.PropertyChangeListener;
 import java.beans.PropertyChangeListener;
 import java.beans.PropertyEditorSupport;
 import java.beans.PropertyEditorSupport;
-import java.util.Iterator;
 import java.util.LinkedList;
 import java.util.LinkedList;
 import org.openide.explorer.propertysheet.ExPropertyEditor;
 import org.openide.explorer.propertysheet.ExPropertyEditor;
 import org.openide.explorer.propertysheet.InplaceEditor;
 import org.openide.explorer.propertysheet.InplaceEditor;
@@ -16,13 +15,14 @@ import org.openide.explorer.propertysheet.PropertyEnv;
  */
  */
 public class SliderPropertyEditor extends PropertyEditorSupport implements ExPropertyEditor, InplaceEditor.Factory {
 public class SliderPropertyEditor extends PropertyEditorSupport implements ExPropertyEditor, InplaceEditor.Factory {
 
 
-    private LinkedList<PropertyChangeListener> listeners = new LinkedList<PropertyChangeListener>();
+    private final LinkedList<PropertyChangeListener> listeners = new LinkedList<>();
     PropertyEnv env;
     PropertyEnv env;
 
 
     public SliderPropertyEditor() {
     public SliderPropertyEditor() {
         ed = new SliderInplaceEditor(0f, 100f);
         ed = new SliderInplaceEditor(0f, 100f);
     }
     }
 
 
+    @Override
     public void attachEnv(PropertyEnv env) {
     public void attachEnv(PropertyEnv env) {
         this.env = env;
         this.env = env;
         env.registerInplaceEditorFactory(this);
         env.registerInplaceEditorFactory(this);
@@ -52,11 +52,12 @@ public class SliderPropertyEditor extends PropertyEditorSupport implements ExPro
     @Override
     @Override
     public void setAsText(String s) {
     public void setAsText(String s) {
         Object o = ed.getValue();
         Object o = ed.getValue();
-        ((SliderInplaceEditor) ed).setAsText(s);
+        ed.setAsText(s);
         notifyListeners(o, ed.getValue());
         notifyListeners(o, ed.getValue());
     }
     }
     private SliderInplaceEditor ed = null;
     private SliderInplaceEditor ed = null;
 
 
+    @Override
     public InplaceEditor getInplaceEditor() {
     public InplaceEditor getInplaceEditor() {
         return ed;
         return ed;
     }
     }
@@ -87,8 +88,7 @@ public class SliderPropertyEditor extends PropertyEditorSupport implements ExPro
     }
     }
 
 
     private void notifyListeners(Object before, Object after) {
     private void notifyListeners(Object before, Object after) {
-        for (Iterator<PropertyChangeListener> it = listeners.iterator(); it.hasNext();) {
-            PropertyChangeListener propertyChangeListener = it.next();
+        for (PropertyChangeListener propertyChangeListener : listeners) {
             //TODO: check what the "programmatic name" is supposed to be here.. for now its Quaternion
             //TODO: check what the "programmatic name" is supposed to be here.. for now its Quaternion
             propertyChangeListener.propertyChange(new PropertyChangeEvent(this, null, before, after));
             propertyChangeListener.propertyChange(new PropertyChangeEvent(this, null, before, after));
         }
         }

+ 13 - 16
jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/actions/impl/NewCustomControlWizardAction.java

@@ -1,22 +1,22 @@
 /*
 /*
  *  Copyright (c) 2009-2010 jMonkeyEngine
  *  Copyright (c) 2009-2010 jMonkeyEngine
  *  All rights reserved.
  *  All rights reserved.
- * 
+ *
  *  Redistribution and use in source and binary forms, with or without
  *  Redistribution and use in source and binary forms, with or without
  *  modification, are permitted provided that the following conditions are
  *  modification, are permitted provided that the following conditions are
  *  met:
  *  met:
- * 
+ *
  *  * Redistributions of source code must retain the above copyright
  *  * Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  *  * Redistributions in binary form must reproduce the above copyright
  *  * Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  *  * Neither the name of 'jMonkeyEngine' nor the names of its contributors
  *  * Neither the name of 'jMonkeyEngine' nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
  *    without specific prior written permission.
- * 
+ *
  *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  *  TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  *  TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
@@ -38,6 +38,7 @@ import com.jme3.scene.Spatial;
 import com.jme3.scene.control.Control;
 import com.jme3.scene.control.Control;
 import java.awt.Component;
 import java.awt.Component;
 import java.awt.Dialog;
 import java.awt.Dialog;
+import java.lang.reflect.InvocationTargetException;
 import java.text.MessageFormat;
 import java.text.MessageFormat;
 import java.util.List;
 import java.util.List;
 import javax.swing.JComponent;
 import javax.swing.JComponent;
@@ -107,16 +108,13 @@ public final class NewCustomControlWizardAction extends AbstractNewControlWizard
         }
         }
         if (clazz != null) {
         if (clazz != null) {
             try {
             try {
-                Object contr = clazz.newInstance();
+                Object contr = clazz.getDeclaredConstructor().newInstance();
                 if (contr instanceof Control) {
                 if (contr instanceof Control) {
                     return (Control) contr;
                     return (Control) contr;
                 } else {
                 } else {
                     DialogDisplayer.getDefault().notifyLater(new NotifyDescriptor.Message("This is no Control class!"));
                     DialogDisplayer.getDefault().notifyLater(new NotifyDescriptor.Message("This is no Control class!"));
                 }
                 }
-            } catch (InstantiationException ex) {
-                Exceptions.printStackTrace(ex);
-                DialogDisplayer.getDefault().notifyLater(new NotifyDescriptor.Message("Error instatiating class!"));
-            } catch (IllegalAccessException ex) {
+            } catch (InstantiationException | IllegalAccessException | InvocationTargetException | NoSuchMethodException ex) {
                 Exceptions.printStackTrace(ex);
                 Exceptions.printStackTrace(ex);
                 DialogDisplayer.getDefault().notifyLater(new NotifyDescriptor.Message("Error instatiating class!"));
                 DialogDisplayer.getDefault().notifyLater(new NotifyDescriptor.Message("Error instatiating class!"));
             }
             }
@@ -145,16 +143,15 @@ public final class NewCustomControlWizardAction extends AbstractNewControlWizard
                 if (c instanceof JComponent) { // assume Swing components
                 if (c instanceof JComponent) { // assume Swing components
                     JComponent jc = (JComponent) c;
                     JComponent jc = (JComponent) c;
                     // Sets step number of a component
                     // Sets step number of a component
-                    // TODO if using org.openide.dialogs >= 7.8, can use WizardDescriptor.PROP_*:
-                    jc.putClientProperty("WizardPanel_contentSelectedIndex", new Integer(i));
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_SELECTED_INDEX, i);
                     // Sets steps names for a panel
                     // Sets steps names for a panel
-                    jc.putClientProperty("WizardPanel_contentData", steps);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DATA, steps);
                     // Turn on subtitle creation on each step
                     // Turn on subtitle creation on each step
-                    jc.putClientProperty("WizardPanel_autoWizardStyle", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_AUTO_WIZARD_STYLE, Boolean.TRUE);
                     // Show steps on the left side with the image on the background
                     // Show steps on the left side with the image on the background
-                    jc.putClientProperty("WizardPanel_contentDisplayed", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DISPLAYED, Boolean.TRUE);
                     // Turn on numbering of all steps
                     // Turn on numbering of all steps
-                    jc.putClientProperty("WizardPanel_contentNumbered", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_NUMBERED, Boolean.TRUE);
                 }
                 }
             }
             }
         }
         }

+ 10 - 11
jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/actions/impl/tracks/AudioTrackWizardAction.java

@@ -1,22 +1,22 @@
 /*
 /*
  *  Copyright (c) 2009-2010 jMonkeyEngine
  *  Copyright (c) 2009-2010 jMonkeyEngine
  *  All rights reserved.
  *  All rights reserved.
- * 
+ *
  *  Redistribution and use in source and binary forms, with or without
  *  Redistribution and use in source and binary forms, with or without
  *  modification, are permitted provided that the following conditions are
  *  modification, are permitted provided that the following conditions are
  *  met:
  *  met:
- * 
+ *
  *  * Redistributions of source code must retain the above copyright
  *  * Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  *  * Redistributions in binary form must reproduce the above copyright
  *  * Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  *  * Neither the name of 'jMonkeyEngine' nor the names of its contributors
  *  * Neither the name of 'jMonkeyEngine' nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
  *    without specific prior written permission.
- * 
+ *
  *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  *  TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  *  TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
@@ -102,16 +102,15 @@ public final class AudioTrackWizardAction implements ActionListener {
                 if (c instanceof JComponent) { // assume Swing components
                 if (c instanceof JComponent) { // assume Swing components
                     JComponent jc = (JComponent) c;
                     JComponent jc = (JComponent) c;
                     // Sets step number of a component
                     // Sets step number of a component
-                    // TODO if using org.openide.dialogs >= 7.8, can use WizardDescriptor.PROP_*:
-                    jc.putClientProperty("WizardPanel_contentSelectedIndex", new Integer(i));
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_SELECTED_INDEX, i);
                     // Sets steps names for a panel
                     // Sets steps names for a panel
-                    jc.putClientProperty("WizardPanel_contentData", steps);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DATA, steps);
                     // Turn on subtitle creation on each step
                     // Turn on subtitle creation on each step
-                    jc.putClientProperty("WizardPanel_autoWizardStyle", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_AUTO_WIZARD_STYLE, Boolean.TRUE);
                     // Show steps on the left side with the image on the background
                     // Show steps on the left side with the image on the background
-                    jc.putClientProperty("WizardPanel_contentDisplayed", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DISPLAYED, Boolean.TRUE);
                     // Turn on numbering of all steps
                     // Turn on numbering of all steps
-                    jc.putClientProperty("WizardPanel_contentNumbered", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_NUMBERED, Boolean.TRUE);
                 }
                 }
             }
             }
         }
         }

+ 12 - 13
jme3-core/src/com/jme3/gde/core/sceneexplorer/nodes/actions/impl/tracks/EffectTrackWizardAction.java

@@ -1,22 +1,22 @@
 /*
 /*
  *  Copyright (c) 2009-2010 jMonkeyEngine
  *  Copyright (c) 2009-2010 jMonkeyEngine
  *  All rights reserved.
  *  All rights reserved.
- * 
+ *
  *  Redistribution and use in source and binary forms, with or without
  *  Redistribution and use in source and binary forms, with or without
  *  modification, are permitted provided that the following conditions are
  *  modification, are permitted provided that the following conditions are
  *  met:
  *  met:
- * 
+ *
  *  * Redistributions of source code must retain the above copyright
  *  * Redistributions of source code must retain the above copyright
  *    notice, this list of conditions and the following disclaimer.
  *    notice, this list of conditions and the following disclaimer.
- * 
+ *
  *  * Redistributions in binary form must reproduce the above copyright
  *  * Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the
  *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.
  *    documentation and/or other materials provided with the distribution.
- * 
+ *
  *  * Neither the name of 'jMonkeyEngine' nor the names of its contributors
  *  * Neither the name of 'jMonkeyEngine' nor the names of its contributors
  *    may be used to endorse or promote products derived from this software
  *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.
  *    without specific prior written permission.
- * 
+ *
  *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
  *  TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  *  TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
@@ -76,8 +76,8 @@ public final class EffectTrackWizardAction implements ActionListener {
             ParticleEmitter emitter = (ParticleEmitter) wizardDescriptor.getProperty("Emitter");
             ParticleEmitter emitter = (ParticleEmitter) wizardDescriptor.getProperty("Emitter");
             float startOffset = (Float) wizardDescriptor.getProperty("startOffset");
             float startOffset = (Float) wizardDescriptor.getProperty("startOffset");
             Animation anim = animation.getLookup().lookup(Animation.class);
             Animation anim = animation.getLookup().lookup(Animation.class);
-            anim.addTrack(new EffectTrack(emitter, anim.getLength(), startOffset));                        
-                    
+            anim.addTrack(new EffectTrack(emitter, anim.getLength(), startOffset));
+
             animation.refresh(false);
             animation.refresh(false);
             animation.setChanged();
             animation.setChanged();
         }
         }
@@ -102,16 +102,15 @@ public final class EffectTrackWizardAction implements ActionListener {
                 if (c instanceof JComponent) { // assume Swing components
                 if (c instanceof JComponent) { // assume Swing components
                     JComponent jc = (JComponent) c;
                     JComponent jc = (JComponent) c;
                     // Sets step number of a component
                     // Sets step number of a component
-                    // TODO if using org.openide.dialogs >= 7.8, can use WizardDescriptor.PROP_*:
-                    jc.putClientProperty("WizardPanel_contentSelectedIndex", new Integer(i));
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_SELECTED_INDEX, i);
                     // Sets steps names for a panel
                     // Sets steps names for a panel
-                    jc.putClientProperty("WizardPanel_contentData", steps);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DATA, steps);
                     // Turn on subtitle creation on each step
                     // Turn on subtitle creation on each step
-                    jc.putClientProperty("WizardPanel_autoWizardStyle", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_AUTO_WIZARD_STYLE, Boolean.TRUE);
                     // Show steps on the left side with the image on the background
                     // Show steps on the left side with the image on the background
-                    jc.putClientProperty("WizardPanel_contentDisplayed", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DISPLAYED, Boolean.TRUE);
                     // Turn on numbering of all steps
                     // Turn on numbering of all steps
-                    jc.putClientProperty("WizardPanel_contentNumbered", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_NUMBERED, Boolean.TRUE);
                 }
                 }
             }
             }
         }
         }

+ 3 - 3
jme3-materialeditor/src/com/jme3/gde/shadernodedefinition/wizard/SNDefWizardIterator.java

@@ -46,7 +46,7 @@ public final class SNDefWizardIterator implements WizardDescriptor.Instantiating
 
 
     private List<WizardDescriptor.Panel<WizardDescriptor>> getPanels() {
     private List<WizardDescriptor.Panel<WizardDescriptor>> getPanels() {
         if (panels == null) {
         if (panels == null) {
-            panels = new ArrayList<WizardDescriptor.Panel<WizardDescriptor>>();
+            panels = new ArrayList<>();
             // Change to default new file panel and add our panel at bottom
             // Change to default new file panel and add our panel at bottom
             Project p = Templates.getProject(wizard);
             Project p = Templates.getProject(wizard);
             SourceGroup[] groups = ProjectUtils.getSources(p).getSourceGroups(Sources.TYPE_GENERIC);
             SourceGroup[] groups = ProjectUtils.getSources(p).getSourceGroups(Sources.TYPE_GENERIC);
@@ -85,7 +85,7 @@ public final class SNDefWizardIterator implements WizardDescriptor.Instantiating
 
 
         FileObject createdFile = null;
         FileObject createdFile = null;
 
 
-        // Read Title from wizard 
+        // Read Title from wizard
         // String HtmlTitle = (String) wizard.getProperty(SNDefWizardPanel1.TITLE);
         // String HtmlTitle = (String) wizard.getProperty(SNDefWizardPanel1.TITLE);
         // FreeMarker Template will get its variables from HashMap.
         // FreeMarker Template will get its variables from HashMap.
         // HashMap key is the variable name.
         // HashMap key is the variable name.
@@ -204,7 +204,7 @@ public final class SNDefWizardIterator implements WizardDescriptor.Instantiating
     // by NetBeans Wizard API itself rather than needed to be implemented by a
     // by NetBeans Wizard API itself rather than needed to be implemented by a
     // client code.
     // client code.
     private String[] createSteps() {
     private String[] createSteps() {
-        String[] beforeSteps = (String[]) wizard.getProperty("WizardPanel_contentData");
+        String[] beforeSteps = (String[]) wizard.getProperty(WizardDescriptor.PROP_CONTENT_DATA);
         assert beforeSteps != null : "This wizard may only be used embedded in the template wizard";
         assert beforeSteps != null : "This wizard may only be used embedded in the template wizard";
         String[] res = new String[(beforeSteps.length - 1) + panels.size()];
         String[] res = new String[(beforeSteps.length - 1) + panels.size()];
         for (int i = 0; i < res.length; i++) {
         for (int i = 0; i < res.length; i++) {

+ 6 - 7
jme3-model-importer/src/com/jme3/gde/modelimporter/ImportModel.java

@@ -95,7 +95,7 @@ public final class ImportModel implements ActionListener {
         boolean cancelled = wiz.getValue() != WizardDescriptor.FINISH_OPTION;
         boolean cancelled = wiz.getValue() != WizardDescriptor.FINISH_OPTION;
         if (!cancelled) {
         if (!cancelled) {
             new Thread(new Runnable() {
             new Thread(new Runnable() {
-                
+
                 @Override
                 @Override
                 public void run() {
                 public void run() {
                     ProgressHandle handle = ProgressHandle.createHandle("Importing Model..");
                     ProgressHandle handle = ProgressHandle.createHandle("Importing Model..");
@@ -314,16 +314,15 @@ public final class ImportModel implements ActionListener {
                 if (c instanceof JComponent) { // assume Swing components
                 if (c instanceof JComponent) { // assume Swing components
                     JComponent jc = (JComponent) c;
                     JComponent jc = (JComponent) c;
                     // Sets step number of a component
                     // Sets step number of a component
-                    // TODO if using org.openide.dialogs >= 7.8, can use WizardDescriptor.PROP_*:
-                    jc.putClientProperty("WizardPanel_contentSelectedIndex", i);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_SELECTED_INDEX, i);
                     // Sets steps names for a panel
                     // Sets steps names for a panel
-                    jc.putClientProperty("WizardPanel_contentData", steps);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DATA, steps);
                     // Turn on subtitle creation on each step
                     // Turn on subtitle creation on each step
-                    jc.putClientProperty("WizardPanel_autoWizardStyle", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_AUTO_WIZARD_STYLE, Boolean.TRUE);
                     // Show steps on the left side with the image on the background
                     // Show steps on the left side with the image on the background
-                    jc.putClientProperty("WizardPanel_contentDisplayed", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DISPLAYED, Boolean.TRUE);
                     // Turn on numbering of all steps
                     // Turn on numbering of all steps
-                    jc.putClientProperty("WizardPanel_contentNumbered", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_NUMBERED, Boolean.TRUE);
                 }
                 }
             }
             }
         }
         }

+ 6 - 7
jme3-navmesh-gen/src/com/jme3/gde/nmgen/wizard/NewNavMeshWizardAction.java

@@ -109,7 +109,7 @@ public final class NewNavMeshWizardAction extends AbstractNewSpatialWizardAction
             geoms.add(g);
             geoms.add(g);
             return geoms;
             return geoms;
         }
         }
-        
+
         for (Spatial spatial : node.getChildren()) {
         for (Spatial spatial : node.getChildren()) {
             if (spatial instanceof Geometry) {
             if (spatial instanceof Geometry) {
                 geoms.add((Geometry) spatial);
                 geoms.add((Geometry) spatial);
@@ -139,16 +139,15 @@ public final class NewNavMeshWizardAction extends AbstractNewSpatialWizardAction
                 if (c instanceof JComponent) { // assume Swing components
                 if (c instanceof JComponent) { // assume Swing components
                     JComponent jc = (JComponent) c;
                     JComponent jc = (JComponent) c;
                     // Sets step number of a component
                     // Sets step number of a component
-                    // TODO if using org.openide.dialogs >= 7.8, can use WizardDescriptor.PROP_*:
-                    jc.putClientProperty("WizardPanel_contentSelectedIndex", i);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_SELECTED_INDEX, i);
                     // Sets steps names for a panel
                     // Sets steps names for a panel
-                    jc.putClientProperty("WizardPanel_contentData", steps);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DATA, steps);
                     // Turn on subtitle creation on each step
                     // Turn on subtitle creation on each step
-                    jc.putClientProperty("WizardPanel_autoWizardStyle", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_AUTO_WIZARD_STYLE, Boolean.TRUE);
                     // Show steps on the left side with the image on the background
                     // Show steps on the left side with the image on the background
-                    jc.putClientProperty("WizardPanel_contentDisplayed", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DISPLAYED, Boolean.TRUE);
                     // Turn on numbering of all steps
                     // Turn on numbering of all steps
-                    jc.putClientProperty("WizardPanel_contentNumbered", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_NUMBERED, Boolean.TRUE);
                 }
                 }
             }
             }
         }
         }

+ 6 - 7
jme3-templates/src/com/jme3/gde/templates/basic/BasicGamePanelVisual.java

@@ -148,15 +148,14 @@ public class BasicGamePanelVisual extends JPanel implements DocumentListener {
     boolean valid(WizardDescriptor wizardDescriptor) {
     boolean valid(WizardDescriptor wizardDescriptor) {
 
 
         if (projectNameTextField.getText().length() == 0) {
         if (projectNameTextField.getText().length() == 0) {
-            // TODO if using org.openide.dialogs >= 7.8, can use WizardDescriptor.PROP_ERROR_MESSAGE:
-            wizardDescriptor.putProperty("WizardPanel_errorMessage",
+            wizardDescriptor.putProperty(WizardDescriptor.PROP_ERROR_MESSAGE,
                     "Project Name is not a valid folder name.");
                     "Project Name is not a valid folder name.");
             return false; // Display name not specified
             return false; // Display name not specified
         }
         }
         File f = FileUtil.normalizeFile(new File(projectLocationTextField.getText()).getAbsoluteFile());
         File f = FileUtil.normalizeFile(new File(projectLocationTextField.getText()).getAbsoluteFile());
         if (!f.isDirectory()) {
         if (!f.isDirectory()) {
             String message = "Project Folder is not a valid path.";
             String message = "Project Folder is not a valid path.";
-            wizardDescriptor.putProperty("WizardPanel_errorMessage", message);
+            wizardDescriptor.putProperty(WizardDescriptor.PROP_ERROR_MESSAGE, message);
             return false;
             return false;
         }
         }
         final File destFolder = FileUtil.normalizeFile(new File(createdFolderTextField.getText()).getAbsoluteFile());
         final File destFolder = FileUtil.normalizeFile(new File(createdFolderTextField.getText()).getAbsoluteFile());
@@ -166,25 +165,25 @@ public class BasicGamePanelVisual extends JPanel implements DocumentListener {
             projLoc = projLoc.getParentFile();
             projLoc = projLoc.getParentFile();
         }
         }
         if (projLoc == null || !projLoc.canWrite()) {
         if (projLoc == null || !projLoc.canWrite()) {
-            wizardDescriptor.putProperty("WizardPanel_errorMessage",
+            wizardDescriptor.putProperty(WizardDescriptor.PROP_ERROR_MESSAGE,
                     "Project Folder cannot be created.");
                     "Project Folder cannot be created.");
             return false;
             return false;
         }
         }
 
 
         if (FileUtil.toFileObject(projLoc) == null) {
         if (FileUtil.toFileObject(projLoc) == null) {
             String message = "Project Folder is not a valid path.";
             String message = "Project Folder is not a valid path.";
-            wizardDescriptor.putProperty("WizardPanel_errorMessage", message);
+            wizardDescriptor.putProperty(WizardDescriptor.PROP_ERROR_MESSAGE, message);
             return false;
             return false;
         }
         }
 
 
         File[] kids = destFolder.listFiles();
         File[] kids = destFolder.listFiles();
         if (destFolder.exists() && kids != null && kids.length > 0) {
         if (destFolder.exists() && kids != null && kids.length > 0) {
             // Folder exists and is not empty
             // Folder exists and is not empty
-            wizardDescriptor.putProperty("WizardPanel_errorMessage",
+            wizardDescriptor.putProperty(WizardDescriptor.PROP_ERROR_MESSAGE,
                     "Project Folder already exists and is not empty.");
                     "Project Folder already exists and is not empty.");
             return false;
             return false;
         }
         }
-        wizardDescriptor.putProperty("WizardPanel_errorMessage", "");
+        wizardDescriptor.putProperty(WizardDescriptor.PROP_ERROR_MESSAGE, "");
         return true;
         return true;
     }
     }
 
 

+ 2 - 3
jme3-templates/src/com/jme3/gde/templates/basic/BasicGameWizardIterator.java

@@ -133,10 +133,9 @@ public class BasicGameWizardIterator implements WizardDescriptor./*Progress*/Ins
             if (c instanceof JComponent) { // assume Swing components
             if (c instanceof JComponent) { // assume Swing components
                 JComponent jc = (JComponent) c;
                 JComponent jc = (JComponent) c;
                 // Step #.
                 // Step #.
-                // TODO if using org.openide.dialogs >= 7.8, can use WizardDescriptor.PROP_*:
-                jc.putClientProperty("WizardPanel_contentSelectedIndex", i);
+                jc.putClientProperty(WizardDescriptor.PROP_CONTENT_SELECTED_INDEX, i);
                 // Step name (actually the whole list for reference).
                 // Step name (actually the whole list for reference).
-                jc.putClientProperty("WizardPanel_contentData", steps);
+                jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DATA, steps);
             }
             }
         }
         }
     }
     }

+ 14 - 15
jme3-terrain-editor/src/com/jme3/gde/terraineditor/AddTerrainAction.java

@@ -74,11 +74,11 @@ public class AddTerrainAction extends AbstractNewSpatialWizardAction {
         }
         }
         return null;
         return null;
     }
     }
-    
+
     protected Spatial generateTerrain(Node parent, final WizardDescriptor wizardDescriptor) throws IOException {
     protected Spatial generateTerrain(Node parent, final WizardDescriptor wizardDescriptor) throws IOException {
         org.openide.nodes.Node selectedNode = (org.openide.nodes.Node) wizardDescriptor.getProperty("main_node");
         org.openide.nodes.Node selectedNode = (org.openide.nodes.Node) wizardDescriptor.getProperty("main_node");
         final Spatial spatial = selectedNode.getLookup().lookup(Spatial.class);
         final Spatial spatial = selectedNode.getLookup().lookup(Spatial.class);
-        
+
 
 
         String sceneName = selectedNode.getLookup().lookup(DataObject.class).getName();
         String sceneName = selectedNode.getLookup().lookup(DataObject.class).getName();
 
 
@@ -100,8 +100,8 @@ public class AddTerrainAction extends AbstractNewSpatialWizardAction {
 
 
         return doCreateTerrain(parent, totalSize, patchSize, alphaTextureSize, heightmapData, sceneName, selectedNode);
         return doCreateTerrain(parent, totalSize, patchSize, alphaTextureSize, heightmapData, sceneName, selectedNode);
     }
     }
-    
-    
+
+
     protected Spatial doCreateTerrain(Node parent,
     protected Spatial doCreateTerrain(Node parent,
                                     int totalSize,
                                     int totalSize,
                                     int patchSize,
                                     int patchSize,
@@ -111,7 +111,7 @@ public class AddTerrainAction extends AbstractNewSpatialWizardAction {
                                     org.openide.nodes.Node selectedNode) throws IOException
                                     org.openide.nodes.Node selectedNode) throws IOException
     {
     {
         final ProjectAssetManager manager = selectedNode.getLookup().lookup(ProjectAssetManager.class);
         final ProjectAssetManager manager = selectedNode.getLookup().lookup(ProjectAssetManager.class);
-        
+
         Terrain terrain = new TerrainQuad("terrain-"+sceneName, patchSize, totalSize, heightmapData); //TODO make this pluggable for different Terrain implementations
         Terrain terrain = new TerrainQuad("terrain-"+sceneName, patchSize, totalSize, heightmapData); //TODO make this pluggable for different Terrain implementations
         com.jme3.material.Material mat = new com.jme3.material.Material(manager, "Common/MatDefs/Terrain/TerrainLighting.j3md");
         com.jme3.material.Material mat = new com.jme3.material.Material(manager, "Common/MatDefs/Terrain/TerrainLighting.j3md");
 
 
@@ -134,7 +134,7 @@ public class AddTerrainAction extends AbstractNewSpatialWizardAction {
                     throw new IOException("Could not create the Texture Folder (assets/Textures)!");
                     throw new IOException("Could not create the Texture Folder (assets/Textures)!");
                 }
                 }
             }
             }
-            
+
             File alphaFolder = new File(assetFolder + "/Textures/terrain-alpha/");
             File alphaFolder = new File(assetFolder + "/Textures/terrain-alpha/");
             if (!alphaFolder.exists()) {
             if (!alphaFolder.exists()) {
                 if (!alphaFolder.mkdir()) {
                 if (!alphaFolder.mkdir()) {
@@ -159,9 +159,9 @@ public class AddTerrainAction extends AbstractNewSpatialWizardAction {
                     break;
                     break;
             }
             }
         }
         }
-        
+
         Texture defaultTexture = manager.loadTexture(TerrainEditorController.DEFAULT_TERRAIN_TEXTURE);
         Texture defaultTexture = manager.loadTexture(TerrainEditorController.DEFAULT_TERRAIN_TEXTURE);
-        
+
         // copy the default texture to the assets folder if it doesn't exist there yet
         // copy the default texture to the assets folder if it doesn't exist there yet
         String dirtTextureName = "/Textures/dirt.jpg";
         String dirtTextureName = "/Textures/dirt.jpg";
         File dirtTextureFile = new File(assetFolder+dirtTextureName);
         File dirtTextureFile = new File(assetFolder+dirtTextureName);
@@ -193,7 +193,7 @@ public class AddTerrainAction extends AbstractNewSpatialWizardAction {
         //setNeedsSave(true);
         //setNeedsSave(true);
         //addSpatialUndo(parent, (Node)terrain, jmeNodeParent);
         //addSpatialUndo(parent, (Node)terrain, jmeNodeParent);
         }
         }
-        
+
         return (Spatial)terrain;
         return (Spatial)terrain;
     }
     }
 
 
@@ -218,16 +218,15 @@ public class AddTerrainAction extends AbstractNewSpatialWizardAction {
                 if (c instanceof JComponent) { // assume Swing components
                 if (c instanceof JComponent) { // assume Swing components
                     JComponent jc = (JComponent) c;
                     JComponent jc = (JComponent) c;
                     // Sets step number of a component
                     // Sets step number of a component
-                    // TODO if using org.openide.dialogs >= 7.8, can use WizardDescriptor.PROP_*:
-                    jc.putClientProperty("WizardPanel_contentSelectedIndex", i);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_SELECTED_INDEX, i);
                     // Sets steps names for a panel
                     // Sets steps names for a panel
-                    jc.putClientProperty("WizardPanel_contentData", steps);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DATA, steps);
                     // Turn on subtitle creation on each step
                     // Turn on subtitle creation on each step
-                    jc.putClientProperty("WizardPanel_autoWizardStyle", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_AUTO_WIZARD_STYLE, Boolean.TRUE);
                     // Show steps on the left side with the image on the background
                     // Show steps on the left side with the image on the background
-                    jc.putClientProperty("WizardPanel_contentDisplayed", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DISPLAYED, Boolean.TRUE);
                     // Turn on numbering of all steps
                     // Turn on numbering of all steps
-                    jc.putClientProperty("WizardPanel_contentNumbered", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_NUMBERED, Boolean.TRUE);
                 }
                 }
             }
             }
         }
         }

+ 7 - 8
jme3-terrain-editor/src/com/jme3/gde/terraineditor/CreateTerrainWizardAction.java

@@ -46,7 +46,7 @@ import org.openide.util.actions.CallableSystemAction;
 public final class CreateTerrainWizardAction extends CallableSystemAction {
 public final class CreateTerrainWizardAction extends CallableSystemAction {
 
 
     private WizardDescriptor.Panel[] panels;
     private WizardDescriptor.Panel[] panels;
-    private TerrainEditorTopComponent controller;
+    private final TerrainEditorTopComponent controller;
 
 
     public CreateTerrainWizardAction(TerrainEditorTopComponent controller) {
     public CreateTerrainWizardAction(TerrainEditorTopComponent controller) {
         this.controller = controller;
         this.controller = controller;
@@ -67,7 +67,7 @@ public final class CreateTerrainWizardAction extends CallableSystemAction {
         }
         }
     }
     }
 
 
-    
+
 
 
     /**
     /**
      * Initialize panels representing individual wizard's steps and sets
      * Initialize panels representing individual wizard's steps and sets
@@ -90,16 +90,15 @@ public final class CreateTerrainWizardAction extends CallableSystemAction {
                 if (c instanceof JComponent) { // assume Swing components
                 if (c instanceof JComponent) { // assume Swing components
                     JComponent jc = (JComponent) c;
                     JComponent jc = (JComponent) c;
                     // Sets step number of a component
                     // Sets step number of a component
-                    // TODO if using org.openide.dialogs >= 7.8, can use WizardDescriptor.PROP_*:
-                    jc.putClientProperty("WizardPanel_contentSelectedIndex", i);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_SELECTED_INDEX, i);
                     // Sets steps names for a panel
                     // Sets steps names for a panel
-                    jc.putClientProperty("WizardPanel_contentData", steps);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DATA, steps);
                     // Turn on subtitle creation on each step
                     // Turn on subtitle creation on each step
-                    jc.putClientProperty("WizardPanel_autoWizardStyle", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_AUTO_WIZARD_STYLE, Boolean.TRUE);
                     // Show steps on the left side with the image on the background
                     // Show steps on the left side with the image on the background
-                    jc.putClientProperty("WizardPanel_contentDisplayed", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DISPLAYED, Boolean.TRUE);
                     // Turn on numbering of all steps
                     // Turn on numbering of all steps
-                    jc.putClientProperty("WizardPanel_contentNumbered", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_NUMBERED, Boolean.TRUE);
                 }
                 }
             }
             }
         }
         }

+ 6 - 7
jme3-terrain-editor/src/com/jme3/gde/terraineditor/sky/AddSkyboxAction.java

@@ -105,7 +105,7 @@ public class AddSkyboxAction extends AbstractNewSpatialWizardAction {
             if(type == SkyFactory.EnvMapType.CubeMap){
             if(type == SkyFactory.EnvMapType.CubeMap){
                 newKey.setTextureTypeHint(Texture.Type.CubeMap);
                 newKey.setTextureTypeHint(Texture.Type.CubeMap);
             }
             }
-            return SkyFactory.createSky(pm, pm.loadTexture(newKey), normalScale, type); 
+            return SkyFactory.createSky(pm, pm.loadTexture(newKey), normalScale, type);
         }
         }
     }
     }
 
 
@@ -129,16 +129,15 @@ public class AddSkyboxAction extends AbstractNewSpatialWizardAction {
                 if (c instanceof JComponent) { // assume Swing components
                 if (c instanceof JComponent) { // assume Swing components
                     JComponent jc = (JComponent) c;
                     JComponent jc = (JComponent) c;
                     // Sets step number of a component
                     // Sets step number of a component
-                    // TODO if using org.openide.dialogs >= 7.8, can use WizardDescriptor.PROP_*:
-                    jc.putClientProperty("WizardPanel_contentSelectedIndex", i);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_SELECTED_INDEX, i);
                     // Sets steps names for a panel
                     // Sets steps names for a panel
-                    jc.putClientProperty("WizardPanel_contentData", steps);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DATA, steps);
                     // Turn on subtitle creation on each step
                     // Turn on subtitle creation on each step
-                    jc.putClientProperty("WizardPanel_autoWizardStyle", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_AUTO_WIZARD_STYLE, Boolean.TRUE);
                     // Show steps on the left side with the image on the background
                     // Show steps on the left side with the image on the background
-                    jc.putClientProperty("WizardPanel_contentDisplayed", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DISPLAYED, Boolean.TRUE);
                     // Turn on numbering of all steps
                     // Turn on numbering of all steps
-                    jc.putClientProperty("WizardPanel_contentNumbered", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_NUMBERED, Boolean.TRUE);
                 }
                 }
             }
             }
         }
         }

+ 5 - 6
jme3-terrain-editor/src/com/jme3/gde/terraineditor/sky/SkyboxWizardAction.java

@@ -86,16 +86,15 @@ public final class SkyboxWizardAction extends CallableSystemAction {
                 if (c instanceof JComponent) { // assume Swing components
                 if (c instanceof JComponent) { // assume Swing components
                     JComponent jc = (JComponent) c;
                     JComponent jc = (JComponent) c;
                     // Sets step number of a component
                     // Sets step number of a component
-                    // TODO if using org.openide.dialogs >= 7.8, can use WizardDescriptor.PROP_*:
-                    jc.putClientProperty("WizardPanel_contentSelectedIndex", i);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_SELECTED_INDEX, i);
                     // Sets steps names for a panel
                     // Sets steps names for a panel
-                    jc.putClientProperty("WizardPanel_contentData", steps);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DATA, steps);
                     // Turn on subtitle creation on each step
                     // Turn on subtitle creation on each step
-                    jc.putClientProperty("WizardPanel_autoWizardStyle", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_AUTO_WIZARD_STYLE, Boolean.TRUE);
                     // Show steps on the left side with the image on the background
                     // Show steps on the left side with the image on the background
-                    jc.putClientProperty("WizardPanel_contentDisplayed", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DISPLAYED, Boolean.TRUE);
                     // Turn on numbering of all steps
                     // Turn on numbering of all steps
-                    jc.putClientProperty("WizardPanel_contentNumbered", Boolean.TRUE);
+                    jc.putClientProperty(WizardDescriptor.PROP_CONTENT_NUMBERED, Boolean.TRUE);
                 }
                 }
             }
             }
         }
         }

+ 6 - 7
jme3-tests-template/src/com/jme3/gde/templates/tests/testsandroid/JME3TestsAndroidPanelVisual.java

@@ -148,15 +148,14 @@ public class JME3TestsAndroidPanelVisual extends JPanel implements DocumentListe
     boolean valid(WizardDescriptor wizardDescriptor) {
     boolean valid(WizardDescriptor wizardDescriptor) {
 
 
         if (projectNameTextField.getText().length() == 0) {
         if (projectNameTextField.getText().length() == 0) {
-            // TODO if using org.openide.dialogs >= 7.8, can use WizardDescriptor.PROP_ERROR_MESSAGE:
-            wizardDescriptor.putProperty("WizardPanel_errorMessage",
+            wizardDescriptor.putProperty(WizardDescriptor.PROP_ERROR_MESSAGE,
                     "Project Name is not a valid folder name.");
                     "Project Name is not a valid folder name.");
             return false; // Display name not specified
             return false; // Display name not specified
         }
         }
         File f = FileUtil.normalizeFile(new File(projectLocationTextField.getText()).getAbsoluteFile());
         File f = FileUtil.normalizeFile(new File(projectLocationTextField.getText()).getAbsoluteFile());
         if (!f.isDirectory()) {
         if (!f.isDirectory()) {
             String message = "Project Folder is not a valid path.";
             String message = "Project Folder is not a valid path.";
-            wizardDescriptor.putProperty("WizardPanel_errorMessage", message);
+            wizardDescriptor.putProperty(WizardDescriptor.PROP_ERROR_MESSAGE, message);
             return false;
             return false;
         }
         }
         final File destFolder = FileUtil.normalizeFile(new File(createdFolderTextField.getText()).getAbsoluteFile());
         final File destFolder = FileUtil.normalizeFile(new File(createdFolderTextField.getText()).getAbsoluteFile());
@@ -166,25 +165,25 @@ public class JME3TestsAndroidPanelVisual extends JPanel implements DocumentListe
             projLoc = projLoc.getParentFile();
             projLoc = projLoc.getParentFile();
         }
         }
         if (projLoc == null || !projLoc.canWrite()) {
         if (projLoc == null || !projLoc.canWrite()) {
-            wizardDescriptor.putProperty("WizardPanel_errorMessage",
+            wizardDescriptor.putProperty(WizardDescriptor.PROP_ERROR_MESSAGE,
                     "Project Folder cannot be created.");
                     "Project Folder cannot be created.");
             return false;
             return false;
         }
         }
 
 
         if (FileUtil.toFileObject(projLoc) == null) {
         if (FileUtil.toFileObject(projLoc) == null) {
             String message = "Project Folder is not a valid path.";
             String message = "Project Folder is not a valid path.";
-            wizardDescriptor.putProperty("WizardPanel_errorMessage", message);
+            wizardDescriptor.putProperty(WizardDescriptor.PROP_ERROR_MESSAGE, message);
             return false;
             return false;
         }
         }
 
 
         File[] kids = destFolder.listFiles();
         File[] kids = destFolder.listFiles();
         if (destFolder.exists() && kids != null && kids.length > 0) {
         if (destFolder.exists() && kids != null && kids.length > 0) {
             // Folder exists and is not empty
             // Folder exists and is not empty
-            wizardDescriptor.putProperty("WizardPanel_errorMessage",
+            wizardDescriptor.putProperty(WizardDescriptor.PROP_ERROR_MESSAGE,
                     "Project Folder already exists and is not empty.");
                     "Project Folder already exists and is not empty.");
             return false;
             return false;
         }
         }
-        wizardDescriptor.putProperty("WizardPanel_errorMessage", "");
+        wizardDescriptor.putProperty(WizardDescriptor.PROP_ERROR_MESSAGE, "");
         return true;
         return true;
     }
     }
 
 

+ 2 - 3
jme3-tests-template/src/com/jme3/gde/templates/tests/testsandroid/JME3TestsAndroidWizardIterator.java

@@ -133,10 +133,9 @@ public class JME3TestsAndroidWizardIterator implements WizardDescriptor./*Progre
             if (c instanceof JComponent) { // assume Swing components
             if (c instanceof JComponent) { // assume Swing components
                 JComponent jc = (JComponent) c;
                 JComponent jc = (JComponent) c;
                 // Step #.
                 // Step #.
-                // TODO if using org.openide.dialogs >= 7.8, can use WizardDescriptor.PROP_*:
-                jc.putClientProperty("WizardPanel_contentSelectedIndex", i);
+                jc.putClientProperty(WizardDescriptor.PROP_CONTENT_SELECTED_INDEX, i);
                 // Step name (actually the whole list for reference).
                 // Step name (actually the whole list for reference).
-                jc.putClientProperty("WizardPanel_contentData", steps);
+                jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DATA, steps);
             }
             }
         }
         }
     }
     }

+ 6 - 7
jme3-tests-template/src/com/jme3/gde/templates/tests/testsdesktop/JmeTestsPanelVisual.java

@@ -148,15 +148,14 @@ public class JmeTestsPanelVisual extends JPanel implements DocumentListener {
     boolean valid(WizardDescriptor wizardDescriptor) {
     boolean valid(WizardDescriptor wizardDescriptor) {
 
 
         if (projectNameTextField.getText().length() == 0) {
         if (projectNameTextField.getText().length() == 0) {
-            // TODO if using org.openide.dialogs >= 7.8, can use WizardDescriptor.PROP_ERROR_MESSAGE:
-            wizardDescriptor.putProperty("WizardPanel_errorMessage",
+            wizardDescriptor.putProperty(WizardDescriptor.PROP_ERROR_MESSAGE,
                     "Project Name is not a valid folder name.");
                     "Project Name is not a valid folder name.");
             return false; // Display name not specified
             return false; // Display name not specified
         }
         }
         File f = FileUtil.normalizeFile(new File(projectLocationTextField.getText()).getAbsoluteFile());
         File f = FileUtil.normalizeFile(new File(projectLocationTextField.getText()).getAbsoluteFile());
         if (!f.isDirectory()) {
         if (!f.isDirectory()) {
             String message = "Project Folder is not a valid path.";
             String message = "Project Folder is not a valid path.";
-            wizardDescriptor.putProperty("WizardPanel_errorMessage", message);
+            wizardDescriptor.putProperty(WizardDescriptor.PROP_ERROR_MESSAGE, message);
             return false;
             return false;
         }
         }
         final File destFolder = FileUtil.normalizeFile(new File(createdFolderTextField.getText()).getAbsoluteFile());
         final File destFolder = FileUtil.normalizeFile(new File(createdFolderTextField.getText()).getAbsoluteFile());
@@ -166,25 +165,25 @@ public class JmeTestsPanelVisual extends JPanel implements DocumentListener {
             projLoc = projLoc.getParentFile();
             projLoc = projLoc.getParentFile();
         }
         }
         if (projLoc == null || !projLoc.canWrite()) {
         if (projLoc == null || !projLoc.canWrite()) {
-            wizardDescriptor.putProperty("WizardPanel_errorMessage",
+            wizardDescriptor.putProperty(WizardDescriptor.PROP_ERROR_MESSAGE,
                     "Project Folder cannot be created.");
                     "Project Folder cannot be created.");
             return false;
             return false;
         }
         }
 
 
         if (FileUtil.toFileObject(projLoc) == null) {
         if (FileUtil.toFileObject(projLoc) == null) {
             String message = "Project Folder is not a valid path.";
             String message = "Project Folder is not a valid path.";
-            wizardDescriptor.putProperty("WizardPanel_errorMessage", message);
+            wizardDescriptor.putProperty(WizardDescriptor.PROP_ERROR_MESSAGE, message);
             return false;
             return false;
         }
         }
 
 
         File[] kids = destFolder.listFiles();
         File[] kids = destFolder.listFiles();
         if (destFolder.exists() && kids != null && kids.length > 0) {
         if (destFolder.exists() && kids != null && kids.length > 0) {
             // Folder exists and is not empty
             // Folder exists and is not empty
-            wizardDescriptor.putProperty("WizardPanel_errorMessage",
+            wizardDescriptor.putProperty(WizardDescriptor.PROP_ERROR_MESSAGE,
                     "Project Folder already exists and is not empty.");
                     "Project Folder already exists and is not empty.");
             return false;
             return false;
         }
         }
-        wizardDescriptor.putProperty("WizardPanel_errorMessage", "");
+        wizardDescriptor.putProperty(WizardDescriptor.PROP_ERROR_MESSAGE, "");
         return true;
         return true;
     }
     }
 
 

+ 2 - 3
jme3-tests-template/src/com/jme3/gde/templates/tests/testsdesktop/JmeTestsWizardIterator.java

@@ -106,10 +106,9 @@ public class JmeTestsWizardIterator implements WizardDescriptor./*Progress*/Inst
             if (c instanceof JComponent) { // assume Swing components
             if (c instanceof JComponent) { // assume Swing components
                 JComponent jc = (JComponent) c;
                 JComponent jc = (JComponent) c;
                 // Step #.
                 // Step #.
-                // TODO if using org.openide.dialogs >= 7.8, can use WizardDescriptor.PROP_*:
-                jc.putClientProperty("WizardPanel_contentSelectedIndex", i);
+                jc.putClientProperty(WizardDescriptor.PROP_CONTENT_SELECTED_INDEX, i);
                 // Step name (actually the whole list for reference).
                 // Step name (actually the whole list for reference).
-                jc.putClientProperty("WizardPanel_contentData", steps);
+                jc.putClientProperty(WizardDescriptor.PROP_CONTENT_DATA, steps);
             }
             }
         }
         }
     }
     }