Codota Logo
IPath.removeTrailingSeparator
Code IndexAdd Codota to your IDE (free)

How to use
removeTrailingSeparator
method
in
org.eclipse.core.runtime.IPath

Best Java code snippets using org.eclipse.core.runtime.IPath.removeTrailingSeparator (Showing top 20 results out of 315)

  • Common ways to obtain IPath
private void myMethod () {
IPath i =
  • Codota IconString fullPath;new Path(fullPath)
  • Codota IconIResource resource;resource.getLocation()
  • Codota IconIResource resource;resource.getFullPath()
  • Smart code suggestions by Codota
}
origin: org.eclipse.platform/org.eclipse.core.resources

protected Resource(IPath path, Workspace workspace) {
  this.path = path.removeTrailingSeparator();
  this.workspace = workspace;
}
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.core.resources

protected Resource(IPath path, Workspace workspace) {
  this.path = path.removeTrailingSeparator();
  this.workspace = workspace;
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.core.resources

protected Resource(IPath path, Workspace workspace) {
  this.path = path.removeTrailingSeparator();
  this.workspace = workspace;
}
origin: org.eclipse/org.eclipse.pde.core

public URL getURL() throws MalformedURLException {
  return new URL("file:" + fPath.removeTrailingSeparator()); //$NON-NLS-1$
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.pde.core

public URL getURL() throws MalformedURLException {
  return new URL("file:" + fPath.removeTrailingSeparator()); //$NON-NLS-1$
}
origin: org.eclipse.jdt/org.eclipse.jdt.core

public char[][] fullExclusionPatternChars() {
  if (this.fullExclusionPatternChars == UNINIT_PATTERNS) {
    int length = this.exclusionPatterns.length;
    this.fullExclusionPatternChars = new char[length][];
    IPath prefixPath = this.path.removeTrailingSeparator();
    for (int i = 0; i < length; i++) {
      this.fullExclusionPatternChars[i] =
        prefixPath.append(this.exclusionPatterns[i]).toString().toCharArray();
    }
  }
  return this.fullExclusionPatternChars;
}
origin: org.eclipse.tycho/org.eclipse.jdt.core

public char[][] fullExclusionPatternChars() {
  if (this.fullExclusionPatternChars == UNINIT_PATTERNS) {
    int length = this.exclusionPatterns.length;
    this.fullExclusionPatternChars = new char[length][];
    IPath prefixPath = this.path.removeTrailingSeparator();
    for (int i = 0; i < length; i++) {
      this.fullExclusionPatternChars[i] =
        prefixPath.append(this.exclusionPatterns[i]).toString().toCharArray();
    }
  }
  return this.fullExclusionPatternChars;
}
origin: org.eclipse.tycho/org.eclipse.jdt.core

public char[][] fullInclusionPatternChars() {
  if (this.fullInclusionPatternChars == UNINIT_PATTERNS) {
    int length = this.inclusionPatterns.length;
    this.fullInclusionPatternChars = new char[length][];
    IPath prefixPath = this.path.removeTrailingSeparator();
    for (int i = 0; i < length; i++) {
      this.fullInclusionPatternChars[i] =
        prefixPath.append(this.inclusionPatterns[i]).toString().toCharArray();
    }
  }
  return this.fullInclusionPatternChars;
}
origin: org.eclipse.jdt/org.eclipse.jdt.core

public char[][] fullInclusionPatternChars() {
  if (this.fullInclusionPatternChars == UNINIT_PATTERNS) {
    int length = this.inclusionPatterns.length;
    this.fullInclusionPatternChars = new char[length][];
    IPath prefixPath = this.path.removeTrailingSeparator();
    for (int i = 0; i < length; i++) {
      this.fullInclusionPatternChars[i] =
        prefixPath.append(this.inclusionPatterns[i]).toString().toCharArray();
    }
  }
  return this.fullInclusionPatternChars;
}
origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

public char[][] fullExclusionPatternChars() {
  if (this.fullExclusionPatternChars == UNINIT_PATTERNS) {
    int length = this.exclusionPatterns.length;
    this.fullExclusionPatternChars = new char[length][];
    IPath prefixPath = this.path.removeTrailingSeparator();
    for (int i = 0; i < length; i++) {
      this.fullExclusionPatternChars[i] =
        prefixPath.append(this.exclusionPatterns[i]).toString().toCharArray();
    }
  }
  return this.fullExclusionPatternChars;
}
origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core

public char[][] fullInclusionPatternChars() {
  if (this.fullInclusionPatternChars == UNINIT_PATTERNS) {
    int length = this.inclusionPatterns.length;
    this.fullInclusionPatternChars = new char[length][];
    IPath prefixPath = this.path.removeTrailingSeparator();
    for (int i = 0; i < length; i++) {
      this.fullInclusionPatternChars[i] =
        prefixPath.append(this.inclusionPatterns[i]).toString().toCharArray();
    }
  }
  return this.fullInclusionPatternChars;
}
origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

public char[][] fullInclusionPatternChars() {
  if (this.fullInclusionPatternChars == UNINIT_PATTERNS) {
    int length = this.inclusionPatterns.length;
    this.fullInclusionPatternChars = new char[length][];
    IPath prefixPath = this.path.removeTrailingSeparator();
    for (int i = 0; i < length; i++) {
      this.fullInclusionPatternChars[i] =
        prefixPath.append(this.inclusionPatterns[i]).toString().toCharArray();
    }
  }
  return this.fullInclusionPatternChars;
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core

public char[][] fullInclusionPatternChars() {
  if (this.fullInclusionPatternChars == UNINIT_PATTERNS) {
    int length = this.inclusionPatterns.length;
    this.fullInclusionPatternChars = new char[length][];
    IPath prefixPath = this.path.removeTrailingSeparator();
    for (int i = 0; i < length; i++) {
      this.fullInclusionPatternChars[i] =
        prefixPath.append(this.inclusionPatterns[i]).toString().toCharArray();
    }
  }
  return this.fullInclusionPatternChars;
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core

public char[][] fullExclusionPatternChars() {
  if (this.fullExclusionPatternChars == UNINIT_PATTERNS) {
    int length = this.exclusionPatterns.length;
    this.fullExclusionPatternChars = new char[length][];
    IPath prefixPath = this.path.removeTrailingSeparator();
    for (int i = 0; i < length; i++) {
      this.fullExclusionPatternChars[i] =
        prefixPath.append(this.exclusionPatterns[i]).toString().toCharArray();
    }
  }
  return this.fullExclusionPatternChars;
}
origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core

public char[][] fullExclusionPatternChars() {
  if (this.fullExclusionPatternChars == UNINIT_PATTERNS) {
    int length = this.exclusionPatterns.length;
    this.fullExclusionPatternChars = new char[length][];
    IPath prefixPath = this.path.removeTrailingSeparator();
    for (int i = 0; i < length; i++) {
      this.fullExclusionPatternChars[i] =
        prefixPath.append(this.exclusionPatterns[i]).toString().toCharArray();
    }
  }
  return this.fullExclusionPatternChars;
}
origin: trylimits/Eclipse-Postfix-Code-Completion

public char[][] fullInclusionPatternChars() {
  if (this.fullInclusionPatternChars == UNINIT_PATTERNS) {
    int length = this.inclusionPatterns.length;
    this.fullInclusionPatternChars = new char[length][];
    IPath prefixPath = this.path.removeTrailingSeparator();
    for (int i = 0; i < length; i++) {
      this.fullInclusionPatternChars[i] =
        prefixPath.append(this.inclusionPatterns[i]).toString().toCharArray();
    }
  }
  return this.fullInclusionPatternChars;
}
origin: trylimits/Eclipse-Postfix-Code-Completion

public char[][] fullExclusionPatternChars() {
  if (this.fullExclusionPatternChars == UNINIT_PATTERNS) {
    int length = this.exclusionPatterns.length;
    this.fullExclusionPatternChars = new char[length][];
    IPath prefixPath = this.path.removeTrailingSeparator();
    for (int i = 0; i < length; i++) {
      this.fullExclusionPatternChars[i] =
        prefixPath.append(this.exclusionPatterns[i]).toString().toCharArray();
    }
  }
  return this.fullExclusionPatternChars;
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.core.resources

private File locationFor(IPath resourcePath) {
  //optimized to avoid string and path creations
  IPath baseLocation = workspace.getMetaArea().locationFor(resourcePath).removeTrailingSeparator();
  int segmentCount = resourcePath.segmentCount();
  String locationString = baseLocation.toOSString();
  StringBuffer locationBuffer = new StringBuffer(locationString.length() + Bucket.INDEXES_DIR_NAME.length() + 16);
  locationBuffer.append(locationString);
  locationBuffer.append(File.separatorChar);
  locationBuffer.append(Bucket.INDEXES_DIR_NAME);
  // the last segment is ignored
  for (int i = 1; i < segmentCount - 1; i++) {
    // translate all segments except the first one (project name)
    locationBuffer.append(File.separatorChar);
    locationBuffer.append(translateSegment(resourcePath.segment(i)));
  }
  return new File(locationBuffer.toString());
}
origin: org.eclipse/org.eclipse.jst.j2ee.ui

/**
 * Answer the directory name specified as being the import source. Note that if it ends with a
 * separator then the separator is first removed so that java treats it as a proper directory
 */
private String getSourceDirectoryName(String sourceName) {
  IPath result = new Path(sourceName.trim());
  if (result.getDevice() != null && result.segmentCount() == 0) // something like "c:"
    result = result.addTrailingSeparator();
  else
    result = result.removeTrailingSeparator();
  return result.toOSString();
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.ide

/**
 *    Answer the directory name specified as being the import source.
 *    Note that if it ends with a separator then the separator is first
 *    removed so that java treats it as a proper directory
 */
private String getSourceDirectoryName(String sourceName) {
  IPath result = new Path(sourceName.trim());
  if (result.getDevice() != null && result.segmentCount() == 0) {
    result = result.addTrailingSeparator();
  } else {
    result = result.removeTrailingSeparator();
  }
  return result.toOSString();
}
org.eclipse.core.runtimeIPathremoveTrailingSeparator

Javadoc

Returns a path with the same segments as this path but with a trailing separator removed. Does nothing if this path does not have at least one segment. The device id is preserved.

If this path does not have a trailing separator, this path is returned.

Popular methods of IPath

  • toString
    Returns a string representation of this path, including its device id. The same separator, "/", is u
  • toFile
    Returns a java.io.File corresponding to this path.
  • toOSString
    Returns a string representation of this path which uses the platform-dependent path separator define
  • append
    Returns the canonicalized path obtained from the concatenation of the given path's segments to the e
  • segmentCount
    Returns the number of segments in this path. Note that both root and empty paths have 0 segments.
  • removeLastSegments
    Returns a copy of this path with the given number of segments removed from the end. The device id is
  • lastSegment
    Returns the last segment of this path, ornull if it does not have any segments.
  • removeFirstSegments
    Returns a copy of this path with the given number of segments removed from the beginning. The device
  • segment
    Returns the specified segment of this path, ornull if the path does not have such a segment.
  • equals
    Returns whether this path equals the given object. Equality for paths is defined to be: same sequenc
  • isAbsolute
    Returns whether this path is an absolute path (ignoring any device id). Absolute paths start with a
  • isPrefixOf
    Returns whether this path is a prefix of the given path. To be a prefix, this path's segments must a
  • isAbsolute,
  • isPrefixOf,
  • toPortableString,
  • makeRelative,
  • makeAbsolute,
  • getDevice,
  • isEmpty,
  • addTrailingSeparator,
  • getFileExtension,
  • setDevice

Popular in Java

  • Finding current android device location
  • getExternalFilesDir (Context)
  • onRequestPermissionsResult (Fragment)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • PriorityQueue (java.util)
    An unbounded priority Queue based on a priority heap. The elements of the priority queue are ordered
  • Notification (javax.management)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now