language selector, bug fixed
[debian/openrocket] / src / net / sf / openrocket / rocketcomponent / ExternalComponent.java
index 0f19b43057a2596f1a9cad8ecff84f31a2640e98..64c1a50ec095509c5348f648ace514f3677c253a 100644 (file)
@@ -10,9 +10,9 @@ import net.sf.openrocket.util.Prefs;
 
 /**
  * Class of components with well-defined physical appearance and which have an effect on
- * aerodynamic simulation.  They have material defined for them, and the mass of the component 
+ * aerodynamic simulation.  They have material defined for them, and the mass of the component
  * is calculated using the component's volume.
- * 
+ *
  * @author Sampo Niskanen <sampo.niskanen@iki.fi>
  */
 
@@ -30,6 +30,7 @@ public abstract class ExternalComponent extends RocketComponent {
                //// Polished
                POLISHED("ExternalComponent.Polished", 2e-6);
                
+               private static final Translator trans = Application.getTranslator();
                private final String name;
                private final double roughnessSize;
                
@@ -44,7 +45,6 @@ public abstract class ExternalComponent extends RocketComponent {
                
                @Override
                public String toString() {
-                       final Translator trans = Application.getTranslator();
                        return trans.get(name) + " (" + UnitGroup.UNITS_ROUGHNESS.toStringUnit(roughnessSize) + ")";
                }
        }
@@ -126,7 +126,6 @@ public abstract class ExternalComponent extends RocketComponent {
        }
        
        
-
        @Override
        protected List<RocketComponent> copyFrom(RocketComponent c) {
                ExternalComponent src = (ExternalComponent) c;
@@ -135,14 +134,4 @@ public abstract class ExternalComponent extends RocketComponent {
                return super.copyFrom(c);
        }
        
-    /**
-     * Accept a visitor to this ExternalComponent in the component hierarchy.
-     * 
-     * @param theVisitor  the visitor that will be called back with a reference to this ExternalComponent
-     */
-    @Override 
-    public void accept (final ComponentVisitor theVisitor) {
-        theVisitor.visit(this);
-    }
-    
 }