X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fnet%2Fsf%2Fopenrocket%2Frocketcomponent%2FExternalComponent.java;h=64c1a50ec095509c5348f648ace514f3677c253a;hb=bf771f9d4b5215b0036435eb19fc8c813f87c79d;hp=0f19b43057a2596f1a9cad8ecff84f31a2640e98;hpb=493c32a7f337bef1f19e1629c99a70a55af8a61a;p=debian%2Fopenrocket diff --git a/src/net/sf/openrocket/rocketcomponent/ExternalComponent.java b/src/net/sf/openrocket/rocketcomponent/ExternalComponent.java index 0f19b430..64c1a50e 100644 --- a/src/net/sf/openrocket/rocketcomponent/ExternalComponent.java +++ b/src/net/sf/openrocket/rocketcomponent/ExternalComponent.java @@ -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 */ @@ -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 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); - } - }