Package ro.redeul.google.go.lang.completion.insertHandler

Examples of ro.redeul.google.go.lang.completion.insertHandler.FunctionInsertHandler


    }

    @Override
    public void visitMethodDeclaration(GoMethodDeclaration declaration) {
        lookupElement = lookupElement
            .withInsertHandler(new FunctionInsertHandler())
            .withIcon(PlatformIcons.METHOD_ICON);
    }
View Full Code Here


    }

    @Override
    public void visitFunctionDeclaration(GoFunctionDeclaration declaration) {
        lookupElement = lookupElement
            .withInsertHandler(new FunctionInsertHandler())
            .withIcon(PlatformIcons.FUNCTION_ICON);
    }
View Full Code Here

            return;
        }

        if ( ! isImported(state) || GoNamesUtil.isExported(function.getFunctionName()) ) {
            String text = DocumentUtil.getFunctionPresentationText(function);
            addVariant(function, text, state, PlatformIcons.FUNCTION_ICON, new FunctionInsertHandler());
        }
    }
View Full Code Here

        }
    }

    public Object[] references() {

        FunctionInsertHandler functionInsertHandler = new FunctionInsertHandler();
        for (String builtInType : builtInFunctions) {
            variants.add(
                    LookupElementBuilder.create(builtInType)
                            .withTypeText("builtin", true)
                            .withInsertHandler(functionInsertHandler)
View Full Code Here

TOP

Related Classes of ro.redeul.google.go.lang.completion.insertHandler.FunctionInsertHandler

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.