本文整理汇总了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);
}
}
示例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);
}
示例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);
}
}
示例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);
}
}
示例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);
}
示例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);
}
}
示例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);
}
示例8: setShorthandCache
import org.fife.rsta.ac.ShorthandCompletionCache; //导入依赖的package包/类
void setShorthandCache(ShorthandCompletionCache cache) {
this.shorthandCache = cache;
}
示例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;
}
示例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;
}