Package net.sf.gluebooster.java.booster.essentials.demo

Examples of net.sf.gluebooster.java.booster.essentials.demo.LanguagesDemo



  private void displaySaveVocabulary(DefaultTableModel vocabularyTable)
      throws Exception {
    if (vocabularyTable != null){
      LanguagesDemo languages = new LanguagesDemo();
      String result = languages.toCSVString(vocabularyTable);
      gui.setVocabularyText(result);
      File resultFile = SwingBoostUtils.chooseFile("Result file", false);
      // File resultFile = new File("c:/temp/vok2.wiki");
      if (resultFile != null) {
        if (resultFile.getName().contains(".ods")) {
View Full Code Here


    else if (gui.getConfiguration()
        .getString(LanguagesBasicDemoConstants.VALUE_CHINESETEXT) == null)
      System.out.println("chineseText == null");
    else { // Run

      LanguagesDemo languages = new LanguagesDemo();
      DefaultTableModel vocabularyTable = languages
          .createChineseVocabulary(
              getConfigurationFile(LanguagesBasicDemoConstants.VALUE_CHINESEFRENCHEDICT),
              getConfigurationFile(LanguagesBasicDemoConstants.VALUE_CHINESEGERMANEDICT),
              getConfigurationFile(LanguagesBasicDemoConstants.VALUE_CHARACTERCOMPONENTS),
              gui.getChineseTextContent(),
View Full Code Here

    if (gui.getConfiguration()
        .getString(LanguagesBasicDemoConstants.VALUE_CHINESEGERMANEDICT) == null)
      System.out.println("chineseGermanEdict == null");
    else { // Run

      LanguagesDemo languages = new LanguagesDemo();
      Map<String, Map<String, String>> chineseGerman = languages
          .getVocabulary(IoBoostUtils.getUtf8Reader(
                  gui.getConfiguration()
                  .getString(LanguagesBasicDemoConstants.VALUE_CHINESEGERMANEDICT),
              false));
      DefaultTableModel vocabularyTable = languages
          .findAdditionalVocabulary(vocabulary, chineseGerman);

      return vocabularyTable;
    }
View Full Code Here

TOP

Related Classes of net.sf.gluebooster.java.booster.essentials.demo.LanguagesDemo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.