mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 302228 - Content Assist window does not appear when function parameters are not in same line
This commit is contained in:
parent
b099b6ccc4
commit
c107c6f6c3
1 changed files with 1 additions and 6 deletions
|
@ -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
|
* All rights reserved. This program and the accompanying materials
|
||||||
* are made available under the terms of the Eclipse Public License v1.0
|
* are made available under the terms of the Eclipse Public License v1.0
|
||||||
* which accompanies this distribution, and is available at
|
* 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.core.runtime.Assert;
|
||||||
import org.eclipse.jface.text.BadLocationException;
|
import org.eclipse.jface.text.BadLocationException;
|
||||||
import org.eclipse.jface.text.IDocument;
|
import org.eclipse.jface.text.IDocument;
|
||||||
import org.eclipse.jface.text.IRegion;
|
|
||||||
import org.eclipse.jface.text.ITextViewer;
|
import org.eclipse.jface.text.ITextViewer;
|
||||||
import org.eclipse.jface.text.TextPresentation;
|
import org.eclipse.jface.text.TextPresentation;
|
||||||
import org.eclipse.jface.text.contentassist.IContextInformation;
|
import org.eclipse.jface.text.contentassist.IContextInformation;
|
||||||
|
@ -158,10 +157,6 @@ public class CParameterListValidator implements IContextInformationValidator, IC
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
IDocument document= fViewer.getDocument();
|
IDocument document= fViewer.getDocument();
|
||||||
IRegion line= document.getLineInformationOfOffset(fPosition);
|
|
||||||
|
|
||||||
if (position > line.getOffset() + line.getLength())
|
|
||||||
return false;
|
|
||||||
|
|
||||||
return (getCharCount(document, fPosition, position, '(', ')', false) >= 0);
|
return (getCharCount(document, fPosition, position, '(', ')', false) >= 0);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue