コード例 #1
0
 private void copyPathGroup(PathGroup attr, IArtifact artifact) {
   artifact.setBase(createStringFromPath(attr.getBase()));
   List<IPath> paths = attr.getPaths();
   if (paths.size() == 0) return;
   if (paths.size() == 1) artifact.setPath1(createStringFromPath(paths.get(0)));
   else {
     List<org.eclipse.buckminster.cspecxml.IPath> xmlPaths = artifact.getPath();
     for (IPath path : paths) {
       org.eclipse.buckminster.cspecxml.IPath xmlPath = ICSpecXMLFactory.eINSTANCE.createPath();
       xmlPath.setPath(createStringFromPath(path));
       xmlPaths.add(xmlPath);
     }
   }
 }
コード例 #2
0
 private void copyArtifact(Artifact attr, IArtifact xmlAttr) {
   copyAttribute(attr, xmlAttr);
   copyPathGroup(attr, xmlAttr);
   attr.setFilter(xmlAttr.getFilter());
 }