diff options
| author | Paul Buetow <paul@buetow.org> | 2009-01-27 23:04:44 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2009-01-27 23:04:44 +0000 |
| commit | aaddfbb50b7c7701a47362b8788eb9dfa9fe2be7 (patch) | |
| tree | 1d8b4a384b9953c914b86728b79b2350645672ac /sources/events/VSAbstractEvent.java | |
| parent | 245e4e67d83b5461e66b22150d163f1c0155a217 (diff) | |
on the good way making english language support working
Diffstat (limited to 'sources/events/VSAbstractEvent.java')
| -rw-r--r-- | sources/events/VSAbstractEvent.java | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/sources/events/VSAbstractEvent.java b/sources/events/VSAbstractEvent.java index a9399eb..ac9a61f 100644 --- a/sources/events/VSAbstractEvent.java +++ b/sources/events/VSAbstractEvent.java @@ -1,5 +1,6 @@ /* - * Copyright (c) 2008 Paul C. Buetow, vs@dev.buetow.org + * VS-Simulator (http://vs-sim.buetow.org) + * Copyright (c) 2008 - 2009 by Dipl.-Inform. (FH) Paul C. Buetow * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -30,7 +31,6 @@ import core.VSInternalProcess; import exceptions.*; import prefs.*; import serialize.*; -//import utils.*; /** * The class VSAbstractEvent. This abstract class defines the basic framework @@ -202,6 +202,15 @@ abstract public class VSAbstractEvent extends VSSerializablePrefs { */ abstract public void onStart(); + /** + * Every event has to be able to set its own shortname + * + * @param shortName The saved short name. May be overwritten due wrong lang + * + * @return The event's shortname + */ + abstract protected String createShortname(String savedShortname); + /* (non-Javadoc) * @see serialize.VSSerializable#serialize(serialize.VSSerialize, * java.io.ObjectOutputStream) @@ -242,8 +251,9 @@ abstract public class VSAbstractEvent extends VSSerializablePrefs { objectInputStream.readObject(); int id = ((Integer) objectInputStream.readObject()).intValue(); - this.eventShortname = (String) objectInputStream.readObject(); + String savedEventShortname = (String) objectInputStream.readObject(); this.eventClassname = (String) objectInputStream.readObject(); + this.eventShortname = createShortname(savedEventShortname); if (VSSerialize.DEBUG) System.out.println(eventClassname); |
