Package org.springframework.ide.eclipse.core.io

Examples of org.springframework.ide.eclipse.core.io.FileResource


              resource = new StorageResource(new ZipEntryStorage(file.getProject(), getElementName()),
                  file.getProject());
            }
          }
          else {
            resource = new FileResource(file);
          }

          // Set up classloader to use for NamespaceHandler and XSD loading
          ClassLoader namespaceResolvingClassloader = projectIncludingClassloader;
          if (!NamespaceUtils.useNamespacesFromClasspath(file.getProject())) {
View Full Code Here


        // TODO Auto-generated method stub
        return 0;
      }

      public Resource getResource() {
        return new FileResource(BeanHelper.this.file);
      }

      public int getStartLine() {
        // TODO Auto-generated method stub
        return 0;
View Full Code Here

    try {
      IJavaElement element = JdtUtils.getByHandle(handleIdentifier);
      if (element != null) {
        IResource resource = element.getUnderlyingResource();
        if (resource != null) {
          return new FileResource(resource.getFullPath().toString());
        }
        resource = element.getCorrespondingResource();
        if (resource != null) {
          return new FileResource(resource.getFullPath().toString());
        }
        resource = element.getResource();
        if (resource != null) {
          return new FileResource(resource.getFullPath().toString());
        }
        IPath path = element.getPath();
        if (path != null && path.toFile().exists()) {
          if (path.isAbsolute()) {
            return new FileSystemResource(path.toFile());
          }
          else {
            return new FileResource(path.toString());
          }
        }
      }
    }
    catch (JavaModelException e) {
View Full Code Here

        // TODO Auto-generated method stub
        return 0;
      }

      public Resource getResource() {
        return new FileResource(BeanPropertyHelper.this.file);
      }

      public int getStartLine() {
        // TODO Auto-generated method stub
        return 0;
View Full Code Here

    return this.visitor;
  }

  public Resource getResource() {
    try {
      return new FileResource((IFile) this.type.getUnderlyingResource());
    }
    catch (JavaModelException e) {
      return null;
    }
  }
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.core.io.FileResource

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.