Ver Fonte

Added all the common methods to the interface

Toni Helenius há 2 anos atrás
pai
commit
7c8efbdc89

+ 2 - 10
jme3-templates/src/com/jme3/gde/templates/gradledesktop/options/AdditionalLibrary.java

@@ -162,20 +162,12 @@ public enum AdditionalLibrary implements TemplateLibrary {
         this.isCoreJmeLibrary = isCoreJmeLibrary;
     }
 
-    /**
-     * Get the label for this Additional Library.
-     *
-     * @return the label for this Additional Library.
-     */
+    @Override
     public String getLabel() {
         return label;
     }
 
-    /**
-     * Get the long description for this Additional Library.
-     *
-     * @return the long description for this Additional Library.
-     */
+    @Override
     public String getDescription() {
         return description;
     }

+ 2 - 10
jme3-templates/src/com/jme3/gde/templates/gradledesktop/options/GUILibrary.java

@@ -127,20 +127,12 @@ public enum GUILibrary implements TemplateLibrary {
         this.isCoreJmeLibrary = isCoreJmeLibrary;
     }
 
-    /**
-     * Get the label for this GUI Library.
-     *
-     * @return the label for this GUI Library.
-     */
+    @Override
     public String getLabel() {
         return label;
     }
 
-    /**
-     * Get the long description for this GUI Library.
-     *
-     * @return the long description for this GUI Library.
-     */
+    @Override
     public String getDescription() {
         return description;
     }

+ 2 - 10
jme3-templates/src/com/jme3/gde/templates/gradledesktop/options/NetworkingLibrary.java

@@ -130,20 +130,12 @@ public enum NetworkingLibrary implements TemplateLibrary {
         this.isCoreJmeLibrary = isCoreJmeLibrary;
     }
 
-    /**
-     * Get the label for this Networking Library.
-     *
-     * @return the label for this Networking Library.
-     */
+    @Override
     public String getLabel() {
         return label;
     }
 
-    /**
-     * Get the long description for this Networking Library.
-     *
-     * @return the long description for this Networking Library.
-     */
+    @Override
     public String getDescription() {
         return description;
     }

+ 2 - 10
jme3-templates/src/com/jme3/gde/templates/gradledesktop/options/PhysicsLibrary.java

@@ -126,20 +126,12 @@ public enum PhysicsLibrary implements TemplateLibrary {
         this.isCoreJmeLibrary = isCoreJmeLibrary;
     }
 
-    /**
-     * Get the label for this Physics Library.
-     *
-     * @return the label for this Physics Library.
-     */
+    @Override
     public String getLabel() {
         return label;
     }
 
-    /**
-     * Get the long description for this Physics Library.
-     *
-     * @return the long description for this Physics Library.
-     */
+    @Override
     public String getDescription() {
         return description;
     }

+ 14 - 0
jme3-templates/src/com/jme3/gde/templates/gradledesktop/options/TemplateLibrary.java

@@ -36,6 +36,20 @@ package com.jme3.gde.templates.gradledesktop.options;
  */
 public interface TemplateLibrary extends MavenArtifact {
 
+    /**
+     * Get the label for this library.
+     *
+     * @return the label for this library.
+     */
+    public String getLabel();
+
+    /**
+     * Get the long description for this library.
+     *
+     * @return the long description for this library.
+     */
+    public String getDescription();
+
     /**
      * Is this a Core jMonkeyEngine library?
      *