本文整理汇总了Java中org.eclipse.jface.text.contentassist.IContentAssistantExtension3类的典型用法代码示例。如果您正苦于以下问题:Java IContentAssistantExtension3类的具体用法?Java IContentAssistantExtension3怎么用?Java IContentAssistantExtension3使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
IContentAssistantExtension3类属于org.eclipse.jface.text.contentassist包,在下文中一共展示了IContentAssistantExtension3类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: assistSessionEnded
import org.eclipse.jface.text.contentassist.IContentAssistantExtension3; //导入依赖的package包/类
public void assistSessionEnded(ContentAssistEvent event) {
if (event.processor != ContentAssistProcessor.this)
return;
for (CompletionProposalCategory cat : getCategoriesToNotify()) {
cat.sessionEnded();
}
fCategoryIteration= null;
fRepetition= -1;
fIterationGesture= null;
if (event.assistant instanceof IContentAssistantExtension2) {
IContentAssistantExtension2 extension= (IContentAssistantExtension2) event.assistant;
extension.setShowEmptyList(false);
extension.setRepeatedInvocationMode(false);
extension.setStatusLineVisible(false);
if (extension instanceof IContentAssistantExtension3) {
IContentAssistantExtension3 ext3= (IContentAssistantExtension3) extension;
((ContentAssistant) ext3).setRepeatedInvocationTrigger(null);
}
}
}
示例2: assistSessionEnded
import org.eclipse.jface.text.contentassist.IContentAssistantExtension3; //导入依赖的package包/类
public void assistSessionEnded(ContentAssistEvent event) {
if (event.processor != ContentAssistProcessor.this)
return;
for (Iterator<CompletionProposalCategory> it= getCategoriesToNotify().iterator(); it.hasNext();) {
CompletionProposalCategory cat= it.next();
cat.sessionEnded();
}
fCategoryIteration= null;
fRepetition= -1;
fIterationGesture= null;
if (event.assistant instanceof IContentAssistantExtension2) {
IContentAssistantExtension2 extension= (IContentAssistantExtension2) event.assistant;
extension.setShowEmptyList(false);
extension.setRepeatedInvocationMode(false);
extension.setStatusLineVisible(false);
if (extension instanceof IContentAssistantExtension3) {
IContentAssistantExtension3 ext3= (IContentAssistantExtension3) extension;
((ContentAssistant) ext3).setRepeatedInvocationTrigger(null);
}
}
}
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion-Juno38,代码行数:24,代码来源:ContentAssistProcessor.java
示例3: assistSessionStarted
import org.eclipse.jface.text.contentassist.IContentAssistantExtension3; //导入依赖的package包/类
public void assistSessionStarted(ContentAssistEvent event) {
if (event.processor != ContentAssistProcessor.this)
return;
fIterationGesture= getIterationGesture();
KeySequence binding= getIterationBinding();
// This may show the warning dialog if all categories are disabled
setCategoryIteration();
for (CompletionProposalCategory cat : getCategoriesToNotify()) {
cat.sessionStarted();
}
fRepetition= 0;
if (event.assistant instanceof IContentAssistantExtension2) {
IContentAssistantExtension2 extension= (IContentAssistantExtension2) event.assistant;
if (fCategoryIteration.size() == 1) {
extension.setRepeatedInvocationMode(false);
extension.setShowEmptyList(false);
} else {
extension.setRepeatedInvocationMode(true);
extension.setStatusLineVisible(true);
extension.setStatusMessage(createIterationMessage());
extension.setShowEmptyList(true);
if (extension instanceof IContentAssistantExtension3) {
IContentAssistantExtension3 ext3= (IContentAssistantExtension3) extension;
((ContentAssistant) ext3).setRepeatedInvocationTrigger(binding);
}
}
}
}
示例4: assistSessionStarted
import org.eclipse.jface.text.contentassist.IContentAssistantExtension3; //导入依赖的package包/类
public void assistSessionStarted(ContentAssistEvent event) {
if (event.processor != ContentAssistProcessor.this)
return;
fIterationGesture= getIterationGesture();
KeySequence binding= getIterationBinding();
// This may show the warning dialog if all categories are disabled
setCategoryIteration();
for (Iterator<CompletionProposalCategory> it= getCategoriesToNotify().iterator(); it.hasNext();) {
CompletionProposalCategory cat= it.next();
cat.sessionStarted();
}
fRepetition= 0;
if (event.assistant instanceof IContentAssistantExtension2) {
IContentAssistantExtension2 extension= (IContentAssistantExtension2) event.assistant;
if (fCategoryIteration.size() == 1) {
extension.setRepeatedInvocationMode(false);
extension.setShowEmptyList(false);
} else {
extension.setRepeatedInvocationMode(true);
extension.setStatusLineVisible(true);
extension.setStatusMessage(createIterationMessage());
extension.setShowEmptyList(true);
if (extension instanceof IContentAssistantExtension3) {
IContentAssistantExtension3 ext3= (IContentAssistantExtension3) extension;
((ContentAssistant) ext3).setRepeatedInvocationTrigger(binding);
}
}
}
}
开发者ID:trylimits,项目名称:Eclipse-Postfix-Code-Completion-Juno38,代码行数:35,代码来源:ContentAssistProcessor.java
示例5: setRepeatedModeStatus
import org.eclipse.jface.text.contentassist.IContentAssistantExtension3; //导入依赖的package包/类
protected void setRepeatedModeStatus(IContentAssistantExtension2 caExt2, boolean enabled, KeySequence binding) {
caExt2.setShowEmptyList(enabled);
caExt2.setRepeatedInvocationMode(enabled);
caExt2.setStatusLineVisible(enabled);
if(enabled) {
caExt2.setStatusMessage(createIterationMessage());
}
if (caExt2 instanceof IContentAssistantExtension3) {
IContentAssistantExtension3 ext3 = (IContentAssistantExtension3) caExt2;
ext3.setRepeatedInvocationTrigger(binding);
}
}