Commit f4b06002 authored by Philip Makedonski's avatar Philip Makedonski
Browse files

+ added internal messages to debug / fixme verbosity

parent 1875555e
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@ import de.ugoe.cs.swe.validation.TTCN3StatisticsProvider;
public class Analyzer implements Callable<TTCN3Output> {
	private final Resource resource;
	private final LoggingInterface logger;
	private final boolean printUnresolvedObjects = false;
	public static boolean printUnresolvedObjects = false;

	public Analyzer(Resource resource, LoggingInterface logger) {
		this.resource = resource;
@@ -39,7 +39,11 @@ public class Analyzer implements Callable<TTCN3Output> {
		org.eclipse.emf.common.util.Diagnostic diagnostic = null;
		diagnostic = Diagnostician.INSTANCE.validate(model);
		for (org.eclipse.emf.common.util.Diagnostic d : diagnostic.getChildren()) {
			if (d instanceof FeatureBasedDiagnostic) {
				output.getOutput().add((FeatureBasedDiagnostic) d);
			} else {
				//System.out.println(d);
			}
		}

		// TODO: make this configurable for debug purposes
+1 −0
Original line number Diff line number Diff line
@@ -256,6 +256,7 @@ public class T3Q {
			}
			if (!l.toString().equals("FIXME") && !l.toString().equals("DEBUG"))
				possibleValues += l.toString() + ", ";
				Analyzer.printUnresolvedObjects = true;
		}
		if (!selected) {
			System.out.println("\nERROR: No valid log level provided! Possible values are (in ascending inclusive order): "