Examples of saveAllDocuments()


Examples of com.intellij.openapi.fileEditor.FileDocumentManager.saveAllDocuments()

    @Override
    public AnnotationResult doAnnotate(PsiFile psiFile) {
        ApplicationManager.getApplication().invokeAndWait(new Runnable() {
            public void run() {
                FileDocumentManager fdm = FileDocumentManager.getInstance();
                fdm.saveAllDocuments();
            }
        }, ModalityState.any());

        VirtualFile file = psiFile.getVirtualFile();
        if (file == null)
View Full Code Here

Examples of com.intellij.openapi.fileEditor.FileDocumentManager.saveAllDocuments()

    VirtualFile flexFile = LangDataKeys.VIRTUAL_FILE.getData(e.getDataContext());
    if (project == null || flexFile == null) return;

    PsiDocumentManager.getInstance(project).commitAllDocuments();
    FileDocumentManager fileDocumentManager = FileDocumentManager.getInstance();
    fileDocumentManager.saveAllDocuments();
    Document document = fileDocumentManager.getDocument(flexFile);
    if (document == null) return;

    final String commandName = e.getPresentation().getText();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.