diff options
| author | Paul Buetow <paul@buetow.org> | 2008-05-31 02:24:26 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2008-05-31 02:24:26 +0000 |
| commit | 2b4c9a57ba522cd8dd01dc1f1d2761b66f97e4f2 (patch) | |
| tree | 97350ff115f7a3751e028c4959256b7a3627c1fe /sources/events/VSAbstractEvent.java | |
| parent | 5a41d318c3460beaaeed9d44a1aa3c376956f7b2 (diff) | |
more elegant way to remove not relevantmessages.
Diffstat (limited to 'sources/events/VSAbstractEvent.java')
| -rw-r--r-- | sources/events/VSAbstractEvent.java | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/sources/events/VSAbstractEvent.java b/sources/events/VSAbstractEvent.java index 146c428..15b742f 100644 --- a/sources/events/VSAbstractEvent.java +++ b/sources/events/VSAbstractEvent.java @@ -55,10 +55,11 @@ abstract public class VSAbstractEvent extends VSPrefs { * @param process the process */ public void init(VSProcess process) { - this.process = process; - this.prefs = process.getPrefs(); - - init(); + if (this.process == null) { + this.process = process; + this.prefs = process.getPrefs(); + init(); + } } /** @@ -157,9 +158,6 @@ abstract public class VSAbstractEvent extends VSPrefs { /** * Every event can get started. This method get's executed if the event * takes place. - * - * @return false, if a message has been delivered but is not relevant and - * can get removed from the simulator canvas paint area. true otherwise. */ - abstract public boolean onStart(); + abstract public void onStart(); } |
