Package org.netbeans.spi.editor.completion.support

Examples of org.netbeans.spi.editor.completion.support.AsyncCompletionTask


        super(text, description);
    }

    @Override
    public CompletionTask createDocumentationTask() {
        return new AsyncCompletionTask(new AsyncCompletionQuery() {
            @Override
            protected void query(CompletionResultSet completionResultSet, Document document, int i) {
                completionResultSet.setDocumentation(new ActionCompletionDocumentation(ActionCompletionItem.this));
                completionResultSet.finish();
            }
View Full Code Here


        CompletionUtilities.renderHtml(fieldIcon, text, null, grphcs, font, (selected ? Color.white : fieldColor), width, height, selected);
    }

    @Override
    public CompletionTask createDocumentationTask() {
        return new AsyncCompletionTask(new AsyncCompletionQuery() {
            @Override
            protected void query(CompletionResultSet completionResultSet, Document document, int i) {
                completionResultSet.setDocumentation(new WordPressCompletionDocumentation(WordPressCompletionItem.this));
                completionResultSet.finish();
            }
View Full Code Here

        super(text, description);
    }

    @Override
    public CompletionTask createDocumentationTask() {
        return new AsyncCompletionTask(new AsyncCompletionQuery() {
            @Override
            protected void query(CompletionResultSet completionResultSet, Document document, int i) {
                completionResultSet.setDocumentation(new FilterCompletionDocumentation(FilterCompletionItem.this));
                completionResultSet.finish();
            }
View Full Code Here

            Exceptions.printStackTrace(ex);
        }
    }

    public CompletionTask createToolTipTask() {
        return new AsyncCompletionTask(new AsyncCompletionQuery() {
            protected void query(CompletionResultSet completionResultSet, Document document, int i) {
                JToolTip toolTip = new JToolTip();
                toolTip.setTipText("Press Enter to insert \"" + getCompletionText() + "\"");
                completionResultSet.setToolTip(toolTip);
                completionResultSet.finish();
View Full Code Here

       
        CompletionUtilities.renderHtml(type.getImage(), getDisplayText(), getRightDisplayText(), g, defaultFont, color, width, height, selected);
    }

    public CompletionTask createDocumentationTask() {
        return new AsyncCompletionTask(new AsyncCompletionQuery() {
            protected void query(CompletionResultSet completionResultSet, Document document, int i) {
                completionResultSet.setDocumentation(new QuorumCompletionDocumentation(QuorumCompletionItem.this));
                completionResultSet.finish();
            }
        });
View Full Code Here

                    }
                }
            }
        });
       
        return new AsyncCompletionTask(new AsyncCompletionQuery() {

            @Override
            protected void query(CompletionResultSet completionResultSet, Document document, int caretOffset) {
                String filter = "";
                try {
View Full Code Here

TOP

Related Classes of org.netbeans.spi.editor.completion.support.AsyncCompletionTask

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.