Package org.openquark.gems.client.IntellicutListModel

Examples of org.openquark.gems.client.IntellicutListModel.FilterLevel


       
        IntellicutListModel listModel = getIntellicutListModel();
       
        listModel.load();

        FilterLevel filterLevel = FilterLevel.fromString(GemCutter.getPreferences().get(IntellicutManager.INTELLICUT_GEM_FILTER_LEVEL_PREF_KEY, IntellicutManager.INTELLICUT_GEM_FILTER_LEVEL_DEFAULT.toString()));
        boolean hasBestGems = listModel.hasFilteredGemsFor("", filterLevel);
        if (!hasBestGems) {
            filterLevel = FilterLevel.SHOW_ALL;
        }
       
View Full Code Here


    /**
     * Updates the status label of the list to show the correct information.
     */
    private void updateStatusLabel() {
       
        FilterLevel filterLevel = getIntellicutListModel().getFilterLevel();
        int numGems = getIntellicutListModel().getSize();
       
        String message = null;
        String messageId = (filtersEnabled == false)                    ? (numGems > 1 ? "ICL_ShowingMatchingGems" : "ICL_ShowingOneMatchingGem") :
                           (filterLevel == FilterLevel.SHOW_ALL)        ? (numGems > 1 ? "ICL_ShowingAllGems" : "ICL_ShowingAllOneGem") :
View Full Code Here

TOP

Related Classes of org.openquark.gems.client.IntellicutListModel.FilterLevel

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.