@Test(dependsOnMethods = "testOpenFile") public void testIsFileOpen() throws WorkspaceDocumentException, IOException { documentManager.closeFile(filePath); Assert.assertFalse(documentManager.isFileOpen(filePath)); documentManager.openFile(filePath, readAll(filePath.toFile())); Assert.assertTrue(documentManager.isFileOpen(filePath)); }
@Override public boolean isFileOpen(Path filePath) { return filePath != null && documentList.containsKey(filePath) && documentList.get(filePath).getDocument().isPresent(); }
WorkspaceDocumentManagerImpl implements WorkspaceDocumentManager { @Override public boolean isFileOpen(Path filePath) { return filePath != null && documentList.containsKey(filePath) && documentList.get(filePath).getDocument().isPresent(); } }
WorkspaceDocumentManagerImpl implements WorkspaceDocumentManager { @Override public boolean isFileOpen(Path filePath) { return filePath != null && documentList.containsKey(filePath) && documentList.get(filePath).getDocument().isPresent(); } protected  WorkspaceDocumentManagerImpl(); }
WorkspaceDocumentManagerImpl implements WorkspaceDocumentManager { @Override public boolean isFileOpen(Path filePath) { return filePath != null && documentList.containsKey(filePath) && documentList.get(filePath).getDocument().isPresent(); } protected  WorkspaceDocumentManagerImpl(); static WorkspaceDocumentManagerImpl getInstance(); @Override boolean isFileOpen(Path filePath); @Override void openFile(Path filePath, String content); @Override void updateFile(Path filePath, List<TextDocumentContentChangeEvent> changeEvent); @Override void setCodeLenses(Path filePath, List<CodeLens> codeLens); @Override void closeFile(Path filePath); @Override List<CodeLens> getCodeLenses(Path filePath); @Override LSDocumentIdentifier getLSDocument(Path filePath); @Override String getFileContent(Path filePath); @Override Optional<Lock> lockFile(Path filePath); @Override Set<Path> getAllFilePaths(); @Override void clearAllFilePaths(); @Override SyntaxTree getTree(Path filePath); @Override void setTree(Path filePath, SyntaxTree newTree); }
WorkspaceDocumentManagerImpl implements WorkspaceDocumentManager { @Override public boolean isFileOpen(Path filePath) { return filePath != null && documentList.containsKey(filePath) && documentList.get(filePath).getDocument().isPresent(); } protected  WorkspaceDocumentManagerImpl(); static WorkspaceDocumentManagerImpl getInstance(); @Override boolean isFileOpen(Path filePath); @Override void openFile(Path filePath, String content); @Override void updateFile(Path filePath, List<TextDocumentContentChangeEvent> changeEvent); @Override void setCodeLenses(Path filePath, List<CodeLens> codeLens); @Override void closeFile(Path filePath); @Override List<CodeLens> getCodeLenses(Path filePath); @Override LSDocumentIdentifier getLSDocument(Path filePath); @Override String getFileContent(Path filePath); @Override Optional<Lock> lockFile(Path filePath); @Override Set<Path> getAllFilePaths(); @Override void clearAllFilePaths(); @Override SyntaxTree getTree(Path filePath); @Override void setTree(Path filePath, SyntaxTree newTree);  }