Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2014-05-08 17:16:02 +0000
committerSergey Prigogin2014-05-08 17:22:38 +0000
commit80ea8de8d4129b843886faf3036eb49bd03b0f77 (patch)
tree0c41897d9848e40652d1c3831c9be747224c1db3
parent99f21e57e8dc0e640a6958a80071fb2541ba18f0 (diff)
downloadorg.eclipse.cdt-80ea8de8d4129b843886faf3036eb49bd03b0f77.tar.gz
org.eclipse.cdt-80ea8de8d4129b843886faf3036eb49bd03b0f77.tar.xz
org.eclipse.cdt-80ea8de8d4129b843886faf3036eb49bd03b0f77.zip
Bug 414692. Moved setReplacementHeader method to IIndexFragmentFile.
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/index/IIndexFile.java16
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/index/IIndexFragmentFile.java10
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 <code>null</code>.
*/
@@ -117,14 +117,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
@@ -57,6 +57,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.
*/

Back to the top