From c569861751209d302cd2e5ad3541f1aa55fb432c Mon Sep 17 00:00:00 2001 From: Anton Leherbauer Date: Mon, 15 Feb 2010 08:33:33 +0000 Subject: [PATCH] Bug 280010 - Add include feature does not work in C for RC4 when CHelpProvider has info Patch from Jeff Johnston --- .../cdt/internal/ui/editor/AddIncludeOnSelectionAction.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 b545618c750..43b775f8b6e 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) {