Package org.olat.core.gui.control.generic.textmarker

Examples of org.olat.core.gui.control.generic.textmarker.TextMarkerManager


  protected void upgradeAndDeleteOldGlossary(VFSContainer folderContainingGlossary, VFSLeaf textMarkerFile) {
    // check if a new glossary exists, warn
    if (folderContainingGlossary.resolve(GLOSSARY_FILENAME) != null) {
      logError("Upgrading Glossary in " + folderContainingGlossary.toString() + ": There is already a new glossary-file. There can't be an old and a new version in the same directory!", null);
    } else { // upgrade it
      TextMarkerManager textMarkerManager = TextMarkerManagerImpl.getInstance();
      List<TextMarker> textMarkerList = textMarkerManager.loadTextMarkerList(textMarkerFile);
      Collections.sort(textMarkerList);
      ArrayList<GlossaryItem> glossaryItemArr = new ArrayList<GlossaryItem>();

      for (TextMarker tm : textMarkerList) {
        String glossTerm = tm.getMarkedMainText();
View Full Code Here

TOP

Related Classes of org.olat.core.gui.control.generic.textmarker.TextMarkerManager

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.