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


Java ContentAssistEvent类代码示例

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


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

示例1: assistSessionStarted

import org.eclipse.jface.text.contentassist.ContentAssistEvent; //导入依赖的package包/类
@Override
public void assistSessionStarted(ContentAssistEvent event) {
	simpleWordCompletion.reset();

	BatchEditorPreferences preferences = BatchEditorPreferences.getInstance();
	boolean addKeyWords = preferences.getBooleanPreference(P_CODE_ASSIST_ADD_KEYWORDS);
	boolean addSimpleWords = preferences.getBooleanPreference(P_CODE_ASSIST_ADD_SIMPLEWORDS);

	if (addSimpleWords) {
		simpleWordCompletion.setWordListBuilder(WORD_LIST_BUILDER);
	} else {
		simpleWordCompletion.setWordListBuilder(NO_WORD_BUILDER);
	}
	if (addKeyWords) {
		addAllBatchKeyWords();
	}
}
 
开发者ID:de-jcup,项目名称:eclipse-batch-editor,代码行数:18,代码来源:BatchEditorSimpleWordContentAssistProcessor.java

示例2: assistSessionStarted

import org.eclipse.jface.text.contentassist.ContentAssistEvent; //导入依赖的package包/类
@Override
public void assistSessionStarted(ContentAssistEvent event) {
	simpleWordCompletion.reset();

	BashEditorPreferences preferences = BashEditorPreferences.getInstance();
	boolean addKeyWords = preferences.getBooleanPreference(P_CODE_ASSIST_ADD_KEYWORDS);
	boolean addSimpleWords = preferences.getBooleanPreference(P_CODE_ASSIST_ADD_SIMPLEWORDS);

	if (addSimpleWords) {
		simpleWordCompletion.setWordListBuilder(WORD_LIST_BUILDER);
	} else {
		simpleWordCompletion.setWordListBuilder(NO_WORD_BUILDER);
	}
	if (addKeyWords) {
		addAllBashKeyWords();
	}
}
 
开发者ID:de-jcup,项目名称:eclipse-bash-editor,代码行数:18,代码来源:BashEditorSimpleWordContentAssistProcessor.java

示例3: assistSessionEnded

import org.eclipse.jface.text.contentassist.ContentAssistEvent; //导入依赖的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

示例4: assistSessionEnded

import org.eclipse.jface.text.contentassist.ContentAssistEvent; //导入依赖的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

示例5: assistSessionStarted

import org.eclipse.jface.text.contentassist.ContentAssistEvent; //导入依赖的package包/类
@Override
public void assistSessionStarted(ContentAssistEvent event) {
	if(event.processor != LangContentAssistProcessor.this)
		return;
	
	invocationIteration = 0;
	isAutoActivation = event.isAutoActivated;
	
	if (event.assistant instanceof IContentAssistantExtension2) {
		IContentAssistantExtension2 extension = (IContentAssistantExtension2) event.assistant;
		
		KeySequence binding = getGroupingIterationBinding();
		boolean repeatedModeEnabled = categories.size() > 1;
		
		setRepeatedModeStatus(extension, repeatedModeEnabled, binding);
	}
	
	listener_assistSessionStarted();
}
 
开发者ID:GoClipse,项目名称:goclipse,代码行数:20,代码来源:LangContentAssistProcessor.java

示例6: assistSessionStarted

import org.eclipse.jface.text.contentassist.ContentAssistEvent; //导入依赖的package包/类
@Override
public void assistSessionStarted(ContentAssistEvent event) {
	useCacheBecauseCodeAssistSessionOngoing = false;
	if (DEBUG) {
		debugCacheState("assistSessionStarted");
	}

}
 
开发者ID:de-jcup,项目名称:egradle,代码行数:9,代码来源:GradleContentAssistProcessor.java

示例7: assistSessionEnded

import org.eclipse.jface.text.contentassist.ContentAssistEvent; //导入依赖的package包/类
@Override
public void assistSessionEnded(ContentAssistEvent event) {
	useCacheBecauseCodeAssistSessionOngoing = false;
	if (DEBUG) {
		debugCacheState("assistSessionEnded");
	}
}
 
开发者ID:de-jcup,项目名称:egradle,代码行数:8,代码来源:GradleContentAssistProcessor.java

示例8: assistSessionStarted

import org.eclipse.jface.text.contentassist.ContentAssistEvent; //导入依赖的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

示例9: assistSessionStarted

import org.eclipse.jface.text.contentassist.ContentAssistEvent; //导入依赖的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

示例10: assistSessionEnded

import org.eclipse.jface.text.contentassist.ContentAssistEvent; //导入依赖的package包/类
@Override
public void assistSessionEnded(ContentAssistEvent event) {
	if(event.processor != LangContentAssistProcessor.this)
		return;
	
	invocationIteration = 0;
	
	listener_assistSessionEnded();
}
 
开发者ID:GoClipse,项目名称:goclipse,代码行数:10,代码来源:LangContentAssistProcessor.java

示例11: assistSessionEnded

import org.eclipse.jface.text.contentassist.ContentAssistEvent; //导入依赖的package包/类
@Override
public void assistSessionEnded(ContentAssistEvent event) {
	simpleWordCompletion.reset();// clean up...
}
 
开发者ID:de-jcup,项目名称:eclipse-batch-editor,代码行数:5,代码来源:BatchEditorSimpleWordContentAssistProcessor.java

示例12: assistSessionStarted

import org.eclipse.jface.text.contentassist.ContentAssistEvent; //导入依赖的package包/类
public void assistSessionStarted(ContentAssistEvent event) {
	ModeAware proposalProvider = getModeAwareProposalProvider();
	if (proposalProvider != null)
		proposalProvider.reset();
	this.currentAssistant = (IContentAssistantExtension2) event.assistant;
}
 
开发者ID:cplutte,项目名称:bts,代码行数:7,代码来源:RepeatedContentAssistProcessor.java

示例13: assistSessionEnded

import org.eclipse.jface.text.contentassist.ContentAssistEvent; //导入依赖的package包/类
public void assistSessionEnded(ContentAssistEvent event) {
	ModeAware proposalProvider = getModeAwareProposalProvider();
	if (proposalProvider != null)
		proposalProvider.reset();
	this.currentAssistant = null;
}
 
开发者ID:cplutte,项目名称:bts,代码行数:7,代码来源:RepeatedContentAssistProcessor.java

示例14: assistSessionRestarted

import org.eclipse.jface.text.contentassist.ContentAssistEvent; //导入依赖的package包/类
public void assistSessionRestarted(ContentAssistEvent event) {
	ModeAware proposalProvider = getModeAwareProposalProvider();
	if (proposalProvider != null)
		proposalProvider.reset();
}
 
开发者ID:cplutte,项目名称:bts,代码行数:6,代码来源:RepeatedContentAssistProcessor.java

示例15: assistSessionStarted

import org.eclipse.jface.text.contentassist.ContentAssistEvent; //导入依赖的package包/类
public void assistSessionStarted(ContentAssistEvent event) {
	sessionStarted = true;
}
 
开发者ID:cplutte,项目名称:bts,代码行数:4,代码来源:XtextReconciler.java


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