当前位置: 首页>>代码示例>>Java>>正文


Java CamelCaseFilter类代码示例

本文整理汇总了Java中com.rapidminer.gui.tools.CamelCaseFilter的典型用法代码示例。如果您正苦于以下问题:Java CamelCaseFilter类的具体用法?Java CamelCaseFilter怎么用?Java CamelCaseFilter使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


CamelCaseFilter类属于com.rapidminer.gui.tools包,在下文中一共展示了CamelCaseFilter类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: updateTree

import com.rapidminer.gui.tools.CamelCaseFilter; //导入依赖的package包/类
public List<TreePath> updateTree() {
	// int hits = Integer.MAX_VALUE;
	GroupTree filteredTree = this.completeTree.clone();
	if (!"true".equals(System.getProperty(RapidMiner.PROPERTY_DEVELOPER_MODE))) {
		removeDeprecatedGroup(filteredTree);
	}
	List<TreePath> expandedPaths = new LinkedList<>();
	if (filter != null && filter.trim().length() > 0) {
		CamelCaseFilter ccFilter = new CamelCaseFilter(filter);
		removeFilteredInstances(ccFilter, filteredTree, expandedPaths, new TreePath(getRoot()));
	}
	if (filterDeprecated) {
		removeDeprecated(filteredTree);
	}
	this.displayedTree = filteredTree;
	if (sortByUsage) {
		filteredTree.sort(new UsageStatsComparator());
	}
	fireCompleteTreeChanged(this);
	return expandedPaths;
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:22,代码来源:NewOperatorGroupTreeModel.java

示例2: updateTree

import com.rapidminer.gui.tools.CamelCaseFilter; //导入依赖的package包/类
public int updateTree() {
    int hits = Integer.MAX_VALUE;
    GroupTree filteredTree = this.completeTree.clone();
    if (!"true".equals(System.getProperty(RapidMiner.PROPERTY_DEVELOPER_MODE))) {
        removeDeprecatedGroup(filteredTree);
    }
    if (filter != null && filter.trim().length() > 0) {
        CamelCaseFilter ccFilter = new CamelCaseFilter(filter);
        hits = removeFilteredInstances(ccFilter, filteredTree);
    }
    if (filterDeprecated) {
        hits = removeDeprecated(filteredTree);
    }
    this.displayedTree = filteredTree;
    if (sortByUsage) {
        filteredTree.sort(new UsageStatsComparator());
    }
    fireCompleteTreeChanged(this);
    return hits;
}
 
开发者ID:rapidminer,项目名称:rapidminer-5,代码行数:21,代码来源:NewOperatorGroupTreeModel.java

示例3: updateTree

import com.rapidminer.gui.tools.CamelCaseFilter; //导入依赖的package包/类
public List<TreePath> updateTree() {
	GroupTree filteredTree = restoreTree();
	List<TreePath> expandedPaths = new LinkedList<>();
	if (filter != null && filter.trim().length() > 0) {
		int hits = 0;
		String[] terms = filter.trim().split(SEARCH_TERM_DELIMITER, MAX_SEARCH_TERMS);
		if (terms.length > 1) {
			Arrays.setAll(terms, i -> terms[i].toLowerCase());
			hits = removeFilteredInstances(terms, filteredTree, expandedPaths, new TreePath(getRoot()));
		}

		// If we couldn't find anything, restore the tree and try the CamelCase search
		if (hits == 0) {
			filteredTree = restoreTree();
			OperatorFilter ccFilter = new CamelCaseFilter(filter);
			hits = removeFilteredInstances(ccFilter, filteredTree, expandedPaths, new TreePath(getRoot()));
		}

		// If we still couldn't find anything, restore the tree and try the typo search
		if (hits == 0) {
			filteredTree = restoreTree();
			OperatorFilter cctFilter = new CamelCaseTypoFilter(filter);
			removeFilteredInstances(cctFilter, filteredTree, expandedPaths, new TreePath(getRoot()));
		}
	}

	if (filterDeprecated) {
		removeDeprecated(filteredTree);
	}
	this.displayedTree = filteredTree;
	filteredTree.sort(priorityComparator);

	if (sortByUsage) {
		filteredTree.sort(usageComparator);
	}

	fireCompleteTreeChanged(this);
	return expandedPaths;
}
 
开发者ID:rapidminer,项目名称:rapidminer-studio,代码行数:40,代码来源:NewOperatorGroupTreeModel.java


注:本文中的com.rapidminer.gui.tools.CamelCaseFilter类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。