1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-21 07:55:24 +02:00

Cosmetics.

This commit is contained in:
Sergey Prigogin 2011-05-25 03:15:22 +00:00
parent 54e76b7846
commit b8cb729795
2 changed files with 10 additions and 8 deletions

View file

@ -639,8 +639,8 @@ public class PathEntryManager implements IPathEntryStoreListener, IElementChange
public IPathEntry[] getRawPathEntries(ICProject cproject) throws CModelException { public IPathEntry[] getRawPathEntries(ICProject cproject) throws CModelException {
IProject project = cproject.getProject(); IProject project = cproject.getProject();
// Check if the Project is accesible. // Check if the Project is accessible.
if (! (CoreModel.hasCNature(project) || CoreModel.hasCCNature(project))) { if (!CoreModel.hasCNature(project) && !CoreModel.hasCCNature(project)) {
throw new CModelException(new CModelStatus(ICModelStatusConstants.ELEMENT_DOES_NOT_EXIST)); throw new CModelException(new CModelStatus(ICModelStatusConstants.ELEMENT_DOES_NOT_EXIST));
} }
IPathEntry[] pathEntries; IPathEntry[] pathEntries;
@ -657,11 +657,13 @@ public class PathEntryManager implements IPathEntryStoreListener, IElementChange
boolean foundSource = false; boolean foundSource = false;
boolean foundOutput = false; boolean foundOutput = false;
for (IPathEntry rawEntry : pathEntries) { for (IPathEntry rawEntry : pathEntries) {
if (rawEntry.getEntryKind() == IPathEntry.CDT_SOURCE) { switch (rawEntry.getEntryKind()) {
case IPathEntry.CDT_SOURCE:
foundSource = true; foundSource = true;
} break;
if (rawEntry.getEntryKind() == IPathEntry.CDT_OUTPUT) { case IPathEntry.CDT_OUTPUT:
foundOutput = true; foundOutput = true;
break;
} }
} }