unified the dictionary settings - all in DictionarySettings now, will add synchronization soon for potential delayed loading
This commit is contained in:
parent
de3e9a1dd0
commit
f0576e5c94
5 changed files with 56 additions and 55 deletions
|
@ -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 ) ;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue