Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2009 itemis AG ( and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at /
 package org.eclipse.xtext.ui.editor.contentassist;

The IProposalConflictHelper is used to determine whether a possible content proposal is in conflict with the previous input.

Implementors should consider to extend the AntlrProposalConflictHelper.

Sebastian Zarnekow - Initial contribution and API
public interface IProposalConflictHelper {

Returns false if the proposal would corrupt the previous input.

proposal a possible proposal string. Is never null.
context the current content assist context. Is never null.
false if the proposal would corrupt the current input.
	boolean existsConflict(String proposalContentAssistContext context);
	public static class NullHelper implements IProposalConflictHelper {
		public boolean existsConflict(String proposalContentAssistContext context) {
			return false;
New to GrepCode? Check out our FAQ X