Package org.openquark.cal.services

Examples of org.openquark.cal.services.GemComparatorSorter


        ModuleTypeInfo workingModuleTypeInfo = perspective.getWorkingModuleTypeInfo();
       
        // Before categorizing sort gems alphabetically so they appear
        // in alphabetical order inside their categories.
        GemComparatorSorter sorter = new GemUnqualifiedNameCaseInsensitiveSorter();
        List<GemEntity> childList = sorter.getSortedList(getAllEntities(selectedNode));

        // Attach the categorizer info to this node.
        selectedNode.setCategorizer(categorizer, provider);

        // Categorize the children list.
View Full Code Here


                searchPattern.matcher(typeExprQualifiedString).find()) {
                    resultList.add(gemEntity);
                }
        }         
       
        GemComparatorSorter sorter = new GemUnqualifiedNameCaseInsensitiveSorter();
        List<GemEntity> sortedList = sorter.getSortedList(resultList);
       
        // Add the matching gem nodes to the results node.
        for (final GemEntity gemEntity : sortedList) {
            searchResultsTreeNode.add(new SearchResultGemTreeNode(gemEntity, perspective.getWorkingModuleTypeInfo()));
        }
View Full Code Here

        if (lastSearchString != null) {
            doSearch (lastSearchString);
        }

        // Apply any categorization or sorting that is associated with the search node.
        GemComparatorSorter sorter = searchResultsTreeNode.getSorter();
        if (sorter != null) {
            sortByX(searchResultsTreeNode, sorter);
        }
       
        GemCategorizer<?> categorizer = searchResultsTreeNode.getCategorizer();
View Full Code Here

            entityToTreeNodeMap.put(gemEntity, newNode);
        }
       
        // Sort the set into a list by unqualified name. This way all the gems
        // appear in alphabetical order in whatever category they fall into.
        GemComparatorSorter sorter = new GemUnqualifiedNameCaseInsensitiveSorter();
        List<GemEntity> sortedList = sorter.getSortedList(allEntities);
       
        // Fill up the workspace node with the entities
        fillTreeStructure(workspaceTreeNode, sortedList);

        invokeOnEventDispatchThread(new Runnable() {
View Full Code Here

TOP

Related Classes of org.openquark.cal.services.GemComparatorSorter

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.