Package com.intellij.openapi.fileEditor.ex

Examples of com.intellij.openapi.fileEditor.ex.FileEditorProviderManager


        }
        return null;
    }

    public static boolean hasEditingHistory(VirtualFile virtualFile, Project project) {
        FileEditorProviderManager editorProviderManager = FileEditorProviderManager.getInstance();
        FileEditorProvider[] providers = editorProviderManager.getProviders(project, virtualFile);
        FileEditorState editorState = EditorHistoryManager.getInstance(project).getState(virtualFile, providers[0]);
        return editorState != null;
    }
View Full Code Here


        Messages.showErrorDialog(project, "There is no manifest in the bundle JAR. Please check the facet settings, rebuild and try again.",
                                 "Cannot open manifest");
        return;
      }

      FileEditorProviderManager editorProviderManager = FileEditorProviderManager.getInstance();
      if (editorProviderManager.getProviders(project, manifestFile).length == 0) {
        Messages.showMessageDialog(project, IdeBundle.message("error.files.of.this.type.cannot.be.opened",
                                                              ApplicationNamesInfo.getInstance().getProductName()),
                                   IdeBundle.message("title.cannot.open.file"), Messages.getErrorIcon());
        return;
      }
View Full Code Here

TOP

Related Classes of com.intellij.openapi.fileEditor.ex.FileEditorProviderManager

Copyright © 2018 www.massapicom. 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.