Package org.sodbeans.compiler.api

Examples of org.sodbeans.compiler.api.CompilerCodeCompletionResult


        TreeSet<CompilerCodeCompletionResult> set = new TreeSet<CompilerCodeCompletionResult>();
        Collection<CodeCompletionItem> items = virtualMachineResults.getCompletionItems();
        Iterator<CodeCompletionItem> iterator = items.iterator();
        while(iterator.hasNext()) {
            CodeCompletionItem next = iterator.next();
            CompilerCodeCompletionResult nextResult = new CompilerCodeCompletionResult();
            nextResult.setDisplayName(next.getDisplayName());
            nextResult.setDisplayType(next.getDisplayType());
            nextResult.setCompletion(next.getCompletion());
            nextResult.setDocumentation(next.getDocumentation());
            nextResult.setType(getType(next));
            nextResult.setIsBaseClassMethod(next.isBaseClassMethod());
            set.add(nextResult);
        }
        return set;
    }
View Full Code Here


                        if(results.size() > 0) {
                            filter = completionResults.getFilter();
                        }
                        Iterator<CompilerCodeCompletionResult> iterator = results.iterator();
                        while(iterator.hasNext()) {
                            CompilerCodeCompletionResult next = iterator.next();
                            QuorumCompletionItem res = new QuorumCompletionItem();
                            res.setIsBaseClassMethod(next.isBaseClassMethod());
                            res.setType(next.getType());
                            res.setCaretOffset(caretOffset);
                            res.setDotOffset(caretOffset - filter.length());
                            res.setDocumentationText(next.getDocumentation());
                            res.setCompletionText(next.getCompletion());
                            res.setDisplayText(next.getDisplayName());
                            res.setRightDisplayText(next.getDisplayType());
                            if(!next.getDisplayName().equals("") && next.getDisplayName().startsWith(filter)) {
                                completionResultSet.addItem(res);
                            }
                        }               
                    }
View Full Code Here

TOP

Related Classes of org.sodbeans.compiler.api.CompilerCodeCompletionResult

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.