public static CsmFile getCsmFile(NativeFileItem item, boolean waitParsing, boolean snapShot) { CsmProject csmProject = CsmModelAccessor.getModel().getProject(item.getNativeProject()); if (csmProject != null) { return csmProject.findFile(item, waitParsing, snapShot); } return null; }
CsmProject csmProject = CsmModelAccessor.getModel().getProject(item.getNativeProject()); if (csmProject != null) { CsmFile file = csmProject.findFile(item, waitParsing, snapShot); if (file != null) { if (item.getClass().getName().contains("StandaloneFileProvider")) { // NOI18N
private void fireProjectReadyImpl(CsmProject project) { synchronized (lock) { if (cndParserResult != null) { Snapshot snapshot = cndParserResult.getSnapshot(); if (snapshot != null) { FileObject fo = snapshot.getSource().getFileObject(); if (fo != null) { CsmFile file = project.findFile(fo.getPath(), false, false); if (file != null) { LOG.log(Level.FINE, "update parse result for {0} because project ready", snapshot); //NOI18N long fileVersion = CsmFileInfoQuery.getDefault().getFileVersion(file); cndParserResult = new CndParserResult(file, snapshot, fileVersion, getDocumentVersion(snapshot)); listeners.fireChange(); } } } } } }
waitProjectParsed(getProject(), false); RepositoryTestUtils.deleteDefaultCacheLocation(); fileImpl = (FileImpl) prj.findFile(absPath, true, false);