mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Cosmetics.
This commit is contained in:
parent
63d44872da
commit
c4b2ac159c
2 changed files with 5 additions and 8 deletions
|
@ -84,7 +84,6 @@ public class CProjectHelper {
|
||||||
final IWorkspace ws = ResourcesPlugin.getWorkspace();
|
final IWorkspace ws = ResourcesPlugin.getWorkspace();
|
||||||
final ICProject newProject[] = new ICProject[1];
|
final ICProject newProject[] = new ICProject[1];
|
||||||
ws.run(new IWorkspaceRunnable() {
|
ws.run(new IWorkspaceRunnable() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run(IProgressMonitor monitor) throws CoreException {
|
public void run(IProgressMonitor monitor) throws CoreException {
|
||||||
IWorkspaceRoot root = ws.getRoot();
|
IWorkspaceRoot root = ws.getRoot();
|
||||||
|
@ -166,7 +165,6 @@ public class CProjectHelper {
|
||||||
|
|
||||||
final String finalCfgProviderId = cfgProviderId;
|
final String finalCfgProviderId = cfgProviderId;
|
||||||
ws.run(new IWorkspaceRunnable() {
|
ws.run(new IWorkspaceRunnable() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run(IProgressMonitor monitor) throws CoreException {
|
public void run(IProgressMonitor monitor) throws CoreException {
|
||||||
IWorkspaceRoot root = ws.getRoot();
|
IWorkspaceRoot root = ws.getRoot();
|
||||||
|
@ -221,7 +219,6 @@ public class CProjectHelper {
|
||||||
final IWorkspace ws = ResourcesPlugin.getWorkspace();
|
final IWorkspace ws = ResourcesPlugin.getWorkspace();
|
||||||
final ICProject newProject[] = new ICProject[1];
|
final ICProject newProject[] = new ICProject[1];
|
||||||
ws.run(new IWorkspaceRunnable() {
|
ws.run(new IWorkspaceRunnable() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run(IProgressMonitor monitor) throws CoreException {
|
public void run(IProgressMonitor monitor) throws CoreException {
|
||||||
ICProject cproject = createCProject(projectName, binFolderName, indexerID);
|
ICProject cproject = createCProject(projectName, binFolderName, indexerID);
|
||||||
|
@ -309,12 +306,12 @@ public class CProjectHelper {
|
||||||
archCont = testProject.getArchiveContainer();
|
archCont = testProject.getArchiveContainer();
|
||||||
myArchives = archCont.getArchives();
|
myArchives = archCont.getArchives();
|
||||||
if (myArchives.length < 1)
|
if (myArchives.length < 1)
|
||||||
return (null);
|
return null;
|
||||||
for (x = 0; x < myArchives.length; x++) {
|
for (x = 0; x < myArchives.length; x++) {
|
||||||
if (myArchives[x].getElementName().equals(name))
|
if (myArchives[x].getElementName().equals(name))
|
||||||
return (myArchives[x]);
|
return (myArchives[x]);
|
||||||
}
|
}
|
||||||
return (null);
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -327,12 +324,12 @@ public class CProjectHelper {
|
||||||
binCont = testProject.getBinaryContainer();
|
binCont = testProject.getBinaryContainer();
|
||||||
myBinaries = binCont.getBinaries();
|
myBinaries = binCont.getBinaries();
|
||||||
if (myBinaries.length < 1)
|
if (myBinaries.length < 1)
|
||||||
return (null);
|
return null;
|
||||||
for (x = 0; x < myBinaries.length; x++) {
|
for (x = 0; x < myBinaries.length; x++) {
|
||||||
if (myBinaries[x].getElementName().equals(name))
|
if (myBinaries[x].getElementName().equals(name))
|
||||||
return (myBinaries[x]);
|
return (myBinaries[x]);
|
||||||
}
|
}
|
||||||
return (null);
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -381,7 +381,7 @@ public class TestSourceReader {
|
||||||
Thread.sleep(50);
|
Thread.sleep(50);
|
||||||
timeLeft= (int) (endTime - System.currentTimeMillis());
|
timeLeft= (int) (endTime - System.currentTimeMillis());
|
||||||
}
|
}
|
||||||
Assert.fail("Indexing " + file.getFullPath() + " did not complete in " + maxmillis / 1000. + " sec");
|
Assert.fail("Indexing of " + file.getFullPath() + " did not complete in " + maxmillis / 1000. + " sec");
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean areAllFilesNotOlderThan(IIndexFile[] files, long timestamp) throws CoreException {
|
private static boolean areAllFilesNotOlderThan(IIndexFile[] files, long timestamp) throws CoreException {
|
||||||
|
|
Loading…
Add table
Reference in a new issue