1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Bug 280010 - Add include feature does not work in C for RC4 when CHelpProvider has info

Patch from Jeff Johnston
This commit is contained in:
Anton Leherbauer 2010-02-15 08:33:33 +00:00
parent bf9c3f543a
commit c569861751

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2009 IBM Corporation and others.
* Copyright (c) 2000, 2010 IBM Corporation 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
@ -211,6 +211,7 @@ public class AddIncludeOnSelectionAction extends TextEditorAction {
return;
}
char[] nameChars = name.toCharArray();
lookupName[0] = new String(nameChars);
IBinding binding = name.resolveBinding();
try {
if (binding instanceof ICPPVariable) {