public PositionSetReadOnly getPositions(I_TermFactory termFactory) throws Exception {
   /*
    * I_ConfigAceFrame activeProfile = termFactory.getActiveAceFrameConfig();
    * Set<I_Path> editingPaths = activeProfile.getEditingPathSet();
    * Set<I_Position> allPositions = new HashSet<I_Position>();
    * for (I_Path path : editingPaths) {
    * allPositions.add(termFactory.newPosition(path, Integer.MAX_VALUE));
    * for (I_Position position : path.getOrigins()) {
    * addOriginPositions(termFactory, position, allPositions);
    * }
    * }
    * return new PositionSetReadOnly(allPositions);
    */
   return termFactory.getActiveAceFrameConfig().getViewPositionSetReadOnly();
 }
 public Condition evaluate(I_EncodeBusinessProcess process, I_Work worker)
     throws TaskFailedException {
   try {
     I_TermFactory tf = Terms.get();
     I_Path editPath = tf.getPath(editPathEntry.ids);
     I_ConfigAceFrame frameConfig = tf.getActiveAceFrameConfig();
     Set<I_Path> editSet = frameConfig.getEditingPathSet();
     editSet.clear();
     frameConfig.addEditingPath(editPath);
     frameConfig.fireUpdateHierarchyView();
     return Condition.CONTINUE;
   } catch (IllegalArgumentException e) {
     throw new TaskFailedException(e);
   } catch (IOException e) {
     throw new TaskFailedException(e);
   } catch (TerminologyException e) {
     throw new TaskFailedException(e);
   }
 }
  /** Start this monitor. Batch processing has commenced. */
  public void start() throws Exception {
    I_TermFactory termFactory = Terms.get();
    activity =
        termFactory.newActivityPanel(
            false, termFactory.getActiveAceFrameConfig(), description, true);
    activity.setProgressInfoUpper(description);
    activity.setProgressInfoLower("Commencing...");
    activity.setMaximum((int) totalEvents);
    activity.setValue(0);
    activity.setIndeterminate(false);

    timer = new BatchReportingThread(this, reportCycleMs, activity);
    if (showMessagePanel) {
      addMessagePanel();
    }
    addFinishedButton();
    timer.activity.getViewPanel(false).validate();

    timer.start();
  }