From ce4b28ff4047fa50974c3c3d2e370db60a2b3553 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 27 May 2008 18:04:53 +0000 Subject: Pull down menu now sorted by protocol's shortnames --- sources/prefs/VSDefaultPrefs.java | 2 +- sources/prefs/editors/VSAbstractEditor.java | 8 -------- sources/prefs/editors/VSProcessEditor.java | 2 +- 3 files changed, 2 insertions(+), 10 deletions(-) (limited to 'sources/prefs') diff --git a/sources/prefs/VSDefaultPrefs.java b/sources/prefs/VSDefaultPrefs.java index 0de1680..c5951ff 100644 --- a/sources/prefs/VSDefaultPrefs.java +++ b/sources/prefs/VSDefaultPrefs.java @@ -110,7 +110,7 @@ public class VSDefaultPrefs extends VSPrefs { initString("lang.recovered", "Wiederbelebt"); initString("lang.remove", "Entfernen"); initString("lang.replay", "Wiederholen"); - initString("lang.requests", "Anfragen"); + //initString("lang.requests", "Anfragen"); initString("lang.reset", "Reset"); initString("lang.save", "Speichern"); initString("lang.saveas", "Speichern unter"); diff --git a/sources/prefs/editors/VSAbstractEditor.java b/sources/prefs/editors/VSAbstractEditor.java index 1b6351c..934fa2e 100644 --- a/sources/prefs/editors/VSAbstractEditor.java +++ b/sources/prefs/editors/VSAbstractEditor.java @@ -667,14 +667,6 @@ public abstract class VSAbstractEditor implements ActionListener { fullKeys.addAll(filterOut(prefsToAdd.getBooleanKeySet(), addOnlyThisVariables, VSPrefs.BOOLEAN_PREFIX)); fullKeys.addAll(filterOut(prefsToAdd.getStringKeySet(), addOnlyThisVariables, VSPrefs.STRING_PREFIX)); - /* - for (String key : integerKeys) fullKeys.add(VSPrefs.INTEGER_PREFIX + key); - for (String key : vectorKeys) fullKeys.add(VSPrefs.VECTOR_PREFIX + key); - for (String key : floatKeys) fullKeys.add(VSPrefs.FLOAT_PREFIX + key); - for (String key : longKeys) fullKeys.add(VSPrefs.LONG_PREFIX + key); - for (String key : booleanKeys) fullKeys.add(VSPrefs.BOOLEAN_PREFIX + key); - for (String key : stringKeys) fullKeys.add(VSPrefs.STRING_PREFIX + key); - */ Collections.sort(fullKeys); for (String fullKey : fullKeys) { diff --git a/sources/prefs/editors/VSProcessEditor.java b/sources/prefs/editors/VSProcessEditor.java index 1992d6c..bb09b0d 100644 --- a/sources/prefs/editors/VSProcessEditor.java +++ b/sources/prefs/editors/VSProcessEditor.java @@ -61,7 +61,7 @@ public class VSProcessEditor extends VSAbstractBetterEditor { String serverString = " " + prefs.getString("lang.server"); for (String protocolClassname : editableProtocolsClassnames) { - String protocolShortname = VSRegisteredEvents.getShortname(protocolClassname); + String protocolShortname = VSRegisteredEvents.getShortnameByClassname(protocolClassname); VSAbstractProtocol protocol = process.getProtocolObject(protocolClassname); protocol.onClientInit(); protocol.onServerInit(); -- cgit v1.2.3