mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Corret typos.
This commit is contained in:
parent
f8d8ad6843
commit
df2d472f94
4 changed files with 13 additions and 8 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
2004-08-19 Alain Magloire
|
||||||
|
|
||||||
|
Correct typos.
|
||||||
|
|
||||||
|
* model/org/eclipse/cdt/core/model/CoreModel.java
|
||||||
|
* model/org/eclipse/cdt/internal/core/model/CProject.java
|
||||||
|
* model/org/eclipse/cdt/internal/core/model/etPathEntriesOperation.java
|
||||||
|
|
||||||
2004-03-18 Alain Magloire
|
2004-03-18 Alain Magloire
|
||||||
|
|
||||||
Check for IPathEntry reorder changes.
|
Check for IPathEntry reorder changes.
|
||||||
|
|
|
@ -629,7 +629,7 @@ public class CoreModel implements ICDescriptorListener {
|
||||||
* @exception CModelException
|
* @exception CModelException
|
||||||
* @see IPathEntry
|
* @see IPathEntry
|
||||||
*/
|
*/
|
||||||
public IPathEntry[] getResolvedClasspathEntries(ICProject cproject) throws CModelException {
|
public IPathEntry[] getResolvedPathEntries(ICProject cproject) throws CModelException {
|
||||||
return pathEntryManager.getResolvedPathEntries(cproject);
|
return pathEntryManager.getResolvedPathEntries(cproject);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -312,7 +312,7 @@ public class CProject extends CContainer implements ICProject {
|
||||||
* @see org.eclipse.cdt.core.model.ICProject#getResolvedCPathEntries()
|
* @see org.eclipse.cdt.core.model.ICProject#getResolvedCPathEntries()
|
||||||
*/
|
*/
|
||||||
public IPathEntry[] getResolvedPathEntries() throws CModelException {
|
public IPathEntry[] getResolvedPathEntries() throws CModelException {
|
||||||
return CoreModel.getDefault().getResolvedClasspathEntries(this);
|
return CoreModel.getDefault().getResolvedPathEntries(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
|
@ -453,7 +453,7 @@ public class CProject extends CContainer implements ICProject {
|
||||||
/*
|
/*
|
||||||
* @see ICProject
|
* @see ICProject
|
||||||
*/
|
*/
|
||||||
public boolean isOnClasspath(ICElement element) {
|
public boolean isOnSourceRoot(ICElement element) {
|
||||||
try {
|
try {
|
||||||
ISourceRoot[] roots = getSourceRoots();
|
ISourceRoot[] roots = getSourceRoots();
|
||||||
for (int i = 0; i < roots.length; i++) {
|
for (int i = 0; i < roots.length; i++) {
|
||||||
|
@ -470,7 +470,7 @@ public class CProject extends CContainer implements ICProject {
|
||||||
/*
|
/*
|
||||||
* @see ICProject
|
* @see ICProject
|
||||||
*/
|
*/
|
||||||
public boolean isOnClasspath(IResource resource) {
|
public boolean isOnSourceRoot(IResource resource) {
|
||||||
try {
|
try {
|
||||||
ISourceRoot[] roots = getSourceRoots();
|
ISourceRoot[] roots = getSourceRoots();
|
||||||
for (int i = 0; i < roots.length; i++) {
|
for (int i = 0; i < roots.length; i++) {
|
||||||
|
|
|
@ -54,15 +54,12 @@ public class SetPathEntriesOperation extends CModelOperation {
|
||||||
updateProjectReferencesIfNecessary();
|
updateProjectReferencesIfNecessary();
|
||||||
PathEntryManager mgr = PathEntryManager.getDefault();
|
PathEntryManager mgr = PathEntryManager.getDefault();
|
||||||
hasModifiedResource = true;
|
hasModifiedResource = true;
|
||||||
|
mgr.saveRawPathEntries(cproject, newRawEntries);
|
||||||
IPathEntry[] newResolvedEntries = mgr.getResolvedPathEntries(cproject);
|
IPathEntry[] newResolvedEntries = mgr.getResolvedPathEntries(cproject);
|
||||||
ICElementDelta[] deltas = mgr.generatePathEntryDeltas(cproject, oldResolvedEntries, newResolvedEntries);
|
ICElementDelta[] deltas = mgr.generatePathEntryDeltas(cproject, oldResolvedEntries, newResolvedEntries);
|
||||||
for (int i = 0; i < deltas.length; i++) {
|
for (int i = 0; i < deltas.length; i++) {
|
||||||
addDelta(deltas[i]);
|
addDelta(deltas[i]);
|
||||||
}
|
}
|
||||||
// Only save when necessary
|
|
||||||
if (deltas.length > 0) {
|
|
||||||
mgr.saveRawPathEntries(cproject, newRawEntries);
|
|
||||||
}
|
|
||||||
done();
|
done();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue