Skip to content
Snippets Groups Projects
Commit c76bf032 authored by Quit Phuong Bui's avatar Quit Phuong Bui
Browse files

added transformation

parent 2c90e035
No related branches found
No related tags found
No related merge requests found
Showing
with 39 additions and 1 deletion
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="xtend-gen"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="output" path="bin"/>
......
......@@ -5,6 +5,11 @@
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.ocl.pivot.ui.oclbuilder</name>
<arguments>
......@@ -46,5 +51,6 @@
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.ocl.pivot.ui.oclnature</nature>
<nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
</natures>
</projectDescription>
......@@ -12,5 +12,12 @@ Export-Package: coursePage,
coursePage.impl,
coursePage.util
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.emf.ecore;visibility:=reexport
org.eclipse.emf.ecore;visibility:=reexport,
org.eclipse.emf.ecore.xmi;visibility:=reexport,
com.google.guava,
org.eclipse.xtext.xbase.lib,
org.eclipse.xtend.lib,
org.eclipse.xtend.lib.macro,
org.w3c.xhtml1;bundle-version="0.1.0"
Bundle-ActivationPolicy: lazy
#Transformation
##Plugin and extensions
Plug-in added to Plug-In dependencies: **org.w3c.xhtml1**
Extension used in Course2HTML.xtend: **Xhtml1Factory** and **XhtmlUtil**
**Xhtml1Factory**
With this extension we can implement methods to generate html tags/types like createH1Type and createH2Type
**XhtmlUtil**
Utilize methods from Xhtml1Factory.
##Transformation
In this model i have done a Model 2 Text transformation.
Source model : xmi
Target model: Text in html format
To run the the sample provided in the transformation
1. Open Course2HTML.xtend in /tdt4250.web/src/tdt4250/transformation/Course2HTML.xtend
2. Right Click, Run As > Java Application
3. Console will display the output of the transfomration
No preview for this file type
No preview for this file type
File deleted
File deleted
File deleted
File deleted
File deleted
File deleted
File deleted
No preview for this file type
File deleted
File added
File added
File added
File added
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment