Package org.eclipse.wst.server.core.model

Examples of org.eclipse.wst.server.core.model.IModuleFolder


  }

  private static IModuleResource processModuleResource(IModuleResource or) {
    if (or instanceof IModuleFolder) {
      IModuleFolder of = (IModuleFolder) or;
      IPath p = of.getModuleRelativePath();
      if (p.isAbsolute()) {
        p = p.makeRelative();
      }
      ModuleFolder nf = new ModuleFolder(null, of.getName(), p);
      List<IModuleResource> c = new ArrayList<IModuleResource>();
      for (IModuleResource mc : of.members()) {
        c.add(processModuleResource(mc));
      }
      nf.setMembers(c.toArray(new IModuleResource[0]));
      return nf;
    }
View Full Code Here


        if (fileAdapter != null) {
          entries.add(fileAdapter);
        }
      }
      else if (resource instanceof IModuleFolder) {
        IModuleFolder folder = (IModuleFolder) resource;
        ModuleFolderEntryAdapter folderAdapter = getModuleFolderAdapter(folder);
        if (folderAdapter != null) {
          entries.add(folderAdapter);
          collectEntriesPriorToDeployment(entries, folder.members());
        }
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.wst.server.core.model.IModuleFolder

Copyright © 2018 www.massapicom. 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.