Package org.eclipse.ui

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


      String fullPath = path.toOSString();
      if (fullPath.startsWith(workDir)) {
        String relative = fullPath.substring(workDir.length());
        if (relative.length() == 0)
          relative = REPO_ROOT;
        IMemento child = memento.createChild(KEY_PROJECT);
        child.putTextData(relative);
      }
    }
    return memento;
  }
View Full Code Here


        // Save the version number.
        memento.putString(MEMENTO_TAG_VERSION, VERSION_STRING[1]);

        // Save perspective history.
        getCheatSheetHistory().saveState(memento.createChild(MEMENTO_TAG_CHEATSHEET_HISTORY));

        IStatus status = saveMemento(memento, HISTORY_FILENAME);
        if (!status.isOK()) {
          CheatSheetPlugin.getPlugin().getLog().log(status);
        }
View Full Code Here

      for (int i = 0; i < subList.size(); i++) {
        if (i >= 10) {
          break;
        }
        IMemento child = rootMemento.createChild(KEY_URL_DATA);
        child.putString(KEY_NAME, textLabel);
        child.putString(KEY_VALUE, subList.get(i));
      }
    }
View Full Code Here

  public void doSaveCoordinates() {
    String xml = null;
    XMLMemento memento = XMLMemento.createWriteRoot("graph"); //$NON-NLS-1$
    for (Activity child : children) {
      IMemento childMemento = memento.createChild(KEY_ELEMENT);
      childMemento.putString(KEY_ELEMENT_TYPE, child.getInputName());
      childMemento.putString(KEY_MODEL_CLASS, child.getClass().getSimpleName());

      IDOMElement input = child.getInput();
      IMemento structureMemento = childMemento.createChild(KEY_STRUCTURE);
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.