From c107c6f6c37e52fe18c0f6d9c32683b6ed6d1d11 Mon Sep 17 00:00:00 2001 From: Anton Leherbauer Date: Tue, 9 Feb 2010 10:48:18 +0000 Subject: [PATCH] Bug 302228 - Content Assist window does not appear when function parameters are not in same line --- .../cdt/internal/ui/text/CParameterListValidator.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/CParameterListValidator.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/CParameterListValidator.java index 1125c11b783..31b76dca899 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/CParameterListValidator.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/CParameterListValidator.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2007 QNX Software Systems and others. + * Copyright (c) 2000, 2010 QNX Software Systems 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 @@ -20,7 +20,6 @@ import org.eclipse.swt.custom.StyleRange; import org.eclipse.core.runtime.Assert; import org.eclipse.jface.text.BadLocationException; import org.eclipse.jface.text.IDocument; -import org.eclipse.jface.text.IRegion; import org.eclipse.jface.text.ITextViewer; import org.eclipse.jface.text.TextPresentation; import org.eclipse.jface.text.contentassist.IContextInformation; @@ -158,10 +157,6 @@ public class CParameterListValidator implements IContextInformationValidator, IC return false; IDocument document= fViewer.getDocument(); - IRegion line= document.getLineInformationOfOffset(fPosition); - - if (position > line.getOffset() + line.getLength()) - return false; return (getCharCount(document, fPosition, position, '(', ')', false) >= 0);