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

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

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

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

@Override
public String getAbsolutePath() {
  return CndFileUtils.normalizePath(fileObject);
  }
origin: org.netbeans.modules/org-netbeans-modules-cnd-modelimpl

@Override
public NativeFileItem findFileItem(FileObject fileObject) {
  return findFileItem(CndFileUtils.normalizePath(fileObject));
}
origin: org.netbeans.modules/org-netbeans-modules-cnd-modelimpl

FileBufferImpl(FileObject fileObject, FileImpl fileImpl) {
  this(getFileSystem(fileObject), CndFileUtils.normalizePath(fileObject), fileImpl);
  attachListeners(fileObject);
}
origin: org.netbeans.modules/org-netbeans-modules-cnd

  private void setExecutionFlags(FileObject fob) {
  if (fob != null && fob.isValid()) {
      ExecutionEnvironment env = FileSystemProvider.getExecutionEnvironment(fob);
      String path = CndFileUtils.normalizePath(fob);
      ProcessUtils.execute(env, "/bin/chmod", "755", path); // NOI18N
    }
  }
}
origin: org.netbeans.modules/org-netbeans-modules-cnd-modelimpl

  protected AbstractFileBuffer(FileObject fileObject) {
    this.absPath = FilePathCache.getManager().getString(CndFileUtils.normalizePath(fileObject));
    assert this.absPath != null : "no path for " + fileObject;
    this.fileSystem = getFileSystem(fileObject);
    this.fileObject = new WeakReference<>(fileObject);
    this.bufType = MIMENames.isCppOrCOrFortran(fileObject.getMIMEType()) ? APTFileBuffer.BufferType.START_FILE : APTFileBuffer.BufferType.INCLUDED;
// remote link file objects are just lightweight delegating wrappers, so they have multiple instances
//        if (CndUtils.isDebugMode()) {
//            FileObject fo2 = fileSystem.findResource(absPath.toString());
//            CndUtils.assertTrue(fileObject == fo2, "File objects differ: " + fileObject + " vs " + fo2); //NOI18N
//        }
  }

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

private void addFileItemBasedPath(NativeFileItem nativeFileItem) {
  FileObject fo = nativeFileItem.getFileObject();
  FileObject parent = fo.getParent();
  String path = CndFileUtils.normalizePath(parent);
  addPath(path);
  String canonicalPath;
  try {
    canonicalPath = CndFileUtils.getCanonicalPath(parent);
    if (!path.equals(canonicalPath)) {
      addPath(canonicalPath);
    }
  } catch (IOException ex) {
    DiagnosticExceptoins.register(ex);
  }
}

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

try {
  entryFS = fo.getFileSystem();
  dir = CndFileUtils.normalizePath(fo);
} catch (FileStateInvalidException ex) {
  Exceptions.printStackTrace(ex);
origin: org.netbeans.modules/org-netbeans-modules-cnd-modelimpl

String absPath = CndFileUtils.normalizePath(fo);
ProjectBase project = null;
org.netbeans.modules.cnd.utils.cacheCndFileUtilsnormalizePath

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
  • urlToFileObject
  • areFilenamesEqual
  • getCanonicalFileObject
  • areFilenamesEqual,
  • getCanonicalFileObject,
  • getCanonicalPath,
  • isExistingDirectory,
  • isSystemCaseSensitive,
  • toFSPathList,
  • toFile,
  • changeStringCaseIfNeeded,
  • clearFileExistenceCache

Popular in Java

  • Creating JSON documents from java classes using gson
  • getContentResolver (Context)
  • compareTo (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • ImageIO (javax.imageio)
  • Option (scala)
  • Best plugins for Eclipse
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