Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.IPath.segments()


        if (result == null)
          return null;

        IPath remainingPath = new Path(file.getPath().substring(
            repository.getWorkTree().getPath().length()));
        for (String segment : remainingPath.segments()) {
          for (Object child : cp.getChildren(result)) {
            RepositoryTreeNode<File> fileNode;
            try {
              fileNode = (RepositoryTreeNode<File>) child;
            } catch (ClassCastException e) {
View Full Code Here


        IPath workdirPath = new Path(initialRepository.getWorkTree()
            .getPath());
        if (workdirPath.isPrefixOf(fullPath)) {
          IPath relPath = fullPath.removeFirstSegments(workdirPath
              .segmentCount());
          for (String segment : relPath.segments()) {
            for (Object child : cp.getChildren(parentNode)) {
              if (child instanceof FolderNode) {
                FolderNode childFolder = (FolderNode) child;
                if (childFolder.getObject().getName().equals(
                    segment)) {
View Full Code Here

   
    String filePath = doc.getFilePath();
    IPath path = new Path(filePath);
   
    IJarEntryResource res  = null;
    for(String segment: path.segments())
    {
      if( res == null )
        res = findJarEntry(jar, segment);
      else
        res = findJarEntry(res.getChildren(), segment);
View Full Code Here

    // part of the "puppet" directory, not the directory puppet-x.x.x/lib/puppet that is given to
    // this function.
    //
    // String versionString = "";
    // boolean nextIsVersion = false;
    String[] segments = path.segments();
    int sc = segments.length;
    if(segments.length < 3 || !"puppet".equals(segments[sc - 1]) || !"lib".equals(segments[sc - 2]))
      throw new IllegalArgumentException("path to .../puppet/lib is not correct");
    final String distroName = segments[sc - 3];
    if(!distroName.startsWith("puppet-"))
View Full Code Here

    if (resource.isDerived()) {
      return false;
    }

    IPath fullPath = resource.getFullPath();
    String[] segments = fullPath.segments();
    if (segments != null) {
      for (String segment : segments) {
        if (this.excludes.contains(segment)) {
          return false;
        }
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.