Commit 9cdb95a2 authored by Philip Makedonski's avatar Philip Makedonski
Browse files

* annoter jab at the validator.., #162, #157

parent 623d34b8
Loading
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -46,4 +46,12 @@
      </package>
   </extension>

	<!-- 
   <extension point="org.eclipse.ocl.pivot.complete_ocl_registry">
      <document resource="model/tdl-constraints.ocl">
         <for uri="http://www.etsi.org/spec/TDL/1.4.1"/>
      </document>
   </extension>
	-->

</plugin>
+2 −1
Original line number Diff line number Diff line
@@ -119,7 +119,8 @@ public class Validator {
				System.out.println("Init..");
				boolean success = super.initialize(environmentFactory);
				if (success) {
					resourceSet = environmentFactory.getResourceSet();
//					resourceSet = environmentFactory.getResourceSet();
					resourceSet = environmentFactory.getMetamodelManager().getASResourceSet();
					xtextResource = (CSResource) resourceSet.getResource(oclURI, true);
					EList<Diagnostic> errors = xtextResource.getErrors();
					assert errors != null;