summaryrefslogtreecommitdiff
path: root/sources/core/VSProcess.java
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2008-06-02 01:43:11 +0000
committerPaul Buetow <paul@buetow.org>2008-06-02 01:43:11 +0000
commit16200e39c38ed76ddac954c7e005a22b6233c642 (patch)
treef4703e6359da7fbc3d5ca97e7427556777839b39 /sources/core/VSProcess.java
parent378c2674fc704b2a6bbf0e6a01b721a7aea7c2e2 (diff)
foo
Diffstat (limited to 'sources/core/VSProcess.java')
-rw-r--r--sources/core/VSProcess.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/sources/core/VSProcess.java b/sources/core/VSProcess.java
index 1b88fc0..7c4ac41 100644
--- a/sources/core/VSProcess.java
+++ b/sources/core/VSProcess.java
@@ -280,7 +280,7 @@ public class VSProcess extends VSPrefs implements VSSerializable {
* Called from the VSProcessEditor, after finishing editing! This makes
* sure that the VSProcess object is using the up to date prefs!
*/
- public synchronized void updateFromVSPrefs() {
+ public synchronized void updateFromPrefs() {
setClockVariance(getFloat("process.clock.variance"));
setLocalTime(getLong("process.localtime"));
crashedColor = getColor("col.process.crashed");
@@ -1019,6 +1019,12 @@ public class VSProcess extends VSPrefs implements VSSerializable {
ObjectOutputStream objectOutputStream)
throws IOException {
super.serialize(serialize, objectOutputStream);
+
+ if (VSSerialize.DEBUG)
+ System.out.println("Serializing: VSProcess (num: " + processNum
+ + "; id: " + processID + ")");
+
+ objectOutputStream.writeObject(new Integer(processID));
objectOutputStream.writeObject(new Integer(protocolsToReset.size()));
for (VSAbstractProtocol protocol : protocolsToReset) {
objectOutputStream.writeObject(protocol.getClassname());
@@ -1035,10 +1041,13 @@ public class VSProcess extends VSPrefs implements VSSerializable {
ObjectInputStream objectInputStream)
throws IOException, ClassNotFoundException {
super.deserialize(serialize, objectInputStream);
+ updateFromPrefs();
if (VSSerialize.DEBUG)
System.out.println("Deserializing: VSProcess");
+ this.processID = ((Integer)
+ objectInputStream.readObject()).intValue();
int numProtocols = ((Integer)
objectInputStream.readObject()).intValue();