From d23d4064b9646b0d9ec8711d5691439eb22fdd8f Mon Sep 17 00:00:00 2001 From: Timur Saglam Date: Fri, 7 Apr 2017 11:08:59 +0200 Subject: [PATCH] EDIT: Added additional logging. --- src/main/java/eme/extractor/JavaTypeExtractor.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/eme/extractor/JavaTypeExtractor.java b/src/main/java/eme/extractor/JavaTypeExtractor.java index decae70..0ee97c6 100644 --- a/src/main/java/eme/extractor/JavaTypeExtractor.java +++ b/src/main/java/eme/extractor/JavaTypeExtractor.java @@ -57,9 +57,11 @@ public void extractExternalTypes(Set externalTypes) throws JavaModelExce logger.info("Parsing external types..."); for (String typeName : externalTypes) { // for every potential external type if (!model.contains(typeName)) { // if is not a model type: - IType iType = project.findType(typeName); // try to find IType - if (iType != null) { // if IType was found: - model.addExternal(extractType(iType)); // add to model. + IType type = project.findType(typeName); // try to find IType + if (type != null) { // if IType was found: + ExtractedType extractedType = extractType(type); + logger.info("Resolved external " + extractedType.toString()); + model.addExternal(extractedType); // add to model. } } }