From 80ea8de8d4129b843886faf3036eb49bd03b0f77 Mon Sep 17 00:00:00 2001 From: Sergey Prigogin Date: Thu, 8 May 2014 10:16:02 -0700 Subject: [PATCH] Bug 414692. Moved setReplacementHeader method to IIndexFragmentFile. --- .../org/eclipse/cdt/core/index/IIndexFile.java | 16 ++++------------ .../internal/core/index/IIndexFragmentFile.java | 10 +++++++++- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/index/IIndexFile.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/index/IIndexFile.java index 61ba0c48103..db552ed390c 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/index/IIndexFile.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/index/IIndexFile.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006, 2012 Wind River Systems, Inc. and others. + * Copyright (c) 2006, 2014 Wind River Systems, Inc. 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 @@ -40,14 +40,14 @@ public interface IIndexFile extends IFileNomination { * @throws CoreException */ IIndexInclude[] getIncludes() throws CoreException; - + /** * Returns all macros defined in this file. * @return an array of macros found in this file * @throws CoreException */ IIndexMacro[] getMacros() throws CoreException; - + /** * Returns all using directives for namespaces and global scope, found in this file. * @throws CoreException @@ -95,7 +95,7 @@ public interface IIndexFile extends IFileNomination { * Find all names within the given range. */ IIndexName[] findNames(int offset, int length) throws CoreException; - + /** * Returns the include that was used to parse this file, may be null. */ @@ -116,14 +116,6 @@ public interface IIndexFile extends IFileNomination { */ String getReplacementHeader() throws CoreException; - /** - * Sets the name of the replacement header. - * @param replacementHeader the name of the replacement header, may be {@code null} or an empty - * string - * @since 5.7 - */ - void setReplacementHeader(String replacementHeader) throws CoreException; - /** * Returns detailed information about the file. For debugging only. * @since 5.4 diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/index/IIndexFragmentFile.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/index/IIndexFragmentFile.java index cb4477ea4e3..50195e107e9 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/index/IIndexFragmentFile.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/index/IIndexFragmentFile.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006, 2012 Wind River Systems, Inc. and others. + * Copyright (c) 2006, 2014 Wind River Systems, Inc. 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 @@ -56,6 +56,14 @@ public interface IIndexFragmentFile extends IIndexFile { */ void setPragmaOnceSemantics(boolean value) throws CoreException; + /** + * Sets the name of the replacement header. + * @param replacementHeader the name of the replacement header, may be {@code null} or an empty + * string + * @since 5.7 + */ + void setReplacementHeader(String replacementHeader) throws CoreException; + /** * Returns whether this file contains content in its * associated fragment. Files without content are inserted to track includes.