Tabnine Logo
CndFileUtils.fileObjectToUrl
Code IndexAdd Tabnine to your IDE (free)

How to use
fileObjectToUrl
method
in
org.netbeans.modules.cnd.utils.cache.CndFileUtils

Best Java code snippets using org.netbeans.modules.cnd.utils.cache.CndFileUtils.fileObjectToUrl (Showing top 4 results out of 315)

origin: org.netbeans.modules/org-netbeans-modules-cnd-makeproject

@Override
public SourceGroup[] getSourceGroups(String type) {
  synchronized (this) {
    List<SourceGroup> l = groups.get(type);
    SourceGroup[] result = (l == null) ? new SourceGroup[0] : l.toArray(new SourceGroup[l.size()]);
    // Remember what we computed here so we know whether to fire changes later.
    List<CharSequence> rootURLs = new ArrayList<>(groups.size());
    for (SourceGroup g : result) {
      rootURLs.add(CndFileUtils.fileObjectToUrl(g.getRootFolder()));
    }
    lastComputedRoots.put(type, rootURLs);
    return result;
  }
}
origin: org.netbeans.modules/org-netbeans-modules-cnd-makeproject

public SourceGroup addGroup(Project project, String type, FileObject fo, String displayName) {
  synchronized (this) {
    if (rootsListenedTo.add(CndFileUtils.fileObjectToUrl(fo)) && haveAttachedListeners) {
      fo.addFileChangeListener(this);
    }
    List<SourceGroup> l = groups.get(type);
    if (l == null) {
      l = new ArrayList<>();
      groups.put(type, l);
    }
    SourceGroup group = GenericSources.group(project, fo, fo.getPath(), displayName, null, null);
    l.add(group);
    return group;
  }
}
origin: org.netbeans.modules/org-netbeans-modules-cnd-utils

public static CharSequence codeFileSystem(FileSystem fs) throws IOException {
  CharSequence rootUrl = CharSequences.create(CndFileUtils.fileObjectToUrl(fs.getRoot()));
  return rootUrl;
}
origin: org.netbeans.modules/org-netbeans-modules-cnd-debugger-common2

if (!CndFileUtils.isLocalFileSystem(fs)) {
  annotationAttrs.add(new AttrValuePair(ATTR_ANNOTATION_FS,
    CndFileUtils.fileObjectToUrl(fs.getRoot()).toString()));
org.netbeans.modules.cnd.utils.cacheCndFileUtilsfileObjectToUrl

Popular methods of CndFileUtils

  • isLocalFileSystem
  • normalizeAbsolutePath
  • toFileObject
  • getLocalFileSystem
  • createLocalFile
  • normalizeFile
    normalize file
  • getFileSeparatorChar
  • isExistingFile
    Tests whether the file exists and not directory. One of file or filePath must be not null
  • normalizePath
  • urlToFileObject
  • areFilenamesEqual
  • getCanonicalFileObject
  • areFilenamesEqual,
  • getCanonicalFileObject,
  • getCanonicalPath,
  • isExistingDirectory,
  • isSystemCaseSensitive,
  • toFSPathList,
  • toFile,
  • changeStringCaseIfNeeded,
  • clearFileExistenceCache

Popular in Java

  • Making http post requests using okhttp
  • setRequestProperty (URLConnection)
  • getSupportFragmentManager (FragmentActivity)
  • setScale (BigDecimal)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Top 12 Jupyter Notebook extensions
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