Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Leherbauer2010-02-15 08:36:14 +0000
committerAnton Leherbauer2010-02-15 08:36:14 +0000
commit50a4d0c3f6da4a4d6028250041bb29a132bf59b1 (patch)
tree1408000253c66951ec1fa3550debf30f823eb142
parent4cc4a3b52dbb83a7a03df58f651c22efe75e882b (diff)
downloadorg.eclipse.cdt-50a4d0c3f6da4a4d6028250041bb29a132bf59b1.tar.gz
org.eclipse.cdt-50a4d0c3f6da4a4d6028250041bb29a132bf59b1.tar.xz
org.eclipse.cdt-50a4d0c3f6da4a4d6028250041bb29a132bf59b1.zip
Bug 280010 - Add include feature does not work in C for RC4 when CHelpProvider has info
Patch from Jeff Johnston
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/AddIncludeOnSelectionAction.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/AddIncludeOnSelectionAction.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/AddIncludeOnSelectionAction.java
index e16512bed7c..8dc1d52e029 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/AddIncludeOnSelectionAction.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/AddIncludeOnSelectionAction.java
@@ -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) {

Back to the top