Examples of ResourceResult


Examples of org.eclipse.php.internal.core.util.PHPSearchEngine.ResourceResult

    Result<?, ?> result = PHPSearchEngine.find(path, currentWorkingDir,
        currentScriptDir, currentProject, exclusiveFiles);

    if (result instanceof ResourceResult) {
      // workspace file
      ResourceResult resResult = (ResourceResult) result;
      IResource resource = resResult.getFile();
      sourceModule = (ISourceModule) DLTKCore.create(resource);
    } else if (result instanceof IncludedFileResult) {
      IncludedFileResult incResult = (IncludedFileResult) result;
      IProjectFragment[] projectFragments = incResult
          .getProjectFragments();
View Full Code Here

Examples of org.eclipse.php.internal.core.util.PHPSearchEngine.ResourceResult

          return new PathEntry(incFileResult.getFile()
              .getAbsolutePath(), type, container);
        }
        if (result != null) {
          // workspace file
          ResourceResult resResult = (ResourceResult) result;
          IResource resource = resResult.getFile();
          return new PathEntry(resource.getFullPath().toString(),
              Type.WORKSPACE, resource.getParent());
        }
      }
      return null;
View Full Code Here

Examples of org.rascalmpl.interpreter.result.ResourceResult

  public IValue getTypedResource(ISourceLocation uriLoc, IValue type, IEvaluatorContext ctx) {
    // TODO: We may not need this here, since we already create the same type internally
    // when we create the resource. Commenting out for now...
    Type resourceType = ((ReifiedType) type.getType()).getTypeParameters().getFieldType(0);
    IResource handler = Resource.getResourceHandler(uriLoc);
    ResourceResult rr = handler.createResource(ctx, uriLoc, resourceType);
    return rr.getValue();
  }
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.