summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2008-06-14 01:11:32 +0000
committerPaul Buetow <paul@buetow.org>2008-06-14 01:11:32 +0000
commitfaaadb9c546e376dd8e8dd6553017d334aa0e0c4 (patch)
treed72554c8e819b6e860ff3a046bd7e31c6ee4107f
parent044b410cde94862687b05f3b820676a65b1ea9d7 (diff)
foo
-rw-r--r--sources/prefs/VSDefaultPrefs.java17
-rw-r--r--sources/prefs/VSPrefs.java6
-rw-r--r--sources/prefs/editors/VSAbstractEditor.java11
3 files changed, 21 insertions, 13 deletions
diff --git a/sources/prefs/VSDefaultPrefs.java b/sources/prefs/VSDefaultPrefs.java
index c2f807f..988aad8 100644
--- a/sources/prefs/VSDefaultPrefs.java
+++ b/sources/prefs/VSDefaultPrefs.java
@@ -116,7 +116,7 @@ public class VSDefaultPrefs extends VSPrefs {
initString("lang.prefs.info!", "Prozessvariablen können für jeden Prozess einzelnd eingestellt werden. Die hier gezeigen Prozessvariablen sind lediglich die globalen Defaultwerte, die für neue Prozesse verwendet werden!");
initString("lang.prefs.message", "Nachrichteneinstellungen");
initString("lang.prefs.message.defaults", "Nachrichteneinstellungen für neue Prozesse");
- initString("lang.prefs.process.defaults", "Prozesseinstellungen für neue Prozesse");
+ initString("lang.prefs.process.defaults", "Einstellungen für neue Prozesse");
initString("lang.prefs.more", "Mehr Einstellungen");
initString("lang.prefs.process", "Prozesseinstellungen");
initString("lang.prefs.process", "Prozessstandardeinstellungen");
@@ -152,13 +152,12 @@ public class VSDefaultPrefs extends VSPrefs {
initString("lang.saveas", "Speichern unter");
initString("lang.server", "Server");
initString("lang.simulator", "Simulator");
- initString("lang.simulator.close", "Simulator schliessen");
- initString("lang.simulator.finished", "Simulator beendet");
- initString("lang.simulator.new", "Neue Simulator");
- initString("lang.simulator.new", "Neue Simulator");
- initString("lang.simulator.paused", "Simulator pausiert");
- initString("lang.simulator.resetted", "Simulator zurückgesetzt");
- initString("lang.simulator.started", "Simulator gestartet");
+ initString("lang.simulator.close", "Simulation schliessen");
+ initString("lang.simulator.finished", "Simulation beendet");
+ initString("lang.simulator.new", "Neue Simulation");
+ initString("lang.simulator.paused", "Simulation pausiert");
+ initString("lang.simulator.resetted", "Simulation zurückgesetzt");
+ initString("lang.simulator.started", "Simulation gestartet");
initString("lang.start", "Starten");
initString("lang.stop", "Stoppen");
initString("lang.takeover", "Übernehmen");
@@ -189,7 +188,7 @@ public class VSDefaultPrefs extends VSPrefs {
initInteger("sim.process.num", 3, "Anzahl der Prozesse", 1, 6);
initInteger("message.prob.outage", 0, "Nachrichtenverlustw'keit", 0, 100, "%");
initInteger("process.prob.crash", 0, "Prozessausfallw'keit", 0, 100, "%");
- initInteger("sim.seconds", 15, "Simulatorsdauer", 5, 120, "s");
+ initInteger("sim.seconds", 15, "Dauer der Simulation", 5, 120, "s");
/* Internal prefs */
initInteger("keyevent.about", KeyEvent.VK_A, null, 0, 100);
diff --git a/sources/prefs/VSPrefs.java b/sources/prefs/VSPrefs.java
index b6b8f42..413bc46 100644
--- a/sources/prefs/VSPrefs.java
+++ b/sources/prefs/VSPrefs.java
@@ -153,7 +153,7 @@ public class VSPrefs implements VSSerializable {
* @param unit the unit
*/
public synchronized void initUnit(String key, String unit) {
- if (unit == null || units.containsKey(key))
+ if (unit == null /*|| units.containsKey(key)*/)
return;
units.put(key, unit);
}
@@ -166,7 +166,7 @@ public class VSPrefs implements VSSerializable {
* @param descr the descr
*/
public synchronized void initDescription(String key, String descr) {
- if (descr == null || descriptionPrefs.containsKey(key))
+ if (descr == null /*|| descriptionPrefs.containsKey(key)*/)
return;
descriptionPrefs.put(key, descr);
}
@@ -884,7 +884,7 @@ public class VSPrefs implements VSSerializable {
* @param val the val
*/
public synchronized void initString(String key, String val) {
- if (!stringPrefs.containsKey(key))
+ //if (!stringPrefs.containsKey(key))
stringPrefs.put(key, val);
}
diff --git a/sources/prefs/editors/VSAbstractEditor.java b/sources/prefs/editors/VSAbstractEditor.java
index a3f5fe3..fe0e7e4 100644
--- a/sources/prefs/editors/VSAbstractEditor.java
+++ b/sources/prefs/editors/VSAbstractEditor.java
@@ -233,6 +233,7 @@ public abstract class VSAbstractEditor implements ActionListener {
booleanKeys = filterKeys(prefsToEdit.getBooleanKeySet());
stringKeys = filterKeys(prefsToEdit.getStringKeySet());
+ fillEditPanelFront(prefsToEdit);
fillEditPanel(prefsToEdit);
}
@@ -538,6 +539,14 @@ public abstract class VSAbstractEditor implements ActionListener {
}
/**
+ * Fills the edit panel at the front. May be overloaded by another class.
+ *
+ * @param prefsToEdit the prefs to edit
+ */
+ protected void fillEditPanelFront(VSPrefs prefsToEdit) {
+ }
+
+ /**
* Fills the edit panel.
*
* @param prefsToEdit the prefs to edit
@@ -805,7 +814,7 @@ public abstract class VSAbstractEditor implements ActionListener {
*
* @param label the label
*/
- private void addSeparator(String label) {
+ protected void addSeparator(String label) {
editTable.addSeparator(label);
}