Examples of addTrailingSeparator()


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

          System.arraycopy(patterns, 0, newPatterns, 0, i);
          newPatternsIndex = i;
        }
        IPath newPattern = this.destination.removeFirstSegments(1);
        if (pattern.hasTrailingSeparator())
          newPattern = newPattern.addTrailingSeparator();
        newPatterns[newPatternsIndex++] = newPattern;
      }
    }
    return newPatterns;
  }
View Full Code Here

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

        final Set<String> moduleNames = modules(lib.toFile());
        final List<IPath> moduleDirs = new ArrayList<IPath>();
        for (final String moduleName : moduleNames) {
            final String h = highestVersion(lib.toFile(), moduleName);
            if (h != null) {
                moduleDirs.add(lib.addTrailingSeparator().append(h));
            }
        }
        final List<ISourceContainer> r = new ArrayList<ISourceContainer>();
        for (final IPath dir : moduleDirs) {
            r.add(new DirectorySourceContainer(dir.addTrailingSeparator().append("src"),
View Full Code Here

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

    }
    path = path.removeLastSegments(1);
    if (path.isEmpty()) {
      return null;
    }
    return path.addTrailingSeparator();
  }

  /**
   * @generated
   */
 
View Full Code Here

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

    if (externalPath.getDevice() == null) {
      result = result.setDevice(null);
    }
    // keep trailing separator only if it was specified (this is because File.getCanonicalPath() converts 'd:/lib/classes/' to 'd:/lib/classes')
    if (externalPath.hasTrailingSeparator()) {
      result = result.addTrailingSeparator();
    }
    return result;
  }

  /**
 
View Full Code Here

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

    IPath folders = path.removeLastSegments(1).removeFirstSegments(1);
    IPath checkPath = Path.ROOT;
    int segmentCount = folders.segmentCount();
    for(int i = 0; i < segmentCount; i++) {
      checkPath = checkPath.addTrailingSeparator().append(folders.segment(i));
      IFolder folder = project.getFolder(checkPath);
      if(!folder.exists())
        folder.create(true, true, null);
    }
    linkFile.createLink(uri, IResource.ALLOW_MISSING_LOCAL, null);
View Full Code Here

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

                && !this.entries.containsKey(resource.getProjectRelativePath())) {
                IFolder folder = (IFolder) resource;

                IPath path = folder.getProjectRelativePath();
                if (!path.hasTrailingSeparator()) {
                    path = path.addTrailingSeparator();
                }

                FileListData data = null;
                if (isManagedProject) {
                    data = new FileListData();
View Full Code Here

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

      }
      catch (SecurityException e) {
      }
    }
   
    location = location.addTrailingSeparator();
    location = location.append(persistedTranslatorFileName);
    return location.toOSString();
  }
 
  /**
 
View Full Code Here

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

      if ("true".equals(useOutputDir) && outputDir != null) {
        IPath outputDirPath = Path.fromPortableString(outputDir);
        if (!outputDirPath.isAbsolute()) { // relative paths are relative to the project root
          outputDirPath = resource.getProject().getLocation().makeAbsolute().append(outputDirPath);
        }
        return outputDirPath.addTrailingSeparator();
      }
    } catch (CoreException e) {
      // ignore exceptions, just use default path
    }
    return defaultOutputDirPath;
View Full Code Here

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

      if ("true".equals(useFramesDir) && framesDir != null) {
        IPath framesDirPath = Path.fromPortableString(framesDir);
        if (!framesDirPath.isAbsolute()) { // relative paths are relative to the project root
          framesDirPath = resource.getProject().getLocation().makeAbsolute().append(framesDirPath);
        }
        return framesDirPath.addTrailingSeparator();
      }
    } catch (CoreException e) {
      // ignore exceptions, just use default path
    }
    return defaultFramesDirPath;
View Full Code Here

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

      // expect only origin
      getRemote(remotesLocation, 1, 0, Constants.DEFAULT_REMOTE_NAME);

      // create secondary repository
      IPath randomLocation = createTempDir();
      randomLocation = randomLocation.addTrailingSeparator().append(Constants.DOT_GIT);
      File dotGitDir = randomLocation.toFile().getCanonicalFile();
      Repository db2 = FileRepositoryBuilder.create(dotGitDir);
      toClose.add(db2);
      assertFalse(dotGitDir.exists());
      db2.create(false /* non bare */);
 
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.