T02 Create a Class ================== .. include:: /external-links.txt .. rubric:: In this tutorial we will create a simple class with MetaFactory. - Add the highlighted line to your codeinstruction.xml to use a new pattern. .. literalinclude:: /_static/tutorial-files/2-create-a-class/codeinstruction.xml :caption: src/patterns/codeinstruction.xml :language: xml :linenos: :emphasize-lines: 68 - Create a new file called pattern1.xml in a new directory metafactory-workshop-metafactory\\src\\patterns\\package\\feature1 and place the following content in it: .. literalinclude:: /_static/tutorial-files/2-create-a-class/java_package.xml :caption: src/patterns/package/feature1/java_package1.xml :language: xml :linenos: Now: - Click on metafactory-workshop-metafactory in the MetaFactory Project window. - Click on the Play button to run the Code Composer. Once finished the Code Composer will have generated the Java class MyClass. - Open metafactory-workshop-backend\\src\\main\\java\\com\\company\\workshop\\MyClass.java to see the result.