1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +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

@ -367,12 +367,12 @@ public class BuildEntryStorage extends AbstractEntryStorage {
String paths[] = null;
int kind = getKind();
switch (kind) {
case ICSettingEntry.INCLUDE_PATH:{
case ICSettingEntry.INCLUDE_PATH: {
IEnvironmentVariableProvider provider = ManagedBuildManager.getEnvironmentVariableProvider();
paths = provider.getBuildPaths(fLangData.getConfiguration(), IEnvVarBuildPath.BUILDPATH_INCLUDE);
}
break;
case ICSettingEntry.LIBRARY_PATH:{
case ICSettingEntry.LIBRARY_PATH: {
IEnvironmentVariableProvider provider = ManagedBuildManager.getEnvironmentVariableProvider();
paths = provider.getBuildPaths(fLangData.getConfiguration(), IEnvVarBuildPath.BUILDPATH_LIBRARY);
}

View file

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