Examples of GemUnqualifiedNameCaseInsensitiveSorter


Examples of org.openquark.cal.services.GemUnqualifiedNameCaseInsensitiveSorter

        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.GemUnqualifiedNameCaseInsensitiveSorter

     * children according to the alphabet:  A, a, B, b, etc...
     * Side Note: This method assumes that the gems will have a name of length greater than 0.
     * @param selectedNode The node below which all entities will be sorted.
     */
    public void sortByUnqualifiedName(BrowserTreeNode selectedNode) {
        sortByX(selectedNode, new GemUnqualifiedNameCaseInsensitiveSorter());
    }
View Full Code Here

Examples of org.openquark.cal.services.GemUnqualifiedNameCaseInsensitiveSorter

                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.GemUnqualifiedNameCaseInsensitiveSorter

            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.