mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-06 17:26:01 +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:
parent
bf9c3f543a
commit
c569861751
1 changed files with 2 additions and 1 deletions
|
@ -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
|
* 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
|
||||||
|
@ -211,6 +211,7 @@ public class AddIncludeOnSelectionAction extends TextEditorAction {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
char[] nameChars = name.toCharArray();
|
char[] nameChars = name.toCharArray();
|
||||||
|
lookupName[0] = new String(nameChars);
|
||||||
IBinding binding = name.resolveBinding();
|
IBinding binding = name.resolveBinding();
|
||||||
try {
|
try {
|
||||||
if (binding instanceof ICPPVariable) {
|
if (binding instanceof ICPPVariable) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue