org.eclipse.xtext.ide.editor.partialEditing.IPartialEditingContentAssistParser Java Examples

The following examples show how to use org.eclipse.xtext.ide.editor.partialEditing.IPartialEditingContentAssistParser. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ContentAssistContextFactory.java    From xtext-core with Eclipse Public License 2.0 5 votes vote down vote up
protected void initializeNodeAndModelData() {
	rootNode = parseResult.getRootNode();
	if (parser instanceof IPartialEditingContentAssistParser) {
		((IPartialEditingContentAssistParser) parser).initializeFor(resource.getEntryPoint());
	}
	lastCompleteNode = new LeafNodeFinder(completionOffset, true).searchIn(rootNode);
	if (lastCompleteNode == null)
		lastCompleteNode = rootNode;
	currentNode = new LeafNodeFinder(completionOffset, false).searchIn(rootNode);
	if (currentNode == null)
		currentNode = lastCompleteNode;
	lastVisibleNode = getLastCompleteNodeByOffset(rootNode, completionOffset);
	datatypeNode = getContainingDatatypeRuleNode(lastCompleteNode);
	currentModel = NodeModelUtils.findActualSemanticObjectFor(lastVisibleNode);
}
 
Example #2
Source File: AbstractXtextUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IPartialEditingContentAssistParser> bindIPartialEditingContentAssistParser() {
	return PartialXtextContentAssistParser.class;
}
 
Example #3
Source File: AbstractSARLUiModule.java    From sarl with Apache License 2.0 4 votes vote down vote up
public Class<? extends IPartialEditingContentAssistParser> bindIPartialEditingContentAssistParser() {
	return PartialSARLContentAssistParser.class;
}
 
Example #4
Source File: AbstractGamlUiModule.java    From gama with GNU General Public License v3.0 4 votes vote down vote up
public Class<? extends IPartialEditingContentAssistParser> bindIPartialEditingContentAssistParser() {
	return PartialGamlContentAssistParser.class;
}
 
Example #5
Source File: AbstractHelloWorldUiModule.java    From dsl-devkit with Eclipse Public License 1.0 4 votes vote down vote up
public Class<? extends IPartialEditingContentAssistParser> bindIPartialEditingContentAssistParser() {
	return PartialHelloWorldContentAssistParser.class;
}
 
Example #6
Source File: XtendUiModule.java    From xtext-xtend with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public Class<? extends IPartialEditingContentAssistParser> bindIPartialEditingContentAssistParser() {
	return FlexerBasedPartialXtendContentAssistParser.class;
}
 
Example #7
Source File: AbstractXtendUiModule.java    From xtext-xtend with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IPartialEditingContentAssistParser> bindIPartialEditingContentAssistParser() {
	return PartialXtendContentAssistParser.class;
}
 
Example #8
Source File: AbstractPureXbaseUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IPartialEditingContentAssistParser> bindIPartialEditingContentAssistParser() {
	return PartialPureXbaseContentAssistParser.class;
}
 
Example #9
Source File: AbstractBuilderTestLanguageUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IPartialEditingContentAssistParser> bindIPartialEditingContentAssistParser() {
	return PartialBuilderTestLanguageContentAssistParser.class;
}
 
Example #10
Source File: AbstractArithmeticsUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IPartialEditingContentAssistParser> bindIPartialEditingContentAssistParser() {
	return PartialArithmeticsContentAssistParser.class;
}
 
Example #11
Source File: AbstractRuleEngineUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IPartialEditingContentAssistParser> bindIPartialEditingContentAssistParser() {
	return PartialRuleEngineContentAssistParser.class;
}
 
Example #12
Source File: AbstractStatemachineUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IPartialEditingContentAssistParser> bindIPartialEditingContentAssistParser() {
	return PartialStatemachineContentAssistParser.class;
}
 
Example #13
Source File: AbstractDomainmodelUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IPartialEditingContentAssistParser> bindIPartialEditingContentAssistParser() {
	return PartialDomainmodelContentAssistParser.class;
}
 
Example #14
Source File: AbstractEcore2XtextTestUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IPartialEditingContentAssistParser> bindIPartialEditingContentAssistParser() {
	return PartialEcore2XtextTestContentAssistParser.class;
}
 
Example #15
Source File: AbstractN4JSUiModule.java    From n4js with Eclipse Public License 1.0 4 votes vote down vote up
public Class<? extends IPartialEditingContentAssistParser> bindIPartialEditingContentAssistParser() {
	return PartialN4JSContentAssistParser.class;
}
 
Example #16
Source File: PartialEditingContentAssistContextFactory.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
@Inject
public void setPartialEditingParser(final IPartialEditingContentAssistParser partialContentAssistParser) {
	this.partialContentAssistParser = partialContentAssistParser;
}
 
Example #17
Source File: AbstractCodetemplatesUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IPartialEditingContentAssistParser> bindIPartialEditingContentAssistParser() {
	return PartialCodetemplatesContentAssistParser.class;
}
 
Example #18
Source File: AbstractXmlUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IPartialEditingContentAssistParser> bindIPartialEditingContentAssistParser() {
	return PartialXmlContentAssistParser.class;
}
 
Example #19
Source File: AbstractNestedRefsTestLanguageUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IPartialEditingContentAssistParser> bindIPartialEditingContentAssistParser() {
	return PartialNestedRefsTestLanguageContentAssistParser.class;
}
 
Example #20
Source File: AbstractNoJdtTestLanguageUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IPartialEditingContentAssistParser> bindIPartialEditingContentAssistParser() {
	return PartialNoJdtTestLanguageContentAssistParser.class;
}
 
Example #21
Source File: AbstractXtextGrammarTestLanguageUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IPartialEditingContentAssistParser> bindIPartialEditingContentAssistParser() {
	return PartialXtextGrammarTestLanguageContentAssistParser.class;
}
 
Example #22
Source File: AbstractFileAwareTestLanguageUiModule.java    From xtext-eclipse with Eclipse Public License 2.0 4 votes vote down vote up
public Class<? extends IPartialEditingContentAssistParser> bindIPartialEditingContentAssistParser() {
	return PartialFileAwareTestLanguageContentAssistParser.class;
}
 
Example #23
Source File: AbstractMyDslUiModule.java    From M2Doc with Eclipse Public License 1.0 4 votes vote down vote up
public Class<? extends IPartialEditingContentAssistParser> bindIPartialEditingContentAssistParser() {
	return PartialMyDslContentAssistParser.class;
}
 
Example #24
Source File: AbstractBromiumUiModule.java    From bromium with MIT License 4 votes vote down vote up
public Class<? extends IPartialEditingContentAssistParser> bindIPartialEditingContentAssistParser() {
	return PartialBromiumContentAssistParser.class;
}
 
Example #25
Source File: AbstractTypesUiModule.java    From n4js with Eclipse Public License 1.0 4 votes vote down vote up
public Class<? extends IPartialEditingContentAssistParser> bindIPartialEditingContentAssistParser() {
	return PartialTypesContentAssistParser.class;
}
 
Example #26
Source File: AbstractJSONUiModule.java    From n4js with Eclipse Public License 1.0 4 votes vote down vote up
public Class<? extends IPartialEditingContentAssistParser> bindIPartialEditingContentAssistParser() {
	return PartialJSONContentAssistParser.class;
}
 
Example #27
Source File: AbstractRegularExpressionUiModule.java    From n4js with Eclipse Public License 1.0 4 votes vote down vote up
public Class<? extends IPartialEditingContentAssistParser> bindIPartialEditingContentAssistParser() {
	return PartialRegularExpressionContentAssistParser.class;
}