New prefs landing

git-svn-id: svn://10.0.0.236/trunk@35428 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
edwin%woudt.nl
1999-06-15 11:44:40 +00:00
parent f959eb5d1b
commit 875ea9b499
49 changed files with 2272 additions and 561 deletions

View File

@@ -29,9 +29,7 @@ import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.*;
import calypso.util.Preferences;
import calypso.util.PreferencesFactory;
import grendel.prefs.base.IdentityArray;
import grendel.ui.ActionFactory;
public class OptionsPanel extends JPanel implements Serializable {
@@ -94,11 +92,10 @@ public class OptionsPanel extends JPanel implements Serializable {
ident = new LabeledCombo("Identity");
// Read all the different identities from the preferences file
Preferences prefs = PreferencesFactory.Get();
int numIdentities = prefs.getInt("mail.identities", 1);
for (int i=0; i<numIdentities; i++) {
ident.addPossibleValue(prefs.getString("mail.identity.description."+ i, "(no description available)"));
// Read all the different identities from the preferences file
IdentityArray ia = IdentityArray.GetMaster();
for (int i=0; i<ia.size(); i++) {
ident.addPossibleValue(ia.get(i).getDescription());
}
// Select the default identity
ident.setSelectedIndex(ActionFactory.getIdent());