Skip to content
This repository has been archived by the owner on Nov 21, 2020. It is now read-only.

Commit

Permalink
Merge pull request #71 from rooneyp1976/master
Browse files Browse the repository at this point in the history
Issue #69. Avoid Ex where Eclipse has trouble loading a source file.
  • Loading branch information
ajermakovics committed May 22, 2015
2 parents 09e1517 + f525968 commit b85f951
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,13 @@ private void indexClassFiles(IndexWriter indexWriter, IPackageFragmentRoot jar,
for(IClassFile classFile: pkg.getClassFiles()) {
if( classFile.getElementName().contains("$") ) continue; // not type root

ClassFileSourceStorage classFileSourceStorage = new ClassFileSourceStorage(classFile);

if( classFileSourceStorage.hasSource() )
indexStorageWithRetry(indexWriter, classFileSourceStorage, projectPath, IResource.NULL_STAMP, jarName);
try {
ClassFileSourceStorage classFileSourceStorage = new ClassFileSourceStorage(classFile);

if (classFileSourceStorage.hasSource()) indexStorageWithRetry(indexWriter, classFileSourceStorage, projectPath, IResource.NULL_STAMP, jarName);
} catch (Exception e) {
//Issue #69. Avoid Ex where Eclipse has trouble loading a source file.
}

if( monitor.isCanceled() ) return;
}
Expand Down

0 comments on commit b85f951

Please sign in to comment.