Package org.eclipse.ui

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


  @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(
          ((Category) o).getId());
    }
  }

}
View Full Code Here


            .createChild(IWorkbenchConstants.TAG_TRIM_AREA, Integer
                .toString(id));
        Iterator d = trim.iterator();
        while (d.hasNext()) {
          IWindowTrim item = (IWindowTrim) d.next();
          area.createChild(IWorkbenchConstants.TAG_TRIM_ITEM, item
              .getId());
        }
      }
    }
    return Status.OK_STATUS;
View Full Code Here

        }
       
        IMemento workingSetMem = memento
        .createChild(IWorkbenchConstants.TAG_WORKING_SETS);
    for (int i = 0; i < workingSets.length; i++) {
      workingSetMem.createChild(IWorkbenchConstants.TAG_WORKING_SET,
          workingSets[i].getName());
    }
   
    if (aggregateWorkingSetId != null) {
      memento.putString(ATT_AGGREGATE_WORKING_SET_ID, aggregateWorkingSetId);
View Full Code Here

  public synchronized void saveState() throws CoreException {
    XMLMemento rootElem = XMLMemento.createWriteRoot(ELEM_ROOT);
    rootElem.putInteger(ATTRIB_COMPAT, COMPAT_VERSION);
    for (ILogResource log : logSet) {
      IMemento logElem = rootElem.createChild(ELEM_LOG_RESOURCE);
      logElem.createChild(ELEM_NAME).putTextData(log.getName());
      IMemento dialectElem = logElem.createChild(ELEM_DIALECT);
      dialectElem.putString(ATTRIB_FACTORY,
          log.getDialect().getFactory().getId());
      // Save config options of dialect
      saveConfigOptions(dialectElem, (IConfigurableObject) log.getDialect().getAdapter(IConfigurableObject.class));
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

        Set<IResource> includedResources = gsd.getIncludedResources();
        if (includedResources != null && !includedResources.isEmpty()) {
          IMemento paths = child.createChild(INCLUDED_PATHS_NODE_KEY);
          for (IResource resource : includedResources) {
            String path = getPathForResource(resource);
            paths.createChild(INCLUDED_PATH_KEY).putString(
                INCLUDED_PATH_KEY, path);
          }
        }
      }
    }
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.