Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2009 itemis AG (http://www.itemis.eu) 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 http://www.eclipse.org/legal/epl-v10.html /
 
 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.

Author(s):
Sebastian Zarnekow - Initial contribution and API
public interface IProposalConflictHelper {

Returns false if the proposal would corrupt the previous input.

Parameters:
proposal a possible proposal string. Is never null.
context the current content assist context. Is never null.
Returns:
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