Package org.freeplane.features.filter.condition

Examples of org.freeplane.features.filter.condition.ASelectableCondition.toXml()


    saver.setName("filter_conditions");
    final Writer writer = new FileWriter(pathToFilterFile);
    for (int i = 0; i < filterConditionModel.getSize(); i++) {
      final ASelectableCondition cond = (ASelectableCondition) filterConditionModel.getElementAt(i);
      if (cond != null && !(cond instanceof NoFilteringCondition)) {
        cond.toXml(saver);
      }
    }
    final XMLWriter xmlWriter = new XMLWriter(writer);
    xmlWriter.write(saver, true);
    writer.close();
View Full Code Here


      final String newUserName = JOptionPane.showInputDialog(AFilterComposerDialog.this,
          TextUtils.getText("enter_condition_name"), userName == null ? "" : userName);
      if(newUserName == null)
        return;
      XMLElement xmlCondition = new XMLElement();
      condition.toXml(xmlCondition);
      ASelectableCondition newCondition = filterController.getConditionFactory().loadCondition(xmlCondition.getChildAtIndex(0));
      if(newCondition== null)
        return;
      if (newUserName.equals("")) {
        if(userName == null)
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.