Examples of members()


Examples of org.eclipse.core.resources.IFolder.members()

        DownloadFileJob dfj = new DownloadFileJob(r);
        dfj.schedule();
        break;
      case IFolder.FOLDER:
        IFolder folder = (IFolder) r;
        IResource[] children = folder.members();
        if (children != null) {
          for (int cc = 0; cc < children.length; cc++) {
            downloadResource(children[cc]);
          }
        }
View Full Code Here

Examples of org.eclipse.core.resources.IFolder.members()

                    if (!sourceFolder.getLocation().toString().contains("test/munit"))
                    {
                        try
                        {
                            IFolder folder = root.getFolder(entry.getOutputLocation());
                            for (IResource resource : folder.members())
                            {
                                try
                                {
                                    resource.copy(munitOutputFolder, IFolder.SHALLOW, monitor);
                                }
View Full Code Here

Examples of org.eclipse.core.resources.IFolder.members()

    ArrayList<TestCasData> viewerInput = new ArrayList<TestCasData>();

    IFolder testFolder = project.getFolder(testFolderPackagePath);
    IResource[] resourceArray;
    try {
      resourceArray = testFolder.members();

      for (IResource resource : resourceArray) {

        if (resource != null && resource instanceof IFile
                && resource.getLocation().getFileExtension().equals("xmi")) {
View Full Code Here

Examples of org.eclipse.core.resources.IFolder.members()

            IContainer cnfDir = buildFile.getParent();
            IFolder extDir = cnfDir.getFolder(new Path("ext"));
            if (extDir == null || !extDir.exists())
                return EMPTY;

            IResource[] extFiles = extDir.members();
            List<IContributionItem> result = new ArrayList<IContributionItem>(extFiles.length);

            for (final IResource extFile : extFiles) {
                if (extFile.getType() == IResource.FILE && "bnd".equalsIgnoreCase(extFile.getFileExtension())) {
                    Action action = new Action() {
View Full Code Here

Examples of org.eclipse.core.resources.IProject.members()

    IProject project = (IProject) o;
   
    IResource resources[];
   
    try {
      resources = project.members();
    } catch (CoreException e) {
      // TODO: log it
     
      // no children available
      return new Object[0];
View Full Code Here

Examples of org.eclipse.core.resources.IWorkspaceRoot.members()

   
    TreeItem topItem = new TreeItem(resourcesUI, SWT.NONE);
    topItem.setText("Workspace");
    IWorkspaceRoot root = TAEConfiguratorPlugin.getWorkspace().getRoot().getWorkspace().getRoot();
    try {
    IResource[] projects = root.members();
    populate(topItem, projects);
    } catch (CoreException e) {
      throw new InternalErrorCDE("unhandled exception", e);
    }
    topItem.setExpanded(true);
View Full Code Here

Examples of org.eclipse.wst.common.componentcore.resources.IVirtualFolder.members()

    IVirtualComponent component = ComponentCore.createComponent(project);
    IVirtualFolder folder = component.getRootFolder().getFolder("/");
    IContainer[] underlyingFolders = folder.getUnderlyingFolders();
    IResource[] underlyingResources = folder.getUnderlyingResources();
    IVirtualResource[] members = folder.members();
    // IVirtualResource[] members = folder.members();
    // IVirtualFolder folder2 = folder.getFolder(new
    // Path(getGwtOutputFolder()).append(moduleName));
    // IContainer[] underlyingFolders = folder.getUnderlyingFolders();
    IVirtualFolder moduleOutputFolder = component.getRootFolder().getFolder("/"); //$NON-NLS-1$
View Full Code Here

Examples of org.eclipse.wst.server.core.model.IModuleFolder.members()

      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

Examples of org.eclipse.wst.server.core.model.IModuleFolder.members()

      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

Examples of org.eclipse.wst.server.core.model.ModuleDelegate.members()

        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
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.