updates for 0.9.4
[debian/openrocket] / src / net / sf / openrocket / rocketcomponent / ComponentChangeEvent.java
index 5e7fea0763dbc18ae33432174f87a315d61da7d1..58d3297b5cee3b1be392bf110e62b93d5fe8f259 100644 (file)
@@ -39,6 +39,15 @@ public class ComponentChangeEvent extends ChangeEvent {
        }
        
        
+       /**
+        * Return the source component of this event as specified in the constructor.
+        */
+       @Override
+       public RocketComponent getSource() {
+               return (RocketComponent) super.getSource();
+       }
+
+
        public boolean isAerodynamicChange() {
                return (type & AERODYNAMIC_CHANGE) != 0;
        }