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


Java ShorthandCompletionCache类代码示例

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


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

示例1: setCommentCompletions

import org.fife.rsta.ac.ShorthandCompletionCache; //导入依赖的package包/类
private void setCommentCompletions(ShorthandCompletionCache shorthandCache) {
	AbstractCompletionProvider provider = shorthandCache.getCommentProvider();
	if(provider != null) {
		for(Iterator i = shorthandCache.getCommentCompletions().iterator();
				i.hasNext();) {
			Completion c = (Completion)i.next();
			provider.addCompletion(c);
		}
		setCommentCompletionProvider(provider);
	}
}
 
开发者ID:pyros2097,项目名称:GdxStudio,代码行数:12,代码来源:JavaCompletionProvider.java

示例2: ZScriptCompletionProvider

import org.fife.rsta.ac.ShorthandCompletionCache; //导入依赖的package包/类
/**
 * Constructor.
 */
public ZScriptCompletionProvider() {
	CodeCompletionProvider codeProvider = createCodeCompletionProvider();
	AbstractCompletionProvider commentsProvider =
			createCommentCompletionProvider();
	ShorthandCompletionCache cache = new ZScriptShorthandCompletionCache(
			codeProvider, commentsProvider);
	setDefaultCompletionProvider(createCodeCompletionProvider());
	setStringCompletionProvider(createStringCompletionProvider());
	setCommentCompletionProvider(commentsProvider);
	setShorthandCompletionCache(cache);
}
 
开发者ID:bobbylight,项目名称:ZScriptLanguageSupport,代码行数:15,代码来源:ZScriptCompletionProvider.java

示例3: setShorthandCompletionCache

import org.fife.rsta.ac.ShorthandCompletionCache; //导入依赖的package包/类
/**
 * Set short hand completion cache (template and comment completions)
 */
public void setShorthandCompletionCache(ShorthandCompletionCache cache) {

	getCodeCompletionProvider().setShorthandCache(cache);

	//reset comment completions too
	DefaultCompletionProvider dcp = (DefaultCompletionProvider)
			getCommentCompletionProvider();
	List<Completion> commentCompletions = cache.getCommentCompletions();
	for (Completion completion : commentCompletions) {
		dcp.addCompletion(completion);
	}

}
 
开发者ID:bobbylight,项目名称:ZScriptLanguageSupport,代码行数:17,代码来源:ZScriptCompletionProvider.java

示例4: setCommentCompletions

import org.fife.rsta.ac.ShorthandCompletionCache; //导入依赖的package包/类
private void setCommentCompletions(ShorthandCompletionCache shorthandCache) {
	AbstractCompletionProvider provider = shorthandCache.getCommentProvider();
	if(provider != null) {
		for (Completion c : shorthandCache.getCommentCompletions()) {
			provider.addCompletion(c);
		}
		setCommentCompletionProvider(provider);
	}
}
 
开发者ID:bobbylight,项目名称:RSTALanguageSupport,代码行数:10,代码来源:JavaCompletionProvider.java

示例5: setShorthandCompletionCache

import org.fife.rsta.ac.ShorthandCompletionCache; //导入依赖的package包/类
/**
 * Set short hand completion cache
 */
public void setShorthandCompletionCache(
						ShorthandCompletionCache shorthandCache) {
	sourceProvider.setShorthandCache(shorthandCache);
	//reset comment completions too
	setCommentCompletions(shorthandCache);
}
 
开发者ID:bobbylight,项目名称:RSTALanguageSupport,代码行数:10,代码来源:JavaScriptCompletionProvider.java

示例6: setCommentCompletions

import org.fife.rsta.ac.ShorthandCompletionCache; //导入依赖的package包/类
/**
 * load the comment completions from the short hand cache
 * @param shorthandCache
 */
private void setCommentCompletions(ShorthandCompletionCache shorthandCache){
	AbstractCompletionProvider provider = shorthandCache.getCommentProvider();
	if(provider != null) {
		for (Completion c : shorthandCache.getCommentCompletions()) {
			provider.addCompletion(c);
		}
		setCommentCompletionProvider(provider);
	}
}
 
开发者ID:bobbylight,项目名称:RSTALanguageSupport,代码行数:14,代码来源:JavaScriptCompletionProvider.java

示例7: setShorthandCompletionCache

import org.fife.rsta.ac.ShorthandCompletionCache; //导入依赖的package包/类
/**
 * Set short hand completion cache (template and comment completions)
 */
public void setShorthandCompletionCache(ShorthandCompletionCache cache) {
	sourceProvider.setShorthandCache(cache);
	//reset comment completions too
	setCommentCompletions(cache);
}
 
开发者ID:pyros2097,项目名称:GdxStudio,代码行数:9,代码来源:JavaCompletionProvider.java

示例8: setShorthandCache

import org.fife.rsta.ac.ShorthandCompletionCache; //导入依赖的package包/类
void setShorthandCache(ShorthandCompletionCache cache) {
	this.shorthandCache = cache;
}
 
开发者ID:bobbylight,项目名称:ZScriptLanguageSupport,代码行数:4,代码来源:CodeCompletionProvider.java

示例9: setShorthandCache

import org.fife.rsta.ac.ShorthandCompletionCache; //导入依赖的package包/类
/**
 * Set template completion cache for source completion provider
 * @param templateCache
 */
public void setShorthandCache(ShorthandCompletionCache shorthandCache) {
	this.shorthandCache = shorthandCache;
}
 
开发者ID:pyros2097,项目名称:GdxStudio,代码行数:8,代码来源:SourceCompletionProvider.java

示例10: setShorthandCache

import org.fife.rsta.ac.ShorthandCompletionCache; //导入依赖的package包/类
/**
 * Set template completion cache for source completion provider.
 *
 * @param shorthandCache The new cache.
 */
public void setShorthandCache(ShorthandCompletionCache shorthandCache) {
	this.shorthandCache = shorthandCache;
}
 
开发者ID:bobbylight,项目名称:RSTALanguageSupport,代码行数:9,代码来源:SourceCompletionProvider.java


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