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

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

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

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

private boolean onRunSingleStep(MakeConfiguration conf, ArrayList<ProjectActionEvent> actionEvents, Lookup context, Type actionEvent) {
  // FIXUP: not sure this is used...
  if (conf.isMakefileConfiguration()) {
    DataObject d = context.lookup(DataObject.class);
    String path = CndFileUtils.toFile(d.getPrimaryFile()).getPath();
    ProjectActionEvent projectActionEvent = new ProjectActionEvent(project, actionEvent, path, conf, null, false);
    actionEvents.add(projectActionEvent);
  } else {
    assert false;
  }
  return true;
}
origin: org.netbeans.modules/org-netbeans-modules-cnd-utils

private File clearCachesAboutFile(FileEvent fe) {
  return clearCachesAboutFile(CndFileUtils.toFile(fe.getFile()), false);
}

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

@Override
public void fileDataCreated(FileEvent fe) {
  File file = CndFileUtils.toFile(fe.getFile());
  String path = file.getAbsolutePath();
  String absPath = preparePath(path);
  if (getFilesMap(getLocalFileSystem()).put(absPath, Flags.FILE) != null) {
    // If there was something in the map already - invalidate it
    invalidateFile(path, absPath);
  }
}
origin: org.netbeans.modules/org-netbeans-modules-cnd-utils

@Override
public void fileFolderCreated(FileEvent fe) {
  File file = CndFileUtils.toFile(fe.getFile());
  String path = file.getAbsolutePath();
  String absPath = preparePath(path);
  if (getFilesMap(getLocalFileSystem()).put(absPath, Flags.DIRECTORY) != null) {
    // If there was something in the map already - invalidate it
    invalidateFile(path, absPath);
  }
}
org.netbeans.modules.cnd.utils.cacheCndFileUtilstoFile

Popular methods of CndFileUtils

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

Popular in Java

  • Making http requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • runOnUiThread (Activity)
  • compareTo (BigDecimal)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top Sublime Text plugins
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