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


Java ContentAssistContext類代碼示例

本文整理匯總了Java中org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext的典型用法代碼示例。如果您正苦於以下問題:Java ContentAssistContext類的具體用法?Java ContentAssistContext怎麽用?Java ContentAssistContext使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


ContentAssistContext類屬於org.eclipse.xtext.ui.editor.contentassist包,在下文中一共展示了ContentAssistContext類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: completeCharacterClassAtom_Character

import org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext; //導入依賴的package包/類
public void completeCharacterClassAtom_Character(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	// subclasses may override
	// subclasses may override
	// subclasses may override
	// subclasses may override
	// subclasses may override
	// subclasses may override
	// subclasses may override
	// subclasses may override
	// subclasses may override
	// subclasses may override
	// subclasses may override
	// subclasses may override
	// subclasses may override
	// subclasses may override
	// subclasses may override
	// subclasses may override
	// subclasses may override
	// subclasses may override
	completeRuleCall(((RuleCall)((Alternatives)assignment.getTerminal()).getElements().get(18)), context, acceptor);
	completeRuleCall(((RuleCall)((Alternatives)assignment.getTerminal()).getElements().get(19)), context, acceptor);
	completeRuleCall(((RuleCall)((Alternatives)assignment.getTerminal()).getElements().get(20)), context, acceptor);
}
 
開發者ID:eclipse,項目名稱:n4js,代碼行數:24,代碼來源:AbstractRegularExpressionProposalProvider.java

示例2: completeIntegerStopCondition_Pathtype

import org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext; //導入依賴的package包/類
@Override
public void completeIntegerStopCondition_Pathtype(final EObject model, final Assignment assignment, final ContentAssistContext context, final ICompletionProposalAcceptor acceptor) {
  System.out.println("---> completeIntegerStopCondition_Pathtype");
  EList<EStructuralFeature> _eAllStructuralFeatures = model.eClass().getEAllStructuralFeatures();
  _eAllStructuralFeatures.forEach(new Consumer<EStructuralFeature>() {
    @Override
    public void accept(final EStructuralFeature t) {
      InputOutput.<String>println(t.getName());
    }
  });
}
 
開發者ID:gw4e,項目名稱:gw4e.project,代碼行數:12,代碼來源:DSLPoliciesProposalProvider.java

示例3: getAliasedDescription

import org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext; //導入依賴的package包/類
/**
 * Creates proposal taking semantics of the N4JS imports into account.
 *
 * @param candidate
 *            the original input for which we create proposal
 * @param reference
 *            the reference
 * @param context
 *            the context
 * @return candidate proposal adjusted to the N4JS imports
 */
private IEObjectDescription getAliasedDescription(IEObjectDescription candidate, EReference reference,
		ContentAssistContext context) {

	// Content assist at a location where only simple names are allowed:
	// We found a qualified name and we'd need an import to be allowed to use
	// that name. Consider only the simple name of the element from the index
	// and make sure that the import is inserted as soon as the proposal is applied
	QualifiedName inputQN = candidate.getName();
	int inputNameSegmentCount = inputQN.getSegmentCount();
	if (reference == N4JSPackage.Literals.IDENTIFIER_REF__ID && inputNameSegmentCount > 1)
		return new AliasedEObjectDescription(QualifiedName.create(inputQN.getLastSegment()), candidate);

	// filter out non-importable things:
	// globally provided things should never be imported:
	if (inputNameSegmentCount == 2 && N4TSQualifiedNameProvider.GLOBAL_NAMESPACE_SEGMENT
			.equals(inputQN.getFirstSegment()))
		return new AliasedEObjectDescription(QualifiedName.create(inputQN.getLastSegment()), candidate);

	// special handling for default imports:
	if (inputQN.getLastSegment().equals(N4JSLanguageConstants.EXPORT_DEFAULT_NAME)) {
		EObject element = candidate.getEObjectOrProxy();
		if (element instanceof TExportableElement) {
			TExportableElement exported = (TExportableElement) element;
			if (N4JSLanguageConstants.EXPORT_DEFAULT_NAME.equals(exported.getExportedName())) {
				return new AliasedEObjectDescription(inputQN, candidate);
			}
		}
		// not accessed via namespace
		QualifiedName nameNoDefault = inputQN.skipLast(1);
		QualifiedName moduleName = nameNoDefault.getSegmentCount() > 1
				? QualifiedName.create(nameNoDefault.getLastSegment()) : nameNoDefault;
		return new AliasedEObjectDescription(moduleName, candidate);
	}
	// no special handling, return original input
	return candidate;
}
 
開發者ID:eclipse,項目名稱:n4js,代碼行數:48,代碼來源:ImportsAwareReferenceProposalCreator.java

示例4: complete_MemberAccessModifier

import org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext; //導入依賴的package包/類
public void complete_MemberAccessModifier(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	// subclasses may override
}
 
開發者ID:eclipse,項目名稱:n4js,代碼行數:4,代碼來源:AbstractTypesProposalProvider.java

示例5: completeLaunchConfig_SwInstallSupport

import org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext; //導入依賴的package包/類
public void completeLaunchConfig_SwInstallSupport(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	// subclasses may override
}
 
開發者ID:mduft,項目名稱:lcdsl,代碼行數:4,代碼來源:AbstractLcDslProposalProvider.java

示例6: complete_ArrayTypeRef

import org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext; //導入依賴的package包/類
public void complete_ArrayTypeRef(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	// subclasses may override
}
 
開發者ID:eclipse,項目名稱:n4js,代碼行數:4,代碼來源:AbstractTypeExpressionsProposalProvider.java

示例7: complete_ExportFromClause

import org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext; //導入依賴的package包/類
public void complete_ExportFromClause(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	// subclasses may override
}
 
開發者ID:eclipse,項目名稱:n4js,代碼行數:4,代碼來源:AbstractN4JSProposalProvider.java

示例8: completeDeck_Energy

import org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext; //導入依賴的package包/類
public void completeDeck_Energy(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
 
開發者ID:rehne93,項目名稱:pokemon-tcgo-deck-generator,代碼行數:4,代碼來源:AbstractPkmntcgoProposalProvider.java

示例9: complete_ElementByCssToBePresent

import org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext; //導入依賴的package包/類
public void complete_ElementByCssToBePresent(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	// subclasses may override
}
 
開發者ID:hristo-vrigazov,項目名稱:bromium,代碼行數:4,代碼來源:AbstractBromiumProposalProvider.java

示例10: completeBitwiseANDExpression_Rhs

import org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext; //導入依賴的package包/類
public void completeBitwiseANDExpression_Rhs(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
 
開發者ID:eclipse,項目名稱:n4js,代碼行數:4,代碼來源:AbstractN4JSProposalProvider.java

示例11: complete_WhileStatement

import org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext; //導入依賴的package包/類
public void complete_WhileStatement(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	// subclasses may override
}
 
開發者ID:eclipse,項目名稱:n4js,代碼行數:4,代碼來源:AbstractN4JSProposalProvider.java

示例12: completeGAdditionExpression_RightOperand

import org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext; //導入依賴的package包/類
public void completeGAdditionExpression_RightOperand(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
 
開發者ID:eclipse,項目名稱:gemoc-studio,代碼行數:4,代碼來源:AbstractGExpressionsProposalProvider.java

示例13: complete_LetIdentifierRef

import org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext; //導入依賴的package包/類
public void complete_LetIdentifierRef(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	// subclasses may override
}
 
開發者ID:eclipse,項目名稱:n4js,代碼行數:4,代碼來源:AbstractN4JSProposalProvider.java

示例14: completeCard_Set

import org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext; //導入依賴的package包/類
public void completeCard_Set(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor);
}
 
開發者ID:rehne93,項目名稱:pokemon-tcgo-deck-generator,代碼行數:4,代碼來源:AbstractPkmntcgoProposalProvider.java

示例15: completeFieldDeclarationImpl_DeclaredOptional

import org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext; //導入依賴的package包/類
public void completeFieldDeclarationImpl_DeclaredOptional(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
	// subclasses may override
}
 
開發者ID:eclipse,項目名稱:n4js,代碼行數:4,代碼來源:AbstractN4JSProposalProvider.java


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