1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Corret typos.

This commit is contained in:
Alain Magloire 2004-03-19 03:11:03 +00:00
parent f8d8ad6843
commit df2d472f94
4 changed files with 13 additions and 8 deletions

View file

@ -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
Check for IPathEntry reorder changes.

View file

@ -629,7 +629,7 @@ public class CoreModel implements ICDescriptorListener {
* @exception CModelException
* @see IPathEntry
*/
public IPathEntry[] getResolvedClasspathEntries(ICProject cproject) throws CModelException {
public IPathEntry[] getResolvedPathEntries(ICProject cproject) throws CModelException {
return pathEntryManager.getResolvedPathEntries(cproject);
}

View file

@ -312,7 +312,7 @@ public class CProject extends CContainer implements ICProject {
* @see org.eclipse.cdt.core.model.ICProject#getResolvedCPathEntries()
*/
public IPathEntry[] getResolvedPathEntries() throws CModelException {
return CoreModel.getDefault().getResolvedClasspathEntries(this);
return CoreModel.getDefault().getResolvedPathEntries(this);
}
/* (non-Javadoc)
@ -453,7 +453,7 @@ public class CProject extends CContainer implements ICProject {
/*
* @see ICProject
*/
public boolean isOnClasspath(ICElement element) {
public boolean isOnSourceRoot(ICElement element) {
try {
ISourceRoot[] roots = getSourceRoots();
for (int i = 0; i < roots.length; i++) {
@ -470,7 +470,7 @@ public class CProject extends CContainer implements ICProject {
/*
* @see ICProject
*/
public boolean isOnClasspath(IResource resource) {
public boolean isOnSourceRoot(IResource resource) {
try {
ISourceRoot[] roots = getSourceRoots();
for (int i = 0; i < roots.length; i++) {

View file

@ -54,15 +54,12 @@ public class SetPathEntriesOperation extends CModelOperation {
updateProjectReferencesIfNecessary();
PathEntryManager mgr = PathEntryManager.getDefault();
hasModifiedResource = true;
mgr.saveRawPathEntries(cproject, newRawEntries);
IPathEntry[] newResolvedEntries = mgr.getResolvedPathEntries(cproject);
ICElementDelta[] deltas = mgr.generatePathEntryDeltas(cproject, oldResolvedEntries, newResolvedEntries);
for (int i = 0; i < deltas.length; i++) {
addDelta(deltas[i]);
}
// Only save when necessary
if (deltas.length > 0) {
mgr.saveRawPathEntries(cproject, newRawEntries);
}
done();
}