Examples of GemComparatorSorter


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

Examples of org.openquark.cal.services.GemComparatorSorter

                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

Examples of org.openquark.cal.services.GemComparatorSorter

        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

Examples of org.openquark.cal.services.GemComparatorSorter

            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
Copyright © 2018 www.massapi.com. 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.