Package org.eclipse.team.internal.ecf.core.variants

Examples of org.eclipse.team.internal.ecf.core.variants.RemoteResourceVariant


    returnValue = null;
    return ((Boolean) tmpValue).booleanValue();
  }

  public synchronized IResourceVariant[] fetchMembers(ID ownId, ID remoteId, IResourceVariant variant, IProgressMonitor monitor) throws TeamException {
    RemoteResourceVariant remoteVariant = (RemoteResourceVariant) variant;
    if (!remoteVariant.hasMembers()) {
      // we've predetermined that this resource will not have any valid
      // members, just return an empty array
      return new IResourceVariant[0];
    }

    monitor.subTask(NLS.bind(Messages.RemoteShare_FetchingVariant, variant.getName()));

    sendMessage(remoteId, new FetchVariantsRequest(ownId, remoteVariant.getPath(), remoteVariant.getType()));

    while (returnValue == null) {
      try {
        Thread.sleep(100);
        if (monitor.isCanceled()) {
View Full Code Here


      IResource[] members = container.members();
      List variants = new ArrayList();

      for (int i = 0; i < members.length; i++) {
        if (!members[i].isDerived()) {
          variants.add(new RemoteResourceVariant(members[i]));
        }
      }
      IResourceVariant[] variantsArray = (IResourceVariant[]) variants.toArray(new IResourceVariant[variants.size()]);
      sendMessage(fromId, new FetchResponse(variantsArray));
    } catch (CoreException e) {
View Full Code Here

  }

  private void sendFetchVariantResponse(ID fromId, IResource resource) {
    // resource will be null if an invalid resource type was provided
    if (resource != null && resource.exists()) {
      sendMessage(fromId, new FetchResponse(new RemoteResourceVariant(resource)));
    } else {
      sendMessage(fromId, new FetchResponse((IResourceVariant) null));
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.team.internal.ecf.core.variants.RemoteResourceVariant

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.