Package edu.stanford.bmir.gwtcodemirror.client

Examples of edu.stanford.bmir.gwtcodemirror.client.AutoCompletionChoice


                if(match.isPresent()) {
                    Set<OWLEntity> entities = shortFormProvider.getEntities(shortForm);
                    for(OWLEntity entity : entities) {
                        if(expectedEntityTypes.contains(entity.getEntityType())) {
                            EscapingShortFormProvider escapingShortFormProvider = new EscapingShortFormProvider(shortFormProvider);
                            AutoCompletionChoice choice = new AutoCompletionChoice(escapingShortFormProvider.getShortForm(entity), shortForm, "", fromPos, toPos);
                            AutoCompletionMatch autoCompletionMatch = new AutoCompletionMatch(
                                    match.get(),
                                        choice
                            );
                            matches.add(autoCompletionMatch);
View Full Code Here


        if(e.isOntologyNameExpected()) {
            WebProtegeOntologyIRIShortFormProvider sfp = new WebProtegeOntologyIRIShortFormProvider(project.getRootOntology());
            for(OWLOntology ont : project.getRootOntology().getImportsClosure()) {
                String ontologyName = sfp.getShortForm(ont);
                if(lastWordPrefix.isEmpty() || ontologyName.toLowerCase().startsWith(lastWordPrefix)) {
                    choices.add(new AutoCompletionChoice(ontologyName, ontologyName, "cm-ontology-list", fromPos, toPos));
                }
            }
        }
        return choices;
    }
View Full Code Here

                Optional<ManchesterOWLSyntax> kw = syntaxStyles.getKeyword(expectedKeyword);
                String style = "";
                if(kw.isPresent()) {
                    style = syntaxStyles.getStyleName(kw.get());
                }
                expectedKeywordChoices.add(new AutoCompletionChoice(expectedKeyword, expectedKeyword, style, fromPos, toPos));
            }
        }
        Collections.sort(expectedKeywordChoices, new Comparator<AutoCompletionChoice>() {

            private ManchesterSyntaxKeywords.KeywordComparator keywordComparator = new ManchesterSyntaxKeywords.KeywordComparator();
View Full Code Here

TOP

Related Classes of edu.stanford.bmir.gwtcodemirror.client.AutoCompletionChoice

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.