@Override
protected IStatus run(IProgressMonitor monitor) {
IStatus status = Status.OK_STATUS;
SubMonitor progress = SubMonitor.convert(monitor, "Process selected items", 100);
try {
final ProjectParser projectParser = new ProjectParser(fSelectedJavaElements);
status = projectParser.parse(progress.newChild(70));
// process unresolved method calls
if ((projectParser.getModel() != null) && (status.getSeverity() == IStatus.OK)) {
UnresolvedInvocationHandler unresolvedInvocationHandler =
new UnresolvedInvocationHandler(projectParser.getModel(), projectParser
.getUnresolvedCalls());
status = unresolvedInvocationHandler.process(progress.newChild(20));
if (status.getSeverity() == IStatus.OK) {
status = unresolvedInvocationHandler.addInvocations(progress.newChild(10));
}
if (status.getSeverity() == IStatus.OK) {
FamixImporterPlugin.getDefault().setUnresolvedInvocationHandler(
unresolvedInvocationHandler);
FamixImporterPlugin.getDefault().setParser(projectParser);
fFamixModel = projectParser.getModel();
}
}
} finally {
if (monitor != null) {