Tabnine Logo
IPath.isUNC
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.eclipse/org.eclipse.wst.css.core

  /**
   * Gets a file URL for the path.
   */
  private static String toURL(IPath path) {
    path = new Path(path.toFile().getAbsolutePath());
    if (path.isUNC() == true) {
      // it's UNC. return file://host/foo/bar/baz.html
      return FILEURLSCHEME + URLCOLON + path.toString();
    }
    return FILEURLPREFIX + URLSEPARATOR + path.toString();
  }
}
origin: org.eclipse.platform/org.eclipse.ui.navigator.resources

res = Boolean.compare(arg0.isUNC(), arg1.isUNC());
if (res != 0) {
  return res;
origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.ide

if (location.isUNC()) {
  return createStatus(
      IStatus.WARNING,
origin: org.eclipse.platform/org.eclipse.core.resources

for (int i = 0; i < path.segmentCount(); i++) {
  final String segment = path.segment(i);
  if (i == 0 && path.isUNC()) {
    realPath = realPath.append(segment.toUpperCase());
    realPath = realPath.makeUNC(true);
origin: org.eclipse.scout.sdk.deps/org.eclipse.core.resources

for (int i = 0; i < path.segmentCount(); i++) {
  final String segment = path.segment(i);
  if (i == 0 && path.isUNC()) {
    realPath = realPath.append(segment.toUpperCase());
    realPath = realPath.makeUNC(true);
origin: at.bestsolution.efxclipse.eclipse/org.eclipse.core.resources

for (int i = 0; i < path.segmentCount(); i++) {
  final String segment = path.segment(i);
  if (i == 0 && path.isUNC()) {
    realPath = realPath.append(segment.toUpperCase());
    realPath = realPath.makeUNC(true);
org.eclipse.core.runtimeIPathisUNC

Javadoc

Returns a boolean value indicating whether or not this path is considered to be in UNC form. Return false if this path has a device set or if the first 2 characters of the path string are not Path.SEPARATOR.

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

  • Start an intent from android
  • scheduleAtFixedRate (Timer)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setRequestProperty (URLConnection)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • JLabel (javax.swing)
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now