コード例 #1
0
 @Override
 public StringBuilder save() {
   StringBuilder sb = super.save();
   dictionaryModel.getDictionary().add(DATA_KEY, sb.toString());
   dictionaryModel.getDictionary().remove(FILE_NAME_KEY);
   return sb;
 }
コード例 #2
0
 @Override
 public void load() {
   clear();
   Dictionary dict = dictionaryModel.getDictionary();
   if (dict.found(DATA_KEY)) {
     if (dict.isList2(DATA_KEY)) {
       // Fix for alpha1 which is read with DictionaryReader2
       loadTable(ListField2.convertToString(dict.getList2(DATA_KEY)));
     } else {
       loadTable(dict.lookup(DATA_KEY).trim());
     }
   }
 }