Loading Core/core/src/main/java/org/codeling/interprofile/internal/InterProfileTransformation.java +10 −0 Changes for Core/core/src/main/java/org/codeling/interprofile/internal/InterProfileTransformation.java: 10 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -6,14 +6,18 @@ import org.codeling.interprofile.IInterprofileTransformation; import org.codeling.lang.base.modeltrans.henshin.HenshinTransformation; import org.codeling.languageregistry.LanguageDefinition; import org.codeling.transformationmanager.TransformationResult; import org.codeling.utils.CodelingLogger; import org.codeling.utils.IDRegistry; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.SubMonitor; import org.eclipse.emf.common.util.URI; import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl; public class InterProfileTransformation implements IInterprofileTransformation { CodelingLogger log = new CodelingLogger(this.getClass()); @Override public TransformationResult transform(LanguageDefinition sourceLanguage, LanguageDefinition targetLanguage, List<EObject> priorModelRoots, IDRegistry priorIdRegistry, String taskName, Loading Loading @@ -42,6 +46,12 @@ public class InterProfileTransformation implements IInterprofileTransformation { monitor.setWorkRemaining(sourceToTargetTransformationURIs.size()); for (final URI transformationURI : sourceToTargetTransformationURIs) { monitor.setTaskName("Executing " + transformationURI); if(!new ResourceSetImpl().getURIConverter().exists(transformationURI, null)) { // No activation file exists. log.warning("No profile activation transformation exists at the uri "+transformationURI+". I will just ignore that."); continue; } final HenshinTransformation task = new HenshinTransformation(transformationURI, taskName, intermediateIDRegistry, intermediateModelRoots, monitor); // Execute task Loading Utilities/utils/src/main/java/org/codeling/utils/CodelingLogger.java +4 −0 Changes for Utilities/utils/src/main/java/org/codeling/utils/CodelingLogger.java: 4 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -31,6 +31,10 @@ public class CodelingLogger { addLogEntry(IStatus.WARNING, message, t); } public void warning(String message) { addLogEntry(IStatus.WARNING, message, null); } public void error(String message, Throwable t) { addLogEntry(IStatus.ERROR, message, t); } Loading Loading
Core/core/src/main/java/org/codeling/interprofile/internal/InterProfileTransformation.java +10 −0 Changes for Core/core/src/main/java/org/codeling/interprofile/internal/InterProfileTransformation.java: 10 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -6,14 +6,18 @@ import org.codeling.interprofile.IInterprofileTransformation; import org.codeling.lang.base.modeltrans.henshin.HenshinTransformation; import org.codeling.languageregistry.LanguageDefinition; import org.codeling.transformationmanager.TransformationResult; import org.codeling.utils.CodelingLogger; import org.codeling.utils.IDRegistry; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.SubMonitor; import org.eclipse.emf.common.util.URI; import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl; public class InterProfileTransformation implements IInterprofileTransformation { CodelingLogger log = new CodelingLogger(this.getClass()); @Override public TransformationResult transform(LanguageDefinition sourceLanguage, LanguageDefinition targetLanguage, List<EObject> priorModelRoots, IDRegistry priorIdRegistry, String taskName, Loading Loading @@ -42,6 +46,12 @@ public class InterProfileTransformation implements IInterprofileTransformation { monitor.setWorkRemaining(sourceToTargetTransformationURIs.size()); for (final URI transformationURI : sourceToTargetTransformationURIs) { monitor.setTaskName("Executing " + transformationURI); if(!new ResourceSetImpl().getURIConverter().exists(transformationURI, null)) { // No activation file exists. log.warning("No profile activation transformation exists at the uri "+transformationURI+". I will just ignore that."); continue; } final HenshinTransformation task = new HenshinTransformation(transformationURI, taskName, intermediateIDRegistry, intermediateModelRoots, monitor); // Execute task Loading
Utilities/utils/src/main/java/org/codeling/utils/CodelingLogger.java +4 −0 Changes for Utilities/utils/src/main/java/org/codeling/utils/CodelingLogger.java: 4 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -31,6 +31,10 @@ public class CodelingLogger { addLogEntry(IStatus.WARNING, message, t); } public void warning(String message) { addLogEntry(IStatus.WARNING, message, null); } public void error(String message, Throwable t) { addLogEntry(IStatus.ERROR, message, t); } Loading