From d73bb42d518cdb227e1ccec9b65674aaae81a85a Mon Sep 17 00:00:00 2001 From: Bill Kuker Date: Thu, 2 Dec 2010 01:58:04 +0000 Subject: [PATCH] Make BurnSettings to the changelistener thing --- src/com/billkuker/rocketry/motorsim/Burn.java | 8 ++++++-- src/com/billkuker/rocketry/motorsim/ChangeListening.aj | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/com/billkuker/rocketry/motorsim/Burn.java b/src/com/billkuker/rocketry/motorsim/Burn.java index a3c5ee1..771e715 100644 --- a/src/com/billkuker/rocketry/motorsim/Burn.java +++ b/src/com/billkuker/rocketry/motorsim/Burn.java @@ -32,6 +32,11 @@ import com.billkuker.rocketry.motorsim.Validating.ValidationException; public class Burn { private static Logger log = Logger.getLogger(Burn.class); + private static final BurnSettings settings = new BurnSettings(); + public static final BurnSettings getBurnSettings(){ + return settings; + } + /** * A class representing all the settigns one can change on a burn * @author bkuker @@ -93,8 +98,7 @@ public class Burn { } - - public static final BurnSettings settings = new BurnSettings(); + private Set bpls = new HashSet(); diff --git a/src/com/billkuker/rocketry/motorsim/ChangeListening.aj b/src/com/billkuker/rocketry/motorsim/ChangeListening.aj index 8eb7de2..0821282 100644 --- a/src/com/billkuker/rocketry/motorsim/ChangeListening.aj +++ b/src/com/billkuker/rocketry/motorsim/ChangeListening.aj @@ -28,7 +28,7 @@ public aspect ChangeListening { pcs.firePropertyChange(e); } - declare parents: Motor || Grain || Chamber || Nozzle || Fuel implements Subject; + declare parents: Motor || Grain || Chamber || Nozzle || Fuel || Burn.BurnSettings implements Subject; void around(Subject s, Object newVal): execution(void Subject+.set*(..)) && target(s) && args(newVal) { -- 2.47.2