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
|
@ -14,10 +14,10 @@ public class DictionarySettings
|
|||
|
||||
public DictionarySettings ()
|
||||
{
|
||||
boolean dictionaryValid = false ;
|
||||
boolean dictionaryEnabled = false ;
|
||||
boolean dictionaryLocal = false ;
|
||||
String dictionaryPath = "" ;
|
||||
dictionaryValid = false ;
|
||||
dictionaryEnabled = false ;
|
||||
dictionaryLocal = false ;
|
||||
dictionaryPath = "" ;
|
||||
}
|
||||
|
||||
public DictionarySettings ( boolean valid, boolean enabled, boolean local, String pathOrUrl )
|
||||
|
@ -36,6 +36,14 @@ public class DictionarySettings
|
|||
dictionaryPath = pathOrUrl ;
|
||||
}
|
||||
|
||||
public static DictionarySettings cloneDs ( DictionarySettings ds )
|
||||
{
|
||||
return new DictionarySettings ( ds.dictionaryValid,
|
||||
ds.dictionaryEnabled,
|
||||
ds.dictionaryLocal,
|
||||
ds.dictionaryPath ) ;
|
||||
}
|
||||
|
||||
public boolean equal ( DictionarySettings ds )
|
||||
{
|
||||
return ( ds.isEnabled () == this.isEnabled () &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue