當前位置: 首頁>>代碼示例>>Java>>正文


Java IContentAssistantExtension3類代碼示例

本文整理匯總了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);
		}
	}
}
 
開發者ID:trylimits,項目名稱:Eclipse-Postfix-Code-Completion,代碼行數:23,代碼來源:ContentAssistProcessor.java

示例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);
			}
		}

	}
}
 
開發者ID:trylimits,項目名稱:Eclipse-Postfix-Code-Completion,代碼行數:34,代碼來源:ContentAssistProcessor.java

示例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);
	}
}
 
開發者ID:GoClipse,項目名稱:goclipse,代碼行數:14,代碼來源:LangContentAssistProcessor.java


注:本文中的org.eclipse.jface.text.contentassist.IContentAssistantExtension3類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。