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

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


                new byte[0]));

        IModule module = ServerUtil.getModule(contentProject);

        SlingContentModuleFactory moduleFactory = new SlingContentModuleFactory();
        ModuleDelegate moduleDelegate = moduleFactory.getModuleDelegate(module);

        IModuleResource[] members = moduleDelegate.members();

        assertThat("members[0].path", members[0].getModuleRelativePath().toPortableString(), equalTo(""));
        assertThat("members[1].path", members[1].getModuleRelativePath().toPortableString(), equalTo("content"));
        assertThat("members[2].path", members[2].getModuleRelativePath().toPortableString(),
                equalTo("content/.content.xml"));
View Full Code Here


                new ByteArrayInputStream(new byte[0]));

        IModule module = ServerUtil.getModule(contentProject);

        SlingContentModuleFactory moduleFactory = new SlingContentModuleFactory();
        ModuleDelegate moduleDelegate = moduleFactory.getModuleDelegate(module);

        IModuleResource[] members = moduleDelegate.members();
       
        int fileIdx = -1;
        int fileDirIdx = -1;
       
        for (int i = 0; i < members.length; i++) {
View Full Code Here

   * @see org.eclipse.wst.server.core.model.ModuleFactoryDelegate#getModuleDelegate(org.eclipse.wst.server.core.IModule)
   */
  @Override
  public ModuleDelegate getModuleDelegate(IModule module) {
    for (Iterator<ModuleDelegate> iter = moduleDelegates.iterator(); iter.hasNext();) {
      ModuleDelegate element = (ModuleDelegate) iter.next();
      if (module == element.getModule())
        return element;
    }
    return null;

  }
View Full Code Here

    HashSet entries = new HashSet();
    processJavaProject(project, entries, false);

    // add output locations of referenced projects excluding non-child
    // projects
    ModuleDelegate delegate = (ModuleDelegate) module.loadAdapter(ModuleDelegate.class, null);
    if(delegate != null) {
      IProject[] refs = project.getReferencedProjects();
      for(int i = 0; i < refs.length; i++) {
        boolean found = false;
        IModule[] children = delegate.getChildModules();
        for(int j = 0; j < children.length; j++) {
          if(children[j].getProject().equals(refs[i])) {
            found = true;
            break;
          }
View Full Code Here

TOP

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

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.