Package org.eclipse.ui

Examples of org.eclipse.ui.IMemento.createChild()


      }

      if (constraintData.getConstraint() instanceof RutaRuleListConstraint) {
        IMemento currentMemento = memento.createChild("constraint", "ListRutaConstraint");
        RutaRuleListConstraint constraint = (RutaRuleListConstraint) constraintData.getConstraint();
        currentMemento.createChild("Data", constraint.getData());
        currentMemento.createChild("Description", constraint.getDescription());
        currentMemento.createChild("Weight", "" + constraintData.getWeight());
      }

      if (constraintData.getConstraint() instanceof RutaGEConstraint) {
View Full Code Here


      if (constraintData.getConstraint() instanceof RutaRuleListConstraint) {
        IMemento currentMemento = memento.createChild("constraint", "ListRutaConstraint");
        RutaRuleListConstraint constraint = (RutaRuleListConstraint) constraintData.getConstraint();
        currentMemento.createChild("Data", constraint.getData());
        currentMemento.createChild("Description", constraint.getDescription());
        currentMemento.createChild("Weight", "" + constraintData.getWeight());
      }

      if (constraintData.getConstraint() instanceof RutaGEConstraint) {
        IMemento currentMemento = memento.createChild("constraint", "GEConstraint");
View Full Code Here

      if (constraintData.getConstraint() instanceof RutaRuleListConstraint) {
        IMemento currentMemento = memento.createChild("constraint", "ListRutaConstraint");
        RutaRuleListConstraint constraint = (RutaRuleListConstraint) constraintData.getConstraint();
        currentMemento.createChild("Data", constraint.getData());
        currentMemento.createChild("Description", constraint.getDescription());
        currentMemento.createChild("Weight", "" + constraintData.getWeight());
      }

      if (constraintData.getConstraint() instanceof RutaGEConstraint) {
        IMemento currentMemento = memento.createChild("constraint", "GEConstraint");
        RutaGEConstraint constraint = (RutaGEConstraint) constraintData.getConstraint();
View Full Code Here

      }

      if (constraintData.getConstraint() instanceof RutaGEConstraint) {
        IMemento currentMemento = memento.createChild("constraint", "GEConstraint");
        RutaGEConstraint constraint = (RutaGEConstraint) constraintData.getConstraint();
        currentMemento.createChild("Data", constraint.getData());
        currentMemento.createChild("Description", constraint.getDescription());
        currentMemento.createChild("Weight", "" + constraintData.getWeight());
      }
    }
  }
View Full Code Here

      if (constraintData.getConstraint() instanceof RutaGEConstraint) {
        IMemento currentMemento = memento.createChild("constraint", "GEConstraint");
        RutaGEConstraint constraint = (RutaGEConstraint) constraintData.getConstraint();
        currentMemento.createChild("Data", constraint.getData());
        currentMemento.createChild("Description", constraint.getDescription());
        currentMemento.createChild("Weight", "" + constraintData.getWeight());
      }
    }
  }
View Full Code Here

      if (constraintData.getConstraint() instanceof RutaGEConstraint) {
        IMemento currentMemento = memento.createChild("constraint", "GEConstraint");
        RutaGEConstraint constraint = (RutaGEConstraint) constraintData.getConstraint();
        currentMemento.createChild("Data", constraint.getData());
        currentMemento.createChild("Description", constraint.getDescription());
        currentMemento.createChild("Weight", "" + constraintData.getWeight());
      }
    }
  }

  public void restoreState(IMemento memento) {
View Full Code Here

    IMemento selectedTypesMemento = memento.createChild("typesToCheck", "type");
    for (Entry<String, Set<String>> checkedTypeEntry : typesToCheck.entrySet()) {
      IMemento selectedTypeMemento = selectedTypesMemento.createChild("type",
              checkedTypeEntry.getKey());
      for (String feature : checkedTypeEntry.getValue()) {
        selectedTypeMemento.createChild("feature", feature);
      }
    }

    IMemento uncheckTypesMemento = memento.createChild("typesToTransferUnchecked", "unchecked");
    for (String uncheckedTypeName : typesToTransferUnchecked) {
View Full Code Here

      }
    }

    IMemento uncheckTypesMemento = memento.createChild("typesToTransferUnchecked", "unchecked");
    for (String uncheckedTypeName : typesToTransferUnchecked) {
      uncheckTypesMemento.createChild("unchecked", uncheckedTypeName);
    }

  }

  public TreeViewer getTreeViewer() {
View Full Code Here

  }

  public void saveState(IMemento memento) {
    IMemento activeAlgChild = memento.createChild("activeAlgorithms");
    for (Object c : algListViewer.getCheckedElements()) {
      activeAlgChild.createChild("algorithm", ((TextRulerLearnerController) c).getID());
    }

    memento.createChild("inputDirectory", inputDirectoryText.getText());
    memento.createChild("additionalDirectory", additionalDirectoryText.getText());
    memento.createChild("testDirectory", testDirectoryText.getText());
View Full Code Here

  @Override
  public void saveState(IMemento memento) {
    IMemento m = memento.createChild(MEMENTO_CATEGORY);
    Object[] expanded = getFilteredTree().getViewer().getExpandedElements();
    for (Object o : expanded) {
      m.createChild(MEMENTO_ELEMENT).putTextData(
          ((IViewCategory) o).getId());
    }
  }
}
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.