unified the dictionary settings - all in DictionarySettings now, will add synchronization soon for potential delayed loading

This commit is contained in:
micha3lp 2006-08-29 04:31:20 +00:00
parent de3e9a1dd0
commit f0576e5c94
5 changed files with 56 additions and 55 deletions

View file

@ -80,9 +80,10 @@ public class PreferenceWindow implements ActionListener, ItemListener
GraphicsEnvironment genv = GraphicsEnvironment.getLocalGraphicsEnvironment();
String[] fontNames = genv.getAvailableFontFamilyNames();
valDictionaryEnabled = dp.getDictionarySettingsEnabled () ;
valDictionaryLocal = dp.getDictionarySettingsLocal () ;
valDictionaryPath = dp.getDictionarySettingsPath () ;
DictionarySettings ds = dp.getDictionarySettings () ;
valDictionaryEnabled = ds.isEnabled () ;
valDictionaryLocal = ds.isLocal () ;
valDictionaryPath = ds.getPathOrUrl () ;
JPanel tibetanPanel;
@ -355,9 +356,10 @@ public class PreferenceWindow implements ActionListener, ItemListener
/** This returns only when the user has closed the dialog */
public void show()
{
valDictionaryEnabled = dp.getDictionarySettingsEnabled () ;
valDictionaryLocal = dp.getDictionarySettingsLocal () ;
valDictionaryPath = dp.getDictionarySettingsPath () ;
DictionarySettings ds = dp.getDictionarySettings () ;
valDictionaryEnabled = ds.isEnabled () ;
valDictionaryLocal = ds.isLocal () ;
valDictionaryPath = ds.getPathOrUrl () ;
updateDictionaryGui () ;
pane.setOptionType ( JOptionPane.OK_CANCEL_OPTION ) ;