From 09d91b1c012dc7f642017ef95350e9d2d210aefe Mon Sep 17 00:00:00 2001 From: Anton Leherbauer Date: Fri, 18 Dec 2009 13:43:37 +0000 Subject: [PATCH] Bug 294965 - object file added to root of project is not shown in C/C++ Projects view Patch by wieant@tasking.com --- .../org/eclipse/cdt/internal/core/model/CProjectInfo.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/CProjectInfo.java b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/CProjectInfo.java index 0b0ff1147f8..4a36530d070 100644 --- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/CProjectInfo.java +++ b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/CProjectInfo.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2007 QNX Software Systems and others. + * Copyright (c) 2000, 2009 QNX Software Systems 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 @@ -92,7 +92,7 @@ class CProjectInfo extends OpenableInfo { case IResource.FILE: // Must be a translation unit or binary if (CoreModel.isValidTranslationUnitName(cproject.getProject(), child.getName()) - || CModelManager.getDefault().createBinaryFile((IFile)child) != null) + || (cproject.isOnOutputEntry(child) && (CModelManager.getDefault().createBinaryFile((IFile)child) != null)) ) continue; break; case IResource.FOLDER: