Package protobuf.lang.psi.api

Examples of protobuf.lang.psi.api.PbFile


    public PbFile[] getImportedFiles(boolean onlyAliased) {
        PbImportDef[] importDefs = getImportDefinitions();
        ArrayList<PbFile> importFiles = new ArrayList<PbFile>(importDefs.length);
        for (PbImportDef importDef : importDefs) {
            PbFile aliasedFile = importDef.getAliasedFile();
            if (aliasedFile != null || !onlyAliased) {
                importFiles.add(aliasedFile);
            }

        }
View Full Code Here


     */
    @Override
    // Note that this method gets its information from inspecting the Psi element tree, so must use the runReadAction and
    // Computable because it's not run from the normal thread that deals with them.
    public ValidityState getValidityState() {
        final PbFile pbFile = ApplicationManager.getApplication().runReadAction(new Computable<PbFile>() {
            public PbFile compute() {
                return (PbFile) PsiManager.getInstance(myModule.getProject()).findFile(myFile);
            }
        });
        String packageName = ApplicationManager.getApplication().runReadAction(new Computable<String>() {
View Full Code Here

TOP

Related Classes of protobuf.lang.psi.api.PbFile

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.