summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpschonbac2008-01-29 10:40:31 (EST)
committerpschonbac2008-01-29 10:40:31 (EST)
commitae4e08b7af58b5bd12e45ba2153cce9854fd7e15 (patch)
tree0c56249bc7c67e0417e3f16ef174fe6e05049e67
parent499ce4114e184dce0af07e810a15348828b7ef25 (diff)
downloadorg.eclipse.xpand-ae4e08b7af58b5bd12e45ba2153cce9854fd7e15.zip
org.eclipse.xpand-ae4e08b7af58b5bd12e45ba2153cce9854fd7e15.tar.gz
org.eclipse.xpand-ae4e08b7af58b5bd12e45ba2153cce9854fd7e15.tar.bz2
Acidentally checked in directories deleted
-rw-r--r--doc/org.eclipse.common.recipe.doc/.cvsignore2
-rw-r--r--doc/org.eclipse.common.recipe.doc/.project11
-rw-r--r--doc/org.eclipse.common.recipe.doc/build-docbook.properties93
-rw-r--r--doc/org.eclipse.common.recipe.doc/build-docbook.xml159
-rw-r--r--doc/org.eclipse.common.recipe.doc/build.xml35
-rw-r--r--doc/org.eclipse.common.recipe.doc/src/5.0/content/images/recipe_reference/screenshot.gifbin76173 -> 0 bytes
-rw-r--r--doc/org.eclipse.common.recipe.doc/src/5.0/content/images/recipe_reference/screenshot2.gifbin16625 -> 0 bytes
-rw-r--r--doc/org.eclipse.common.recipe.doc/src/5.0/content/recipe_reference.xml680
-rw-r--r--doc/org.eclipse.common.recipe.doc/src/5.0/index.xml17
-rw-r--r--doc/org.eclipse.common.recipe.doc/src/5.0/structure/recipe_reference_structure.xml4
-rw-r--r--doc/org.eclipse.xpand.doc-feature/.project11
-rw-r--r--doc/org.eclipse.xpand.doc-feature/build.properties8
-rw-r--r--doc/org.eclipse.xpand.doc-feature/eclipse_update_120.jpgbin21695 -> 0 bytes
-rw-r--r--doc/org.eclipse.xpand.doc-feature/epl-v10.html304
-rw-r--r--doc/org.eclipse.xpand.doc-feature/feature.properties148
-rw-r--r--doc/org.eclipse.xpand.doc-feature/feature.xml38
-rw-r--r--doc/org.eclipse.xpand.doc-feature/license.html79
-rw-r--r--doc/org.eclipse.xpand.doc-feature/rootfiles/epl-v10.html304
-rw-r--r--doc/org.eclipse.xpand.doc-feature/rootfiles/notice.html79
-rw-r--r--doc/org.eclipse.xpand.doc/.cvsignore2
-rw-r--r--doc/org.eclipse.xpand.doc/.project22
-rw-r--r--doc/org.eclipse.xpand.doc/META-INF/MANIFEST.MF10
-rw-r--r--doc/org.eclipse.xpand.doc/ModelingFeature.pngbin2414 -> 0 bytes
-rw-r--r--doc/org.eclipse.xpand.doc/about.html28
-rw-r--r--doc/org.eclipse.xpand.doc/about.ini15
-rw-r--r--doc/org.eclipse.xpand.doc/about.mappings5
-rw-r--r--doc/org.eclipse.xpand.doc/about.properties17
-rw-r--r--doc/org.eclipse.xpand.doc/book.css1
-rw-r--r--doc/org.eclipse.xpand.doc/build-docbook.properties93
-rw-r--r--doc/org.eclipse.xpand.doc/build-docbook.xml159
-rw-r--r--doc/org.eclipse.xpand.doc/build.properties1
-rw-r--r--doc/org.eclipse.xpand.doc/build.xml158
-rw-r--r--doc/org.eclipse.xpand.doc/build/antJavadoc.sh144
-rw-r--r--doc/org.eclipse.xpand.doc/build/javadoc.xml.template96
-rw-r--r--doc/org.eclipse.xpand.doc/build/overview.html43
-rw-r--r--doc/org.eclipse.xpand.doc/eclipse.gifbin1058 -> 0 bytes
-rw-r--r--doc/org.eclipse.xpand.doc/eclipse.pngbin3353 -> 0 bytes
-rw-r--r--doc/org.eclipse.xpand.doc/eclipse24.gifbin1328 -> 0 bytes
-rw-r--r--doc/org.eclipse.xpand.doc/eclipse32.gifbin1706 -> 0 bytes
-rw-r--r--doc/org.eclipse.xpand.doc/eclipse32.pngbin4594 -> 0 bytes
-rw-r--r--doc/org.eclipse.xpand.doc/eclipse48.gifbin2458 -> 0 bytes
-rw-r--r--doc/org.eclipse.xpand.doc/eclipse48.pngbin5529 -> 0 bytes
-rw-r--r--doc/org.eclipse.xpand.doc/eclipse_lg.gifbin12710 -> 0 bytes
-rw-r--r--doc/org.eclipse.xpand.doc/gettingStarted/.keepdir0
-rw-r--r--doc/org.eclipse.xpand.doc/images/.keepdir0
-rw-r--r--doc/org.eclipse.xpand.doc/notices.html23
-rw-r--r--doc/org.eclipse.xpand.doc/plugin.properties4
-rw-r--r--doc/org.eclipse.xpand.doc/plugin.xml3
-rw-r--r--doc/org.eclipse.xpand.doc/references/.cvsignore0
-rw-r--r--doc/org.eclipse.xpand.doc/references/.keepdir0
-rw-r--r--doc/org.eclipse.xpand.doc/src/5.0/content/builtin_api.xml2086
-rw-r--r--doc/org.eclipse.xpand.doc/src/5.0/content/images/Xpand/metamodelexample.gifbin2407 -> 0 bytes
-rw-r--r--doc/org.eclipse.xpand.doc/src/5.0/content/xpand_reference.xml2846
-rw-r--r--doc/org.eclipse.xpand.doc/src/5.0/index.xml18
-rw-r--r--doc/org.eclipse.xpand.doc/src/5.0/structure/xpand_reference_structure.xml4
-rw-r--r--doc/org.eclipse.xpand.doc/tasks/.keepdir0
-rw-r--r--doc/org.eclipse.xpand.doc/toc.xml6
-rw-r--r--doc/org.eclipse.xpand.doc/topics_Reference.xml3
-rw-r--r--doc/org.eclipse.xpand.doc/tutorials/.keepdir0
59 files changed, 0 insertions, 7759 deletions
diff --git a/doc/org.eclipse.common.recipe.doc/.cvsignore b/doc/org.eclipse.common.recipe.doc/.cvsignore
deleted file mode 100644
index 76f4628..0000000
--- a/doc/org.eclipse.common.recipe.doc/.cvsignore
+++ /dev/null
@@ -1,2 +0,0 @@
-build
-output
diff --git a/doc/org.eclipse.common.recipe.doc/.project b/doc/org.eclipse.common.recipe.doc/.project
deleted file mode 100644
index 3872013..0000000
--- a/doc/org.eclipse.common.recipe.doc/.project
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.common.recipe.doc</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- </buildSpec>
- <natures>
- </natures>
-</projectDescription>
diff --git a/doc/org.eclipse.common.recipe.doc/build-docbook.properties b/doc/org.eclipse.common.recipe.doc/build-docbook.properties
deleted file mode 100644
index 17c926e..0000000
--- a/doc/org.eclipse.common.recipe.doc/build-docbook.properties
+++ /dev/null
@@ -1,93 +0,0 @@
-############### Adaptable properties ###############
-
-# Product information
-product.name= Recipe
-product.name.files=${product.name}
-product.provider=eclipse.org
-product.version=5.0
-
-# Directories
-tools.basedir=${basedir}/../org.openarchitectureware.documentation
-
-# Style files
-custom-css.file=book.css
-custom.pdf-xsl.file=fopdf.xsl
-custom.html-xsl.file=html.xsl
-custom.eclipse-xsl.file=eclipse.xsl
-
-# Flags
-custom = true
-
-# Document type
-document.type=individual
-
-# DocBook version
-docbook.version = 4.5
-
-
-############### Do not change below ###############
-
-# Directories
-tools.basedir.build = ${tools.basedir}
-tools.dir=${tools.basedir}/lib/tools
-tools.dir.build = ${tools.basedir.build}/lib/tools
-version.dir=${product.version}
-docbook.dir=${tools.dir.build}/docbook
-docbook-src.dir=${basedir}/src
-docbook-lib.dir=${docbook.dir}
-src.dir=${docbook-src.dir}/${version.dir}
-content.dir=${src.dir}/content
-structure.dir=${src.dir}/structure
-images.dir=${content.dir}/images
-build.dir=${basedir}/build
-output.dir=${basedir}/output
-html.dir=${output.dir}/html
-pdf.dir=${output.dir}/pdf
-release.dir=${output.dir}//release
-release.build.dir=${build.dir}/release
-style.dir=${tools.basedir}/styles
-css.style.dir=${style.dir}/css
-xsl.style.dir=${style.dir}/xslt
-shared.dir=${tools.basedir.build}/shared
-shared.src.dir=${tools.basedir.build}/src/${version.dir}
-shared.content.dir=${shared.src.dir}/content
-shared.images.dir=${shared.content.dir}/images
-
-# Title of documentation
-doc.title=${product.name} User Guide
-
-# Files
-css.file.path=${css.style.dir}/${custom-css.file}
-css.file=${custom-css.file}
-
-# PDF
-pdf.output.dir=${pdf.dir}/${version.dir}
-pdf.stylesheet.path=${xsl.style.dir}/${custom.pdf-xsl.file}
-pdf.stylesheet=${custom.pdf-xsl.file}
-
-# HTML
-html.output.dir=${html.dir}/${version.dir}
-html.stylesheet.path=${xsl.style.dir}/${custom.html-xsl.file}
-html.stylesheet=${custom.html-xsl.file}
-
-# Eclipse help
-eclipse.plugin.id=org.openarchitectureware.help.userguide
-eclipse.output.dir=../${eclipse.plugin.id}
-eclipse.plugin.name=$[product.name} User Guide
-eclipse.plugin.provider=$[product.provider}
-eclipse.stylesheet.path=${xsl.style.dir}/${custom.eclipse-xsl.file}
-eclipse.stylesheet=${custom.eclipse-xsl.file}
-
-# docbook
-docbook-xsl.dir=${docbook.dir}/xsl
-docbook-xsl.eclipse-xsl.file=${docbook-xsl.dir}/eclipse/eclipse.xsl
-docbook-xsl.html-xsl.file=${docbook-xsl.dir}/html/chunk.xsl
-docbook-xsl.pdf-xsl.file=${docbook-xsl.dir}/fo/fo.xsl
-
-# saxon
-saxon.dir = ${tools.dir}/saxon
-saxon.lib.path = ${saxon.dir}/saxon.jar
-
-# xerces
-xerces.dir = ${tools.dir}/fop
-xerces.lib.path = ${xerces.dir}/xercesImpl-2.7.1.jar \ No newline at end of file
diff --git a/doc/org.eclipse.common.recipe.doc/build-docbook.xml b/doc/org.eclipse.common.recipe.doc/build-docbook.xml
deleted file mode 100644
index 704bc3b..0000000
--- a/doc/org.eclipse.common.recipe.doc/build-docbook.xml
+++ /dev/null
@@ -1,159 +0,0 @@
-<?xml version="1.0"?>
-<project name="Recipe documentation" default="build.all">
-
- <property file="build-docbook.properties" />
-
- <path id="fop">
- <pathelement location="${tools.dir}/fop/fop.jar" />
- <pathelement location="${tools.dir}/fop/avalon-framework-4.2.0.jar" />
- <pathelement location="${tools.dir}/fop/batik-all-1.6.jar" />
- </path>
-
- <path id="saxon">
- <pathelement location="${xerces.lib.path}" />
- <pathelement location="${saxon.lib.path}" />
- </path>
-
- <tstamp>
- <format property="date" pattern="yyyy-MM-dd" />
- <format property="year" pattern="yyyy" />
- </tstamp>
-
- <taskdef name="fop" classname="org.apache.fop.tools.anttasks.Fop" classpathref="fop" />
-
- <target name="build.all" depends="stage, build.doc.html, build.doc.eclipsehelp, build.doc.pdf, unstage" />
-
- <target name="build.doc.html" depends="stage.html">
- <delete dir="${html.output.dir}/contents" failonerror="false" />
- <copy todir="${html.output.dir}/contents/images">
- <fileset dir="${images.dir}">
- <include name="**/*" />
- </fileset>
- </copy>
- <copy file="${css.file.path}" todir="${html.output.dir}" />
- <java fork="true" dir="${html.output.dir}" failonerror="true" classname="com.icl.saxon.StyleSheet">
- <classpath refid="saxon" />
- <sysproperty key="javax.xml.parsers.DocumentBuilderFactory" value="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"/>
- <sysproperty key="javax.xml.parsers.SAXParserFactory" value="org.apache.xerces.jaxp.SAXParserFactoryImpl"/>
- <sysproperty key="org.apache.xerces.xni.parser.XMLParserConfiguration" value="org.apache.xerces.parsers.XIncludeParserConfiguration"/>
- <arg value="${build.dir}/index.xml" />
- <arg value="${build.dir}/${html.stylesheet}" />
- <arg value='profile.condition="${document.type}"'>
- </arg>
- </java>
- </target>
-
- <target name="build.doc.eclipsehelp" depends="stage.eclipse">
- <delete dir="${eclipse.output.dir}/contents" failonerror="false" />
- <copy todir="${eclipse.output.dir}/contents/images">
- <fileset dir="${images.dir}">
- <include name="**/*" />
- </fileset>
- </copy>
- <copy file="${css.file.path}" todir="${eclipse.output.dir}" />
- <java fork="true" dir="${eclipse.output.dir}" failonerror="true" classname="com.icl.saxon.StyleSheet">
- <classpath refid="saxon" />
- <sysproperty key="javax.xml.parsers.DocumentBuilderFactory" value="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"/>
- <sysproperty key="javax.xml.parsers.SAXParserFactory" value="org.apache.xerces.jaxp.SAXParserFactoryImpl"/>
- <sysproperty key="org.apache.xerces.xni.parser.XMLParserConfiguration" value="org.apache.xerces.parsers.XIncludeParserConfiguration"/>
- <arg value="${build.dir}/index.xml" />
- <arg value="${build.dir}/${eclipse.stylesheet}" />
- <arg value="eclipse.plugin.id=${eclipse.plugin.id}" />
- <arg value="eclipse.plugin.name=${eclipse.plugin.name}" />
- <arg value="eclipse.plugin.provider=${eclipse.plugin.provider}" />
- <arg value='profile.condition="${document.type}"'>
- </arg>
- </java>
- </target>
-
- <target name="build.doc.pdf" depends="stage.pdf">
- <java fork="true" dir="${build.dir}" failonerror="true" classname="com.icl.saxon.StyleSheet">
- <classpath refid="saxon" />
- <sysproperty key="javax.xml.parsers.DocumentBuilderFactory" value="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"/>
- <sysproperty key="javax.xml.parsers.SAXParserFactory" value="org.apache.xerces.jaxp.SAXParserFactoryImpl"/>
- <sysproperty key="org.apache.xerces.xni.parser.XMLParserConfiguration" value="org.apache.xerces.parsers.XIncludeParserConfiguration"/>
- <arg value="-o" />
- <arg value="${build.dir}/${product.name.files}_documentation.fo" />
- <arg value="${build.dir}/index.xml" />
- <arg value="${pdf.stylesheet}" />
- <arg value="draft.mode=no" />
- <arg value="paper.type=A4" />
- <arg value="l10n.gentext.language=en" />
- <arg value='profile.condition="${document.type}"'>
- </arg>
- </java>
-
- <mkdir dir="${pdf.output.dir}" />
-
- <fop format="application/pdf" outdir="${pdf.output.dir}" basedir="${build.dir}" messagelevel="debug">
- <fileset dir="${build.dir}">
- <include name="**/*.fo" />
- </fileset>
- </fop>
- </target>
-
- <target name="stage" depends="unstage">
- <copy todir="${build.dir}">
- <fileset dir="${src.dir}">
- <include name="**/*.xml" />
- </fileset>
- </copy>
- <copy todir="${build.dir}/structure">
- <fileset dir="${structure.dir}">
- <include name="**/*.xml" />
- </fileset>
- </copy>
- <copy todir="${build.dir}/content">
- <fileset dir="${content.dir}">
- <include name="**/*.xml" />
- </fileset>
- </copy>
- <copy todir="${build.dir}/content/images">
- <fileset dir="${images.dir}">
- <include name="**/*" />
- </fileset>
- </copy>
- <copy file="${tools.basedir}/shared/bookinfo.xml" todir="${build.dir}" />
- <replace file="${build.dir}/index.xml" token="@DOCBOOKVERSION@"
- value="${docbook.version}" casesensitive="true"/>
- <replace file="${build.dir}/index.xml" token="@TITLE@"
- value="${doc.title}" casesensitive="true"/>
- <replace file="${build.dir}/bookinfo.xml" token="@VERSION@"
- value="${product.version}" casesensitive="true"/>
- <replace file="${build.dir}/bookinfo.xml" token="@DATE@"
- value="${date}" casesensitive="true"/>
- </target>
-
- <target name="stage.pdf" depends="stage">
- <copy file="${pdf.stylesheet.path}" todir="${build.dir}" />
- <replace file="${build.dir}/${pdf.stylesheet}" token="@SHAREDIMAGESDIR@"
- value="${shared.images.dir}" casesensitive="true"/>
- <replace file="${build.dir}/${pdf.stylesheet}" token="@DOCBOOKDIR@"
- value="${docbook.dir}" casesensitive="true" />
- <replace file="${build.dir}/${pdf.stylesheet}" token="@TOOLSDIR@"
- value="${tools.dir}" casesensitive="true"/>
- <replace file="${build.dir}/${pdf.stylesheet}" token="@YEAR@"
- value="${year}" casesensitive="true"/>
- </target>
-
- <target name="stage.html" depends="stage">
- <copy file="${html.stylesheet.path}" todir="${build.dir}" />
- <replace file="${build.dir}/${html.stylesheet}" token="@DOCBOOKDIR@"
- value="${docbook.dir}" casesensitive="true" />
- </target>
-
- <target name="stage.eclipse" depends="stage">
- <copy file="${eclipse.stylesheet.path}" todir="${build.dir}" />
- <replace file="${build.dir}/${eclipse.stylesheet}" token="@DOCBOOKDIR@"
- value="${docbook.dir}" casesensitive="true" />
- </target>
-
- <target name="unstage">
- <delete dir="${build.dir}" />
- </target>
-
- <target name="clean" depends="unstage">
- <delete dir="${output.dir}" />
- </target>
-
-</project>
diff --git a/doc/org.eclipse.common.recipe.doc/build.xml b/doc/org.eclipse.common.recipe.doc/build.xml
deleted file mode 100644
index dced0ae..0000000
--- a/doc/org.eclipse.common.recipe.doc/build.xml
+++ /dev/null
@@ -1,35 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1" ?>
-<!-- $Id: build.xml,v 1.1 2008/01/28 16:55:23 pschonbac Exp $
- * Copyright (c) 2008 committers of openArchitectureWare and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * committers of openArchitectureWare - initial API and implementation
- -->
-<project name="Recipe documentation - Master Build Script" default="release" basedir=".">
-
- <property file="build-docbook.properties"/>
-
- <target name="release" >
- <mkdir dir="${release.build.dir}"/>
- <mkdir dir="${release.dir}"/>
-
- <copy todir="${release.build.dir}">
- <fileset dir="${pdf.output.dir}">
- <include name="*.pdf"/>
- </fileset>
- </copy>
-
- <zip zipfile="${release.dir}/${product.name}-documentation-${product.version}.zip">
- <fileset dir="${release.build.dir}">
- <include name="*.pdf"/>
- </fileset>
- </zip>
-
- <delete dir="${release.build.dir}"/>
- </target>
-
-</project>
diff --git a/doc/org.eclipse.common.recipe.doc/src/5.0/content/images/recipe_reference/screenshot.gif b/doc/org.eclipse.common.recipe.doc/src/5.0/content/images/recipe_reference/screenshot.gif
deleted file mode 100644
index 74ecbb5..0000000
--- a/doc/org.eclipse.common.recipe.doc/src/5.0/content/images/recipe_reference/screenshot.gif
+++ /dev/null
Binary files differ
diff --git a/doc/org.eclipse.common.recipe.doc/src/5.0/content/images/recipe_reference/screenshot2.gif b/doc/org.eclipse.common.recipe.doc/src/5.0/content/images/recipe_reference/screenshot2.gif
deleted file mode 100644
index 968adea..0000000
--- a/doc/org.eclipse.common.recipe.doc/src/5.0/content/images/recipe_reference/screenshot2.gif
+++ /dev/null
Binary files differ
diff --git a/doc/org.eclipse.common.recipe.doc/src/5.0/content/recipe_reference.xml b/doc/org.eclipse.common.recipe.doc/src/5.0/content/recipe_reference.xml
deleted file mode 100644
index ac78f04..0000000
--- a/doc/org.eclipse.common.recipe.doc/src/5.0/content/recipe_reference.xml
+++ /dev/null
@@ -1,680 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!DOCTYPE chapter [
-<!ENTITY % isopub SYSTEM "http://www.w3.org/2003/entities/iso8879/isopub.ent">
-%isopub;
-]>
-
-<chapter id="recipe">
- <title>Recipe Framework</title>
-
- <section id="recipe_intro">
- <title>Introductory Example and Plugin</title>
-
- <para>Currently, it not feasible in MDSD to generate 100% of an
- application. Usually, you generate some kind of implementation skeleton
- into which developers integrate their own, manually written code. For
- example, the generator generates an abstract base class, from which
- developers extend their implementation classes &ndash; which contains the
- application logic.</para>
-
- <para>The screenshot above shows an example &ndash; and also illustrates the use
- of the <emphasis>Recipe</emphasis> plugin. Let us look at the various
- items in the screenshot:</para>
-
- <figure id="recipe_fig1">
- <title>Recipe Example</title>
-
- <mediaobject>
- <imageobject role="fo">
- <imagedata fileref="images/recipe_reference/screenshot.gif"
- scale="50"/>
- </imageobject>
-
- <imageobject role="html">
- <imagedata fileref="images/recipe_reference/screenshot.gif" />
- </imageobject>
- </mediaobject>
- </figure>
-
- <para><orderedlist>
- <listitem>
- <para>The generator creates a so-called
- <filename>.recipes</filename> file. How this file is created, will
- be shown below. The recipe file contains the checks that need to be
- executed on the code base. In the context menu of a
- <filename>.recipes</filename> file you will find an item called
- <emphasis>Open Recipe File</emphasis> that opens the checks in the
- respective browser. Note that the file has to have a
- <filename>.recipes</filename> extension &ndash; otherwise the plugin will
- not open the file.</para>
- </listitem>
-
- <listitem>
- Here you can see failed checks. The messages tell you that you have to write the implementation class, and (the second item) you will have to make sure it extends from the generated base class.
- </listitem>
-
- <listitem>
- Here, you can see a check that worked well.
- </listitem>
-
- <listitem>
- Each check contains a number of parameters; the table shows the parameters of the selected check. For example the name of the class to be generated, the one from which you have to inherit, etc. This is basically for your information. If you double-click on a certain row, the value of the parameter is copied to the clipboard &ndash; and you can past it to wherever you need.
- </listitem>
-
- <listitem>
- Here, you can see a descriptive text that explains, what you have to do, in order to fix the failed check.
- </listitem>
-
- <listitem>
- <para>Here, is the manually written code (in the
- <filename>src</filename> folder). You can see the
- class<classname>CalculatorImplementation</classname> &ndash; this is why
- the check that verifies its presence is successful. There is no
- <classname>C1Implementation</classname> why the check that checks
- its presence fails.</para>
- </listitem>
-
- <listitem>
- This is the generated code folder (
-
- <filename>src-gen</filename>
-
- ). It contains the generated base classes.
- </listitem>
- </orderedlist></para>
-
- <para>There are a couple of options to work with those recipes, as shown
- in the next illustration:</para>
-
- <figure id="recipe_fig2">
- <title>Using the Recipe plugin</title>
-
- <mediaobject>
- <imageobject role="fo">
- <imagedata fileref="images/recipe/screenshot2.gif" scale="60" />
- </imageobject>
-
- <imageobject role="html">
- <imagedata fileref="images/recipe/screenshot2.gif" />
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>If you right-click on a check in the tree view, you can reevaluate
- the check explicitly. At the top-right of the view, there are three
- buttons. The first on collapses the tree view. The <emphasis>"play button
- with the small red cross"</emphasis> reevaluates all the failed checks -
- and only those! The third button is a filter button; if selected, the tree
- view hides the checks that are OK. In the drop down menu of the view
- (activated with the small downward-pointing triangle), there are two
- entries: the green <emphasis>run</emphasis> button labelled "reevaluate
- all" reevaluates all checks, even those that have been successful before.
- And finally, the reload button reloads the recipe file, and reevaluates
- everything.</para>
-
- <para>There are two important automation steps: <itemizedlist>
- <listitem>
- First of all, you should make sure that when you run the generator &ndash; typically through an ant file &ndash; the workspace will be refreshed after the ant run (you can configure this in Eclipse). If you do this, the view will automatically reload the recipe file and reevaluate all the checks.
- </listitem>
-
- <listitem>
- There are certain kinds of checks that automatically reevaluate if the workspace changes. This means that, for example, if you add the implementation class in the above example, as soon as you save the class file, the check will succeed. The question, which checks will be evaluated automatically, has to be defined in the check definition &ndash; see below.
- </listitem>
- </itemizedlist></para>
-
- <section id="recipe_install">
- <title>Installing the Plugin</title>
-
- <para>There are two steps: The first one installs the plugin itself,
- i.e. the Recipe browser view, etc. The respective plugin is
- <filename>org.openarchitectureware.recipe</filename>. As usual, you
- install it by copying it into the Eclipse plugin directory or just by
- downloading it from the oAW update site. If the plugin is installed in
- this way, it can only evaluate the (relatively trivial) checks in the
- <filename>recipe.simpleChecks</filename> project. To check useful
- things, you will have to extend the plugin &ndash; you have to contribute the
- checks that should be executed. For this purpose, the
- <package>org.openarchitectureware.recipe</package> plugin provides the
- <methodname>check</methodname> extension point. A number of useful
- checks that can be evaluated in Eclipse are contained in the
- <package>org.openarchitectureware.recipe.eclipseChecks</package> plugin.
- You should install that one, too. It also comes automatically from the
- update site.</para>
-
- <para>In general, this means: whenever you develop your own checks and
- want to evaluate them in Eclipse, you have to contain them in a plugin
- and extend the above-mentioned extension point. Otherwise it will not
- work.</para>
- </section>
-
- <section id="recipe_referencing_jars">
- <title>Referencing the JAR files</title>
-
- <para>In order for the workflow to find the recipe JARs, they need to be
- on the classpath. The easiest way to achieve that is to make your
- generator project a plugin project and reference the recipe plugins in
- the plugin dependencies (all the oAW plugins with recipe in their name).
- This will update your classpath and add the necessary JARs. If, for some
- reason, you do not want your projects to be plugins, you have to
- reference the JAR files of the above mentioned plugins manually.</para>
- </section>
- </section>
-
- <section id="recipe_execution">
- <title>Executing Recipe Checks</title>
-
- <section id="recipe_using_checks">
- <title>Running Checks within your workflow</title>
-
- <para>You have to write a workflow component that creates the recipes.
- Your custom workflow component has to extend the
- <classname>RecipeCreationComponent</classname> base class and overwrite
- the <methodname>createRecipes()</methodname> operation. The operation
- has to return the collection of recipes that should stored into the
- recipe file. In the workflow file, you then have to configure this
- component with the name of the application project in Eclipse, the
- source path where the manually write code can be found, and the name of
- the recipe file to be written.</para>
-
- <para>Please take a look a the <emphasis>emfHelloWorld</emphasis>
- example. It contains an extensive example of how to use the recipes in
- oAW 4.</para>
- </section>
-
- <section id="recipe_ant_integration">
- <title>Running Checks within Ant</title>
-
- <para>You can also check the recipes using ant. Of course you cannot use
- those nice and cool interactive checks &ndash; and you also cannot use
- Eclipse-based checks. They can be in the recipes file, since the ant
- tasks skips them automatically. The following piece of ant code shows
- how to run the checks &ndash; should be self-explanatory. Note that you have
- to use all the jar files from the recipe.ant project.</para>
-
- <programlisting language="xml">&lt;?xml version="1.0" encoding="ISO-8859-1" ?&gt;
-&lt;project name="scm - hello world - generate" default="generate"&gt;
- &lt;property file="build.properties" /&gt;
- &lt;path id="ant.runtime.classpath"&gt;
- &lt;pathelement location="${GENROOT}" /&gt;
- &lt;fileset dir="${GENROOT}" includes="*.jar"/&gt;
- &lt;fileset dir="${OAWROOT}/dist" includes="*.jar"/&gt;
- &lt;fileset dir="${RECIPE.CORE.DIR}/dist" includes="*.jar"/&gt;
- &lt;fileset dir="${RECIPE.SIMPLECHECKS.DIR}/dist" includes="*.jar"/&gt;
- &lt;fileset dir="${RECIPE.ANT.DIR}/dist" includes="*.jar"/&gt;
- &lt;fileset dir="${RECIPE.ANT.DIR}/lib" includes="*.jar"/&gt;
- &lt;fileset dir="${RECIPE.ECLIPSECHECKS.DIR}" includes="*.jar"/&gt;
- &lt;/path&gt;
- &lt;target name="check" depends=""&gt;
- &lt;taskdef name="check"
- classname="org.openarchitectureware.recipe.ant.RecipeCheckTask"&gt;
- &lt;classpath refid="ant.runtime.classpath" /&gt;
- &lt;/taskdef&gt;
- &lt;check recipeFile="L:/workspace/xy/helloWorld.recipes"/&gt;
- &lt;/target&gt;
-&lt;/project&gt;</programlisting>
-
- <para>The checks use log4j logging to output the messages. So you can
- set the log level using the log4j.properties file. The following output
- shows all the checks being successful:</para>
-
- <programlisting>Buildfile: l:\exampleWorkspace-v4\scmHelloWorld\build.xml
-check:
- [check] 0 INFO - checking recipes from file:
- L:/runtime-EclipseApplication/xy/helloWorld.recipes
-BUILD SUCCESSFUL
-Total time: 1 second</programlisting>
-
- <para>If you set the log level to DEBUG, you will get more output. Here,
- in our case, you can see that all the Eclipse checks are skipped.</para>
-
- <programlisting>Buildfile: l:\exampleWorkspace-v4\scmHelloWorld\build.xml
-check:
- [check] 0 INFO - checking recipes from file: L:/runtime-
- EclipseApplication/xy/helloWorld.recipes
- [check] 60 DEBUG - [skipped] resource exists exists -
- skipped - mode was batch only.
- [check] 70 DEBUG - [skipped] resource exists exists -
- skipped - mode was batch only.
- [check] 70 DEBUG - [skipped] resource exists exists -
- skipped - mode was batch only.
- [check] 80 DEBUG - [skipped] resource exists exists -
- skipped - mode was batch only.
- [check] 80 DEBUG - [skipped] resource exists exists --
- skipped - mode was batch only.
- [check] 90 DEBUG - [skipped] resource exists exists -
- skipped - mode was batch only.
- [check] 90 DEBUG - [skipped] resource exists exists -
- skipped - mode was batch only.
- [check] 90 DEBUG - [skipped] resource exists exists -
- skipped - mode was batch only.
-BUILD SUCCESSFUL
-Total time: 1 second</programlisting>
-
- <para>If there are errors, they will be output as an ERROR level
- message.</para>
- </section>
-
- <section id="recipe_implementing_checks">
- <title>Implementing your own Checks</title>
-
- <section id="recipe_hello_world">
- <title>Hello World</title>
-
- <para>The following piece of code is the simplest check, you could
- possibly write:</para>
-
- <programlisting language="Java">package org.openarchitectureware.recipe.checks.test;
-
-import org.openarchitectureware.recipe.core.AtomicCheck;
-import org.openarchitectureware.recipe.eval.EvaluationContext;
-
-public class HelloWorldCheck extends AtomicCheck {
- private static final long serialVersionUID = 1L;
- public HelloWorldCheck() {
- super("hello world", "this check always succeeds");
- }
-
- public void evaluate(EvaluationContext c) {
- ok();
- }
-}</programlisting>
-
- <para>A couple of notes: <itemizedlist>
- <listitem>
- You can define any kind of constructor you want &ndash; passing any parameters you like. You
-
- <emphasis>have to</emphasis>
-
- pass at least two parameters to the constructor of the parent class: the first one is the name, a short name, of the check. The second parameter is the somewhat longer message. You can call
-
- <methodname>setLongDescription()</methodname>
-
- if you want to set the explanatory text.
- </listitem>
-
- <listitem>
- You can pass a third parameter to the constructor of the parent class: and that is one of the two constants in
-
- <classname>EvalTrigger</classname>
-
- . By default, the
-
- <classname>EvalTrigger.ON_REQUEST</classname>
-
- is used which means that the check is only evaluated upon explicit request. If you pass
-
- <constant>EvalTrigger.ON_CHANGE</constant>
-
- , the check will be automatically re-evaluated if the Eclipse workspace changes.
- </listitem>
-
- <listitem>
- You should define a serial version UID since Java serialization is used for the recipe file.
- </listitem>
-
- <listitem>
- In the
-
- <methodname>evaluate()</methodname>
-
- method you do the check itself. We will explain more on that later.
- </listitem>
- </itemizedlist></para>
- </section>
-
- <section id="recipe_advanced_checks">
- <title>More sensible Checks</title>
-
- <para>More sensible checks distinguish themselves in two respects:
- <itemizedlist>
- <listitem>
- First, you will typically pass some parameters to the constructor which you will store in member variables and then use in the
-
- <methodname>evaluate()</methodname>
-
- operation.
- </listitem>
-
- <listitem>
- You can store parameters for display in the table view in the plugin. You can use the
-
- <methodname>setParameter(name, value)</methodname>
-
- operation for that. More on that below.
- </listitem>
-
- <listitem>
- The evaluation will contain a certain business logic.
- </listitem>
- </itemizedlist></para>
-
- <para>An example: <programlisting language="Java">public void evaluate(EvaluationContext c) {
- if ( something is not right ) {
- fail( "something has gone wrong");
- }
- if ( some condition is met ) {
- ok();
- }</programlisting></para>
-
- <para>By the way, you do not need to care about the EvaluationContext.
- It is only needed by the framework.</para>
- </section>
-
- <section id="recipe_eclipse_checks">
- <title>Eclipse Checks</title>
-
- <para>Eclipse checks are a bit special. If the check were implemented
- in the way described above, you would have a lot of dependencies to
- all the Eclipse plugins/jars. You would have these dependencies, as
- soon as you instantiate the check &ndash; i.e. also in the generator when
- you configure the check. In order to avoid this, we have to decouple
- the configuration of a check in the generator and its evaluation later
- in Eclipse: <orderedlist>
- <listitem>
- During configuration we don not want any Eclipse dependencies since we don not want to "import" half of Eclipse into out ant-based code generator
- </listitem>
-
- <listitem>
- However, when evaluating the check we obviously need the Eclipse dependencies, otherwise we could not take advantage of Eclipse-based checks in the first place.
- </listitem>
- </orderedlist></para>
-
- <para>An Eclipse check is thus implemented in the following way. First
- of all, our check has to extend the
- <classname>EclipseCheck</classname> base class.</para>
-
- <programlisting language="">public class ResourceExistenceCheck extends EclipseCheck {</programlisting>
-
- <para>Again, we add a serial version UID to make sure deserialization
- will work.</para>
-
- <programlisting language="">private static final long serialVersionUID = 2L; </programlisting>
-
- <para>In the constructor we decide whether we want to have this check
- evaluated whenever the Eclipse workspace changes
- (<constant>EvalTrigger.ON_CHANGE</constant>) or not. We also store
- some of the parameters in the parameter facility of the framework.
- Note that we <emphasis>do not implement</emphasis> the
- <methodname>evaluate()</methodname> operation!</para>
-
- <programlisting language="java">
- public ResourceExistenceCheck(String message,
- String projectName, String resourceName) {
- super("resource exists exists", message, EvalTrigger.ON_CHANGE);
- setProjectName(projectName);
- setResourceName(resourceName);
- }
-
- private void setProjectName(String projectName) {
- setParameter("projectName", projectName);
- }
-
- private void setResourceName(String resourceName) {
- setParameter("resourceName", resourceName);
- }</programlisting>
-
- <para>In order to provide the evaluation functionality, you have to
- implement an <classname>ICheckEvaluator</classname>. Ir has to have
- <emphasis>the same qualified name</emphasis> as the check itself,
- postfixed with <classname>Evaluator</classname>. During the evaluation
- of the check, the class is loaded dynamically based on its name. A
- wrong name will result in a runtime error during the evaluation of the
- Eclipse plugin.</para>
-
- <programlisting language="Java">public class ResourceExistenceCheckEvaluator
-implements ICheckEvaluator {
-
- public void evaluate(AtomicCheck check) {
- String projectName =
- check.getParameter("projectName").getValue().toString();
- String resourceName =
- check.getParameter("resourceName").getValue().toString();
- IWorkspace workspace = ResourcesPlugin.getWorkspace();
- IResource project =
- workspace.getRoot().getProject(projectName);
- if (project == null)
- check.fail("project not found: "+projectName);
- IFile f = workspace.getRoot().getFile(
- new Path(projectName+"/"+resourceName) );
- String n = f.getLocation().toOSString();
- if ( !f.exists() ) check.fail(
- "resource not found: "+projectName+"/"+resourceName);
- check.ok();
- }</programlisting>
-
- <para>When implementing the evaluator, you can basically do the same
- things as in the <methodname>evaluate()</methodname> operation in
- normal checks. However, in order to set the
- <methodname>ok()</methodname> or <methodname>fail("why")</methodname>
- flags, you have to call the respective operations on the check passed
- as the parameter to the operation.</para>
- </section>
-
- <!-- 12.07.2007 Marek -->
-
- <section id="recipe_checks_making_checks_available_to_the_eclipse_plugin">
- <title>Making checks available to the Eclipse plugin</title>
-
- <para>In order to allow the Eclipse runtime to execute your checks, it
- has to find the respective classes when deserializing the recipe file.
- This is a bit tricky in Eclipse, since each plugin has its own class
- loader. So, assume you want to define your own checks and want to use
- them in Eclipse; what you have to do is: implement your own plugin
- that extends a given extension point in the Recipe Browser plugin. The
- following XML is the plugin descriptor of the <package>
- org.openarchitectureware.recipe.eclipseChecks.plugin.EclipseChecksPlugin</package>
- , a sample plugin that comes with the recipe framework and provides a
- number of Eclipse-capable checks. <programlisting language="xml">
- &lt;?xml version="1.0" encoding="UTF-8"?&gt;
-&lt;?eclipse version="3.0"?&gt;
-&lt;plugin
- id="org.openarchitectureware.recipe.eclipseChecks"
- name="%plugin_name"
- version="4.0.0"
- provider-name="%provider_name"
- class="org.openarchitectureware.recipe.\
- eclipseChecks.plugin.EclipseChecksPlugin"&gt;</programlisting></para>
-
- <para>Here we now define the jar file that contains our checks (This
- will be important below) <programlisting language="xml"> &lt;runtime&gt;
- &lt;library name="oaw-recipe-eclipsechecks.jar"&gt;
- &lt;export name="*"/&gt;
- &lt;/library&gt;
- &lt;/runtime&gt;</programlisting></para>
-
- <para>The required plugins mainly depend on the implementations of
- <classname>CheckEvaluator</classname>, of course, however, you have to
- make sure the dependencies contains the
- <package>org.openarchitectureware.recipe</package> plugin, since you
- are going to extend an extension point defined in this plugin.
- <programlisting language="xml"> &lt;requires&gt;
- &lt;import plugin="org.eclipse.ui"/&gt;
- &lt;import plugin="org.eclipse.core.runtime"/&gt;
- &lt;import plugin="org.eclipse.core.resources"/&gt;
- &lt;import plugin="org.openarchitectureware.recipe"/&gt;
- &lt;import plugin="org.eclipse.jdt.core"/&gt;
- &lt;/requires&gt;</programlisting></para>
-
- <para>This is the important line: here you specify that you extend the
- <classname>check</classname> extension point of the
- <emphasis>Recipe</emphasis> browser plugin. If you don't do this,
- deserialization of the recipe file will fail and you will get nasty
- errors. And yes, you need the dummy element; because otherwise, the
- class loading "magic" will not work. <programlisting language="xml"> &lt;extension point="org.openarchitectureware.recipe.check"&gt;
- &lt;dummy/&gt;
- &lt;/extension&gt;
-&lt;/plugin&gt;</programlisting></para>
-
- <para>When you need to use the checks outside of Eclipse (e.g. in the
- generator for configuration/serialization purposes) you just add the
- JAR file of the plugin to your generator classpath. You <emphasis>don
- not</emphasis> need o add references to all the JAR files of the
- Eclipse plugin in the <emphasis>requires</emphasis> section, since
- these things will only be used during evaluation.</para>
- </section>
- </section>
-
- <section id="recipe_framework_components">
- <title>Framework components</title>
-
- <para><informaltable frame="all" id="recipe_framework_components_table">
- <tgroup align="left" cols="4" colsep="1" rowsep="1">
- <colspec colname="c1" colwidth="2*" />
-
- <colspec colname="c2" colwidth="1*" />
-
- <colspec colname="c3" colwidth="1*" />
-
- <colspec colname="c4" colwidth="2*" />
-
- <thead>
- <row>
- <entry align="center">Component</entry>
-
- <entry align="center">Plugin</entry>
-
- <entry align="center">Depends on</entry>
-
- <entry align="center">Description</entry>
- </row>
- </thead>
-
- <tbody>
- <row>
- <entry>recipe.core</entry>
-
- <entry>Yes</entry>
-
- <entry>-</entry>
-
- <entry>Framework core. Needed whenever you do anything with
- recipes</entry>
- </row>
-
- <row>
- <entry>recipe.ant</entry>
-
- <entry>Yes</entry>
-
- <entry>recipe.core</entry>
-
- <entry>Contains the ant task to check recipes. Needed only for
- recipe evaluation in ant</entry>
- </row>
-
- <row>
- <entry>recipe.simpleChecks</entry>
-
- <entry>Yes</entry>
-
- <entry>recipe.core</entry>
-
- <entry>Contains a number of (more or less useful) sample
- checks</entry>
- </row>
-
- <row>
- <entry>recipe.plugin</entry>
-
- <entry>Yes</entry>
-
- <entry>recipe.core</entry>
-
- <entry>Contains the Eclipse Recipe Browser view</entry>
- </row>
-
- <row>
- <entry>recipe.eclipsechecks.plugin</entry>
-
- <entry>Yes</entry>
-
- <entry>recipe.core</entry>
-
- <entry>Contains the pre-packaged Eclipse checks.</entry>
- </row>
- </tbody>
- </tgroup>
- </informaltable></para>
- </section>
-
- <section id="recipe_list_of_currently_available_checks">
- <title>List of currently available Checks</title>
-
- <para>This table contains a list of all currently available checks. We
- are working on additional ones. Contributions are always welcome, of
- course! This list might, thus, not always be up to date &ndash; just take a
- look at the code to find out more. <informaltable frame="all"
- id="recipe_list_of_currently_available_checks_table">
- <tgroup align="left" cols="3" colsep="1" rowsep="1">
- <colspec colname="c1" colwidth="1*" />
-
- <colspec colname="c2" colwidth="2*" />
-
- <colspec colname="c3" colwidth="1*" />
-
- <thead>
- <row>
- <entry align="center">Type</entry>
-
- <entry align="center">Classnames</entry>
-
- <entry align="center">Purpose</entry>
- </row>
- </thead>
-
- <tbody>
- <row>
- <entry>Batch</entry>
-
- <entry><emphasis> org.openarchitectureware.recipe.checks.
- file.FileExistenceCheck </emphasis></entry>
-
- <entry>Checks whether a given file exists</entry>
- </row>
-
- <row>
- <entry>Batch</entry>
-
- <entry><emphasis> org.openarchitectureware.recipe.checks.
- file.FileContentsCheck </emphasis></entry>
-
- <entry>Checks whether a given substring can be found in a
- certain file</entry>
- </row>
-
- <row>
- <entry>Eclipse</entry>
-
- <entry><emphasis> org.openarchitectureware.recipe.
- eclipseChecks.checks. JavaClassExistenceCheck
- </emphasis></entry>
-
- <entry>Checks whether a given Java class exists</entry>
- </row>
-
- <row>
- <entry>Eclipse</entry>
-
- <entry><emphasis> org.openarchitectureware.recipe.
- eclipseChecks.checks. JavaSupertypeCheck </emphasis></entry>
-
- <entry>Checks whether a given Java class extends a certain
- superclass</entry>
- </row>
-
- <row>
- <entry>Eclipse</entry>
-
- <entry><emphasis> org.openarchitectureware.recipe.
- eclipseChecks.checks. ResourceExistenceCheck
- </emphasis></entry>
-
- <entry>Checks whether a given Eclipse Workspace Resource
- exists</entry>
- </row>
- </tbody>
- </tgroup>
- </informaltable></para>
- </section>
- </section>
-</chapter> \ No newline at end of file
diff --git a/doc/org.eclipse.common.recipe.doc/src/5.0/index.xml b/doc/org.eclipse.common.recipe.doc/src/5.0/index.xml
deleted file mode 100644
index 9952169..0000000
--- a/doc/org.eclipse.common.recipe.doc/src/5.0/index.xml
+++ /dev/null
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<book xmlns="http://docbook.org/ns/docbook" version="5.0"
- xmlns:xi="http://www.w3.org/2001/XInclude" >
- <title>@TITLE@</title>
-
- <xi:include href="bookinfo.xml" />
-
- <toc />
-
- <part id="reference">
- <title>Reference</title>
- <xi:include href="structure/recipe_reference_structure.xml"/>
- </part>
-
- <index />
-</book>
-
diff --git a/doc/org.eclipse.common.recipe.doc/src/5.0/structure/recipe_reference_structure.xml b/doc/org.eclipse.common.recipe.doc/src/5.0/structure/recipe_reference_structure.xml
deleted file mode 100644
index 44ed4ea..0000000
--- a/doc/org.eclipse.common.recipe.doc/src/5.0/structure/recipe_reference_structure.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-
-<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
- href="../content/recipe_reference.xml"/> \ No newline at end of file
diff --git a/doc/org.eclipse.xpand.doc-feature/.project b/doc/org.eclipse.xpand.doc-feature/.project
deleted file mode 100644
index febe751..0000000
--- a/doc/org.eclipse.xpand.doc-feature/.project
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.xpand.doc-feature</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- </buildSpec>
- <natures>
- </natures>
-</projectDescription>
diff --git a/doc/org.eclipse.xpand.doc-feature/build.properties b/doc/org.eclipse.xpand.doc-feature/build.properties
deleted file mode 100644
index ae1d405..0000000
--- a/doc/org.eclipse.xpand.doc-feature/build.properties
+++ /dev/null
@@ -1,8 +0,0 @@
-bin.includes = feature.xml,\
- feature.properties,\
- eclipse_update_120.jpg,\
- epl-v10.html,\
- license.html
-src.includes = epl-v10.html,\
- license.html
-root=rootfiles
diff --git a/doc/org.eclipse.xpand.doc-feature/eclipse_update_120.jpg b/doc/org.eclipse.xpand.doc-feature/eclipse_update_120.jpg
deleted file mode 100644
index bfdf708..0000000
--- a/doc/org.eclipse.xpand.doc-feature/eclipse_update_120.jpg
+++ /dev/null
Binary files differ
diff --git a/doc/org.eclipse.xpand.doc-feature/epl-v10.html b/doc/org.eclipse.xpand.doc-feature/epl-v10.html
deleted file mode 100644
index cb1073a..0000000
--- a/doc/org.eclipse.xpand.doc-feature/epl-v10.html
+++ /dev/null
@@ -1,304 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<html xmlns:o="urn:schemas-microsoft-com:office:office"
-xmlns:w="urn:schemas-microsoft-com:office:word"
-xmlns="http://www.w3.org/TR/REC-html40">
-
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<link rel=File-List
-href="./Eclipse%20EPL%202003_11_10%20Final_files/filelist.xml">
-<title>Eclipse Public License - Version 1.0</title>
-<style>
-<!--
- /* Font Definitions */
-@font-face
- {
- panose-1:2 11 6 4 3 5 4 4 2 4;
- mso-font-charset:0;
- mso-font-pitch:variable;
- mso-font-signature:553679495 -2147483648 8 0 66047 0;}
- /* Style Definitions */
-p.MsoNormal, li.MsoNormal, div.MsoNormal
- {mso-style-parent:"";
- margin:0in;
- margin-bottom:.0001pt;
- mso-pagination:widow-orphan;
- font-size:12.0pt;
- }
-p
- {margin-right:0in;
- mso-margin-top-alt:auto;
- mso-margin-bottom-alt:auto;
- margin-left:0in;
- mso-pagination:widow-orphan;
- font-size:12.0pt;
- }
-p.BalloonText, li.BalloonText, div.BalloonText
- {mso-style-name:"Balloon Text";
- margin:0in;
- margin-bottom:.0001pt;
- mso-pagination:widow-orphan;
- font-size:8.0pt;
-
- }
-@page Section1
- {size:8.5in 11.0in;
- margin:1.0in 1.25in 1.0in 1.25in;
- mso-header-margin:.5in;
- mso-footer-margin:.5in;
- mso-paper-source:0;}
-div.Section1
- {page:Section1;}
--->
-</style>
-</head>
-
-<body lang="EN-US" style='tab-interval:.5in'>
-
-<div class=Section1>
-
-<p align=center style='text-align:center'><b>Eclipse Public License - v 1.0</b>
-</p>
-
-<p><span style='font-size:10.0pt'>THE ACCOMPANYING PROGRAM IS PROVIDED UNDER
-THE TERMS OF THIS ECLIPSE PUBLIC LICENSE (&quot;AGREEMENT&quot;). ANY USE,
-REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE
-OF THIS AGREEMENT.</span> </p>
-
-<p><b><span style='font-size:10.0pt'>1. DEFINITIONS</span></b> </p>
-
-<p><span style='font-size:10.0pt'>&quot;Contribution&quot; means:</span> </p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
-in the case of the initial Contributor, the initial code and documentation
-distributed under this Agreement, and<br clear=left>
-b) in the case of each subsequent Contributor:</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>i)
-changes to the Program, and</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>ii)
-additions to the Program;</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>where
-such changes and/or additions to the Program originate from and are distributed
-by that particular Contributor. A Contribution 'originates' from a Contributor
-if it was added to the Program by such Contributor itself or anyone acting on
-such Contributor's behalf. Contributions do not include additions to the
-Program which: (i) are separate modules of software distributed in conjunction
-with the Program under their own license agreement, and (ii) are not derivative
-works of the Program. </span></p>
-
-<p><span style='font-size:10.0pt'>&quot;Contributor&quot; means any person or
-entity that distributes the Program.</span> </p>
-
-<p><span style='font-size:10.0pt'>&quot;Licensed Patents &quot; mean patent
-claims licensable by a Contributor which are necessarily infringed by the use
-or sale of its Contribution alone or when combined with the Program. </span></p>
-
-<p><span style='font-size:10.0pt'>&quot;Program&quot; means the Contributions
-distributed in accordance with this Agreement.</span> </p>
-
-<p><span style='font-size:10.0pt'>&quot;Recipient&quot; means anyone who
-receives the Program under this Agreement, including all Contributors.</span> </p>
-
-<p><b><span style='font-size:10.0pt'>2. GRANT OF RIGHTS</span></b> </p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
-Subject to the terms of this Agreement, each Contributor hereby grants Recipient
-a non-exclusive, worldwide, royalty-free copyright license to<span
-style='color:red'> </span>reproduce, prepare derivative works of, publicly
-display, publicly perform, distribute and sublicense the Contribution of such
-Contributor, if any, and such derivative works, in source code and object code
-form.</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>b)
-Subject to the terms of this Agreement, each Contributor hereby grants
-Recipient a non-exclusive, worldwide,<span style='color:green'> </span>royalty-free
-patent license under Licensed Patents to make, use, sell, offer to sell, import
-and otherwise transfer the Contribution of such Contributor, if any, in source
-code and object code form. This patent license shall apply to the combination
-of the Contribution and the Program if, at the time the Contribution is added
-by the Contributor, such addition of the Contribution causes such combination
-to be covered by the Licensed Patents. The patent license shall not apply to
-any other combinations which include the Contribution. No hardware per se is
-licensed hereunder. </span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>c)
-Recipient understands that although each Contributor grants the licenses to its
-Contributions set forth herein, no assurances are provided by any Contributor
-that the Program does not infringe the patent or other intellectual property
-rights of any other entity. Each Contributor disclaims any liability to Recipient
-for claims brought by any other entity based on infringement of intellectual
-property rights or otherwise. As a condition to exercising the rights and
-licenses granted hereunder, each Recipient hereby assumes sole responsibility
-to secure any other intellectual property rights needed, if any. For example,
-if a third party patent license is required to allow Recipient to distribute
-the Program, it is Recipient's responsibility to acquire that license before
-distributing the Program.</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>d)
-Each Contributor represents that to its knowledge it has sufficient copyright
-rights in its Contribution, if any, to grant the copyright license set forth in
-this Agreement. </span></p>
-
-<p><b><span style='font-size:10.0pt'>3. REQUIREMENTS</span></b> </p>
-
-<p><span style='font-size:10.0pt'>A Contributor may choose to distribute the
-Program in object code form under its own license agreement, provided that:</span>
-</p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
-it complies with the terms and conditions of this Agreement; and</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>b)
-its license agreement:</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>i)
-effectively disclaims on behalf of all Contributors all warranties and
-conditions, express and implied, including warranties or conditions of title
-and non-infringement, and implied warranties or conditions of merchantability
-and fitness for a particular purpose; </span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>ii)
-effectively excludes on behalf of all Contributors all liability for damages,
-including direct, indirect, special, incidental and consequential damages, such
-as lost profits; </span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>iii)
-states that any provisions which differ from this Agreement are offered by that
-Contributor alone and not by any other party; and</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>iv)
-states that source code for the Program is available from such Contributor, and
-informs licensees how to obtain it in a reasonable manner on or through a
-medium customarily used for software exchange.<span style='color:blue'> </span></span></p>
-
-<p><span style='font-size:10.0pt'>When the Program is made available in source
-code form:</span> </p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
-it must be made available under this Agreement; and </span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>b) a
-copy of this Agreement must be included with each copy of the Program. </span></p>
-
-<p><span style='font-size:10.0pt'>Contributors may not remove or alter any
-copyright notices contained within the Program. </span></p>
-
-<p><span style='font-size:10.0pt'>Each Contributor must identify itself as the
-originator of its Contribution, if any, in a manner that reasonably allows
-subsequent Recipients to identify the originator of the Contribution. </span></p>
-
-<p><b><span style='font-size:10.0pt'>4. COMMERCIAL DISTRIBUTION</span></b> </p>
-
-<p><span style='font-size:10.0pt'>Commercial distributors of software may
-accept certain responsibilities with respect to end users, business partners
-and the like. While this license is intended to facilitate the commercial use
-of the Program, the Contributor who includes the Program in a commercial
-product offering should do so in a manner which does not create potential
-liability for other Contributors. Therefore, if a Contributor includes the
-Program in a commercial product offering, such Contributor (&quot;Commercial
-Contributor&quot;) hereby agrees to defend and indemnify every other
-Contributor (&quot;Indemnified Contributor&quot;) against any losses, damages and
-costs (collectively &quot;Losses&quot;) arising from claims, lawsuits and other
-legal actions brought by a third party against the Indemnified Contributor to
-the extent caused by the acts or omissions of such Commercial Contributor in
-connection with its distribution of the Program in a commercial product
-offering. The obligations in this section do not apply to any claims or Losses
-relating to any actual or alleged intellectual property infringement. In order
-to qualify, an Indemnified Contributor must: a) promptly notify the Commercial
-Contributor in writing of such claim, and b) allow the Commercial Contributor
-to control, and cooperate with the Commercial Contributor in, the defense and
-any related settlement negotiations. The Indemnified Contributor may participate
-in any such claim at its own expense.</span> </p>
-
-<p><span style='font-size:10.0pt'>For example, a Contributor might include the
-Program in a commercial product offering, Product X. That Contributor is then a
-Commercial Contributor. If that Commercial Contributor then makes performance
-claims, or offers warranties related to Product X, those performance claims and
-warranties are such Commercial Contributor's responsibility alone. Under this
-section, the Commercial Contributor would have to defend claims against the
-other Contributors related to those performance claims and warranties, and if a
-court requires any other Contributor to pay any damages as a result, the
-Commercial Contributor must pay those damages.</span> </p>
-
-<p><b><span style='font-size:10.0pt'>5. NO WARRANTY</span></b> </p>
-
-<p><span style='font-size:10.0pt'>EXCEPT AS EXPRESSLY SET FORTH IN THIS
-AGREEMENT, THE PROGRAM IS PROVIDED ON AN &quot;AS IS&quot; BASIS, WITHOUT
-WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING,
-WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT,
-MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely
-responsible for determining the appropriateness of using and distributing the
-Program and assumes all risks associated with its exercise of rights under this
-Agreement , including but not limited to the risks and costs of program errors,
-compliance with applicable laws, damage to or loss of data, programs or
-equipment, and unavailability or interruption of operations. </span></p>
-
-<p><b><span style='font-size:10.0pt'>6. DISCLAIMER OF LIABILITY</span></b> </p>
-
-<p><span style='font-size:10.0pt'>EXCEPT AS EXPRESSLY SET FORTH IN THIS
-AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF
-THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF
-THE POSSIBILITY OF SUCH DAMAGES.</span> </p>
-
-<p><b><span style='font-size:10.0pt'>7. GENERAL</span></b> </p>
-
-<p><span style='font-size:10.0pt'>If any provision of this Agreement is invalid
-or unenforceable under applicable law, it shall not affect the validity or
-enforceability of the remainder of the terms of this Agreement, and without
-further action by the parties hereto, such provision shall be reformed to the
-minimum extent necessary to make such provision valid and enforceable.</span> </p>
-
-<p><span style='font-size:10.0pt'>If Recipient institutes patent litigation
-against any entity (including a cross-claim or counterclaim in a lawsuit)
-alleging that the Program itself (excluding combinations of the Program with
-other software or hardware) infringes such Recipient's patent(s), then such
-Recipient's rights granted under Section 2(b) shall terminate as of the date
-such litigation is filed. </span></p>
-
-<p><span style='font-size:10.0pt'>All Recipient's rights under this Agreement
-shall terminate if it fails to comply with any of the material terms or
-conditions of this Agreement and does not cure such failure in a reasonable
-period of time after becoming aware of such noncompliance. If all Recipient's
-rights under this Agreement terminate, Recipient agrees to cease use and
-distribution of the Program as soon as reasonably practicable. However,
-Recipient's obligations under this Agreement and any licenses granted by
-Recipient relating to the Program shall continue and survive. </span></p>
-
-<p><span style='font-size:10.0pt'>Everyone is permitted to copy and distribute
-copies of this Agreement, but in order to avoid inconsistency the Agreement is
-copyrighted and may only be modified in the following manner. The Agreement
-Steward reserves the right to publish new versions (including revisions) of
-this Agreement from time to time. No one other than the Agreement Steward has
-the right to modify this Agreement. The Eclipse Foundation is the initial
-Agreement Steward. The Eclipse Foundation may assign the responsibility to
-serve as the Agreement Steward to a suitable separate entity. Each new version
-of the Agreement will be given a distinguishing version number. The Program
-(including Contributions) may always be distributed subject to the version of
-the Agreement under which it was received. In addition, after a new version of
-the Agreement is published, Contributor may elect to distribute the Program
-(including its Contributions) under the new version. Except as expressly stated
-in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to
-the intellectual property of any Contributor under this Agreement, whether
-expressly, by implication, estoppel or otherwise. All rights in the Program not
-expressly granted under this Agreement are reserved.</span> </p>
-
-<p><span style='font-size:10.0pt'>This Agreement is governed by the laws of the
-State of New York and the intellectual property laws of the United States of
-America. No party to this Agreement will bring a legal action under this
-Agreement more than one year after the cause of action arose. Each party waives
-its rights to a jury trial in any resulting litigation.</span> </p>
-
-<p class=MsoNormal></p>
-
-</div>
-
-</body>
-
-</html> \ No newline at end of file
diff --git a/doc/org.eclipse.xpand.doc-feature/feature.properties b/doc/org.eclipse.xpand.doc-feature/feature.properties
deleted file mode 100644
index 9c77ac6..0000000
--- a/doc/org.eclipse.xpand.doc-feature/feature.properties
+++ /dev/null
@@ -1,148 +0,0 @@
-# /**
-# * <copyright>
-# *
-# * Copyright (c) 2007 IBM Corporation and others.
-# * All rights reserved. This program and the accompanying materials
-# * are made available under the terms of the Eclipse Public License v1.0
-# * which accompanies this distribution, and is available at
-# * http://www.eclipse.org/legal/epl-v10.html
-# *
-# * Contributors:
-# * IBM - Initial API and implementation
-# *
-# * </copyright>
-# *
-# * $Id: feature.properties,v 1.1 2007/12/15 00:33:52 bkolb Exp $
-# */
-
-# NLS_MESSAGEFORMAT_VAR
-
-# ==============================================================================
-# Do not change the properties between this line and the last line containing:
-# %%% END OF TRANSLATED PROPERTIES %%%
-# Instead, either redefine an existing property, or create a new property,
-# append it to the end of the file, and change the code to use the new name.
-# ==============================================================================
-
-# This file contains externalized strings for feature.xml
-# "%foo" in feature.xml corresponds to the key "foo" in this file
-# java.io.Properties file (ISO 8859-1 with "\" escapes)
-# This file should be translated.
-
-# "featureName" property - name of the feature
-featureName=M2T Xpand Documentation
-
-# "providerName" property - name of the company that provides the feature
-providerName=Eclipse.org
-
-# "description" property - description of the feature
-description=M2T Xpand Documentation
-
-# "licenseURL" property - URL of the "Feature License"
-# do not translate value - just change to point to a locale-specific HTML page
-licenseURL=license.html
-
-# "license" property - text of the "Feature Update License"
-# should be plain text version of license agreement pointed to be "licenseURL"
-license=\
-ECLIPSE FOUNDATION SOFTWARE USER AGREEMENT\n\
-March 17, 2005\n\
-\n\
-Usage Of Content\n\
-\n\
-THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR\n\
-OTHER MATERIALS FOR OPEN SOURCE PROJECTS (COLLECTIVELY "CONTENT").\n\
-USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS\n\
-AGREEMENT AND/OR THE TERMS AND CONDITIONS OF LICENSE AGREEMENTS OR\n\
-NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU\n\
-AGREE THAT YOUR USE OF THE CONTENT IS GOVERNED BY THIS AGREEMENT\n\
-AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS\n\
-OR NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE\n\
-TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND CONDITIONS\n\
-OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED\n\
-BELOW, THEN YOU MAY NOT USE THE CONTENT.\n\
-\n\
-Applicable Licenses\n\
-\n\
-Unless otherwise indicated, all Content made available by the Eclipse Foundation\n\
-is provided to you under the terms and conditions of the Eclipse Public\n\
-License Version 1.0 ("EPL"). A copy of the EPL is provided with this\n\
-Content and is also available at http://www.eclipse.org/legal/epl-v10.html.\n\
-For purposes of the EPL, "Program" will mean the Content.\n\
-\n\
-Content includes, but is not limited to, source code, object code,\n\
-documentation and other files maintained in the Eclipse.org CVS\n\
-repository ("Repository") in CVS modules ("Modules") and made available\n\
-as downloadable archives ("Downloads").\n\
-\n\
- - Content may be structured and packaged into modules to facilitate delivering,\n\
- extending, and upgrading the Content. Typical modules may include plug-ins ("Plug-ins"),\n\
- plug-in fragments ("Fragments"), and features ("Features").\n\
- - Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java ARchive)\n\
- in a directory named "plugins".\n\
- - A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material.\n\
- Each Feature may be packaged as a sub-directory in a directory named "features".\n\
- Within a Feature, files named "feature.xml" may contain a list of the names and version\n\
- numbers of the Plug-ins and/or Fragments associated with that Feature.\n\
- - Features may also include other Features ("Included Features"). Within a Feature, files\n\
- named "feature.xml" may contain a list of the names and version numbers of Included Features.\n\
-\n\
-Features may also include other Features ("Included Features"). Files named\n\
-"feature.xml" may contain a list of the names and version numbers of\n\
-Included Features.\n\
-\n\
-The terms and conditions governing Plug-ins and Fragments should be\n\
-contained in files named "about.html" ("Abouts"). The terms and\n\
-conditions governing Features and Included Features should be contained\n\
-in files named "license.html" ("Feature Licenses"). Abouts and Feature\n\
-Licenses may be located in any directory of a Download or Module\n\
-including, but not limited to the following locations:\n\
-\n\
- - The top-level (root) directory\n\
- - Plug-in and Fragment directories\n\
- - Inside Plug-ins and Fragments packaged as JARs\n\
- - Sub-directories of the directory named "src" of certain Plug-ins\n\
- - Feature directories\n\
-\n\
-Note: if a Feature made available by the Eclipse Foundation is installed using the\n\
-Eclipse Update Manager, you must agree to a license ("Feature Update\n\
-License") during the installation process. If the Feature contains\n\
-Included Features, the Feature Update License should either provide you\n\
-with the terms and conditions governing the Included Features or inform\n\
-you where you can locate them. Feature Update Licenses may be found in\n\
-the "license" property of files named "feature.properties". Such Abouts,\n\
-Feature Licenses and Feature Update Licenses contain the terms and\n\
-conditions (or references to such terms and conditions) that govern your\n\
-use of the associated Content in that directory.\n\
-\n\
-THE ABOUTS, FEATURE LICENSES AND FEATURE UPDATE LICENSES MAY REFER\n\
-TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS.\n\
-SOME OF THESE OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):\n\
-\n\
- - Common Public License Version 1.0 (available at http://www.eclipse.org/legal/cpl-v10.html)\n\
- - Apache Software License 1.1 (available at http://www.apache.org/licenses/LICENSE)\n\
- - Apache Software License 2.0 (available at http://www.apache.org/licenses/LICENSE-2.0)\n\
- - IBM Public License 1.0 (available at http://oss.software.ibm.com/developerworks/opensource/license10.html)\n\
- - Metro Link Public License 1.00 (available at http://www.opengroup.org/openmotif/supporters/metrolink/license.html)\n\
- - Mozilla Public License Version 1.1 (available at http://www.mozilla.org/MPL/MPL-1.1.html)\n\
-\n\
-IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR\n\
-TO USE OF THE CONTENT. If no About, Feature License or Feature Update License\n\
-is provided, please contact the Eclipse Foundation to determine what terms and conditions\n\
-govern that particular Content.\n\
-\n\
-Cryptography\n\
-\n\
-Content may contain encryption software. The country in which you are\n\
-currently may have restrictions on the import, possession, and use,\n\
-and/or re-export to another country, of encryption software. BEFORE\n\
-using any encryption software, please check the country's laws,\n\
-regulations and policies concerning the import, possession, or use,\n\
-and re-export of encryption software, to see if this is permitted.\n\
-\n\
-Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both.\n
-########### end of license property ##########################################
-
-# "UpdateSiteName" property - label for the update site
-UpdateSiteName=M2T Updates
-
diff --git a/doc/org.eclipse.xpand.doc-feature/feature.xml b/doc/org.eclipse.xpand.doc-feature/feature.xml
deleted file mode 100644
index dcc4a86..0000000
--- a/doc/org.eclipse.xpand.doc-feature/feature.xml
+++ /dev/null
@@ -1,38 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<feature
- id="org.eclipse.xpand.doc"
- label="%featureName"
- version="0.7.0.qualifier"
- provider-name="%providerName"
- image="eclipse_update_120.jpg">
-
- <description>
- %description
- </description>
-
- <copyright url="http://www.eclipse.org/legal/epl-v10.html">
- Copyright (c) 2007 IBM Corporation and others.
-All rights reserved. This program and the accompanying materials
-are made available under the terms of the Eclipse Public License v1.0
-which accompanies this distribution, and is available at
-http://www.eclipse.org/legal/epl-v10.html
- </copyright>
-
- <license url="%licenseURL">
- %license
- </license>
-
- <url>
- <update label="%UpdateSiteName" url="_UPDATESITEURL_"/>
- <discovery label="%UpdateSiteName" url="_UPDATESITEURL_"/>
- </url>
-
- <plugin
- id="org.eclipse.xpand.doc"
- download-size="0"
- install-size="0"
- version="0.0.0"/>
-
- <!-- TODO: add other plugins that contribute doc, if any -->
-
-</feature>
diff --git a/doc/org.eclipse.xpand.doc-feature/license.html b/doc/org.eclipse.xpand.doc-feature/license.html
deleted file mode 100644
index a9b560f..0000000
--- a/doc/org.eclipse.xpand.doc-feature/license.html
+++ /dev/null
@@ -1,79 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<html>
-<head>
-<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
-<title>Eclipse.org Software User Agreement</title>
-</head>
-
-<body lang="EN-US" link=blue vlink=purple>
-<h2>Eclipse Foundation Software User Agreement</h2>
-<p>March 17, 2005</p>
-
-<h3>Usage Of Content</h3>
-
-<p>THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR OTHER MATERIALS FOR OPEN SOURCE PROJECTS
- (COLLECTIVELY &quot;CONTENT&quot;). USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS AGREEMENT AND/OR THE TERMS AND
- CONDITIONS OF LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU AGREE THAT YOUR USE
- OF THE CONTENT IS GOVERNED BY THIS AGREEMENT AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR
- NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND
- CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW, THEN YOU MAY NOT USE THE CONTENT.</p>
-
-<h3>Applicable Licenses</h3>
-
-<p>Unless otherwise indicated, all Content made available by the Eclipse Foundation is provided to you under the terms and conditions of the Eclipse Public License Version 1.0
- (&quot;EPL&quot;). A copy of the EPL is provided with this Content and is also available at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
- For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
-
-<p>Content includes, but is not limited to, source code, object code, documentation and other files maintained in the Eclipse.org CVS repository (&quot;Repository&quot;) in CVS
- modules (&quot;Modules&quot;) and made available as downloadable archives (&quot;Downloads&quot;).</p>
-
-<ul>
- <li>Content may be structured and packaged into modules to facilitate delivering, extending, and upgrading the Content. Typical modules may include plug-ins (&quot;Plug-ins&quot;), plug-in fragments (&quot;Fragments&quot;), and features (&quot;Features&quot;).</li>
- <li>Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java&trade; ARchive) in a directory named &quot;plugins&quot;.</li>
- <li>A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material. Each Feature may be packaged as a sub-directory in a directory named &quot;features&quot;. Within a Feature, files named &quot;feature.xml&quot; may contain a list of the names and version numbers of the Plug-ins
- and/or Fragments associated with that Feature.</li>
- <li>Features may also include other Features (&quot;Included Features&quot;). Within a Feature, files named &quot;feature.xml&quot; may contain a list of the names and version numbers of Included Features.</li>
-</ul>
-
-<p>The terms and conditions governing Plug-ins and Fragments should be contained in files named &quot;about.html&quot; (&quot;Abouts&quot;). The terms and conditions governing Features and
-Included Features should be contained in files named &quot;license.html&quot; (&quot;Feature Licenses&quot;). Abouts and Feature Licenses may be located in any directory of a Download or Module
-including, but not limited to the following locations:</p>
-
-<ul>
- <li>The top-level (root) directory</li>
- <li>Plug-in and Fragment directories</li>
- <li>Inside Plug-ins and Fragments packaged as JARs</li>
- <li>Sub-directories of the directory named &quot;src&quot; of certain Plug-ins</li>
- <li>Feature directories</li>
-</ul>
-
-<p>Note: if a Feature made available by the Eclipse Foundation is installed using the Eclipse Update Manager, you must agree to a license (&quot;Feature Update License&quot;) during the
-installation process. If the Feature contains Included Features, the Feature Update License should either provide you with the terms and conditions governing the Included Features or
-inform you where you can locate them. Feature Update Licenses may be found in the &quot;license&quot; property of files named &quot;feature.properties&quot; found within a Feature.
-Such Abouts, Feature Licenses, and Feature Update Licenses contain the terms and conditions (or references to such terms and conditions) that govern your use of the associated Content in
-that directory.</p>
-
-<p>THE ABOUTS, FEATURE LICENSES, AND FEATURE UPDATE LICENSES MAY REFER TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS. SOME OF THESE
-OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):</p>
-
-<ul>
- <li>Common Public License Version 1.0 (available at <a href="http://www.eclipse.org/legal/cpl-v10.html">http://www.eclipse.org/legal/cpl-v10.html</a>)</li>
- <li>Apache Software License 1.1 (available at <a href="http://www.apache.org/licenses/LICENSE">http://www.apache.org/licenses/LICENSE</a>)</li>
- <li>Apache Software License 2.0 (available at <a href="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</a>)</li>
- <li>IBM Public License 1.0 (available at <a href="http://oss.software.ibm.com/developerworks/opensource/license10.html">http://oss.software.ibm.com/developerworks/opensource/license10.html</a>)</li>
- <li>Metro Link Public License 1.00 (available at <a href="http://www.opengroup.org/openmotif/supporters/metrolink/license.html">http://www.opengroup.org/openmotif/supporters/metrolink/license.html</a>)</li>
- <li>Mozilla Public License Version 1.1 (available at <a href="http://www.mozilla.org/MPL/MPL-1.1.html">http://www.mozilla.org/MPL/MPL-1.1.html</a>)</li>
-</ul>
-
-<p>IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR TO USE OF THE CONTENT. If no About, Feature License, or Feature Update License is provided, please
-contact the Eclipse Foundation to determine what terms and conditions govern that particular Content.</p>
-
-<h3>Cryptography</h3>
-
-<p>Content may contain encryption software. The country in which you are currently may have restrictions on the import, possession, and use, and/or re-export to
- another country, of encryption software. BEFORE using any encryption software, please check the country's laws, regulations and policies concerning the import,
- possession, or use, and re-export of encryption software, to see if this is permitted.</p>
-
-<small>Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both.</small>
-</body>
-</html>
diff --git a/doc/org.eclipse.xpand.doc-feature/rootfiles/epl-v10.html b/doc/org.eclipse.xpand.doc-feature/rootfiles/epl-v10.html
deleted file mode 100644
index a4d335b..0000000
--- a/doc/org.eclipse.xpand.doc-feature/rootfiles/epl-v10.html
+++ /dev/null
@@ -1,304 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<html xmlns:o="urn:schemas-microsoft-com:office:office"
-xmlns:w="urn:schemas-microsoft-com:office:word"
-xmlns="http://www.w3.org/TR/REC-html40">
-
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<link rel=File-List
-href="./Eclipse%20EPL%202003_11_10%20Final_files/filelist.xml">
-<title>Eclipse Public License - Version 1.0</title>
-<style>
-<!--
- /* Font Definitions */
-@font-face
- {
- panose-1:2 11 6 4 3 5 4 4 2 4;
- mso-font-charset:0;
- mso-font-pitch:variable;
- mso-font-signature:553679495 -2147483648 8 0 66047 0;}
- /* Style Definitions */
-p.MsoNormal, li.MsoNormal, div.MsoNormal
- {mso-style-parent:"";
- margin:0in;
- margin-bottom:.0001pt;
- mso-pagination:widow-orphan;
- font-size:12.0pt;
- }
-p
- {margin-right:0in;
- mso-margin-top-alt:auto;
- mso-margin-bottom-alt:auto;
- margin-left:0in;
- mso-pagination:widow-orphan;
- font-size:12.0pt;
- }
-p.BalloonText, li.BalloonText, div.BalloonText
- {mso-style-name:"Balloon Text";
- margin:0in;
- margin-bottom:.0001pt;
- mso-pagination:widow-orphan;
- font-size:8.0pt;
-
- }
-@page Section1
- {size:8.5in 11.0in;
- margin:1.0in 1.25in 1.0in 1.25in;
- mso-header-margin:.5in;
- mso-footer-margin:.5in;
- mso-paper-source:0;}
-div.Section1
- {page:Section1;}
--->
-</style>
-</head>
-
-<body lang="EN-US" style='tab-interval:.5in'>
-
-<div class=Section1>
-
-<p align=center style='text-align:center'><b>Eclipse Public License - v 1.0</b>
-</p>
-
-<p><span style='font-size:10.0pt'>THE ACCOMPANYING PROGRAM IS PROVIDED UNDER
-THE TERMS OF THIS ECLIPSE PUBLIC LICENSE (&quot;AGREEMENT&quot;). ANY USE,
-REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE
-OF THIS AGREEMENT.</span> </p>
-
-<p><b><span style='font-size:10.0pt'>1. DEFINITIONS</span></b> </p>
-
-<p><span style='font-size:10.0pt'>&quot;Contribution&quot; means:</span> </p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
-in the case of the initial Contributor, the initial code and documentation
-distributed under this Agreement, and<br clear=left>
-b) in the case of each subsequent Contributor:</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>i)
-changes to the Program, and</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>ii)
-additions to the Program;</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>where
-such changes and/or additions to the Program originate from and are distributed
-by that particular Contributor. A Contribution 'originates' from a Contributor
-if it was added to the Program by such Contributor itself or anyone acting on
-such Contributor's behalf. Contributions do not include additions to the
-Program which: (i) are separate modules of software distributed in conjunction
-with the Program under their own license agreement, and (ii) are not derivative
-works of the Program. </span></p>
-
-<p><span style='font-size:10.0pt'>&quot;Contributor&quot; means any person or
-entity that distributes the Program.</span> </p>
-
-<p><span style='font-size:10.0pt'>&quot;Licensed Patents &quot; mean patent
-claims licensable by a Contributor which are necessarily infringed by the use
-or sale of its Contribution alone or when combined with the Program. </span></p>
-
-<p><span style='font-size:10.0pt'>&quot;Program&quot; means the Contributions
-distributed in accordance with this Agreement.</span> </p>
-
-<p><span style='font-size:10.0pt'>&quot;Recipient&quot; means anyone who
-receives the Program under this Agreement, including all Contributors.</span> </p>
-
-<p><b><span style='font-size:10.0pt'>2. GRANT OF RIGHTS</span></b> </p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
-Subject to the terms of this Agreement, each Contributor hereby grants Recipient
-a non-exclusive, worldwide, royalty-free copyright license to<span
-style='color:red'> </span>reproduce, prepare derivative works of, publicly
-display, publicly perform, distribute and sublicense the Contribution of such
-Contributor, if any, and such derivative works, in source code and object code
-form.</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>b)
-Subject to the terms of this Agreement, each Contributor hereby grants
-Recipient a non-exclusive, worldwide,<span style='color:green'> </span>royalty-free
-patent license under Licensed Patents to make, use, sell, offer to sell, import
-and otherwise transfer the Contribution of such Contributor, if any, in source
-code and object code form. This patent license shall apply to the combination
-of the Contribution and the Program if, at the time the Contribution is added
-by the Contributor, such addition of the Contribution causes such combination
-to be covered by the Licensed Patents. The patent license shall not apply to
-any other combinations which include the Contribution. No hardware per se is
-licensed hereunder. </span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>c)
-Recipient understands that although each Contributor grants the licenses to its
-Contributions set forth herein, no assurances are provided by any Contributor
-that the Program does not infringe the patent or other intellectual property
-rights of any other entity. Each Contributor disclaims any liability to Recipient
-for claims brought by any other entity based on infringement of intellectual
-property rights or otherwise. As a condition to exercising the rights and
-licenses granted hereunder, each Recipient hereby assumes sole responsibility
-to secure any other intellectual property rights needed, if any. For example,
-if a third party patent license is required to allow Recipient to distribute
-the Program, it is Recipient's responsibility to acquire that license before
-distributing the Program.</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>d)
-Each Contributor represents that to its knowledge it has sufficient copyright
-rights in its Contribution, if any, to grant the copyright license set forth in
-this Agreement. </span></p>
-
-<p><b><span style='font-size:10.0pt'>3. REQUIREMENTS</span></b> </p>
-
-<p><span style='font-size:10.0pt'>A Contributor may choose to distribute the
-Program in object code form under its own license agreement, provided that:</span>
-</p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
-it complies with the terms and conditions of this Agreement; and</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>b)
-its license agreement:</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>i)
-effectively disclaims on behalf of all Contributors all warranties and
-conditions, express and implied, including warranties or conditions of title
-and non-infringement, and implied warranties or conditions of merchantability
-and fitness for a particular purpose; </span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>ii)
-effectively excludes on behalf of all Contributors all liability for damages,
-including direct, indirect, special, incidental and consequential damages, such
-as lost profits; </span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>iii)
-states that any provisions which differ from this Agreement are offered by that
-Contributor alone and not by any other party; and</span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>iv)
-states that source code for the Program is available from such Contributor, and
-informs licensees how to obtain it in a reasonable manner on or through a
-medium customarily used for software exchange.<span style='color:blue'> </span></span></p>
-
-<p><span style='font-size:10.0pt'>When the Program is made available in source
-code form:</span> </p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>a)
-it must be made available under this Agreement; and </span></p>
-
-<p class=MsoNormal style='margin-left:.5in'><span style='font-size:10.0pt'>b) a
-copy of this Agreement must be included with each copy of the Program. </span></p>
-
-<p><span style='font-size:10.0pt'>Contributors may not remove or alter any
-copyright notices contained within the Program. </span></p>
-
-<p><span style='font-size:10.0pt'>Each Contributor must identify itself as the
-originator of its Contribution, if any, in a manner that reasonably allows
-subsequent Recipients to identify the originator of the Contribution. </span></p>
-
-<p><b><span style='font-size:10.0pt'>4. COMMERCIAL DISTRIBUTION</span></b> </p>
-
-<p><span style='font-size:10.0pt'>Commercial distributors of software may
-accept certain responsibilities with respect to end users, business partners
-and the like. While this license is intended to facilitate the commercial use
-of the Program, the Contributor who includes the Program in a commercial
-product offering should do so in a manner which does not create potential
-liability for other Contributors. Therefore, if a Contributor includes the
-Program in a commercial product offering, such Contributor (&quot;Commercial
-Contributor&quot;) hereby agrees to defend and indemnify every other
-Contributor (&quot;Indemnified Contributor&quot;) against any losses, damages and
-costs (collectively &quot;Losses&quot;) arising from claims, lawsuits and other
-legal actions brought by a third party against the Indemnified Contributor to
-the extent caused by the acts or omissions of such Commercial Contributor in
-connection with its distribution of the Program in a commercial product
-offering. The obligations in this section do not apply to any claims or Losses
-relating to any actual or alleged intellectual property infringement. In order
-to qualify, an Indemnified Contributor must: a) promptly notify the Commercial
-Contributor in writing of such claim, and b) allow the Commercial Contributor
-to control, and cooperate with the Commercial Contributor in, the defense and
-any related settlement negotiations. The Indemnified Contributor may participate
-in any such claim at its own expense.</span> </p>
-
-<p><span style='font-size:10.0pt'>For example, a Contributor might include the
-Program in a commercial product offering, Product X. That Contributor is then a
-Commercial Contributor. If that Commercial Contributor then makes performance
-claims, or offers warranties related to Product X, those performance claims and
-warranties are such Commercial Contributor's responsibility alone. Under this
-section, the Commercial Contributor would have to defend claims against the
-other Contributors related to those performance claims and warranties, and if a
-court requires any other Contributor to pay any damages as a result, the
-Commercial Contributor must pay those damages.</span> </p>
-
-<p><b><span style='font-size:10.0pt'>5. NO WARRANTY</span></b> </p>
-
-<p><span style='font-size:10.0pt'>EXCEPT AS EXPRESSLY SET FORTH IN THIS
-AGREEMENT, THE PROGRAM IS PROVIDED ON AN &quot;AS IS&quot; BASIS, WITHOUT
-WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING,
-WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT,
-MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely
-responsible for determining the appropriateness of using and distributing the
-Program and assumes all risks associated with its exercise of rights under this
-Agreement , including but not limited to the risks and costs of program errors,
-compliance with applicable laws, damage to or loss of data, programs or
-equipment, and unavailability or interruption of operations. </span></p>
-
-<p><b><span style='font-size:10.0pt'>6. DISCLAIMER OF LIABILITY</span></b> </p>
-
-<p><span style='font-size:10.0pt'>EXCEPT AS EXPRESSLY SET FORTH IN THIS
-AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF
-THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF
-THE POSSIBILITY OF SUCH DAMAGES.</span> </p>
-
-<p><b><span style='font-size:10.0pt'>7. GENERAL</span></b> </p>
-
-<p><span style='font-size:10.0pt'>If any provision of this Agreement is invalid
-or unenforceable under applicable law, it shall not affect the validity or
-enforceability of the remainder of the terms of this Agreement, and without
-further action by the parties hereto, such provision shall be reformed to the
-minimum extent necessary to make such provision valid and enforceable.</span> </p>
-
-<p><span style='font-size:10.0pt'>If Recipient institutes patent litigation
-against any entity (including a cross-claim or counterclaim in a lawsuit)
-alleging that the Program itself (excluding combinations of the Program with
-other software or hardware) infringes such Recipient's patent(s), then such
-Recipient's rights granted under Section 2(b) shall terminate as of the date
-such litigation is filed. </span></p>
-
-<p><span style='font-size:10.0pt'>All Recipient's rights under this Agreement
-shall terminate if it fails to comply with any of the material terms or
-conditions of this Agreement and does not cure such failure in a reasonable
-period of time after becoming aware of such noncompliance. If all Recipient's
-rights under this Agreement terminate, Recipient agrees to cease use and
-distribution of the Program as soon as reasonably practicable. However,
-Recipient's obligations under this Agreement and any licenses granted by
-Recipient relating to the Program shall continue and survive. </span></p>
-
-<p><span style='font-size:10.0pt'>Everyone is permitted to copy and distribute
-copies of this Agreement, but in order to avoid inconsistency the Agreement is
-copyrighted and may only be modified in the following manner. The Agreement
-Steward reserves the right to publish new versions (including revisions) of
-this Agreement from time to time. No one other than the Agreement Steward has
-the right to modify this Agreement. The Eclipse Foundation is the initial
-Agreement Steward. The Eclipse Foundation may assign the responsibility to
-serve as the Agreement Steward to a suitable separate entity. Each new version
-of the Agreement will be given a distinguishing version number. The Program
-(including Contributions) may always be distributed subject to the version of
-the Agreement under which it was received. In addition, after a new version of
-the Agreement is published, Contributor may elect to distribute the Program
-(including its Contributions) under the new version. Except as expressly stated
-in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to
-the intellectual property of any Contributor under this Agreement, whether
-expressly, by implication, estoppel or otherwise. All rights in the Program not
-expressly granted under this Agreement are reserved.</span> </p>
-
-<p><span style='font-size:10.0pt'>This Agreement is governed by the laws of the
-State of New York and the intellectual property laws of the United States of
-America. No party to this Agreement will bring a legal action under this
-Agreement more than one year after the cause of action arose. Each party waives
-its rights to a jury trial in any resulting litigation.</span> </p>
-
-<p class=MsoNormal></p>
-
-</div>
-
-</body>
-
-</html>
diff --git a/doc/org.eclipse.xpand.doc-feature/rootfiles/notice.html b/doc/org.eclipse.xpand.doc-feature/rootfiles/notice.html
deleted file mode 100644
index a9b560f..0000000
--- a/doc/org.eclipse.xpand.doc-feature/rootfiles/notice.html
+++ /dev/null
@@ -1,79 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
-<html>
-<head>
-<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
-<title>Eclipse.org Software User Agreement</title>
-</head>
-
-<body lang="EN-US" link=blue vlink=purple>
-<h2>Eclipse Foundation Software User Agreement</h2>
-<p>March 17, 2005</p>
-
-<h3>Usage Of Content</h3>
-
-<p>THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR OTHER MATERIALS FOR OPEN SOURCE PROJECTS
- (COLLECTIVELY &quot;CONTENT&quot;). USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS AGREEMENT AND/OR THE TERMS AND
- CONDITIONS OF LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU AGREE THAT YOUR USE
- OF THE CONTENT IS GOVERNED BY THIS AGREEMENT AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR
- NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND
- CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW, THEN YOU MAY NOT USE THE CONTENT.</p>
-
-<h3>Applicable Licenses</h3>
-
-<p>Unless otherwise indicated, all Content made available by the Eclipse Foundation is provided to you under the terms and conditions of the Eclipse Public License Version 1.0
- (&quot;EPL&quot;). A copy of the EPL is provided with this Content and is also available at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
- For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
-
-<p>Content includes, but is not limited to, source code, object code, documentation and other files maintained in the Eclipse.org CVS repository (&quot;Repository&quot;) in CVS
- modules (&quot;Modules&quot;) and made available as downloadable archives (&quot;Downloads&quot;).</p>
-
-<ul>
- <li>Content may be structured and packaged into modules to facilitate delivering, extending, and upgrading the Content. Typical modules may include plug-ins (&quot;Plug-ins&quot;), plug-in fragments (&quot;Fragments&quot;), and features (&quot;Features&quot;).</li>
- <li>Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java&trade; ARchive) in a directory named &quot;plugins&quot;.</li>
- <li>A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material. Each Feature may be packaged as a sub-directory in a directory named &quot;features&quot;. Within a Feature, files named &quot;feature.xml&quot; may contain a list of the names and version numbers of the Plug-ins
- and/or Fragments associated with that Feature.</li>
- <li>Features may also include other Features (&quot;Included Features&quot;). Within a Feature, files named &quot;feature.xml&quot; may contain a list of the names and version numbers of Included Features.</li>
-</ul>
-
-<p>The terms and conditions governing Plug-ins and Fragments should be contained in files named &quot;about.html&quot; (&quot;Abouts&quot;). The terms and conditions governing Features and
-Included Features should be contained in files named &quot;license.html&quot; (&quot;Feature Licenses&quot;). Abouts and Feature Licenses may be located in any directory of a Download or Module
-including, but not limited to the following locations:</p>
-
-<ul>
- <li>The top-level (root) directory</li>
- <li>Plug-in and Fragment directories</li>
- <li>Inside Plug-ins and Fragments packaged as JARs</li>
- <li>Sub-directories of the directory named &quot;src&quot; of certain Plug-ins</li>
- <li>Feature directories</li>
-</ul>
-
-<p>Note: if a Feature made available by the Eclipse Foundation is installed using the Eclipse Update Manager, you must agree to a license (&quot;Feature Update License&quot;) during the
-installation process. If the Feature contains Included Features, the Feature Update License should either provide you with the terms and conditions governing the Included Features or
-inform you where you can locate them. Feature Update Licenses may be found in the &quot;license&quot; property of files named &quot;feature.properties&quot; found within a Feature.
-Such Abouts, Feature Licenses, and Feature Update Licenses contain the terms and conditions (or references to such terms and conditions) that govern your use of the associated Content in
-that directory.</p>
-
-<p>THE ABOUTS, FEATURE LICENSES, AND FEATURE UPDATE LICENSES MAY REFER TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS. SOME OF THESE
-OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):</p>
-
-<ul>
- <li>Common Public License Version 1.0 (available at <a href="http://www.eclipse.org/legal/cpl-v10.html">http://www.eclipse.org/legal/cpl-v10.html</a>)</li>
- <li>Apache Software License 1.1 (available at <a href="http://www.apache.org/licenses/LICENSE">http://www.apache.org/licenses/LICENSE</a>)</li>
- <li>Apache Software License 2.0 (available at <a href="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</a>)</li>
- <li>IBM Public License 1.0 (available at <a href="http://oss.software.ibm.com/developerworks/opensource/license10.html">http://oss.software.ibm.com/developerworks/opensource/license10.html</a>)</li>
- <li>Metro Link Public License 1.00 (available at <a href="http://www.opengroup.org/openmotif/supporters/metrolink/license.html">http://www.opengroup.org/openmotif/supporters/metrolink/license.html</a>)</li>
- <li>Mozilla Public License Version 1.1 (available at <a href="http://www.mozilla.org/MPL/MPL-1.1.html">http://www.mozilla.org/MPL/MPL-1.1.html</a>)</li>
-</ul>
-
-<p>IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR TO USE OF THE CONTENT. If no About, Feature License, or Feature Update License is provided, please
-contact the Eclipse Foundation to determine what terms and conditions govern that particular Content.</p>
-
-<h3>Cryptography</h3>
-
-<p>Content may contain encryption software. The country in which you are currently may have restrictions on the import, possession, and use, and/or re-export to
- another country, of encryption software. BEFORE using any encryption software, please check the country's laws, regulations and policies concerning the import,
- possession, or use, and re-export of encryption software, to see if this is permitted.</p>
-
-<small>Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both.</small>
-</body>
-</html>
diff --git a/doc/org.eclipse.xpand.doc/.cvsignore b/doc/org.eclipse.xpand.doc/.cvsignore
deleted file mode 100644
index 76f4628..0000000
--- a/doc/org.eclipse.xpand.doc/.cvsignore
+++ /dev/null
@@ -1,2 +0,0 @@
-build
-output
diff --git a/doc/org.eclipse.xpand.doc/.project b/doc/org.eclipse.xpand.doc/.project
deleted file mode 100644
index d556a23..0000000
--- a/doc/org.eclipse.xpand.doc/.project
+++ /dev/null
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.xpand.doc</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.pde.ManifestBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.pde.SchemaBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.PluginNature</nature>
- </natures>
-</projectDescription>
diff --git a/doc/org.eclipse.xpand.doc/META-INF/MANIFEST.MF b/doc/org.eclipse.xpand.doc/META-INF/MANIFEST.MF
deleted file mode 100644
index 282fe0f..0000000
--- a/doc/org.eclipse.xpand.doc/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,10 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %pluginName
-Bundle-SymbolicName: org.eclipse.xpand.doc;singleton:=true
-Bundle-Version: 0.7.0.qualifier
-Bundle-Vendor: %providerName
-Bundle-Localization: plugin
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Require-Bundle: org.eclipse.help
-Eclipse-LazyStart: true
diff --git a/doc/org.eclipse.xpand.doc/ModelingFeature.png b/doc/org.eclipse.xpand.doc/ModelingFeature.png
deleted file mode 100644
index 6b08de2..0000000
--- a/doc/org.eclipse.xpand.doc/ModelingFeature.png
+++ /dev/null
Binary files differ
diff --git a/doc/org.eclipse.xpand.doc/about.html b/doc/org.eclipse.xpand.doc/about.html
deleted file mode 100644
index 1b8f940..0000000
--- a/doc/org.eclipse.xpand.doc/about.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
-<title>About</title>
-</head>
-<body lang="EN-US">
-<h2>About This Content</h2>
-
-<p>June 5, 2007</p>
-<h3>License</h3>
-
-<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise
-indicated below, the Content is provided to you under the terms and conditions of the
-Eclipse Public License Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available
-at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
-For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
-
-<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
-being redistributed by another party (&quot;Redistributor&quot;) and different terms and conditions may
-apply to your use of any object code in the Content. Check the Redistributor's license that was
-provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
-indicated below, the terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p>
-
-</body>
-</html> \ No newline at end of file
diff --git a/doc/org.eclipse.xpand.doc/about.ini b/doc/org.eclipse.xpand.doc/about.ini
deleted file mode 100644
index b7e87ca..0000000
--- a/doc/org.eclipse.xpand.doc/about.ini
+++ /dev/null
@@ -1,15 +0,0 @@
-# about.ini
-# contains information about a feature
-# java.io.Properties file (ISO 8859-1 with "\" escapes)
-# "%key" are externalized strings defined in about.properties
-# This file does not need to be translated.
-
-# Property "aboutText" contains blurb for "About" dialog (translated)
-aboutText=%featureText
-
-# Property "featureImage" contains path to feature image (32x32)
-featureImage=modeling32.png
-
-# Property "appName" contains name of the application (translated)
-appName=%featureName
-
diff --git a/doc/org.eclipse.xpand.doc/about.mappings b/doc/org.eclipse.xpand.doc/about.mappings
deleted file mode 100644
index 7d795dc..0000000
--- a/doc/org.eclipse.xpand.doc/about.mappings
+++ /dev/null
@@ -1,5 +0,0 @@
-# This file contains fill-ins for about.properties
-# java.io.Properties file (ISO 8859-1 with "\" escapes)
-# This file does not need to be translated.
-
-0=@build@
diff --git a/doc/org.eclipse.xpand.doc/about.properties b/doc/org.eclipse.xpand.doc/about.properties
deleted file mode 100644
index 000977e..0000000
--- a/doc/org.eclipse.xpand.doc/about.properties
+++ /dev/null
@@ -1,17 +0,0 @@
-# NLS_MESSAGEFORMAT_VAR
-
-# about.properties
-# contains externalized strings for about.ini
-# java.io.Properties file (ISO 8859-1 with "\" escapes)
-# fill-ins are supplied by about.mappings
-# This file should be translated.
-
-featureName=M2T Xpand Documentation
-
-featureText=M2T Xpand Documentation\n\
-Version: {featureVersion}\n\
-Build id: {0}\n\
-\n\
-(c) Copyright Eclipse contributors and others. 2007. All rights reserved.\n\
-Visit http://www.eclipse.org/modeling/m2t/?project=xpand#xpand
-
diff --git a/doc/org.eclipse.xpand.doc/book.css b/doc/org.eclipse.xpand.doc/book.css
deleted file mode 100644
index 84d8880..0000000
--- a/doc/org.eclipse.xpand.doc/book.css
+++ /dev/null
@@ -1 +0,0 @@
-@import "../PRODUCT_PLUGIN/book.css";
diff --git a/doc/org.eclipse.xpand.doc/build-docbook.properties b/doc/org.eclipse.xpand.doc/build-docbook.properties
deleted file mode 100644
index 46174a2..0000000
--- a/doc/org.eclipse.xpand.doc/build-docbook.properties
+++ /dev/null
@@ -1,93 +0,0 @@
-############### Adaptable properties ###############
-
-# Product information
-product.name=Xpand
-product.name.files=${product_name}
-product.provider=openarchitectureware.org
-product.version=5.0
-
-# Directories
-tools.basedir=${basedir}/../org.openarchitectureware.documentation
-
-# Style files
-custom-css.file=book.css
-custom.pdf-xsl.file=fopdf.xsl
-custom.html-xsl.file=html.xsl
-custom.eclipse-xsl.file=eclipse.xsl
-
-# Flags
-custom = true
-
-# Document type
-document.type=individual
-
-# DocBook version
-docbook.version = 4.5
-
-
-############### Do not change below ###############
-
-# Directories
-tools.basedir.build = ${tools.basedir}
-tools.dir=${tools.basedir}/lib/tools
-tools.dir.build = ${tools.basedir.build}/lib/tools
-version.dir=${product.version}
-docbook.dir=${tools.dir.build}/docbook
-docbook-src.dir=${basedir}/src
-docbook-lib.dir=${docbook.dir}
-src.dir=${docbook-src.dir}/${version.dir}
-content.dir=${src.dir}/content
-structure.dir=${src.dir}/structure
-images.dir=${content.dir}/images
-build.dir=${basedir}/build-docbook
-output.dir=${basedir}/output
-html.dir=${output.dir}/html
-pdf.dir=${output.dir}/pdf
-release.dir=${output.dir}//release
-release.build.dir=${build.dir}/release
-style.dir=${tools.basedir}/styles
-css.style.dir=${style.dir}/css
-xsl.style.dir=${style.dir}/xslt
-shared.dir=${tools.basedir.build}/shared
-shared.src.dir=${tools.basedir.build}/src/${version.dir}
-shared.content.dir=${shared.src.dir}/content
-shared.images.dir=${shared.content.dir}/images
-
-# Title of documentation
-doc.title=${product.name} User Guide
-
-# Files
-css.file.path=${css.style.dir}/${custom-css.file}
-css.file=${custom-css.file}
-
-# PDF
-pdf.output.dir=${pdf.dir}/${version.dir}
-pdf.stylesheet.path=${xsl.style.dir}/${custom.pdf-xsl.file}
-pdf.stylesheet=${custom.pdf-xsl.file}
-
-# HTML
-html.output.dir=${html.dir}/${version.dir}
-html.stylesheet.path=${xsl.style.dir}/${custom.html-xsl.file}
-html.stylesheet=${custom.html-xsl.file}
-
-# Eclipse help
-eclipse.plugin.id=org.openarchitectureware.help.userguide
-eclipse.output.dir=../${eclipse.plugin.id}
-eclipse.plugin.name=$[product.name} User Guide
-eclipse.plugin.provider=$[product.provider}
-eclipse.stylesheet.path=${xsl.style.dir}/${custom.eclipse-xsl.file}
-eclipse.stylesheet=${custom.eclipse-xsl.file}
-
-# docbook
-docbook-xsl.dir=${docbook.dir}/xsl
-docbook-xsl.eclipse-xsl.file=${docbook-xsl.dir}/eclipse/eclipse.xsl
-docbook-xsl.html-xsl.file=${docbook-xsl.dir}/html/chunk.xsl
-docbook-xsl.pdf-xsl.file=${docbook-xsl.dir}/fo/fo.xsl
-
-# saxon
-saxon.dir = ${tools.dir}/saxon
-saxon.lib.path = ${saxon.dir}/saxon.jar
-
-# xerces
-xerces.dir = ${tools.dir}/fop
-xerces.lib.path = ${xerces.dir}/xercesImpl-2.7.1.jar \ No newline at end of file
diff --git a/doc/org.eclipse.xpand.doc/build-docbook.xml b/doc/org.eclipse.xpand.doc/build-docbook.xml
deleted file mode 100644
index 119b4b0..0000000
--- a/doc/org.eclipse.xpand.doc/build-docbook.xml
+++ /dev/null
@@ -1,159 +0,0 @@
-<?xml version="1.0"?>
-<project name="Xpand documentation" default="build.all">
-
- <property file="build-docbook.properties" />
-
- <path id="fop">
- <pathelement location="${tools.dir}/fop/fop.jar" />
- <pathelement location="${tools.dir}/fop/avalon-framework-4.2.0.jar" />
- <pathelement location="${tools.dir}/fop/batik-all-1.6.jar" />
- </path>
-
- <path id="saxon">
- <pathelement location="${xerces.lib.path}" />
- <pathelement location="${saxon.lib.path}" />
- </path>
-
- <tstamp>
- <format property="date" pattern="yyyy-MM-dd" />
- <format property="year" pattern="yyyy" />
- </tstamp>
-
- <taskdef name="fop" classname="org.apache.fop.tools.anttasks.Fop" classpathref="fop" />
-
- <target name="build.all" depends="stage, build.doc.html, build.doc.eclipsehelp, build.doc.pdf, unstage" />
-
- <target name="build.doc.html" depends="stage.html">
- <delete dir="${html.output.dir}/contents" failonerror="false" />
- <copy todir="${html.output.dir}/contents/images">
- <fileset dir="${images.dir}">
- <include name="**/*" />
- </fileset>
- </copy>
- <copy file="${css.file.path}" todir="${html.output.dir}" />
- <java fork="true" dir="${html.output.dir}" failonerror="true" classname="com.icl.saxon.StyleSheet">
- <classpath refid="saxon" />
- <sysproperty key="javax.xml.parsers.DocumentBuilderFactory" value="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"/>
- <sysproperty key="javax.xml.parsers.SAXParserFactory" value="org.apache.xerces.jaxp.SAXParserFactoryImpl"/>
- <sysproperty key="org.apache.xerces.xni.parser.XMLParserConfiguration" value="org.apache.xerces.parsers.XIncludeParserConfiguration"/>
- <arg value="${build.dir}/index.xml" />
- <arg value="${build.dir}/${html.stylesheet}" />
- <arg value='profile.condition="${document.type}"'>
- </arg>
- </java>
- </target>
-
- <target name="build.doc.eclipsehelp" depends="stage.eclipse">
- <delete dir="${eclipse.output.dir}/contents" failonerror="false" />
- <copy todir="${eclipse.output.dir}/contents/images">
- <fileset dir="${images.dir}">
- <include name="**/*" />
- </fileset>
- </copy>
- <copy file="${css.file.path}" todir="${eclipse.output.dir}" />
- <java fork="true" dir="${eclipse.output.dir}" failonerror="true" classname="com.icl.saxon.StyleSheet">
- <classpath refid="saxon" />
- <sysproperty key="javax.xml.parsers.DocumentBuilderFactory" value="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"/>
- <sysproperty key="javax.xml.parsers.SAXParserFactory" value="org.apache.xerces.jaxp.SAXParserFactoryImpl"/>
- <sysproperty key="org.apache.xerces.xni.parser.XMLParserConfiguration" value="org.apache.xerces.parsers.XIncludeParserConfiguration"/>
- <arg value="${build.dir}/index.xml" />
- <arg value="${build.dir}/${eclipse.stylesheet}" />
- <arg value="eclipse.plugin.id=${eclipse.plugin.id}" />
- <arg value="eclipse.plugin.name=${eclipse.plugin.name}" />
- <arg value="eclipse.plugin.provider=${eclipse.plugin.provider}" />
- <arg value='profile.condition="${document.type}"'>
- </arg>
- </java>
- </target>
-
- <target name="build.doc.pdf" depends="stage.pdf">
- <java fork="true" dir="${build.dir}" failonerror="true" classname="com.icl.saxon.StyleSheet">
- <classpath refid="saxon" />
- <sysproperty key="javax.xml.parsers.DocumentBuilderFactory" value="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"/>
- <sysproperty key="javax.xml.parsers.SAXParserFactory" value="org.apache.xerces.jaxp.SAXParserFactoryImpl"/>
- <sysproperty key="org.apache.xerces.xni.parser.XMLParserConfiguration" value="org.apache.xerces.parsers.XIncludeParserConfiguration"/>
- <arg value="-o" />
- <arg value="${build.dir}/${product.name.files}_documentation.fo" />
- <arg value="${build.dir}/index.xml" />
- <arg value="${pdf.stylesheet}" />
- <arg value="draft.mode=no" />
- <arg value="paper.type=A4" />
- <arg value="l10n.gentext.language=en" />
- <arg value='profile.condition="${document.type}"'>
- </arg>
- </java>
-
- <mkdir dir="${pdf.output.dir}" />
-
- <fop format="application/pdf" outdir="${pdf.output.dir}" basedir="${build.dir}" messagelevel="debug">
- <fileset dir="${build.dir}">
- <include name="**/*.fo" />
- </fileset>
- </fop>
- </target>
-
- <target name="stage" depends="unstage">
- <copy todir="${build.dir}">
- <fileset dir="${src.dir}">
- <include name="**/*.xml" />
- </fileset>
- </copy>
- <copy todir="${build.dir}/structure">
- <fileset dir="${structure.dir}">
- <include name="**/*.xml" />
- </fileset>
- </copy>
- <copy todir="${build.dir}/content">
- <fileset dir="${content.dir}">
- <include name="**/*.xml" />
- </fileset>
- </copy>
- <copy todir="${build.dir}/content/images">
- <fileset dir="${images.dir}">
- <include name="**/*" />
- </fileset>
- </copy>
- <copy file="${tools.basedir}/shared/bookinfo.xml" todir="${build.dir}" />
- <replace file="${build.dir}/index.xml" token="@DOCBOOKVERSION@"
- value="${docbook.version}" casesensitive="true"/>
- <replace file="${build.dir}/index.xml" token="@TITLE@"
- value="${doc.title}" casesensitive="true"/>
- <replace file="${build.dir}/bookinfo.xml" token="@VERSION@"
- value="${product.version}" casesensitive="true"/>
- <replace file="${build.dir}/bookinfo.xml" token="@DATE@"
- value="${date}" casesensitive="true"/>
- </target>
-
- <target name="stage.pdf" depends="stage">
- <copy file="${pdf.stylesheet.path}" todir="${build.dir}" />
- <replace file="${build.dir}/${pdf.stylesheet}" token="@SHAREDIMAGESDIR@"
- value="${shared.images.dir}" casesensitive="true"/>
- <replace file="${build.dir}/${pdf.stylesheet}" token="@DOCBOOKDIR@"
- value="${docbook.dir}" casesensitive="true" />
- <replace file="${build.dir}/${pdf.stylesheet}" token="@TOOLSDIR@"
- value="${tools.dir}" casesensitive="true"/>
- <replace file="${build.dir}/${pdf.stylesheet}" token="@YEAR@"
- value="${year}" casesensitive="true"/>
- </target>
-
- <target name="stage.html" depends="stage">
- <copy file="${html.stylesheet.path}" todir="${build.dir}" />
- <replace file="${build.dir}/${html.stylesheet}" token="@DOCBOOKDIR@"
- value="${docbook.dir}" casesensitive="true" />
- </target>
-
- <target name="stage.eclipse" depends="stage">
- <copy file="${eclipse.stylesheet.path}" todir="${build.dir}" />
- <replace file="${build.dir}/${eclipse.stylesheet}" token="@DOCBOOKDIR@"
- value="${docbook.dir}" casesensitive="true" />
- </target>
-
- <target name="unstage">
- <delete dir="${build.dir}" />
- </target>
-
- <target name="clean" depends="unstage">
- <delete dir="${output.dir}" />
- </target>
-
-</project>
diff --git a/doc/org.eclipse.xpand.doc/build.properties b/doc/org.eclipse.xpand.doc/build.properties
deleted file mode 100644
index 9c86577..0000000
--- a/doc/org.eclipse.xpand.doc/build.properties
+++ /dev/null
@@ -1 +0,0 @@
-custom = true
diff --git a/doc/org.eclipse.xpand.doc/build.xml b/doc/org.eclipse.xpand.doc/build.xml
deleted file mode 100644
index a4e19ef..0000000
--- a/doc/org.eclipse.xpand.doc/build.xml
+++ /dev/null
@@ -1,158 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project name="org.eclipse.xpand.doc" default="build.jars" basedir=".">
-
- <property file="${buildDirectory}/finalPluginsVersions.properties"/>
- <!-- Plug-in version. This is a HACK. Do not forget to update. -->
- <property name="pluginVersion" value="${org.eclipse.xpand.doc}"/>
-
- <property name="plugin" value="org.eclipse.xpand"/>
- <property name="docPlugin" value="org.eclipse.xpand.doc"/>
- <property name="filesToInclude"
- value="META-INF/**,images/**,tasks/**,gettingStarted/**,references/**,tutorials/**,notices.html,about.*,eclipse*.gif,ModelingFeature*.png,eclipse_lg.gif,plugin.*,book.css,toc*.xml,topics_*.xml,index/**"/>
-
- <!-- Compiler settings. -->
- <property name="javacFailOnError" value="false"/>
- <property name="javacDebugInfo" value="on"/>
- <property name="javacVerbose" value="true"/>
- <property name="javacSource" value="1.5"/>
- <property name="javacTarget" value="1.5"/>
- <property name="compilerArg" value=""/>
- <path id="path_bootclasspath">
- <fileset dir="${java.home}/lib">
- <include name="*.jar"/>
- </fileset>
- </path>
- <property name="bootclasspath" refid="path_bootclasspath"/>
-
- <property name="bundleJavacSource" value="${javacSource}"/>
- <property name="bundleJavacTarget" value="${javacTarget}"/>
- <property name="bundleBootClasspath" value="${bootclasspath}"/>
- <property name="basews" value="${ws}"/>
- <property name="baseos" value="${os}"/>
- <property name="basearch" value="${arch}"/>
- <property name="basenl" value="${nl}"/>
-
- <target name="init" depends="properties">
- <condition property="pluginTemp" value="${buildTempFolder}/plugins">
- <isset property="buildTempFolder"/>
- </condition>
- <property name="pluginTemp" value="${basedir}"/>
- <condition property="build.result.folder"
- value="${pluginTemp}/${docPlugin}">
- <isset property="buildTempFolder"/>
- </condition>
- <property name="build.result.folder" value="${basedir}"/>
- <property name="temp.folder" value="${basedir}/temp.folder"/>
- <property name="plugin.destination" value="${basedir}"/>
- </target>
-
- <target name="properties" if="eclipse.running">
- <property name="build.compiler"
- value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
-
- </target>
-
- <target name="build.update.jar" depends="init"
- description="Build the plug-in: ${plugin} for an update site.">
- <delete dir="${temp.folder}"/>
- <mkdir dir="${temp.folder}"/>
- <antcall target="build.jars"/>
- <antcall target="gather.bin.parts">
- <param name="destination.temp.folder" value="${temp.folder}/"/>
- </antcall>
- <zip destfile="${plugin.destination}/${docPlugin}_${pluginVersion}.jar"
- basedir="${temp.folder}/${docPlugin}_${pluginVersion}" filesonly="false"
- whenempty="skip" update="false"/>
- <delete dir="${temp.folder}"/>
- </target>
-
- <target name="build.jars" depends="init"
- description="Build all the jars for the plug-in: ${docPlugin}.">
-
- <!-- Execute a shell script that will create an ant javadoc script and then run it for us -->
- <exec executable="sh">
- <arg value="build/antJavadoc.sh"/>
- <arg value="${eclipse.home}/../eclipse"/>
- </exec>
-
- <antcall target="build.index"/>
-
- </target>
-
- <target name="build.index" depends="init"
- description="Builds search index for the plug-in" if="eclipse.running">
- <help.buildHelpIndex manifest="plugin.xml" destination="."/>
- </target>
-
- <target name="build.sources" depends="init">
- </target>
-
- <target name="gather.bin.parts" depends="init" if="destination.temp.folder">
- <mkdir dir="${destination.temp.folder}/${docPlugin}_${pluginVersion}"/>
- <copy todir="${destination.temp.folder}/${docPlugin}_${pluginVersion}"
- failonerror="false" overwrite="false">
- <fileset dir="${basedir}" includes="${filesToInclude}"/>
- </copy>
- <eclipse.versionReplacer
- path="${destination.temp.folder}/${docPlugin}_${pluginVersion}"
- version="${pluginVersion}"/>
- </target>
-
- <target name="build.zips" depends="init">
- </target>
-
- <target name="gather.sources" depends="init" if="destination.temp.folder">
- </target>
-
- <target name="gather.logs" depends="init" if="destination.temp.folder">
- </target>
-
- <target name="clean" depends="init"
- description="Clean the plug-in: ${docPlugin} of all the zips, jars and logs created.">
- <delete file="${plugin.destination}/${docPlugin}_${pluginVersion}.jar"/>
- <delete file="${plugin.destination}/${docPlugin}_${pluginVersion}.zip"/>
- <delete dir="${temp.folder}"/>
- </target>
-
- <target name="zip.plugin" depends="init"
- description="Create a zip containing all the elements for the plug-in: ${docPlugin}.">
- <delete dir="${temp.folder}"/>
- <mkdir dir="${temp.folder}"/>
- <antcall target="build.jars"/>
- <antcall target="build.sources"/>
- <antcall target="gather.bin.parts">
- <param name="destination.temp.folder" value="${temp.folder}/"/>
- </antcall>
- <antcall target="gather.sources">
- <param name="destination.temp.folder" value="${temp.folder}/"/>
- </antcall>
- <delete>
- <fileset dir="${temp.folder}" includes="**/*.bin.log"/>
- </delete>
- <zip destfile="${plugin.destination}/${docPlugin}_${pluginVersion}.zip"
- basedir="${temp.folder}" filesonly="true" whenempty="skip" update="false"/>
- <delete dir="${temp.folder}"/>
- </target>
-
- <property file="build-docbook.properties"/>
-
- <target name="release">
- <mkdir dir="${release.build.dir}"/>
- <mkdir dir="${release.dir}"/>
-
- <copy todir="${release.build.dir}">
- <fileset dir="${pdf.output.dir}">
- <include name="*.pdf"/>
- </fileset>
- </copy>
-
- <zip
- zipfile="${release.dir}/${product.name}-documentation-${product.version}.zip">
- <fileset dir="${release.build.dir}">
- <include name="*.pdf"/>
- </fileset>
- </zip>
-
- <delete dir="${release.build.dir}"/>
- </target>
-</project> \ No newline at end of file
diff --git a/doc/org.eclipse.xpand.doc/build/antJavadoc.sh b/doc/org.eclipse.xpand.doc/build/antJavadoc.sh
deleted file mode 100644
index a316c9d..0000000
--- a/doc/org.eclipse.xpand.doc/build/antJavadoc.sh
+++ /dev/null
@@ -1,144 +0,0 @@
-#!/bin/sh
-
-# BEGIN CUSTOMIZATIONS
-
-# The plugin name
-pluginName="org.eclipse.xpand";
-
-# string labels for javadoc content
-windowTitle="Xpand Javadoc";
-groupTitle="Xpand";
-
-# files to exclude from javadoc process - use Ant syntax
-javadocExclusions="<exclude name=\"**/internal/**\"/> <exclude name=\"**/examples/**\"/> <exclude name=\"**/tests/**\"/>";
-javadocExclusions=$javadocExclusions;
-
-# END CUSTOMIZATIONS
-
-##########################################################################
-
-debug=0; if [ $debug -gt 0 ]; then echo "[antJd] debug: "$debug; fi
-
-if [ "x"$ANT_HOME = "x" ]; then export ANT_HOME=/opt/apache-ant-1.6; fi
-if [ "x"$JAVA_HOME = "x" ]; then export JAVA_HOME=/opt/ibm-java2-1.4; fi
-export PATH=${PATH}:${ANT_HOME}/bin
-
-# current directory - all but the name of this script, no trailing slash
-currentPath=$PWD"/"$0; currentPath=${currentPath%/*}; if [ $debug -gt 0 ]; then echo "[antJd] currentPath: "$currentPath; fi
-
-# path to $buildID/eclipse/plugins, no trailing slash
-pluginPath=${currentPath%/$pluginName*}; if [ $debug -gt 0 ]; then echo "[antJd] pluginName: "$pluginName; echo "[antJd] pluginPath: "$pluginPath; fi
-
-# ant script to create and then execute
-antScript=$currentPath"/javadoc.xml"; if [ $debug -gt 0 ]; then echo "[antJd] antScript: "$antScript; fi
-
-# The eclipse directory
-eclipseDir=`cd $1; echo $PWD`; if [ $debug -gt 0 ]; then echo "[antJd] eclipseDir: "$eclipseDir; fi
-
-# The destination directory
-destDir=$currentPath/../references/javadoc; mkdir -p $destDir; destDir=`cd $destDir; echo $PWD`; # resolve relative path
-if [ $debug -gt 0 ]; then echo "[antJd] destDir: "$destDir; fi
-
-hasToken=`grep -c "@plugin@" $antScript".template"`;
-if [ $hasToken -gt 0 ]; then
- srcDir=$pluginPath/$pluginName/src; if [ $debug -gt 0 ]; then echo "[antJd] srcDir: "$srcDir; fi
- if [ -d "$srcDir" ]; then
- if [ `find $srcDir -name "*.java" | grep -c .` -eq 0 ]; then # must unpack zips first
- if [ $debug -gt 0 ]; then echo "[antJd] Unpacking *src.zip"; fi
- for f in `find $srcDir -name "*src.zip"`; do
- if [ $debug -gt 1 ]; then echo "[antJd] Unpack $f"; fi
- unzip -q -d $srcDir $f;
- done
- fi
- if [ $debug -gt 0 ]; then echo "[antJd] *.java in srcDir: "; echo "-----------------"; echo `find $srcDir -type f -name '*.java'`; echo "-----------------"; fi
- packages=`find $srcDir -type f -name '*.java' -exec grep -e '^package .*;' {} \; | sed -e 's/^package *\(.*\);/\1/' | sed -e 's/[ ]*//g' | dos2unix | sort | uniq | xargs | sed -e 's/ /:/g'`;
- if [ $debug -gt 1 ]; then echo "[antJd] packages1: "$packages; fi
- packages=`echo $packages | sed -e 's/\//\\\\\\//g' | sed -e 's/\./\\\\\./g'`; # slash escape
- if [ $debug -gt 1 ]; then echo "[antJd] packages2: "$packages; fi
- sed -e "s/\@plugin\@/${packages}/g" $antScript.template > $antScript.template.tmp;
- else
- echo "[antJd] ERROR! "$srcDir" does not exist!";
- exit 1;
- fi
-else
- echo "[antJd] ERROR! "$currentPath"/javadoc.xml.template does not contain token @plugin@!";
- exit 1;
-fi
-
-# Finds plugins in the Workspace:
-pluginDirs=`find $pluginPath -name "${pluginName}*" -maxdepth 1 -type d -printf '%T@ %p\n' | sort -n | cut -f2 -d' '`;
-if [ $debug -gt 0 ]; then
- echo "[antJd] pluginDirs:";
- for pluginDir in $pluginDirs; do echo "[antJd] "$pluginDir; done
-fi
-
-### TODO?: missing emf/sdo/xsd plugins in $eclipseDir - need to copy them over or reference source so that all classes/packages (and thus @links) can be resolved
-
-# All the jars in the plugins directory
-classpath="."`find $eclipseDir/plugins -name "*.jar" -printf ":%p"`; if [ $debug -gt 0 ]; then echo "[antJd] classpath: "$classpath; fi
-
-# Calculates the packagesets and the calls to copyDocFiles
-packagesets="";
-copydocfiles="";
-for pluginDir in $pluginDirs; do
- pluginDir=`echo $pluginDir | sed -e 's/\/runtime$//g'`;
- srcDir=$pluginDir/src;
- if [ $debug -gt 0 ]; then echo "[antJd] srcDir: "$srcDir; fi
- if [ -d "$srcDir" ]; then
- # define what to include when javadoc'ing here:
- packagesets=$packagesets"<packageset dir=\"$srcDir\"> ";
- packagesets=$packagesets"<exclude name=\"$srcDir/**/doc-files/**\"/> ";
- packagesets=$packagesets""$javadocExclusions;
- packagesets=$packagesets"</packageset>";
- copydocfiles=$copydocfiles"<copyDocFiles pluginDir=\"$pluginDir\"/>";
- fi
-done
-if [ $debug -gt 0 ]; then
- echo "[antJd] packagesets:"; echo $packagesets;
- echo "[antJd] copydocfiles:"; echo $copydocfiles;
-fi
-
-# Finds the proper org.eclipse.platform.doc.isv jar
-docjar=`find $eclipseDir/plugins/ -name "org.eclipse.platform.doc.isv*.jar" -printf "%f"`; if [ $debug -gt 1 ]; then echo "[antJd] docjar: "$docjar; fi
-
-if [ -f $antScript.template ]; then
- true;
-else
- cp $antScript.template $antScript.template.tmp;
-fi
-
-# do replacements in template
-if [ $debug -gt 1 ]; then echo "[antJd] Replace @packagesets@ in the template ..."; fi
-packagesets=`echo $packagesets | sed -e 's/\//\\\\\\//g' | sed -e 's/\./\\\\\./g'`;
-sed -e "s/\@packagesets\@/${packagesets}/g" $antScript.template.tmp > $antScript.template.tmp2;
-
-if [ $debug -gt 1 ]; then echo "[antJd] Replace @copydocfiles@ in the template ..."; fi
-copydocfiles=`echo $copydocfiles | sed -e 's/\//\\\\\\//g' | sed -e 's/\./\\\\\./g'`;
-sed -e "s/\@copydocfiles\@/${copydocfiles}/g" $antScript.template.tmp2 > $antScript;
-
-#run ant to do javadoc build
-ant -f $antScript \
- -DdestDir="$destDir" \
- -Dclasspath="$classpath" \
- -DeclipseDir="$eclipseDir" \
- -Ddocjar="$docjar" \
- -DwindowTitle="$windowTitle" \
- -DgroupTitle="$groupTitle" \
- -Doverview="$currentPath/overview.html";
-
-# Clean up templates
-rm -f $antScript $antScript.template.tmp $antScript.template.tmp2;
-
-# Generate topics_Reference.xml (replacement for doclet).
-trXML=$currentPath"/../topics_Reference.xml";
-echo '<?xml version="1.0" encoding="UTF-8"?>' > $trXML;
-echo '<?NLS TYPE="org.eclipse.help.toc"?>' >> $trXML;
-echo '<toc label="Reference">' >> $trXML;
-echo ' <topic label="API Reference" href="references/javadoc/overview-summary.html">' >> $trXML;
-for packSum in `find $destDir -name "package-summary.html" | sort`; do
- path=${packSum%/package-summary.html}; path=${path#$destDir/}; # org/eclipse/xsd/ecore/importer/taskdefs
- label=${path//\//.}; # org.eclipse.xsd.ecore.importer.taskdefs
- echo ' <topic label="'$label'" href="references/javadoc/'$path'/package-summary.html" />' >> $trXML;
-done
-echo ' </topic>' >> $trXML;
-echo '</toc>' >> $trXML; \ No newline at end of file
diff --git a/doc/org.eclipse.xpand.doc/build/javadoc.xml.template b/doc/org.eclipse.xpand.doc/build/javadoc.xml.template
deleted file mode 100644
index 30211ef..0000000
--- a/doc/org.eclipse.xpand.doc/build/javadoc.xml.template
+++ /dev/null
@@ -1,96 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project name="Plugin Javadoc" default="javadoc">
- <property name="destDir" value="doc"/>
- <property name="classpath" value="bin"/>
- <property name="overview" value="build/overview.html"/>
- <property name="eclipseDir" value="."/>
- <property name="docjar" value="org.eclipse.platform.doc.isv.jar"/>
-
- <!-- other properties that must be passed to this script include:
- windowTitle
- groupTitle
- -->
-
- <property environment="env"/>
- <property name="javaHome" value="${env.JAVA_HOME}"/>
-
- <property name="javadoc.link.location" value="${eclipseDir}/javadoc"/>
- <available property="platformJavadocExists" file="${javadoc.link.location}/platform/"/>
-
- <!-- TODO Enable linking to the platform javadoc -->
- <!-- <target name="extractPlatformJavadoc" unless="platformJavadocExists">
- <exec executable="find">
- <arg value="${eclipseDir}/.."/>
- <arg value="-type"/>
- <arg value="d"/>
- <arg value="-name"/>
- <arg value="javadoc"/>
- </exec>
- <unzip src="${eclipseDir}/@docjar@" dest="${javadoc.link.location}/platform/"/>
- </target> -->
-
- <!-- TODO Enable linking to the platform javadoc -->
- <!-- <target name="javadoc" depends="extractPlatformJavadoc"> -->
-
- <target name="javadoc">
- <javadoc
- destdir="${destDir}"
- classpath="${classpath}"
- overview="${overview}"
-
- windowtitle="${windowTitle}"
- footer="Copyright 2007 committers of openArchitectureWare and others.&lt;br&gt; All Rights Reserved."
-
- access="protected"
- additionalparam="-breakiterator -tag model:X -tag generated:X -tag ordered:X"
- author="false"
- breakiterator="true"
- charset="UTF-8"
- docencoding="UTF-8"
- nodeprecated="false"
- nodeprecatedlist="false"
- noindex="false"
- nonavbar="false"
- notree="false"
- source="1.5"
- splitindex="true"
- use="true"
- version="true">
- <arg value="-J-Xmx256m"/>
-
- <link offline="true" href="http://java.sun.com/j2se/1.5.0/docs/api/" packagelistLoc="${javaHome}/docs/api/"/>
- <!-- TODO Enable link to platform documentation -->
- <!-- <link offline="true" href="/help/topic/org.eclipse.platform.doc.isv/reference/api/" packagelistLoc="${javadoc.link.location}/platform/reference/api/"/> -->
-
- <tag name="ignore" description="ignore" enabled="false"/>
- <tag name="generated" description="ignore" enabled="false"/>
- <tag name="model" description="ignore" enabled="false"/>
- <tag name="modifiable" description="ignore" enabled="false"/>
- <tag name="extends" description="ignore" enabled="false"/>
- <tag name="implements" description="ignore" enabled="false"/>
- <tag name="ordered" description="ignore" enabled="false"/>
-
- <!-- If you add a @ plugin @ below, don't forget to update the antjavadoc.sh file -->
-
- <group title="${groupTitle}" packages="@plugin@"/>
-
- <!-- If you add a @ plugin @ above, don't forget to update the antjavadoc.sh file -->
-
- @packagesets@
-
- </javadoc>
-
- <!-- make sure the doc-files are copied -->
- <macrodef name="copyDocFiles">
- <attribute name="pluginDir"/>
- <sequential>
- <copy todir="${destDir}" failonerror="false">
- <fileset dir="@{pluginDir}/src" includes="**/doc-files/**"/>
- </copy>
- </sequential>
- </macrodef>
-
- @copydocfiles@
-
- </target>
-</project> \ No newline at end of file
diff --git a/doc/org.eclipse.xpand.doc/build/overview.html b/doc/org.eclipse.xpand.doc/build/overview.html
deleted file mode 100644
index 6b69bc5..0000000
--- a/doc/org.eclipse.xpand.doc/build/overview.html
+++ /dev/null
@@ -1,43 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<!--
-/**
- * <copyright>
- *
- * Copyright (c) 2005 IBM Corporation and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * IBM - Initial API and implementation
- *
- * </copyright>
- *
- * $Id: overview.html,v 1.2 2008/01/09 08:40:24 bkolb Exp $
- */
--->
-</head>
-<meta http-equiv="Content-Type"
-content="text/html; charset=utf-8" />
-<body bgcolor="white">
-<!--
-This plug-in provides
-an <a href="org/eclipse/jet/helper/package-summary.html#details">API</a>
-for jet...
--->
-<!-- The summary links point here when the contents are "copied". -->
-<!--
-<a name="details"></a>
-Please refer to
-the
-<a href="org/eclipse/jet/helper/package-summary.html#details">org.eclipse.jet.helper</a>
-and
-<a href="org/eclipse/jet/parser/package-summary.html#details">org.eclipse.jet.parser</a>
-package documentation for API details.
--->
-</body>
-</html>
diff --git a/doc/org.eclipse.xpand.doc/eclipse.gif b/doc/org.eclipse.xpand.doc/eclipse.gif
deleted file mode 100644
index bdc2912..0000000
--- a/doc/org.eclipse.xpand.doc/eclipse.gif
+++ /dev/null
Binary files differ
diff --git a/doc/org.eclipse.xpand.doc/eclipse.png b/doc/org.eclipse.xpand.doc/eclipse.png
deleted file mode 100644
index 7397524..0000000
--- a/doc/org.eclipse.xpand.doc/eclipse.png
+++ /dev/null
Binary files differ
diff --git a/doc/org.eclipse.xpand.doc/eclipse24.gif b/doc/org.eclipse.xpand.doc/eclipse24.gif
deleted file mode 100644
index fbb1d47..0000000
--- a/doc/org.eclipse.xpand.doc/eclipse24.gif
+++ /dev/null
Binary files differ
diff --git a/doc/org.eclipse.xpand.doc/eclipse32.gif b/doc/org.eclipse.xpand.doc/eclipse32.gif
deleted file mode 100644
index e6ad7cc..0000000
--- a/doc/org.eclipse.xpand.doc/eclipse32.gif
+++ /dev/null
Binary files differ
diff --git a/doc/org.eclipse.xpand.doc/eclipse32.png b/doc/org.eclipse.xpand.doc/eclipse32.png
deleted file mode 100644
index 568fac1..0000000
--- a/doc/org.eclipse.xpand.doc/eclipse32.png
+++ /dev/null
Binary files differ
diff --git a/doc/org.eclipse.xpand.doc/eclipse48.gif b/doc/org.eclipse.xpand.doc/eclipse48.gif
deleted file mode 100644
index 501ab99..0000000
--- a/doc/org.eclipse.xpand.doc/eclipse48.gif
+++ /dev/null
Binary files differ
diff --git a/doc/org.eclipse.xpand.doc/eclipse48.png b/doc/org.eclipse.xpand.doc/eclipse48.png
deleted file mode 100644
index b60ab3c..0000000
--- a/doc/org.eclipse.xpand.doc/eclipse48.png
+++ /dev/null
Binary files differ
diff --git a/doc/org.eclipse.xpand.doc/eclipse_lg.gif b/doc/org.eclipse.xpand.doc/eclipse_lg.gif
deleted file mode 100644
index bf8b872..0000000
--- a/doc/org.eclipse.xpand.doc/eclipse_lg.gif
+++ /dev/null
Binary files differ
diff --git a/doc/org.eclipse.xpand.doc/gettingStarted/.keepdir b/doc/org.eclipse.xpand.doc/gettingStarted/.keepdir
deleted file mode 100644
index e69de29..0000000
--- a/doc/org.eclipse.xpand.doc/gettingStarted/.keepdir
+++ /dev/null
diff --git a/doc/org.eclipse.xpand.doc/images/.keepdir b/doc/org.eclipse.xpand.doc/images/.keepdir
deleted file mode 100644
index e69de29..0000000
--- a/doc/org.eclipse.xpand.doc/images/.keepdir
+++ /dev/null
diff --git a/doc/org.eclipse.xpand.doc/notices.html b/doc/org.eclipse.xpand.doc/notices.html
deleted file mode 100644
index 7e7527f..0000000
--- a/doc/org.eclipse.xpand.doc/notices.html
+++ /dev/null
@@ -1,23 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
-<html>
-<head>
-
-<meta name="copyright" content="Copyright (c) committers of openArchitectureWare and others 2007. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." >
-
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <LINK REL="STYLESHEET" HREF="book.css" CHARSET="ISO-8859-1" TYPE="text/css">
- <title>Legal Notices</title>
-<script>if( self == top ){ window.location.replace( "../../?topic=/org.eclipse.xpand.doc/notices.html");}</script>
-</head>
-<body>
-
-<h3>
-<a NAME="Notices"></a>Notices</h3>
-<p>
-The material in this guide is Copyright (c) committers of openArchitectureWare and others 2007.
-</p>
-<p>
-<a href="about.html">Terms and conditions regarding the use of this guide.</a>
-</p>
-</body>
-</html>
diff --git a/doc/org.eclipse.xpand.doc/plugin.properties b/doc/org.eclipse.xpand.doc/plugin.properties
deleted file mode 100644
index 7659373..0000000
--- a/doc/org.eclipse.xpand.doc/plugin.properties
+++ /dev/null
@@ -1,4 +0,0 @@
-# NLS_MESSAGEFORMAT_VAR
-pluginName = M2T Xpand Programmers Guide
-providerName=Eclipse.org
-
diff --git a/doc/org.eclipse.xpand.doc/plugin.xml b/doc/org.eclipse.xpand.doc/plugin.xml
deleted file mode 100644
index cbf84f1..0000000
--- a/doc/org.eclipse.xpand.doc/plugin.xml
+++ /dev/null
@@ -1,3 +0,0 @@
-<?xml version="1.0"?>
-<?eclipse version="3.0"?>
-<plugin><extension point="org.eclipse.help.toc"><toc file="toc.xml" primary="true"/><index path="index"/></extension><extension point="org.eclipse.help.toc"><toc file="topics_Reference.xml"/></extension><extension point="org.eclipse.pde.core.javadoc"><javadoc path="doc.zip!/references/javadoc" archive="true"><plugin id="org.eclipse.m2t.common.recipe"/><plugin id="org.eclipse.m2t.common.recipe.astChecks"/><plugin id="org.eclipse.m2t.common.recipe.simpleChecks"/><plugin id="org.eclipse.m2t.common.recipe.ui"/><plugin id="org.eclipse.m2t.common.recipe.workflow"/><plugin id="org.eclipse.xpand"/><plugin id="org.eclipse.xpand.ui"/><plugin id="org.eclipse.xtend"/><plugin id="org.eclipse.xtend.check.ui"/><plugin id="org.eclipse.xtend.shared.ui"/><plugin id="org.eclipse.xtend.typesystem.emf"/><plugin id="org.eclipse.xtend.typesystem.emf.ui"/><plugin id="org.eclipse.xtend.typesystem.uml2"/><plugin id="org.eclipse.xtend.typesystem.uml2.ui"/><plugin id="org.eclipse.xtend.ui"/><plugin id="org.eclipse.xtend.util.stdlib"/></javadoc></extension></plugin> \ No newline at end of file
diff --git a/doc/org.eclipse.xpand.doc/references/.cvsignore b/doc/org.eclipse.xpand.doc/references/.cvsignore
deleted file mode 100644
index e69de29..0000000
--- a/doc/org.eclipse.xpand.doc/references/.cvsignore
+++ /dev/null
diff --git a/doc/org.eclipse.xpand.doc/references/.keepdir b/doc/org.eclipse.xpand.doc/references/.keepdir
deleted file mode 100644
index e69de29..0000000
--- a/doc/org.eclipse.xpand.doc/references/.keepdir
+++ /dev/null
diff --git a/doc/org.eclipse.xpand.doc/src/5.0/content/builtin_api.xml b/doc/org.eclipse.xpand.doc/src/5.0/content/builtin_api.xml
deleted file mode 100644
index 799b5ad..0000000
--- a/doc/org.eclipse.xpand.doc/src/5.0/content/builtin_api.xml
+++ /dev/null
@@ -1,2086 +0,0 @@
-
-<section id="builtin_api">
- <title>Built-in types API documentation</title>
-
-
- <section id="builtin_api_Object">
- <title><classname>Object</classname></title>
- <para>
- Supertype:
-none
- </para>
- <para>
-
-
- <table frame='all' id="builtin_api_Object_Properties">
- <title>Properties of <classname>Object</classname></title>
- <tgroup cols='3' align='left' colsep='1' rowsep='1'>
- <colspec colname='c1'/>
- <colspec colname='c2'/>
- <colspec colname='c3'/>
- <thead>
- <row>
- <entry>Type</entry>
- <entry>Name</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>
- <classname><link linkend='builtin_api_oaw::Type'>oaw::Type</link></classname>
- </entry>
- <entry>
- <methodname>metaType</methodname>
- </entry>
- <entry>
- returns this object's meta type.
- </entry>
- </row>
- </tbody>
- </tgroup>
- </table>
-
-
- </para>
- <para>
-
-
- <table frame='all' id="builtin_api_Object_Operations">
- <title>Operations of <classname>Object</classname></title>
- <?dbfo keep-together.within-column="auto" ?>
- <tgroup cols='3' align='left' colsep='1' rowsep='1'>
- <colspec colname='c1'/>
- <colspec colname='c2'/>
- <colspec colname='c3'/>
- <thead>
- <row>
- <entry>Return type</entry>
- <entry>Name</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Boolean'>Boolean</link></classname>
- </entry>
- <entry>
- <methodname>==</methodname>
- (<classname><link linkend='builtin_api_Object'>Object</link></classname>)
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Boolean'>Boolean</link></classname>
- </entry>
- <entry>
- <methodname>&lt;</methodname>
- (<classname><link linkend='builtin_api_Object'>Object</link></classname>)
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_String'>String</link></classname>
- </entry>
- <entry>
- <methodname>toString</methodname>
- ()
- </entry>
- <entry>
- returns the String representation of this object. (Calling Java's toString() method)
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Boolean'>Boolean</link></classname>
- </entry>
- <entry>
- <methodname>&lt;=</methodname>
- (<classname><link linkend='builtin_api_Object'>Object</link></classname>)
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Boolean'>Boolean</link></classname>
- </entry>
- <entry>
- <methodname>!=</methodname>
- (<classname><link linkend='builtin_api_Object'>Object</link></classname>)
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Boolean'>Boolean</link></classname>
- </entry>
- <entry>
- <methodname>&gt;</methodname>
- (<classname><link linkend='builtin_api_Object'>Object</link></classname>)
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Integer'>Integer</link></classname>
- </entry>
- <entry>
- <methodname>compareTo</methodname>
- (<classname><link linkend='builtin_api_Object'>Object</link></classname>)
- </entry>
- <entry>
- Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Boolean'>Boolean</link></classname>
- </entry>
- <entry>
- <methodname>&gt;=</methodname>
- (<classname><link linkend='builtin_api_Object'>Object</link></classname>)
- </entry>
- <entry>
-
- </entry>
- </row>
- </tbody>
- </tgroup>
- </table>
-
-
- </para>
- </section>
-
-
- <section id="builtin_api_String">
- <title><classname>String</classname></title>
- <para>
- Supertype:
-<classname><link linkend='builtin_api_Object'>Object</link></classname>
- </para>
- <para>
-
-
- <table frame='all' id="builtin_api_String_Properties">
- <title>Properties of <classname>String</classname></title>
- <tgroup cols='3' align='left' colsep='1' rowsep='1'>
- <colspec colname='c1'/>
- <colspec colname='c2'/>
- <colspec colname='c3'/>
- <thead>
- <row>
- <entry>Type</entry>
- <entry>Name</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Integer'>Integer</link></classname>
- </entry>
- <entry>
- <methodname>length</methodname>
- </entry>
- <entry>
- the length of this string
- </entry>
- </row>
- </tbody>
- </tgroup>
- </table>
-
-
- </para>
- <para>
-
-
- <table frame='all' id="builtin_api_String_Operations">
- <title>Operations of <classname>String</classname></title>
- <?dbfo keep-together.within-column="auto" ?>
- <tgroup cols='3' align='left' colsep='1' rowsep='1'>
- <colspec colname='c1'/>
- <colspec colname='c2'/>
- <colspec colname='c3'/>
- <thead>
- <row>
- <entry>Return type</entry>
- <entry>Name</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>
- <classname><link linkend='builtin_api_String'>String</link></classname>
- </entry>
- <entry>
- <methodname>toLowerCase</methodname>
- ()
- </entry>
- <entry>
- Converts all of the characters in this String to lower case using the rules of the default locale (from Java)
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_String'>String</link></classname>
- </entry>
- <entry>
- <methodname>+</methodname>
- (<classname><link linkend='builtin_api_Object'>Object</link></classname>)
- </entry>
- <entry>
- concatenates two strings
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_List'>List</link></classname>
- </entry>
- <entry>
- <methodname>toCharList</methodname>
- ()
- </entry>
- <entry>
- splits this String into a List[String] containing Strings of length 1
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_String'>String</link></classname>
- </entry>
- <entry>
- <methodname>toFirstUpper</methodname>
- ()
- </entry>
- <entry>
- Converts the first character in this String to upper case using the rules of the default locale (from Java)
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_String'>String</link></classname>
- </entry>
- <entry>
- <methodname>subString</methodname>
- (<classname><link linkend='builtin_api_Integer'>Integer</link></classname>, <classname><link linkend='builtin_api_Integer'>Integer</link></classname>)
- </entry>
- <entry>
- Tests if this string ends with the specified prefix.
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_String'>String</link></classname>
- </entry>
- <entry>
- <methodname>trim</methodname>
- ()
- </entry>
- <entry>
- Returns a copy of the string, with leading and trailing whitespace omitted. (from Java 1.4)
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_String'>String</link></classname>
- </entry>
- <entry>
- <methodname>toFirstLower</methodname>
- ()
- </entry>
- <entry>
- Converts the first character in this String to lower case using the rules of the default locale (from Java)
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_String'>String</link></classname>
- </entry>
- <entry>
- <methodname>toUpperCase</methodname>
- ()
- </entry>
- <entry>
- Converts all of the characters in this String to upper case using the rules of the default locale (from Java)
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_List'>List</link></classname>
- </entry>
- <entry>
- <methodname>split</methodname>
- (<classname><link linkend='builtin_api_String'>String</link></classname>)
- </entry>
- <entry>
- Splits this string around matches of the given regular expression (from Java 1.4)
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Boolean'>Boolean</link></classname>
- </entry>
- <entry>
- <methodname>startsWith</methodname>
- (<classname><link linkend='builtin_api_String'>String</link></classname>)
- </entry>
- <entry>
- Tests if this string starts with the specified prefix.
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Boolean'>Boolean</link></classname>
- </entry>
- <entry>
- <methodname>matches</methodname>
- (<classname><link linkend='builtin_api_String'>String</link></classname>)
- </entry>
- <entry>
- Tells whether or not this string matches the given regular expression. (from Java 1.4)
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Integer'>Integer</link></classname>
- </entry>
- <entry>
- <methodname>asInteger</methodname>
- ()
- </entry>
- <entry>
- Returns an Integer object holding the value of the specified String (from Java 1.5)
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Boolean'>Boolean</link></classname>
- </entry>
- <entry>
- <methodname>contains</methodname>
- (<classname><link linkend='builtin_api_String'>String</link></classname>)
- </entry>
- <entry>
- Tests if this string contains substring.
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Boolean'>Boolean</link></classname>
- </entry>
- <entry>
- <methodname>endsWith</methodname>
- (<classname><link linkend='builtin_api_String'>String</link></classname>)
- </entry>
- <entry>
- Tests if this string ends with the specified prefix.
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_String'>String</link></classname>
- </entry>
- <entry>
- <methodname>replaceFirst</methodname>
- (<classname><link linkend='builtin_api_String'>String</link></classname>, <classname><link linkend='builtin_api_String'>String</link></classname>)
- </entry>
- <entry>
- Replaces the first substring of this string that matches the given regular expression with the given replacement.
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_String'>String</link></classname>
- </entry>
- <entry>
- <methodname>replaceAll</methodname>
- (<classname><link linkend='builtin_api_String'>String</link></classname>, <classname><link linkend='builtin_api_String'>String</link></classname>)
- </entry>
- <entry>
- Replaces each substring of this string that matches the given regular expression with the given replacement.
- </entry>
- </row>
- </tbody>
- </tgroup>
- </table>
-
-
- </para>
- </section>
-
-
- <section id="builtin_api_Integer">
- <title><classname>Integer</classname></title>
- <para>
- Supertype:
-<classname><link linkend='builtin_api_Real'>Real</link></classname>
- </para>
- <para>
-
-
- This type does not define any properties.
-
-
- </para>
- <para>
-
-
- <table frame='all' id="builtin_api_Integer_Operations">
- <title>Operations of <classname>Integer</classname></title>
- <?dbfo keep-together.within-column="auto" ?>
- <tgroup cols='3' align='left' colsep='1' rowsep='1'>
- <colspec colname='c1'/>
- <colspec colname='c2'/>
- <colspec colname='c3'/>
- <thead>
- <row>
- <entry>Return type</entry>
- <entry>Name</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>
- <classname><link linkend='builtin_api_List'>List</link></classname>
- </entry>
- <entry>
- <methodname>upTo</methodname>
- (<classname><link linkend='builtin_api_Integer'>Integer</link></classname>)
- </entry>
- <entry>
- returns a List of Integers starting with the value of the target expression, up to the value of the specified Integer, incremented by one.e.g. '1.upTo(5)' evaluates to {1,2,3,4,5}
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Boolean'>Boolean</link></classname>
- </entry>
- <entry>
- <methodname>&gt;=</methodname>
- (<classname><link linkend='builtin_api_Object'>Object</link></classname>)
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_List'>List</link></classname>
- </entry>
- <entry>
- <methodname>upTo</methodname>
- (<classname><link linkend='builtin_api_Integer'>Integer</link></classname>, <classname><link linkend='builtin_api_Integer'>Integer</link></classname>)
- </entry>
- <entry>
- returns a List of Integers starting with the value of the target expression, up to the value of the first paramter, incremented by the second parameter.e.g. '1.upTo(10, 2)' evaluates to {1,3,5,7,9}
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Integer'>Integer</link></classname>
- </entry>
- <entry>
- <methodname>-</methodname>
- (<classname><link linkend='builtin_api_Integer'>Integer</link></classname>)
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Integer'>Integer</link></classname>
- </entry>
- <entry>
- <methodname>+</methodname>
- (<classname><link linkend='builtin_api_Integer'>Integer</link></classname>)
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Boolean'>Boolean</link></classname>
- </entry>
- <entry>
- <methodname>&lt;=</methodname>
- (<classname><link linkend='builtin_api_Object'>Object</link></classname>)
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Boolean'>Boolean</link></classname>
- </entry>
- <entry>
- <methodname>==</methodname>
- (<classname><link linkend='builtin_api_Object'>Object</link></classname>)
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Integer'>Integer</link></classname>
- </entry>
- <entry>
- <methodname>*</methodname>
- (<classname><link linkend='builtin_api_Integer'>Integer</link></classname>)
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Boolean'>Boolean</link></classname>
- </entry>
- <entry>
- <methodname>!=</methodname>
- (<classname><link linkend='builtin_api_Object'>Object</link></classname>)
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Boolean'>Boolean</link></classname>
- </entry>
- <entry>
- <methodname>&gt;</methodname>
- (<classname><link linkend='builtin_api_Object'>Object</link></classname>)
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Integer'>Integer</link></classname>
- </entry>
- <entry>
- <methodname>-</methodname>
- ()
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Boolean'>Boolean</link></classname>
- </entry>
- <entry>
- <methodname>&lt;</methodname>
- (<classname><link linkend='builtin_api_Object'>Object</link></classname>)
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Integer'>Integer</link></classname>
- </entry>
- <entry>
- <methodname>/</methodname>
- (<classname><link linkend='builtin_api_Integer'>Integer</link></classname>)
- </entry>
- <entry>
-
- </entry>
- </row>
- </tbody>
- </tgroup>
- </table>
-
-
- </para>
- </section>
-
-
- <section id="builtin_api_Boolean">
- <title><classname>Boolean</classname></title>
- <para>
- Supertype:
-<classname><link linkend='builtin_api_Object'>Object</link></classname>
- </para>
- <para>
-
-
- This type does not define any properties.
-
-
- </para>
- <para>
-
-
- <table frame='all' id="builtin_api_Boolean_Operations">
- <title>Operations of <classname>Boolean</classname></title>
- <?dbfo keep-together.within-column="auto" ?>
- <tgroup cols='3' align='left' colsep='1' rowsep='1'>
- <colspec colname='c1'/>
- <colspec colname='c2'/>
- <colspec colname='c3'/>
- <thead>
- <row>
- <entry>Return type</entry>
- <entry>Name</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Boolean'>Boolean</link></classname>
- </entry>
- <entry>
- <methodname>!</methodname>
- ()
- </entry>
- <entry>
-
- </entry>
- </row>
- </tbody>
- </tgroup>
- </table>
-
-
- </para>
- </section>
-
-
- <section id="builtin_api_Real">
- <title><classname>Real</classname></title>
- <para>
- Supertype:
-<classname><link linkend='builtin_api_Object'>Object</link></classname>
- </para>
- <para>
-
-
- This type does not define any properties.
-
-
- </para>
- <para>
-
-
- <table frame='all' id="builtin_api_Real_Operations">
- <title>Operations of <classname>Real</classname></title>
- <?dbfo keep-together.within-column="auto" ?>
- <tgroup cols='3' align='left' colsep='1' rowsep='1'>
- <colspec colname='c1'/>
- <colspec colname='c2'/>
- <colspec colname='c3'/>
- <thead>
- <row>
- <entry>Return type</entry>
- <entry>Name</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Real'>Real</link></classname>
- </entry>
- <entry>
- <methodname>*</methodname>
- (<classname><link linkend='builtin_api_Real'>Real</link></classname>)
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Boolean'>Boolean</link></classname>
- </entry>
- <entry>
- <methodname>&gt;=</methodname>
- (<classname><link linkend='builtin_api_Object'>Object</link></classname>)
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Boolean'>Boolean</link></classname>
- </entry>
- <entry>
- <methodname>&lt;=</methodname>
- (<classname><link linkend='builtin_api_Object'>Object</link></classname>)
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Real'>Real</link></classname>
- </entry>
- <entry>
- <methodname>-</methodname>
- ()
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Boolean'>Boolean</link></classname>
- </entry>
- <entry>
- <methodname>==</methodname>
- (<classname><link linkend='builtin_api_Object'>Object</link></classname>)
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Boolean'>Boolean</link></classname>
- </entry>
- <entry>
- <methodname>!=</methodname>
- (<classname><link linkend='builtin_api_Object'>Object</link></classname>)
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Boolean'>Boolean</link></classname>
- </entry>
- <entry>
- <methodname>&lt;</methodname>
- (<classname><link linkend='builtin_api_Object'>Object</link></classname>)
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Real'>Real</link></classname>
- </entry>
- <entry>
- <methodname>-</methodname>
- (<classname><link linkend='builtin_api_Real'>Real</link></classname>)
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Real'>Real</link></classname>
- </entry>
- <entry>
- <methodname>/</methodname>
- (<classname><link linkend='builtin_api_Real'>Real</link></classname>)
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Boolean'>Boolean</link></classname>
- </entry>
- <entry>
- <methodname>&gt;</methodname>
- (<classname><link linkend='builtin_api_Object'>Object</link></classname>)
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Real'>Real</link></classname>
- </entry>
- <entry>
- <methodname>+</methodname>
- (<classname><link linkend='builtin_api_Real'>Real</link></classname>)
- </entry>
- <entry>
-
- </entry>
- </row>
- </tbody>
- </tgroup>
- </table>
-
-
- </para>
- </section>
-
-
- <section id="builtin_api_Collection">
- <title><classname>Collection</classname></title>
- <para>
- Supertype:
-<classname><link linkend='builtin_api_Object'>Object</link></classname>
- </para>
- <para>
-
-
- <table frame='all' id="builtin_api_Collection_Properties">
- <title>Properties of <classname>Collection</classname></title>
- <tgroup cols='3' align='left' colsep='1' rowsep='1'>
- <colspec colname='c1'/>
- <colspec colname='c2'/>
- <colspec colname='c3'/>
- <thead>
- <row>
- <entry>Type</entry>
- <entry>Name</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Boolean'>Boolean</link></classname>
- </entry>
- <entry>
- <methodname>isEmpty</methodname>
- </entry>
- <entry>
- returns true if this Collection is empty
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Integer'>Integer</link></classname>
- </entry>
- <entry>
- <methodname>size</methodname>
- </entry>
- <entry>
- returns the size of this Collection
- </entry>
- </row>
- </tbody>
- </tgroup>
- </table>
-
-
- </para>
- <para>
-
-
- <table frame='all' id="builtin_api_Collection_Operations">
- <title>Operations of <classname>Collection</classname></title>
- <?dbfo keep-together.within-column="auto" ?>
- <tgroup cols='3' align='left' colsep='1' rowsep='1'>
- <colspec colname='c1'/>
- <colspec colname='c2'/>
- <colspec colname='c3'/>
- <thead>
- <row>
- <entry>Return type</entry>
- <entry>Name</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Boolean'>Boolean</link></classname>
- </entry>
- <entry>
- <methodname>contains</methodname>
- (<classname><link linkend='builtin_api_Object'>Object</link></classname>)
- </entry>
- <entry>
- returns true if this collection contains the specified object. otherwise false. returns this Collection.
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_List'>List</link></classname>
- </entry>
- <entry>
- <methodname>toList</methodname>
- ()
- </entry>
- <entry>
- converts this collection to List
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Set'>Set</link></classname>
- </entry>
- <entry>
- <methodname>toSet</methodname>
- ()
- </entry>
- <entry>
- converts this collection to Set
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_List'>List</link></classname>
- </entry>
- <entry>
- <methodname>flatten</methodname>
- ()
- </entry>
- <entry>
- returns a flatten List.
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Set'>Set</link></classname>
- </entry>
- <entry>
- <methodname>intersect</methodname>
- (<classname><link linkend='builtin_api_Collection'>Collection</link></classname>)
- </entry>
- <entry>
- returns a new Set, containing only the elements contained in this and the specified Collection
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_String'>String</link></classname>
- </entry>
- <entry>
- <methodname>toString</methodname>
- (<classname><link linkend='builtin_api_String'>String</link></classname>)
- </entry>
- <entry>
- concatenates each contained element (using toString()), separated by the specified String.
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Collection'>Collection</link></classname>
- </entry>
- <entry>
- <methodname>removeAll</methodname>
- (<classname><link linkend='builtin_api_Object'>Object</link></classname>)
- </entry>
- <entry>
- removes all elements contained in the specified collection from this Collection if contained (modifies it!). returns this Collection.
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Collection'>Collection</link></classname>
- </entry>
- <entry>
- <methodname>remove</methodname>
- (<classname><link linkend='builtin_api_Object'>Object</link></classname>)
- </entry>
- <entry>
- removes the specified element from this Collection if contained (modifies it!). returns this Collection.
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Set'>Set</link></classname>
- </entry>
- <entry>
- <methodname>without</methodname>
- (<classname><link linkend='builtin_api_Collection'>Collection</link></classname>)
- </entry>
- <entry>
- returns a new Set, containing all elements from this Collection without the elements from specified Collection
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Collection'>Collection</link></classname>
- </entry>
- <entry>
- <methodname>addAll</methodname>
- (<classname><link linkend='builtin_api_Collection'>Collection</link></classname>)
- </entry>
- <entry>
- adds all elements to the Collection (modifies it!). returns this Collection.
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Collection'>Collection</link></classname>
- </entry>
- <entry>
- <methodname>add</methodname>
- (<classname><link linkend='builtin_api_Object'>Object</link></classname>)
- </entry>
- <entry>
- adds an element to the Collection (modifies it!). returns this Collection.
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Set'>Set</link></classname>
- </entry>
- <entry>
- <methodname>union</methodname>
- (<classname><link linkend='builtin_api_Collection'>Collection</link></classname>)
- </entry>
- <entry>
- returns a new Set, containing all elements from this and the specified Collection
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Boolean'>Boolean</link></classname>
- </entry>
- <entry>
- <methodname>containsAll</methodname>
- (<classname><link linkend='builtin_api_Collection'>Collection</link></classname>)
- </entry>
- <entry>
- returns true if this collection contains each element contained in the specified collection. otherwise false. returns this Collection.
- </entry>
- </row>
- </tbody>
- </tgroup>
- </table>
-
-
- </para>
- </section>
-
-
- <section id="builtin_api_List">
- <title><classname>List</classname></title>
- <para>
- Supertype:
-<classname><link linkend='builtin_api_Collection'>Collection</link></classname>
- </para>
- <para>
-
-
- This type does not define any properties.
-
-
- </para>
- <para>
-
-
- <table frame='all' id="builtin_api_List_Operations">
- <title>Operations of <classname>List</classname></title>
- <?dbfo keep-together.within-column="auto" ?>
- <tgroup cols='3' align='left' colsep='1' rowsep='1'>
- <colspec colname='c1'/>
- <colspec colname='c2'/>
- <colspec colname='c3'/>
- <thead>
- <row>
- <entry>Return type</entry>
- <entry>Name</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>
- <classname><link linkend='builtin_api_List'>List</link></classname>
- </entry>
- <entry>
- <methodname>withoutFirst</methodname>
- ()
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Object'>Object</link></classname>
- </entry>
- <entry>
- <methodname>last</methodname>
- ()
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Integer'>Integer</link></classname>
- </entry>
- <entry>
- <methodname>indexOf</methodname>
- (<classname><link linkend='builtin_api_Object'>Object</link></classname>)
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_List'>List</link></classname>
- </entry>
- <entry>
- <methodname>withoutLast</methodname>
- ()
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Object'>Object</link></classname>
- </entry>
- <entry>
- <methodname>reverse</methodname>
- ()
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Object'>Object</link></classname>
- </entry>
- <entry>
- <methodname>first</methodname>
- ()
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Object'>Object</link></classname>
- </entry>
- <entry>
- <methodname>get</methodname>
- (<classname><link linkend='builtin_api_Integer'>Integer</link></classname>)
- </entry>
- <entry>
-
- </entry>
- </row>
- </tbody>
- </tgroup>
- </table>
-
-
- </para>
- </section>
-
-
- <section id="builtin_api_Set">
- <title><classname>Set</classname></title>
- <para>
- Supertype:
-<classname><link linkend='builtin_api_Collection'>Collection</link></classname>
- </para>
- <para>
-
-
- This type does not define any properties.
-
-
- </para>
- <para>
-
-
- This type does not define any operations.
-
-
- </para>
- </section>
-
-
- <section id="builtin_api_oaw::Type">
- <title><classname>oaw::Type</classname></title>
- <para>
- Supertype:
-<classname><link linkend='builtin_api_Object'>Object</link></classname>
- </para>
- <para>
-
-
- <table frame='all' id="builtin_api_oaw::Type_Properties">
- <title>Properties of <classname>oaw::Type</classname></title>
- <tgroup cols='3' align='left' colsep='1' rowsep='1'>
- <colspec colname='c1'/>
- <colspec colname='c2'/>
- <colspec colname='c3'/>
- <thead>
- <row>
- <entry>Type</entry>
- <entry>Name</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>
- <classname><link linkend='builtin_api_String'>String</link></classname>
- </entry>
- <entry>
- <methodname>name</methodname>
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Set'>Set</link></classname>
- </entry>
- <entry>
- <methodname>allStaticProperties</methodname>
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_String'>String</link></classname>
- </entry>
- <entry>
- <methodname>documentation</methodname>
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Set'>Set</link></classname>
- </entry>
- <entry>
- <methodname>superTypes</methodname>
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Set'>Set</link></classname>
- </entry>
- <entry>
- <methodname>allProperties</methodname>
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Set'>Set</link></classname>
- </entry>
- <entry>
- <methodname>allFeatures</methodname>
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Set'>Set</link></classname>
- </entry>
- <entry>
- <methodname>allOperations</methodname>
- </entry>
- <entry>
-
- </entry>
- </row>
- </tbody>
- </tgroup>
- </table>
-
-
- </para>
- <para>
-
-
- <table frame='all' id="builtin_api_oaw::Type_Operations">
- <title>Operations of <classname>oaw::Type</classname></title>
- <?dbfo keep-together.within-column="auto" ?>
- <tgroup cols='3' align='left' colsep='1' rowsep='1'>
- <colspec colname='c1'/>
- <colspec colname='c2'/>
- <colspec colname='c3'/>
- <thead>
- <row>
- <entry>Return type</entry>
- <entry>Name</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>
- <classname><link linkend='builtin_api_oaw::Operation'>oaw::Operation</link></classname>
- </entry>
- <entry>
- <methodname>getOperation</methodname>
- (<classname><link linkend='builtin_api_String'>String</link></classname>, <classname><link linkend='builtin_api_List'>List</link></classname>)
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_oaw::Feature'>oaw::Feature</link></classname>
- </entry>
- <entry>
- <methodname>getFeature</methodname>
- (<classname><link linkend='builtin_api_String'>String</link></classname>, <classname><link linkend='builtin_api_List'>List</link></classname>)
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Object'>Object</link></classname>
- </entry>
- <entry>
- <methodname>newInstance</methodname>
- ()
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_oaw::StaticProperty'>oaw::StaticProperty</link></classname>
- </entry>
- <entry>
- <methodname>getStaticProperty</methodname>
- (<classname><link linkend='builtin_api_String'>String</link></classname>)
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_oaw::Property'>oaw::Property</link></classname>
- </entry>
- <entry>
- <methodname>getProperty</methodname>
- (<classname><link linkend='builtin_api_String'>String</link></classname>)
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Boolean'>Boolean</link></classname>
- </entry>
- <entry>
- <methodname>isAssignableFrom</methodname>
- (<classname><link linkend='builtin_api_oaw::Type'>oaw::Type</link></classname>)
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Boolean'>Boolean</link></classname>
- </entry>
- <entry>
- <methodname>isInstance</methodname>
- (<classname><link linkend='builtin_api_Object'>Object</link></classname>)
- </entry>
- <entry>
-
- </entry>
- </row>
- </tbody>
- </tgroup>
- </table>
-
-
- </para>
- </section>
-
-
- <section id="builtin_api_oaw::Feature">
- <title><classname>oaw::Feature</classname></title>
- <para>
- Supertype:
-<classname><link linkend='builtin_api_Object'>Object</link></classname>
- </para>
- <para>
-
-
- <table frame='all' id="builtin_api_oaw::Feature_Properties">
- <title>Properties of <classname>oaw::Feature</classname></title>
- <tgroup cols='3' align='left' colsep='1' rowsep='1'>
- <colspec colname='c1'/>
- <colspec colname='c2'/>
- <colspec colname='c3'/>
- <thead>
- <row>
- <entry>Type</entry>
- <entry>Name</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>
- <classname><link linkend='builtin_api_String'>String</link></classname>
- </entry>
- <entry>
- <methodname>name</methodname>
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_oaw::Type'>oaw::Type</link></classname>
- </entry>
- <entry>
- <methodname>owner</methodname>
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_String'>String</link></classname>
- </entry>
- <entry>
- <methodname>documentation</methodname>
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_oaw::Type'>oaw::Type</link></classname>
- </entry>
- <entry>
- <methodname>returnType</methodname>
- </entry>
- <entry>
-
- </entry>
- </row>
- </tbody>
- </tgroup>
- </table>
-
-
- </para>
- <para>
-
-
- This type does not define any operations.
-
-
- </para>
- </section>
-
-
- <section id="builtin_api_oaw::Property">
- <title><classname>oaw::Property</classname></title>
- <para>
- Supertype:
-<classname><link linkend='builtin_api_oaw::Feature'>oaw::Feature</link></classname>
- </para>
- <para>
-
-
- This type does not define any properties.
-
-
- </para>
- <para>
-
-
- <table frame='all' id="builtin_api_oaw::Property_Operations">
- <title>Operations of <classname>oaw::Property</classname></title>
- <?dbfo keep-together.within-column="auto" ?>
- <tgroup cols='3' align='left' colsep='1' rowsep='1'>
- <colspec colname='c1'/>
- <colspec colname='c2'/>
- <colspec colname='c3'/>
- <thead>
- <row>
- <entry>Return type</entry>
- <entry>Name</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Object'>Object</link></classname>
- </entry>
- <entry>
- <methodname>get</methodname>
- (<classname><link linkend='builtin_api_Object'>Object</link></classname>)
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Void'>Void</link></classname>
- </entry>
- <entry>
- <methodname>set</methodname>
- (<classname><link linkend='builtin_api_Object'>Object</link></classname>, <classname><link linkend='builtin_api_Object'>Object</link></classname>)
- </entry>
- <entry>
-
- </entry>
- </row>
- </tbody>
- </tgroup>
- </table>
-
-
- </para>
- </section>
-
-
- <section id="builtin_api_oaw::Operation">
- <title><classname>oaw::Operation</classname></title>
- <para>
- Supertype:
-<classname><link linkend='builtin_api_oaw::Feature'>oaw::Feature</link></classname>
- </para>
- <para>
-
-
- This type does not define any properties.
-
-
- </para>
- <para>
-
-
- <table frame='all' id="builtin_api_oaw::Operation_Operations">
- <title>Operations of <classname>oaw::Operation</classname></title>
- <?dbfo keep-together.within-column="auto" ?>
- <tgroup cols='3' align='left' colsep='1' rowsep='1'>
- <colspec colname='c1'/>
- <colspec colname='c2'/>
- <colspec colname='c3'/>
- <thead>
- <row>
- <entry>Return type</entry>
- <entry>Name</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Object'>Object</link></classname>
- </entry>
- <entry>
- <methodname>evaluate</methodname>
- (<classname><link linkend='builtin_api_Object'>Object</link></classname>, <classname><link linkend='builtin_api_List'>List</link></classname>)
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_List'>List</link></classname>
- </entry>
- <entry>
- <methodname>getParameterTypes</methodname>
- ()
- </entry>
- <entry>
-
- </entry>
- </row>
- </tbody>
- </tgroup>
- </table>
-
-
- </para>
- </section>
-
-
- <section id="builtin_api_oaw::StaticProperty">
- <title><classname>oaw::StaticProperty</classname></title>
- <para>
- Supertype:
-<classname><link linkend='builtin_api_oaw::Feature'>oaw::Feature</link></classname>
- </para>
- <para>
-
-
- This type does not define any properties.
-
-
- </para>
- <para>
-
-
- <table frame='all' id="builtin_api_oaw::StaticProperty_Operations">
- <title>Operations of <classname>oaw::StaticProperty</classname></title>
- <?dbfo keep-together.within-column="auto" ?>
- <tgroup cols='3' align='left' colsep='1' rowsep='1'>
- <colspec colname='c1'/>
- <colspec colname='c2'/>
- <colspec colname='c3'/>
- <thead>
- <row>
- <entry>Return type</entry>
- <entry>Name</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Object'>Object</link></classname>
- </entry>
- <entry>
- <methodname>get</methodname>
- ()
- </entry>
- <entry>
- returns the static value
- </entry>
- </row>
- </tbody>
- </tgroup>
- </table>
-
-
- </para>
- </section>
-
-
- <section id="builtin_api_Void">
- <title><classname>Void</classname></title>
- <para>
- Supertype:
-<classname><link linkend='builtin_api_Object'>Object</link></classname>
- </para>
- <para>
-
-
- This type does not define any properties.
-
-
- </para>
- <para>
-
-
- This type does not define any operations.
-
-
- </para>
- </section>
-
-
- <section id="builtin_api_xtend::AdviceContext">
- <title><classname>xtend::AdviceContext</classname></title>
- <para>
- Supertype:
-<classname><link linkend='builtin_api_Object'>Object</link></classname>
- </para>
- <para>
-
-
- <table frame='all' id="builtin_api_xtend::AdviceContext_Properties">
- <title>Properties of <classname>xtend::AdviceContext</classname></title>
- <tgroup cols='3' align='left' colsep='1' rowsep='1'>
- <colspec colname='c1'/>
- <colspec colname='c2'/>
- <colspec colname='c3'/>
- <thead>
- <row>
- <entry>Type</entry>
- <entry>Name</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>
- <classname><link linkend='builtin_api_List'>List</link></classname>
- </entry>
- <entry>
- <methodname>paramTypes</methodname>
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_String'>String</link></classname>
- </entry>
- <entry>
- <methodname>name</methodname>
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_List'>List</link></classname>
- </entry>
- <entry>
- <methodname>paramNames</methodname>
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_List'>List</link></classname>
- </entry>
- <entry>
- <methodname>paramValues</methodname>
- </entry>
- <entry>
-
- </entry>
- </row>
- </tbody>
- </tgroup>
- </table>
-
-
- </para>
- <para>
-
-
- <table frame='all' id="builtin_api_xtend::AdviceContext_Operations">
- <title>Operations of <classname>xtend::AdviceContext</classname></title>
- <?dbfo keep-together.within-column="auto" ?>
- <tgroup cols='3' align='left' colsep='1' rowsep='1'>
- <colspec colname='c1'/>
- <colspec colname='c2'/>
- <colspec colname='c3'/>
- <thead>
- <row>
- <entry>Return type</entry>
- <entry>Name</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Object'>Object</link></classname>
- </entry>
- <entry>
- <methodname>proceed</methodname>
- (<classname><link linkend='builtin_api_List'>List</link></classname>)
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Object'>Object</link></classname>
- </entry>
- <entry>
- <methodname>proceed</methodname>
- ()
- </entry>
- <entry>
-
- </entry>
- </row>
- </tbody>
- </tgroup>
- </table>
-
-
- </para>
- </section>
-
-
- <section id="builtin_api_xpand2::Definition">
- <title><classname>xpand2::Definition</classname></title>
- <para>
- Supertype:
-<classname><link linkend='builtin_api_Object'>Object</link></classname>
- </para>
- <para>
-
-
- <table frame='all' id="builtin_api_xpand2::Definition_Properties">
- <title>Properties of <classname>xpand2::Definition</classname></title>
- <tgroup cols='3' align='left' colsep='1' rowsep='1'>
- <colspec colname='c1'/>
- <colspec colname='c2'/>
- <colspec colname='c3'/>
- <thead>
- <row>
- <entry>Type</entry>
- <entry>Name</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>
- <classname><link linkend='builtin_api_List'>List</link></classname>
- </entry>
- <entry>
- <methodname>paramTypes</methodname>
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_String'>String</link></classname>
- </entry>
- <entry>
- <methodname>name</methodname>
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_List'>List</link></classname>
- </entry>
- <entry>
- <methodname>paramNames</methodname>
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_oaw::Type'>oaw::Type</link></classname>
- </entry>
- <entry>
- <methodname>targetType</methodname>
- </entry>
- <entry>
-
- </entry>
- </row>
- </tbody>
- </tgroup>
- </table>
-
-
- </para>
- <para>
-
-
- <table frame='all' id="builtin_api_xpand2::Definition_Operations">
- <title>Operations of <classname>xpand2::Definition</classname></title>
- <?dbfo keep-together.within-column="auto" ?>
- <tgroup cols='3' align='left' colsep='1' rowsep='1'>
- <colspec colname='c1'/>
- <colspec colname='c2'/>
- <colspec colname='c3'/>
- <thead>
- <row>
- <entry>Return type</entry>
- <entry>Name</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Void'>Void</link></classname>
- </entry>
- <entry>
- <methodname>proceed</methodname>
- ()
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_String'>String</link></classname>
- </entry>
- <entry>
- <methodname>toString</methodname>
- ()
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Void'>Void</link></classname>
- </entry>
- <entry>
- <methodname>proceed</methodname>
- (<classname><link linkend='builtin_api_Object'>Object</link></classname>, <classname><link linkend='builtin_api_List'>List</link></classname>)
- </entry>
- <entry>
-
- </entry>
- </row>
- </tbody>
- </tgroup>
- </table>
-
-
- </para>
- </section>
-
-
- <section id="builtin_api_xpand2::Iterator">
- <title><classname>xpand2::Iterator</classname></title>
- <para>
- Supertype:
-<classname><link linkend='builtin_api_Object'>Object</link></classname>
- </para>
- <para>
-
-
- <table frame='all' id="builtin_api_xpand2::Iterator_Properties">
- <title>Properties of <classname>xpand2::Iterator</classname></title>
- <tgroup cols='3' align='left' colsep='1' rowsep='1'>
- <colspec colname='c1'/>
- <colspec colname='c2'/>
- <colspec colname='c3'/>
- <thead>
- <row>
- <entry>Type</entry>
- <entry>Name</entry>
- <entry>Description</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Boolean'>Boolean</link></classname>
- </entry>
- <entry>
- <methodname>lastIteration</methodname>
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Boolean'>Boolean</link></classname>
- </entry>
- <entry>
- <methodname>firstIteration</methodname>
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Integer'>Integer</link></classname>
- </entry>
- <entry>
- <methodname>elements</methodname>
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Integer'>Integer</link></classname>
- </entry>
- <entry>
- <methodname>counter0</methodname>
- </entry>
- <entry>
-
- </entry>
- </row>
- <row>
- <entry>
- <classname><link linkend='builtin_api_Integer'>Integer</link></classname>
- </entry>
- <entry>
- <methodname>counter1</methodname>
- </entry>
- <entry>
-
- </entry>
- </row>
- </tbody>
- </tgroup>
- </table>
-
-
- </para>
- <para>
-
-
- This type does not define any operations.
-
-
- </para>
- </section>
-
-
-</section>
diff --git a/doc/org.eclipse.xpand.doc/src/5.0/content/images/Xpand/metamodelexample.gif b/doc/org.eclipse.xpand.doc/src/5.0/content/images/Xpand/metamodelexample.gif
deleted file mode 100644
index 177c0f8..0000000
--- a/doc/org.eclipse.xpand.doc/src/5.0/content/images/Xpand/metamodelexample.gif
+++ /dev/null
Binary files differ
diff --git a/doc/org.eclipse.xpand.doc/src/5.0/content/xpand_reference.xml b/doc/org.eclipse.xpand.doc/src/5.0/content/xpand_reference.xml
deleted file mode 100644
index dd17c34..0000000
--- a/doc/org.eclipse.xpand.doc/src/5.0/content/xpand_reference.xml
+++ /dev/null
@@ -1,2846 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!DOCTYPE chapter [
-<!ENTITY % isopub SYSTEM "http://www.w3.org/2003/entities/iso8879/isopub.ent">
-%isopub;
-]>
-
-<chapter id="core_reference" xreflabel="Core reference">
- <title><emphasis>Check</emphasis> / <emphasis>Xtend</emphasis> /
- <emphasis>Xpand</emphasis> Reference</title>
-
- <section id="r10_introduction">
- <title>Introduction</title>
-
- <para>The oAW4 generator framework provides textual languages, that are useful in
- different contexts in the MDSD process (e.g. checks, extensions, code generation,
- model transformation). Each oAW language ( <emphasis>Check</emphasis>,
- <emphasis>Xtend</emphasis>, and <emphasis>Xpand</emphasis>) is built up on a
- common expression language and type system. Therefore, they can operate on the same
- models, metamodels and meta-metamodels and you do not need to learn the syntax again
- and again, because it is always the same.</para>
-
- <para>The expressions framework provides a uniform abstraction layer over different
- meta-meta-models (e.g. EMF Ecore, Eclipse UML, JavaBeans, XML Schema etc.).
- Additionally, it offers a powerful, statically typed expressions language, which
- is used in the various textual languages.</para>
- </section>
-
- <section id="r10_typesystem">
- <title>Type System</title>
-
- <para>The abstraction layer on API basis is called a type system. It provides access to
- built-in types and different registered metamodel implementations. These
- registered metamodel implementations offer access to the types they provide. The
- first part of this documentation describes the type system. The expression
- sub-language is described afterwards in the second part of this documentation. This
- differentiation is necessary because the type system and the expression language
- are two different things. The type system is a kind of reflection layer, that can be
- extended with metamodel implementations. The expression language defines a
- concrete syntax for executable expressions, using the type system.</para>
-
- <para>The Java API described here is located in the
- <package>org.openarchitectureware.type</package> package and is a part of the
- subproject
- <package>core-expressions</package>.</para>
-
- <section id="r10_typesystem_types">
- <title>Types</title>
-
- <para>Every object (e.g. model elements, values, etc.) has a type. A type contains
- properties and operations. In addition it might inherit from other types
- (multiple inheritance).</para>
-
- <section id="r10_typesystem_typenames">
- <title>Type Names</title>
-
- <para>Types have a simple Name (e.g. <classname>String</classname>) and an
- optional namespace used to distingish between two types with the same name (e.g.
- <classname>my::metamodel</classname>). The delimiter for name space
- fragments is a double colon " <classname>::</classname>". A fully qualified
- name looks like this:
- <programlisting language="xtend">
-
-
- my::fully::qualified::MetaType</programlisting></para>
-
- <para>The namespace and name used by a specific type is defined by the
- corresponding <classname>MetaModel</classname> implementation. The
- <classname>EmfMetaModel</classname>, for instance, maps
- <classname>EPackages</classname> to namespace and
- <classname>EClassifiers</classname> to names. Therefore, the name of the
- Ecore element <classname>EClassifier</classname> is called:</para>
-
- <programlisting>ecore::EClassifier</programlisting>
-
- <para>If you do not want to use namespaces (for whatever reason), you can always
- implement your own metamodel and map the names accordingly.</para>
- </section>
-
- <section id="r10_typesystem_collection_typenames">
- <title>Collection Type Names</title>
-
- <para>The built-in type system also contains the following collection types:
- <classname>Collection</classname>, <classname>List</classname> and
- <classname>Set</classname>. Because the expressions language is statically
- type checked and we do not like casts and
- <classname>ClassCastExceptions</classname>, we introduced the concept of
- <emphasis>parameterized types</emphasis>. The type system does not support
- full featured generics, because we do not need them.</para>
-
- <para>The syntax is:</para>
-
-
- <programlisting>Collection[my::Type] List[my::Type] Set[my::Type]
- </programlisting>
- </section>
-
- <section id="r10_typesystem_features">
- <title>Features</title>
-
- <para>Each type offers features. The type (resp. the metamodel) is responsible
- for mapping the features. There are three different kinds of features:
- <itemizedlist>
- <listitem> Properties </listitem>
-
- <listitem> Operations </listitem>
-
- <listitem> Static properties </listitem>
- </itemizedlist></para>
-
- <para> <emphasis>Properties</emphasis> are straight forward: They have a name
- and a type. They can be invoked on instances of the corresponding type. The same is
- true for <emphasis>Operations</emphasis>. But in contrast to properties,
- they can have parameters. <emphasis>Static properties</emphasis> are the
- equivalent to enums or constants. They must be invoked statically and they do not
- have parameters.</para>
- </section>
- </section>
-
- <section id="r10_builtintypes">
- <title>Built-In Types</title>
-
- <para>As mentioned before, the expressions framework has several built-in types
- that define operations and properties. In the following, we will give a rough
- overview of the types and their features. We will not document all of the operations
- here, because the built-.in types will evolve over time and we want to derive the
- documentation from the implementation (model-driven, of course). For a complete
- reference, consult the generated API documentation ( <ulink
- url="http://www.openarchitectureware.org/api/built-ins/"></ulink>
- ).</para>
-
- <section id="r10_builtintypes_object">
- <title> <classname>Object</classname>
- </title>
-
- <para> <classname>Object</classname> defines a couple of basic operations,
- like <methodname>equals()</methodname>. Every type has to extend
- <classname>Object</classname>.</para>
- </section>
-
- <section id="r10_builtintypes_void">
- <title> <classname>Void</classname>
- </title>
-
- <para>The <classname>Void</classname> type can be specified as the return type
- for operations, although it is not recommended, because whenever possible
- expressions should be free of side effects whenever possible.</para>
- </section>
-
- <section id="r10_builtintypes_simple">
- <title>Simple types (Data types)</title>
-
- <para>The type system doesn't have a concept data type. Data types are just types.
- As in OCL, we support the following types: <classname>String</classname>,
- <classname>Boolean</classname>, <classname>Integer</classname>,
- <classname>Real</classname>.
- <itemizedlist>
- <listitem> <classname>String</classname> : A rich and convenient
- <classname>String</classname> library is especially important for code
- generation. The type system supports the '+' operator for concatenation,
- the usual <classname>java.lang.String</classname> operations (
- <methodname>length()</methodname> , etc.) and some special operations
- (like <methodname>toFirstUpper()</methodname> ,
- <methodname>toFirstLower()</methodname> , regular expressions, etc.
- often needed in code generation templates). </listitem>
-
- <listitem> <classname>Boolean</classname> :
- <classname>Boolean</classname> offers the usual operators (Java
- syntax): &amp;&amp;, ||, !, etc. </listitem>
-
- <listitem> <classname>Integer</classname> and
- <classname>Real</classname> : <classname>Integer</classname> and
- <classname>Real</classname> offer the usual compare operators
- (&lt;,&gt;,&lt;=,&gt;=) and simple arithmetics (+,-,*,/). Note that
- <emphasis> <classname>Integer</classname> extends
- <classname>Real</classname></emphasis> ! </listitem>
- </itemizedlist></para>
- </section>
-
- <section id="r10_builtintypes_collections">
- <title>Collection types</title>
-
- <para>The type system has three different Collection types.
- <classname>Collection</classname> is the base type, it provides several
- operations known from <classname>java.util.Collection</classname>. The
- other two types ( <classname>List</classname>, <classname>Set</classname>
- ) correspond to their
- <package>java.util</package> equivalents, too.</para>
- </section>
-
- <section id="r10_builtintypes_typesystem_types">
- <title>Type system types</title>
-
- <para>The type system describes itself, hence, there are types for the different
- concepts. These types are needed for reflective programming. To avoid
- confusion with metatypes with the same name (it is not unusual to have a metatype
- called <classname>Operation</classname>, for instance) we have prefixed all
- of the types with the namespace <classname>oaw</classname>. We have:</para>
-
- <itemizedlist>
- <listitem> <classname>oaw::Type</classname>
- </listitem>
-
- <listitem> <classname>oaw::Feature</classname>
- </listitem>
-
- <listitem> <classname>oaw::Property</classname>
- </listitem>
-
- <listitem> <classname>oaw::StaticProperty</classname>
- </listitem>
-
- <listitem> <classname>oaw::Operation</classname>
- </listitem>
- </itemizedlist>
- </section>
- </section>
-
- <section id="r10_metamodel_implementations">
- <title>Metamodel Implementations (also known as Meta-Metamodels)</title>
-
- <para>By default, the type system only knows the built-in types. In order to register
- your own metatypes (e.g. <classname>Entity</classname> or
- <classname>State</classname>), you need to register a respective metamodel
- implementation with the type system. Within a metamodel implementation the oAW
- type system elements (Type, Property, Operation) are mapped to an arbitrary other
- type system (Java reflections, Ecore or XML Schema).</para>
-
- <section id="r10_metamodel_example_java">
- <title>Example JavaMetaModel</title>
-
- <para>For instance, if you want to have the following JavaBean act as a metatype
- (i.e. your model contains instances of the type):</para>
-
- <programlisting language="java">
-
- public class Attribute { private String name;
- private String type; public String getName() { return name; } public void
- setName(String name) { this.name = name; } public String getType() { return type; }
- public void setType(String type) { this.type = type; } } </programlisting>
-
- <para>You need to use the <classname>JavaMetaModel</classname>
- implementation which uses the ordinary Java reflection layer in order to map
- access to the model.</para>
-
- <para>So, if you have the following expression in e.g.
- <emphasis>Xpand</emphasis>:</para>
-
- <programlisting>myattr.name.toFirstUpper()</programlisting>
-
- <para>and <varname>myattr</varname> is the name of a local variable pointing to
- an instance of <classname>Attribute</classname>. The oAW type system asks the
- metamodel implementations, if they 'know' a type for the instance of Attribute.
- If you have the <classname>JavaMetaModel</classname> registered it will
- return an <classname>oaw::Type</classname> which maps to the underlying Java
- class. When the type is asked if it knows a property ' <varname>name</varname>',
- it will inspect the Java class using the Java reflection API.</para>
-
- <para>The JavaMetaModel implementation shipped with oAW can be configured with a
- strategy [GOF95-Pattern] in order to control or change the mapping. For
- instance, the JavaBeansStrategy maps getter and setter methods to simple
- properties, so we would use this strategy for the example above.</para>
- </section>
-
- <section id="r10_metamodel_contributors">
- <title>Eclipse IDE MetaModelContributors</title>
-
- <para>You should know that for each <classname>Metamodel</classname>
- implementation you use at runtime, you need to have a so called
- <classname>MetamodelContributor</classname> extension for the plugins to
- work with. If you just use one of the standard metamodel implementations (EMF,
- UML2 or Java) you don't have to worry about it, since oAW is shipped with
- respective MetamodelContributors (see the corresponding docs for details).
- If you need to implement your own
- <classname>MetamodelContributor</classname> you should have a look at the
- Eclipse plug-in reference doc.</para>
- </section>
-
- <section id="r10_metamodel_workflow">
- <title>Configuring Metamodel implementations with the workflow</title>
-
- <para>You need to configure your oAW language components with the respective
- metamodel implementations.</para>
-
- <para>A possible configuration of the <classname>Xpand2</classname>
- generator component looks like this:</para>
-
- <programlisting language="xml">
-
- &lt;component
- class="oaw.xpand2.Generator"&gt;
- &lt;metaModel class="oaw.type.emf.EmfMetaModel"&gt;
- &lt;metaModelPackage value="my.generated.MetaModel1Package"/&gt;
- &lt;/metaModel&gt;
- &lt;metaModel class="oaw.type.emf.EmfMetaModel"&gt;
- &lt;metaModelFile value="my/java/package/metamodel2.ecore"/&gt;
- &lt;/metaModel&gt; ...
- &lt;/component&gt; </programlisting>
-
- <para>In this example the <classname>EmfMetaModel</classname>
- implementation is configured two times. This means that we want to use two
- metamodels at the same time, both based on EMF. The metaModelPackage property is
- a property that is specific to the <classname>EmfMetaModel</classname>
- (located in the <filename>core.emftools</filename> project). It points to
- the generated <classname>EPackages</classname> interface. The second meta
- model is configured using the Ecore file. You do no need to have a generated Ecore
- model for oAW in order to work. The <classname>EmfMetaModel</classname> works
- with dynamic EMF models just as it works with generated EMF models.</para>
- </section>
- </section>
-
- <section id="r10_using_different_metamodels">
- <title>Using different Metamodel implementations (also known as
- Meta-Metamodels)</title>
-
- <para>With oAW you can work on different kinds of Model representations at the same
- time in a transparent manner. One can work with EMF models, XML DOM models, and
- simple JavaBeans in the same Xpand-Template. You just need to configure the
- respective MetaModel implementations.</para>
-
- <para>If you want to do so you need to know how the type lookup works. Let us assume that
- we have an EMF metamodel and a model based on some Java classes. Then the following
- would be a possible configuration:</para>
-
- <programlisting language="xml">
-
- &lt;component
- class="oaw.xpand2.Generator"&gt;
- &lt;metaModel class="oaw.type.impl.java.JavaMetaModel"/&gt;
- &lt;metaModel class="oaw.type.emf.EmfMetaModel"&gt;
- &lt;metaModelFile value="my/java/package/metamodel.ecore"/&gt;
- &lt;/metaModel&gt;
- ...
- &lt;/component&gt; </programlisting>
-
- <para>When the oAW runtime needs to access a property of a given object, it asks the
- metamodels in the configured order. Let us assume that our model element is an
- instance of the Java type
- <classname>org.eclipse.emf.ecore.EObject</classname> and it is a dynamic
- instance of an EMF EClass <classname>MyType</classname>.</para>
-
- <para>We have <emphasis>three</emphasis> Metamodels:
- <orderedlist>
- <listitem> Built-Ins (always the first one) </listitem>
-
- <listitem> JavaMetaModel </listitem>
-
- <listitem> EMFMetaModel &ndash; metamodel.ecore </listitem>
- </orderedlist></para>
-
- <para>The first one will return the type <classname>Object</classname> (not
- <classname>java.lang.Object</classname> but
- <classname>Object</classname> of oAW). At this point the type
- <classname>Object</classname> best fits the request, so it will act as the
- desired type.</para>
-
- <para>The second metamodel returns an oAW type called
- <classname>oaw::eclipse::emf::ecore::EObject</classname> The type system
- will check if the returned type is a specialization of the current 'best-fit' type (
- <classname>Object</classname>). It is, because it extends
- <classname>Object</classname> (Every metatype has to extend
- <classname>Object</classname>). At this time the type system assumes
- <classname>oaw::eclipse::emf::ecore::EObject</classname> to be the desired
- type.</para>
-
- <para>The third metamodel will return
- <classname>metamodel::MyType</classname> which is the desired type. But
- unfortunately it doesn't extend
- <classname>org::eclipse::emf::ecore::EObject</classname> as it has nothing
- to do with those Java types. Instead it extends
- <classname>emf::EObject</classname> which extends
- <classname>Object</classname>.</para>
-
- <para>We need to swap the configuration of the two metamodels to get the desired
- type.</para>
-
- <programlisting language="xml">
-
- &lt;component
- class="oaw.xpand2.Generator"&gt;
- &lt;metaModel class="oaw.type.emf.EmfMetaModel"&gt;
- &lt;metaModelFile value="my/java/package/metamodel.ecore"/&gt;
- &lt;/metaModel&gt;
- &lt;metaModel class="oaw.type.impl.java.JavaMetaModel"/&gt;
- ...
- &lt;/component&gt;</programlisting>
- </section>
- </section>
-
- <section id="r10_expressions_language" xreflabel="Expressions">
- <title>Expressions</title>
-
- <para>The oAW expression sub-language is a syntactical mixture of Java and OCL. This
- documentation provides a detailed description of each available expression. Let us
- start with some simple examples.</para>
-
- <para>Accessing a property:</para>
-
- <programlisting>myModelElement.name</programlisting>
-
- <para>Accessing an operation:</para>
-
- <programlisting>myModelElement.doStuff()</programlisting>
-
- <para>simple arithmetic:</para>
-
- <programlisting>1 + 1 * 2</programlisting>
-
- <para>boolean expressions (just an example:-)):</para>
-
-
- <programlisting>!('text'.startsWith('t') &amp;&amp; ! false)</programlisting>
-
- <section id="r10_expressions_builtin">
- <title>Literals and special operators for built-in types</title>
-
- <para>There are several literals for built-in types:</para>
-
- <section id="r10_expressions_builtin_object">
- <title> <classname>Object</classname>
- </title>
-
- <para>There are naturally no literals for object, but we have two
- operators:</para>
-
- <para>equals:</para>
-
- <programlisting>obj1 == obj2</programlisting>
-
- <para>not equals:</para>
-
- <programlisting>obj1 != obj2</programlisting>
- </section>
-
- <section id="r10_expressions_builtin_void">
- <title> <classname>Void</classname>
- </title>
-
- <para>The only possible instance of <classname>Void</classname> is the
- <varname>null</varname> reference. Therefore, we have one literal:</para>
-
- <programlisting>null</programlisting>
- </section>
-
- <section id="r10_expressions_builtin_typeliterals">
- <title>Type literals</title>
-
- <para>The literal for types is just the name of the type (no '.class' suffix, etc.).
- Example:</para>
-
-
- <programlisting>String // the type string my::special::Type // evaluates to the
- type 'my::special::Type'</programlisting>
- </section>
-
- <section id="r10_expressions_builtin_staticproperties">
- <title>StaticProperty literals</title>
-
- <para>The literal for static properties (aka enum literals) is correlative to
- type literals:</para>
-
- <programlisting>my::Color::RED</programlisting>
- </section>
-
- <section id="r10_expressions_builtin_string">
- <title> <classname>String</classname>
- </title>
-
- <para>There are two different literal syntaxes (with the same
- semantics):</para>
-
-
- <programlisting>S'a String literal' "a String literal" // both are
- okay</programlisting>
-
- <para>For Strings the expression sub-language supports the plus operator that is
- overloaded with concatenation:</para>
-
-
- <programlisting>'my element '+ ele.name +' is really cool!'</programlisting>
-
- <para>Note, that multi-line Strings are supported.</para>
- </section>
-
- <section id="r10_expressions_builtin_boolean">
- <title> <classname>Boolean</classname>
- </title>
-
- <para>The boolean literals are:</para>
-
- <programlisting>true false</programlisting>
-
- <para>Operators are:</para>
-
-
- <programlisting>true &amp;&amp; false // AND true || false // OR ! true //
- NOT</programlisting>
- </section>
-
- <section id="r10_expressions_builtin_numeric">
- <title> <classname>Integer</classname> and <classname>Real</classname>
- </title>
-
- <para>The syntax for integer literals is as expected:</para>
-
-
- <programlisting>// integer literals 3 57278 // real literals 3.0 0.75
- </programlisting>
-
- <para>Additionally, we have the common arithmetic operators:</para>
-
-
- <programlisting>3 + 4 // addition 4 - 5 // subtraction 2 * 6 // multiplication 3 / 64 //
- divide // Unary minus operator - 42 - 47.11 </programlisting>
-
- <para>Furthermore, the well known compare operators are defined:</para>
-
-
- <programlisting>4 &gt; 5 // greater than 4 &lt; 5 // smaller than 4 &gt;= 23 // greater
- equals than 4 &lt;= 12 // smaller equals than </programlisting>
- </section>
-
- <section id="r10_expressions_builtin_collections">
- <title>Collections</title>
-
- <para>There is a literal for lists:</para>
-
-
- <programlisting>{1,2,3,4} // a list with four integers</programlisting>
-
- <para>There is no other special concrete syntax for collections. If you need a set,
- you have to call the <methodname>toSet()</methodname> operation on the list
- literal:</para>
-
-
- <programlisting>{1,2,4,4}.toSet() // a set with 3(!) integers</programlisting>
- </section>
- </section>
-
- <section id="r10_expressions_collection_operations">
- <title>Special Collection operations</title>
-
- <para>Like OCL, the oAW expression sub-language defines several special
- operations on collections. However, those operations are not members of the type
- system, therefore you cannot use them in a reflective manner.</para>
-
- <section id="r10_expressions_collection_select">
- <title> <methodname>select</methodname>
- </title>
-
- <para>Sometimes, an expression yields a large collection, but one is only
- interested in a special subset of the collection. The expression sub-language
- has special constructs to specify a selection out of a specific collection.
- These are the <methodname>select</methodname> and
- <methodname>reject</methodname> operations. The select specifies a subset
- of a collection. A <methodname>select</methodname> is an operation on a
- collection and is specified as follows:</para>
-
-
- <programlisting>collection.select(v |
- boolean-expression-with-v)</programlisting>
-
- <para> <methodname>select</methodname> returns a sublist of the specified
- collection. The list contains all elements for which the evaluation of
- boolean-expression-with-v results is <varname>true</varname>.
- Example:</para>
-
-
- <programlisting>{1,2,3,4}.select(i | i &gt;= 3) // returns
- {3,4}</programlisting>
- </section>
-
- <section id="r10_expressions_collection_typeselect">
- <title> <methodname>typeSelect</methodname>
- </title>
-
- <para>A special version of a select expression is
- <methodname>typeSelect</methodname>. Rather than providing a boolean
- expression a class name is here provided.</para>
-
- <programlisting>collection.typeSelect(classname) </programlisting>
-
- <para> <methodname>typeSelect</methodname> returns that sublist of the
- specified collection, that contains only objects which are an instance of the
- specified class (also inherited).</para>
- </section>
-
- <section id="r10_expressions_collection_reject">
- <title> <methodname>reject</methodname>
- </title>
-
- <para>The <methodname>reject</methodname> operation is similar to the
- <methodname>select</methodname> operation, but with
- <methodname>reject</methodname> we get the subset of all the elements of the
- collection for which the expression evaluates to <varname>false</varname>.
- The <methodname>reject</methodname> syntax is identical to the
- <methodname>select</methodname> syntax:</para>
-
-
- <programlisting>collection.reject(v |
- boolean-expression-with-v)</programlisting>
-
- <para>Example:</para>
-
-
- <programlisting>{1,2,3,4}.reject(i | i &gt;= 3) // returns
- {1,2}</programlisting>
- </section>
-
- <section id="r10_expressions_collection_collect">
- <title> <methodname>collect</methodname>
- </title>
-
- <para>As shown in the previous section, the <methodname>select</methodname>
- and <methodname>reject</methodname> operations always result in a
- sub-collection of the original collection. Sometimes one wants to specify a
- collection which is derived from another collection, but which contains
- objects that are not in the original collection (it is not a sub-collection). In
- such cases, we can use a <methodname>collect</methodname> operation. The
- <methodname>collect</methodname> operation uses the same syntax as the
- <methodname>select</methodname> and <methodname>reject</methodname> and
- is written like this:</para>
-
-
- <programlisting>collection.collect(v | expression-with-v)</programlisting>
-
- <para> <methodname>collect</methodname> again iterates over the target
- collection and evaluates the given expression on each element. In contrast to
- <methodname>select</methodname>, the evaluation result is collected in a
- list. When an iteration is finished the list with all results is returned.
- Example:</para>
-
-
- <programlisting>namedElements.collect(ne | ne.name) // returns a list of strings
- </programlisting>
- </section>
-
- <section id="r10_expressions_collection_collect_shorthand">
- <title>Shorthand for <methodname>collect</methodname> (and more than
- that)</title>
-
- <para>As navigation through many objects is very common, there is a shorthand
- notation for collect that makes the expressions more readable. Instead
- of</para>
-
-
- <programlisting>self.employee.collect(e | e.birthdate) </programlisting>
-
- <para>one can also write:</para>
-
- <programlisting>self.employee.birthdate</programlisting>
-
- <para>In general, when a property is applied to a collection of Objects, it will
- automatically be interpreted as a <methodname>collect</methodname> over the
- members of the collection with the specified property.</para>
-
- <para>The syntax is a shorthand for <methodname>collect</methodname>, if the
- feature does not return a collection itself. But sometimes we have the
- following:</para>
-
-
- <programlisting>self.buildings.rooms.windows // returns a list of
- windows</programlisting>
-
- <para>This syntax works, but one cannot express it using the
- <methodname>collect</methodname> operation in an easy way.</para>
- </section>
-
- <section id="r10_expressions_collection_forall">
- <title> <methodname>forAll</methodname>
- </title>
-
- <para>Often a boolean expression has to be evaluated for all elements in a
- collection. The <methodname>forAll</methodname> operation allows
- specifying a Boolean expression, which must be <varname>true</varname> for
- all objects in a collection in order for the <methodname>forAll</methodname>
- operation to return <varname>true</varname>:</para>
-
-
- <programlisting>collection.forAll(v |
- boolean-expression-with-v)</programlisting>
-
- <para>The result of <methodname>forAll</methodname> is
- <varname>true</varname> if
- <varname>boolean-expression-with-v</varname> is <varname>true
- </varname>for all the elements contained in a collection. If
- <varname>boolean-expression-with-v</varname> is
- <varname>false</varname> for one or more of the elements in the collection,
- then the <methodname>forAll</methodname> expression evaluates to
- <varname>false</varname>.</para>
-
- <para>Example:</para>
-
-
- <programlisting>{3,4,500}.forAll(i | i &lt; 10) // evaluates to false (500 &lt; 10
- is false)</programlisting>
- </section>
-
- <section id="r10_expressions_collection_exists">
- <title> <methodname>exists</methodname>
- </title>
-
- <para>Often you will need to know whether there is at least one element in a
- collection for which a boolean is <varname>true</varname>. The exists
- operation allows you to specify a Boolean expression which must be
- <varname>true</varname> for at least one object in a collection:</para>
-
-
- <programlisting>collection.exists(v |
- boolean-expression-with-v)</programlisting>
-
- <para>The result of the exists operation is <varname>true</varname> if
- <varname>boolean-expression-with-v</varname> is
- <varname>true</varname> for at least one element of collection. If the
- <varname>boolean-expression-with-v</varname> is
- <varname>false</varname> for all elements in collection, then the complete
- expression evaluates to <varname>false</varname>.</para>
-
- <para>Example:</para>
-
-
- <programlisting>{3,4,500}.exists(i | i &lt; 10) // evaluates to true (e.g. 3 &lt; 10
- is true)</programlisting>
- </section>
-
- <section id="r10_expressions_collection_sortby">
- <title> <methodname>sortBy</methodname> <footnote>
- <para>since 4.1.2</para> </footnote>
- </title>
-
- <para>If you want to sort a list of elements, you can use the higher order function
- <methodname>sortBy</methodname>. The list you invoke the
- <methodname>sortBy</methodname> operation on, is sorted by the results of the
- given expression.</para>
-
- <para>Example:</para>
-
-
- <programlisting>myListOfEntity.sortBy(entity |
- entity.name)</programlisting>
-
- <para>In the example the list of entities is sorted by the name of the entities. Note
- that there is no such <classname>Comparable</classname> type in oaw. If the
- values returned from the expression are instances of
- <classname>java.util.Comparable</classname> the
- <methodname>compareTo</methodname> method is used, otherwise
- <methodname>toString()</methodname> is invoked and the the result is
- used.</para>
-
- <para>More Examples &ndash; all the following expressions return
- <varname>true</varname>:</para>
-
-
- <programlisting>{'C','B','A'}.sortBy(e | e) == {'A','B','C'}
- {'AAA','BB','C'}.sortBy(e | e.length) == {'C','BB','AAA'}
- {5,3,1,2}.sortBy(e | e) == {1,2,3,5} {5,3,1,2}.sortBy(e | e - 2 * e) == {5,3,2,1}
- ...</programlisting>
- </section>
- </section>
-
- <section id="r10_expressions_if">
- <title> <methodname>if</methodname> expression</title>
-
- <para>There are two different forms of conditional expressions. The first one is the
- so-called <emphasis>if expression</emphasis>. Syntax:</para>
-
-
- <programlisting>condition ? thenExpression : elseExpression</programlisting>
-
- <para>Example:</para>
-
- <programlisting>name != null ? name : 'unknown'</programlisting>
- </section>
-
- <section id="r10_expressions_switch">
- <title> <methodname>switch</methodname> expression</title>
-
- <para>The other one is called <emphasis>switch expression</emphasis>.
- Syntax:</para>
-
-
- <programlisting>switch (expression) { (case expression : thenExpression)* default
- : catchAllExpression }</programlisting>
-
- <para>The default part is mandatory, because <methodname>switch</methodname> is
- an expression, therefore it needs to evaluate to something in any case.
- Example:</para>
-
-
- <programlisting>switch (person.name) { case 'Hansen' : 'Du kanns platt schnacken'
- default : 'Du kanns mi nech verstohn!' }</programlisting>
-
- <para>There is an abbreviation for <emphasis>Boolean</emphasis>
- expressions:</para>
-
-
- <programlisting>switch { case booleanExpression : thenExpression default :
- catchAllExpression } </programlisting>
- </section>
-
- <section id="r10_expressions_chain">
- <title>Chain expression</title>
-
- <para>Expressions and functional languages should be free of side effects as far as
- possible. But sometimes there you need invocations that do have side effects. In
- some cases expressions even don not have a return type (i.e. the return type is
- <classname>Void</classname>). If you need to call such operations, you can use
- the chain expression. Syntax:</para>
-
-
- <programlisting>anExpr -&gt; anotherExpr -&gt; lastExpr </programlisting>
-
- <para>Each expression is evaluated in sequence, but only the result of the last
- expression is returned. Example:</para>
-
- <programlisting>pers.setName('test') -&gt; pers</programlisting>
-
- <para>This chain expression will set the <varname>name</varname> of the person
- first, before it returns the person object itself.</para>
- </section>
-
- <section id="r10_expressions_create">
- <title> <methodname>create</methodname> expression</title>
-
- <para>The <methodname>create</methodname> expression is used to instantiate new
- objects of a given type:</para>
-
- <programlisting>new TypeName</programlisting>
- </section>
-
- <section id="r10_expressions_let">
- <title> <methodname>let</methodname> expression</title>
-
- <para>The <methodname>let</methodname> expression lets you define local
- variables. Syntax is as follows:</para>
-
-
- <programlisting>let v = expression in expression-with-v </programlisting>
-
- <para>This is especially useful together with a chain- and a create expressions.
- Example:</para>
-
-
- <programlisting>let p = new Person in p.name('John Doe') -&gt; p.age(42) -&gt;
- p.city('New York') -&gt; p</programlisting>
- </section>
-
- <section id="r10_expressions_globalvar">
- <title>'GLOBALVAR' expression</title>
-
- <para>Sometimes you don't want to pass everything down the call stack by parameter.
- Therefore, we have the <methodname>GLOBALVAR</methodname> expression. There
- are two things you need to do, to use global variables within one of the
- openArchitectureWare languages ( <emphasis>Check</emphasis>,
- <emphasis>Xtend</emphasis> or <emphasis>Xpand</emphasis>).</para>
-
- <section id="r10_expressions_globalvar_workflow">
- <title>Using GLOBALVARS to configure workflows</title>
-
- <para>Each workflow component using the expression framework (
- <emphasis>Xpand</emphasis>, <emphasis>Check</emphasis> and
- <emphasis>Xtend</emphasis>) can be configured with global variables. Here is
- an example:</para>
-
- <programlisting language="xml">
-
- &lt;workflow&gt; .... stuff
- &lt;component class="oaw.xpand2.Generator"&gt; ... usual stuff (see ref doc)
- &lt;globalVarDef name="MyPSM" value="slotNameOfPSM"/&gt;
- &lt;globalVarDef name="ImplClassSuffix" value="'Impl'"/&gt;
- &lt;/component&gt;
- &lt;/workflow&gt;</programlisting>
-
- <para>If you have injected global variables into the respective component, you
- can call them using the following syntax:</para>
-
- <programlisting>GLOBALVAR ImplClassSuffix</programlisting>
-
- <para>Note, we don't have any static type information. Therefore
- <classname>Object</classname> is assumed. So, you have to down cast the global
- variable to the intended type:</para>
-
- <programlisting>((String) GLOBALVAR ImplClassSuffix)</programlisting>
-
- <para>It is good practice to type it once, using an Extension and then always refer
- to that extension:</para>
-
- <programlisting language="xtend">
-
- String implClassSuffix() : GLOBALVAR
- ImplClassSuffix; // usage of the typed global var extension ImplName(Class c) :
- name+implClassSuffix();</programlisting>
- </section>
- </section>
-
- <section id="r10_expressions_multidispatch">
- <title>Multi methods (multiple dispatch)</title>
-
- <para>The expressions language supports multiple dispatching. This means that
- when there is a bunch of overloaded operations, the decision which operation has to
- be resolved is based on the dynamic type of all parameters (the implicit '
- <varname>this</varname>' included).</para>
-
- <para>In Java only the dynamic type of the ' <varname>this</varname>' element is
- considered, for parameters the static type is used. (this is called single
- dispatch)</para>
-
- <para>Here is a Java example:</para>
-
- <programlisting language="xtend">
-
- class MyClass { boolean equals(Object o) { if (o
- instanceof MyClass) { return equals((MyClass)o); } return super.equals(o); }
- boolean equals(MyType mt) { //implementation... } } </programlisting>
-
- <para>The method <methodname>equals(Object o)</methodname> would not have to be
- overwritten, if Java would support multiple dispatch.</para>
- </section>
-
- <section id="r10_expressions_casting">
- <title>Casting</title>
-
- <para>The expression language is statically type checked. Although there are many
- concepts that help the programmer to have really good static type information,
- sometimes. one knows more about the real type than the system. To explicitly give
- the system such an information casts are available. <emphasis>Casts are 100%
- static, so you do not need them, if you never statically typecheck your
- expressions! </emphasis></para>
-
- <para>The syntax for casts is very Java-like:</para>
-
-
- <programlisting>
- ((String)unTypedList.get(0)).toUpperCase()</programlisting>
- </section>
- </section>
-
- <section id="Check_language" xreflabel="Check language">
- <title> <emphasis>Check</emphasis>
- </title>
-
- <para>openArchitectureWare also provides a language to specify constraints that the
- model has to fulfill in order to be correct. This language is very easy to understand
- and use. Basically, it is built around the expression syntax that has been discussed
- in detail in the previous section. Constraints specified in the
- <emphasis>Check</emphasis> language have to be stored in files with the file
- extension <filename>.chk</filename>. Furthermore, these files have to be on the
- Java classpath, of course, in order to be found. Let us look at an example, in order to
- understand, what these constraints look like and what they do:
- <programlisting language="check">
-
- import data; context Attribute ERROR "Names have
- to be more than one character long." : name.length &gt; 1;</programlisting>Now,
- let us look at the example line by line:
- <orderedlist>
- <listitem>
- <para>First, the metamodel has to be imported.</para>
- </listitem>
-
- <listitem>
- <para>Then, the context is specified for which the constraint applies. In other
- words, after the
- <code>context</code> keyword, we put the name of the metaclass that is going
- to be checked by the constraint. Then, there follows either
- <code>ERROR</code> or
- <code>WARNING</code>, These keywords specify what kind of action will be
- taken in case the constraint fails:
- <table frame="all">
- <title>Types of action for <emphasis>Check</emphasis>
- constraints</title>
-
- <tgroup cols="2" colsep="1" rowsep="1">
- <colspec colnum="2" colwidth="7*"/>
-
- <tbody>
- <row>
- <entry>
- <code>WARNING</code>
- </entry>
-
- <entry>If the constraint fails, the specified message is printed,
- but the workflow execution is not stopped.</entry>
- </row>
-
- <row>
- <entry>
- <code>ERROR</code>
- </entry>
-
- <entry>If the constraint fails, the specified message is printed
- and all further processing is stopped.</entry>
- </row>
- </tbody>
- </tgroup>
- </table></para>
- </listitem>
-
- <listitem>
- <para>Now, the message that is put in case that the constraint fails is specified
- as a string. It is possible to include the value of attributes or the return
- value of functions into the message in order to make the message more clear. For
- example, it would be possible to improve the above example by rewriting it like
- this:</para>
-
- <programlisting language="check">
-
- import data; context Attribute ERROR "Name
- of '" + name + "too short. Names have to be more than one character long." :
- name.length &gt; 1;</programlisting>
- </listitem>
-
- <listitem>
- <para>Finally, there is the condition itself, which is specified by an
- expression, which has been discussed in detail in the previous section. If
- this expression is <varname>true</varname>, the constraint is
- fulfilled.</para>
- </listitem>
- </orderedlist></para>
-
- <para> <important>
- <para>Please always keep in mind that the message that is associated with the
- constraint is printed, if the condition of the constraint is
- <varname>false</varname>! Thus, if the specified constraint condition is
- <varname>true</varname>, nothing will be printed out and the constraint will be
- fulfilled.</para> </important> </para>
- </section>
-
- <section id="Xtend_language" xreflabel="Xtend">
- <title> <emphasis>Xtend</emphasis>
- </title>
-
- <para>Like the expressions sublanguage that summarizes the syntax of expressions for
- all the other textual languages delivered with the openArchitectureWare
- framework, there is another commonly used language called
- <emphasis>Xtend</emphasis>.</para>
-
- <para>This language provides the possibility to define rich libraries of independent
- operations and no-invasive metamodel extensions based on either Java methods or oAW
- expressions. Those libraries can be referenced from all other textual languages,
- that are based on the expressions framework.</para>
-
- <section>
- <title>Extend files</title>
-
- <para>An extend file must reside in the Java class path of the used execution context.
- Additionally it is file extension must be <filename>*.ext</filename>. Let us
- have a look at an extend file.</para>
-
-
- <programlisting>import my::metamodel;extension other::ExtensionFile;
- /** * Documentation */ anExpressionExtension(String stringParam) :
- doingStuff(with(stringParam)) ;
- /** * java extensions are just mappings */ String aJavaExtension(String param) :
- JAVA my.JavaClass.staticMethod(java.lang.String) ; </programlisting>
-
- <para>The example shows the following statements:</para>
-
- <orderedlist>
- <listitem>
- <para>import statements</para>
- </listitem>
-
- <listitem>
- <para>extension import statements</para>
- </listitem>
-
- <listitem>
- <para>expression or java extensions</para>
- </listitem>
- </orderedlist>
- </section>
-
- <section>
- <title>Comments</title>
-
- <para>We have single- and multi-line comments. The syntax for single line comments
- is:</para>
-
- <programlisting>// my comment</programlisting>
-
- <para>Multi line comments are written like this:</para>
-
- <programlisting>/* My multi line comment */</programlisting>
- </section>
-
- <section>
- <title>Import Statements</title>
-
- <para>Using the import statement one can import name spaces of different types.(see
- expressions framework reference documentation).</para>
-
- <para>Syntax is:</para>
-
- <programlisting>import my::imported::namespace;</programlisting>
-
- <para>Extend does not support static imports or any similar concept. Therefore, the
- following is incorrect syntax:</para>
-
-
- <programlisting>import my::imported::namespace::*; // WRONG! import my::Type; //
- WRONG!</programlisting>
- </section>
-
- <section>
- <title>Extension Import Statement</title>
-
- <para>You can import another extend file using the extension statement. The syntax
- is:</para>
-
-
- <programlisting>extension
- fully::qualified::ExtensionFileName;</programlisting>
-
- <para>Note, that no file extension ( <filename>*.ext</filename>) is
- specified.</para>
-
- <section>
- <title>Reexporting Extensions</title>
-
- <para>If you want to export extensions from another extension file together with
- your local extensions, you can add the keyword 'reexport' to the end of the
- respective extension import statement.</para>
-
-
- <programlisting>extension fully::qualified::ExtensionFileName
- reexport;</programlisting>
- </section>
- </section>
-
- <section>
- <title>Extensions</title>
-
- <para>The syntax of a simple expression extension is as follows:</para>
-
-
- <programlisting>ReturnType extensionName(ParamType1 paramName1,
- ParamType2...): expression-using-params;</programlisting>
-
- <para>Example:</para>
-
-
- <programlisting>String getterName(NamedElement ele) :
- 'get'+ele.name.firstUpper();</programlisting>
-
- <section>
- <title>Extension Invocation</title>
-
- <para>There are two different ways of how to invoke an extension. It can be invoked
- like a function:</para>
-
- <programlisting>getterName(myNamedElement)</programlisting>
-
- <para>The other way to invoke an extension is through the "member syntax":</para>
-
- <programlisting>myNamedElement.getterName()</programlisting>
-
- <para>For any invocation in member syntax, the target expression (the member) is
- mapped to the first parameter. Therefore, both syntactical forms do the same
- thing.</para>
-
- <para>It is important to understand that extensions are not members of the type
- system, hence, they are not accessible through reflection and you cannot
- specialize or overwrite operations using them.</para>
-
- <para>The expression evaluation engine first looks for an appropriate operation
- before looking for an extension, in other words operations have higher
- precedence.</para>
- </section>
-
- <section>
- <title>Type Inference</title>
-
- <para>For most extensions, you do not need to specify the return type, because it
- can be derived from the specified expression. The special thing is, that the
- static return type of such an extension depends on the context of use.</para>
-
- <para>For instance, if you have the following extension</para>
-
- <programlisting>asList(Object o): {o};</programlisting>
-
- <para>the invocation of</para>
-
- <programlisting>asList('text')</programlisting>
-
- <para>has the static type List[String]. This means you can call</para>
-
- <programlisting>asList('text').get(0).toUpperCase()</programlisting>
-
- <para>The expression is statically type safe, because its return type is derived
- automatically.</para>
-
- <para>There is always a return value, whether you specify it or not, even if you
- specify explicitly ' <classname>Void</classname>'.</para>
-
- <para>See the following example.</para>
-
-
- <programlisting>
- modelTarget.ownedElements.addAllNotNull(modelSource.contents.duplicate())</programlisting>
-
- <para>In this example duplicate() dispatches polymorphically. Two of the
- extensions might look like:</para>
-
-
- <programlisting>Void duplicate(Realization realization):
- realization.Specifier().duplicate()-&gt;
- realization.Realizer().duplicate() ;
- create target::Class duplicate(source::Class): ... ;</programlisting>
-
- <para>If a ' <classname>Realization</classname>' is contained in the '
- <methodname>contents</methodname>' list of '
- <varname>modelSource</varname>', the '
- <methodname>Realizer</methodname>' of the '
- <classname>Realization</classname>' will be added to the '
- <varname>ownedElements</varname>' list of the '
- <varname>modelTarget</varname>'. If you do not want to add in the case that the
- contained element is a 'Realization' you might change the extension to:</para>
-
-
- <programlisting>Void duplicate(Realization realization):
- realization.Specifier().duplicate()-&gt;
- realization.Realizer().duplicate() -&gt; {} ;</programlisting>
- </section>
-
- <section>
- <title>Recursion</title>
-
- <para>There is only one exception: For recursive extensions the return type
- cannot be inferred, therefore you need to specify it explicitly:</para>
-
-
- <programlisting>String fullyQualifiedName(NamedElement n) : n.parent == null ?
- n.name : fullyQualifiedName(n.parent)+'::'+n.name ;</programlisting>
-
- <para>Recursive extensions are non-deterministic in a static context,
- therefore, it is necessary to specify a return type.</para>
- </section>
-
- <section>
- <title>Cached Extensions</title>
-
- <para>If you call an extension without side effects very often, you would like to
- cache the result for each set of parameters, in order improve the performance.
- You can just add the keyword '
- <code>cached</code>' to the extension in order to achieve this:</para>
-
-
- <programlisting>cached String getterName(NamedElement ele) :
- 'get'+ele.name.firstUpper() ;</programlisting>
-
- <para>The <methodname>getterName</methodname> will be computed only once for
- each <classname>NamedElement</classname>.</para>
- </section>
-
- <section>
- <title>Private Extensions</title>
-
- <para>By default all extensions are public, i.e. they are visible from outside the
- extension file. If you want to hide extensions you can add the keyword 'private'
- in front of them:</para>
-
-
- <programlisting>private internalHelper(NamedElement ele) : //
- implementation.... ;</programlisting>
- </section>
- </section>
-
- <section>
- <title>Java Extensions</title>
-
- <para>In some rare cases one does want to call a Java method from inside an expression.
- This can be done by providing a Java extension:</para>
-
-
- <programlisting>Void myJavaExtension(String param) : JAVA
- my.Type.staticMethod(java.lang.String) ;</programlisting>
-
- <para>The signature is the same as for any other extension. The implementation is
- redirected to a public static method in a Java class.</para>
-
- <para>Its syntax is:</para>
-
-
- <programlisting>JAVA fully.qualified.Type.staticMethod(my.ParamType1,
- my.ParamType2, ...) ;</programlisting>
-
- <para>Note that you cannot use any imported namespaces. You have to specify the type,
- its method and the parameter types in a fully qualified way.</para>
-
- <para>Example:</para>
-
- <para>If you have defined the following Java extension:</para>
-
-
- <programlisting>Void dump(String s) : JAVA my.Helper.dump(java.lang.String)
- ;</programlisting>
-
- <para>and you have the following Java class:</para>
-
-
- <programlisting>package my;
- public class Helper { public final static void dump(String aString) {
- System.out.println(aString); } }</programlisting>
-
- <para>the expressions</para>
-
-
- <programlisting>dump('Hello world!') 'Hello World'.dump()</programlisting>
-
- <para>both result are invoking the Java method void dump(String aString)</para>
- </section>
-
- <section>
- <title>Create Extensions (Model Transformation)</title>
-
- <para>Since Version 4.1 the <emphasis>Xtend</emphasis> language supports
- additional support for model transformation. The new concept is called
- <emphasis>create extension</emphasis> and it is explained a bit more
- comprehensive as usual.</para>
-
- <para>Elements contained in a model are usually referenced multiple times.
- Consider the following model structure:</para>
-
- <programlisting> P / \ C1 C2 \ / R </programlisting>
-
- <para>A package P contains two classes C1 and C2. C1 contains a reference R of type C2 (P
- also references C2).</para>
-
- <para>We could write the following extensions in order to transform an Ecore (EMF)
- model to our metamodel (Package, Class, Reference).</para>
-
-
- <programlisting>toPackage(EPackage x) : let p = new Package :
- p.ownedMember.addAll(x.eClassifiers.toClass()) -&gt; p;
- toClass(EClass x) : let c = new Class :
- c.attributes.addAll(x.eReferences.toReference()) -&gt; c;
- toReference(EReference x) : let r = new Reference : r.setType(x.eType.toClass())
- -&gt; r; </programlisting>
-
- <para>For an Ecore model with the above structure, the result would be:</para>
-
- <programlisting> P / \ C1 C2 | R - C2 </programlisting>
-
- <para>What happened? The C2 class has been created 2 times (one time for the package
- containment and another time for the reference R that also refers to C2). We can
- solve the problem by adding the 'cached' keyword to the second extension:</para>
-
-
- <programlisting>cached toClass(EClass x) : let c = new Class :
- c.attributes.addAll(c.eAttributes.toAttribute()) -&gt; c; </programlisting>
-
- <para>The process goes like this:</para>
-
- <orderedlist>
- <listitem>
- <para>start create P</para>
-
- <orderedlist>
- <listitem>
- <para>start create C1 (contained in P)</para>
-
- <orderedlist>
- <listitem>
- <para>start create R (contained in C1)</para>
-
- <orderedlist>
- <listitem>
- <para>start create C2 (referenced from R)</para>
- </listitem>
-
- <listitem>
- <para>end (result C2 is cached)</para>
- </listitem>
- </orderedlist>
- </listitem>
-
- <listitem>
- <para>end R</para>
- </listitem>
- </orderedlist>
- </listitem>
-
- <listitem>
- <para>end C1</para>
- </listitem>
-
- <listitem>
- <para>start get cached C2 (contained in P)</para>
- </listitem>
- </orderedlist>
- </listitem>
-
- <listitem>
- <para>end P</para>
- </listitem>
- </orderedlist>
-
- <para>So this works very well. We will get the intended structure. But what about
- circular dependencies? For instance, C2 could contain a Reference R2 of type C1
- (bidirectional references):</para>
-
- <para>The transformation would occur like this:</para>
-
- <orderedlist>
- <listitem>
- <para>start create P</para>
-
- <orderedlist>
- <listitem>
- <para>start create C1 (contained in P)</para>
-
- <orderedlist>
- <listitem>
- <para>start create R (contained in C1)</para>
-
- <orderedlist>
- <listitem>
- <para>start create C2 (referenced from R)</para>
-
- <orderedlist>
- <listitem>
- <para>start create R2 (contained in C2)</para>
-
- <orderedlist>
- <listitem>
- <para>start create C1 (referenced from R1)...
- OOPS!</para>
- </listitem>
- </orderedlist>
- </listitem>
- </orderedlist>
- </listitem>
- </orderedlist>
- </listitem>
- </orderedlist>
- </listitem>
- </orderedlist>
- </listitem>
- </orderedlist>
-
- <para>C1 is already in creation and will not complete until the stack is reduced.
- Deadlock! The problem is that the cache caches the return value, but C1 was not
- returned so far, because it is still in construction. The solution: create
- extensions</para>
-
- <para>The syntax is as follows:</para>
-
-
- <programlisting>create Package toPackage(EPackage x) :
- this.classifiers.addAll(x.eClassifiers.toClass());
- create Class toClass(EClass x) :
- this.attributes.addAll(x.eReferences.toReference());
- create Reference toReference(EReference x) : this.setType(x.eType.toClass());
- </programlisting>
-
- <para>This is not only a shorter syntax, but it also has the needed semantics: The
- created model element will be added to the cache before evaluating the body. The
- return value is always the reference to the created and maybe not completely
- initialized element.</para>
- </section>
-
- <section>
- <title>Calling Extensions From Java</title>
-
- <para>The previous section showed how to implement Extensions in Java. This section
- shows how to call Extensions from Java.</para>
-
-
- <programlisting>// setup XtendFacade f =
- XtendFacade.create("my::path::MyExtensionFile");
- // use f.call("sayHello",new Object[]{"World"}); </programlisting>
-
- <para>The called extension file looks like this:</para>
-
- <programlisting>sayHello(String s) : "Hello " + s;</programlisting>
-
- <para>This example uses only features of the BuiltinMetaModel, in this case the "
- <methodname>+</methodname>" feature from the StringTypeImpl.</para>
-
- <para>Here is another example, that uses the JavaBeansMetaModel strategy. This
- strategy provides as additional feature: the access to properties using the
- getter and setter methods.</para>
-
- <para>For more information about type systems, see the <emphasis> <xref
- linkend="r10_expressions_language"/> </emphasis> reference
- documentation.</para>
-
- <para>We have one JavaBean-like metamodel class:</para>
-
-
- <programlisting>package mypackage; public class MyBeanMetaClass { private String
- myProp; public String getMyProp() { return myProp; } public void setMyProp(String
- s) { myProp = s;} }</programlisting>
-
- <para>in addition to the built-in metamodel type system, we register the
- JavaMetaModel with the JavaBeansStrategy for our facade. Now, we can use also this
- strategy in our extension:</para>
-
-
- <programlisting>// setup facade
- XtendFacade f = XtendFacade.create("myext::JavaBeanExtension");
- // setup additional type system JavaMetaModel jmm = new JavaMetaModel("JavaMM",
- new JavaBeansStrategy());
- f.registerMetaModel(jmm);
- // use the facade MyBeanMetaClass jb = MyBeanMetaClass(); jb.setMyProp("test");
- f.call("readMyProp", new Object[]{jb}));</programlisting>
-
- <para>The called extension file looks like this:</para>
-
-
- <programlisting>import mypackage;
- readMyProp(MyBeanMetaClass jb) : jb.myProp ; </programlisting>
- </section>
-
- <section>
- <title>WorkflowComponent</title>
-
- <para>With the additional support for model transformation, it makes sense to
- invoke <emphasis>Xtend</emphasis> within a workflow. A typical workflow
- configuration of the <emphasis>Xtend</emphasis> component looks like
- this:</para>
-
- <programlisting language="xml">
-
- &lt;component
- class="oaw.xtend.XtendComponent"&gt;
- &lt;metaModel class="oaw.type.emf.EmfMetaModel"&gt;
- &lt;metaModelFile value="metamodel1.ecore"/&gt;
- &lt;/metamodel&gt;
- &lt;metaModel class="oaw.type.emf.EmfMetaModel"&gt;
- &lt;metaModelFile value="metamodel2.ecore"/&gt;
- &lt;/metaModel&gt;
- &lt;invoke value="my::example::Trafo::transform(inputSlot)"/&gt;
- &lt;outputSlot value="transformedModel"/&gt;
- &lt;/component&gt; </programlisting>
-
- <para>Note that you can mix and use any kinds of metamodels (not only EMF
- metamodels).</para>
- </section>
-
- <section>
- <title>Aspect-Oriented Programming in <emphasis>Xtend</emphasis> (since
- 4.2)</title>
-
- <para>Using the workflow engine, it is now possible to package (e.g. zip) a written
- generator and deliver it as a kind of black box. If you want to use such a generator but
- need to change some things without modifying any code, you can make use of around
- advices that are supported by <emphasis>Xtend</emphasis>.</para>
-
- <para>The following advice is weaved around every invocation of an extension whose
- name starts with 'my::generator::':</para>
-
-
- <programlisting>around my::generator::*(*) : log('Invoking ' + ctx.name) -&gt;
- ctx.proceed() ; </programlisting>
-
- <para>Around advices let you change behaviour in an non-invasive way (you do not need
- to touch the packaged extensions).</para>
-
- <section>
- <title>Join Point and Point Cut Syntax</title>
-
- <para>Aspect orientaton is basically about weaving code into different points
- inside the call graph of a software module. Such points are called
- <emphasis>join points</emphasis>. In <emphasis>Xtend</emphasis> the join
- points are the extension invocations (Note that <emphasis>Xpand</emphasis>
- offers a similar feature, see the <emphasis>Xpand</emphasis>
- documentation).</para>
-
- <para>One specifies on which join points the contributed code should be executed
- by specifying something like a 'query' on all available join points. Such a query
- is called a point cut.</para>
-
- <programlisting>around [pointcut] : expression;</programlisting>
-
- <para>A point cut consists of a fully qualified name and a list of parameter
- declarations.</para>
-
- <section>
- <title>Extensions Name</title>
-
- <para>The extension name part of a point cut must match the fully qualified name
- of the definition of the join point. Such expressions are case sensitive. The
- asterisk character is used to specify wildcards. Some examples:</para>
-
-
- <programlisting>my::Extension::definition // extensions with the specified
- name org::oaw::* //extensions prefixed with 'org::oaw::' *Operation* //
- extensions containing the word 'Operation' in it. * // all
- extensions</programlisting>
- <warning>
- <para>Be careful when using wildcards, because you will get an endless
- recursion, in case you weave an extension, which is called inside the
- advice.</para> </warning>
- </section>
-
- <section>
- <title>Parameter Types</title>
-
- <para>The parameters of the extensions that we want to add our advice to, can also
- be specified in the point cut. The rule is, that the type of the specified
- parameter must be the same or a supertype of the corresponding parameter type
- (the dynamic type at runtime) of the definition to be called.</para>
-
- <para>Additionally, one can set the wildcard at the end of the parameter list, to
- specify that there might be none or more parameters of any kind.</para>
-
- <para>Some examples:</para>
-
-
- <programlisting>my::Templ::extension() // extension without parameters
- my::Templ::extension(String s) // extension with exactly one parameter of
- type String my::Templ::extension(String s,*) // templ def with one or more
- parameters, // where the first parameter is of type String
- my::Templ::extension(*) // templ def with any number of parameters
- </programlisting>
- </section>
-
- <section>
- <title>Proceeding</title>
-
- <para>Inside an advice, you might want to call the underlying definition. This
- can be done using the implicit variable <varname>ctx</varname>, which is of
- the type <type>xtend::AdviceContext</type> and provides an operation
- <methodname>proceed()</methodname> which invokes the underlying
- definition with the original parameters (Note that you might have changed any
- mutable object in the advice before).</para>
-
- <para>If you want to control what parameters are to be passed to the definition,
- you can use the operation <methodname>proceed(List[Object]
- params)</methodname>. You should be aware, that in advices, no type checking
- is done.</para>
-
- <para>Additionally, there are some inspection properties (like
- <varname>name</varname>, <varname>paramTypes</varname>, etc.)
- available.</para>
- </section>
- </section>
-
- <section>
- <title>Workflow configuration</title>
-
- <para>To weave the defined advices into the different join points, you need to
- configure the <classname>XtendComponent</classname> with the qualified
- names of the Extension files containing the advices.</para>
-
- <para>Example:</para>
-
- <programlisting language="xml">
-
- &lt;component
- class="oaw.xtend.XtendComponent"&gt;
- &lt;metaModel class="oaw.type.emf.EmfMetaModel"&gt;
- &lt;metaModelFile value="metamodel1.ecore"/&gt;
- &lt;/metamodel&gt;
- &lt;metaModel class="oaw.type.emf.EmfMetaModel"&gt;
- &lt;metaModelFile value="metamodel2.ecore"/&gt;
- &lt;/metaModel&gt;
-
- &lt;invoke value="my::example::Trafo::transform(inputSlot)"/&gt;
- &lt;outputSlot value="transformedModel"/&gt;
- &lt;value="my::Advices,my::Advices2"/&gt;
- &lt;/component&gt; </programlisting>
- </section>
-
- <section id="xtend_example_introduction">
- <title>Model-to-Model transformation with <emphasis>Xtend</emphasis>
- </title>
-
- <para>This example uses Eclipse EMF as the basis for model-to-model
- transformations. It builds on the <emphasis>emfExample</emphasis>
- documented elsewhere. Please read and install the
- <emphasis>emfExample</emphasis> first.</para>
-
- <para>The idea in this example is to transform the data model introduced in the EMF
- example into itself. This might seem boring, but the example is in fact quite
- illustrative.</para>
- </section>
-
- <section id="xtend_example_workflow">
- <title>Workflow</title>
-
- <para>By now, you should know the role and structure of workflow files. Therefore,
- the interesting aspect of the workflow file below is the <emphasis>
- <classname>XtendComponent</classname> </emphasis>.</para>
-
- <programlisting language="xml">
-
- &lt;workflow&gt;
- &lt;property file="workflow.properties"/&gt; ...
- &lt;component class="oaw.xtend.XtendComponent"&gt;
- &lt;metaModel class="oaw.type.emf.EmfMetaModel"&gt;
- &lt;metaModelPackage value="data.DataPackage"/&gt;
- &lt;/metaModel&gt;
- &lt;invoke value="test::Trafo::duplicate(rootElement)"/&gt;
- &lt;outputSlot value="newModel"/&gt;
- &lt;/component&gt; ...
- &lt;/workflow&gt;</programlisting>
-
- <para>As usual, we have to define the metamodel that should be used, and since we
- want to transform a data model into a data model, we need to specify only the
- <classname>data.DataPackage</classname> as the metamodel.</para>
-
- <para>We then specify which function to invoke for the transformation. The
- statement <classname>test::Trafo::duplicate(rootElement)</classname>
- means to invoke:
- <itemizedlist>
- <listitem> the <classname>duplicate</classname> function taking the
- contents of the <classname>rootElement</classname> slot as a parameter
- </listitem>
-
- <listitem> the function can be found in the <filename>Trafo.ext</filename>
- file </listitem>
-
- <listitem> and that in turn is in the classpath, in the
- <classname>test</classname> package </listitem>
- </itemizedlist></para>
- </section>
-
- <section id="xtend_example_the_transformation">
- <title>The Transformation</title>
-
- <para>The transformation, as mentioned above, can be found in the
- <filename>Trafo.ext</filename> file in the <classname>test</classname>
- package in the <classname>src</classname> folder. Let us walk through the
- file.</para>
-
- <para>So, first we import the metamodel.</para>
-
- <programlisting language="xtend">import data;</programlisting>
-
- <para>The next function is a so-called <classname>create</classname>
- extension. Create extensions, as a side effect when called, create an instance
- of the type given after the <classname>create</classname> keyword. In our
- case, the <classname>duplicate</classname> function creates an instance of
- <classname>DataModel</classname>. This newly created object can be referred
- to in the transformation by <classname>this</classname> (which is why
- <classname>this</classname> is specified behind the type). Since
- <classname>this</classname> can be omitted, we do not have to mention it
- explicitly in the transformation.</para>
-
- <para>The function also takes an instance of <classname>DataModel</classname>
- as its only parameter. That object is referred to in the transformation as
- <varname>s</varname>. So, this function sets the name of the newly created
- <classname>DataModel</classname> to be the name of the original one, and then
- adds duplicates of all entities of the original one to the new one. To create the
- duplicates of the entities, the <classname>duplicate()</classname>
- operation is called for each <classname>Entity</classname>. This is the next
- function in the transformation.</para>
-
- <programlisting language="xtend">
-
- create DataModel this duplicate(DataModel
- s): entity.addAll(s.entity.duplicate()) -&gt;
- setName(s.name);</programlisting>
-
- <para>The duplication function for entities is also a create extension. This
- time, it creates a new <classname>Entity</classname> for each old
- <classname>Entity</classname> passed in. Again, it copies the name and adds
- duplicates of the attributes and references to the new one.</para>
-
- <programlisting language="xtend">
-
- create Entity this duplicate(Entity old):
- attribute.addAll(old.attribute.duplicate()) -&gt;
- reference.addAll(old.reference.duplicate()) -&gt;
- setName(old.name);</programlisting>
-
- <para>The function that copies the attribute is rather straight forward, but
- ...</para>
-
- <programlisting language="xtend">
-
- create Attribute this duplicate(Attribute
- old): setName(old.name) -&gt; setType(old.type);</programlisting>
-
- <para>... the one for the references is more interesting. Note that a reference,
- while being owned by some <classname>Entity</classname>, also references
- another Entity as its target. So, how do you make sure you do not duplicate the
- target twice? <emphasis>Xtend</emphasis> provides explicit support for this
- kind of situation. <emphasis>Create extensions are only executed once per
- tuple of parameters!</emphasis> So if, for example, the
- <emphasis>Entity</emphasis> behind the target reference had already been
- duplicated by calling the <methodname>duplicate</methodname> function with
- the respective parameter, the next time it will be called <emphasis>the exact
- same object will be returned</emphasis>. This is very useful for graph
- transformations.</para>
-
- <programlisting language="xtend">
-
- create EntityReference this
- duplicate(EntityReference old): setName( old.name ) -&gt; setTarget(
- old.target.duplicate() );</programlisting>
-
- <para>For more information about the <emphasis>Xtend</emphasis> language
- please see the <emphasis> <xref linkend="Xtend_language"/> </emphasis>
- reference documentation.</para>
- </section>
- </section>
- </section>
-
- <section id="xpand_reference_introduction">
- <title> <emphasis>Xpand2</emphasis>
- </title>
-
- <para>The openArchitectureWare framework contains a special language called
- <emphasis>Xpand</emphasis> <indexterm>
- <primary>Xpand</primary> </indexterm> that is used in templates to control the
- output generation. This documentation describes the general syntax and semantics
- of the <emphasis>Xpand</emphasis> language.</para>
-
- <para>Typing the <foreignphrase>guillemets</foreignphrase> <indexterm>
- <primary>guillemets</primary> </indexterm> (« and ») used in the templates is
- supported by the Eclipse editor: which provides keyboard shortcuts with <keycombo
- action="simul"> <keycap>Ctrl</keycap> <keycap>&lt; </keycap> </keycombo>
- and <keycombo action="simul"> <keycap>Ctrl</keycap> <keycap>&gt; </keycap>
- </keycombo>.</para>
-
- <section id="xpand_reference_template_files_and_ecoding">
- <title>Template files and encoding</title>
-
- <para>Templates are stored in files with the extension <filename>.xpt</filename>
- <indexterm>
- <primary>.xpt file extension</primary> </indexterm>. Template files must
- reside on the Java classpath of the generator process.</para>
-
- <para>Almost all characters used in the standard syntax are part of
- <emphasis>ASCII</emphasis> and should therefore be available in any encoding.
- The only limitation are the tag brackets ( <emphasis>guillemets</emphasis>),
- for which the characters "«" (Unicode <varname>00AB</varname>) and "»" (Unicode
- <varname>00BB</varname>) are used. So for reading templates, an encoding should
- be used that supports these characters (e.g. <varname>ISO-8859-1</varname> or
- <varname>UTF-8</varname>).</para>
-
- <para>Names of properties, templates, namespaces etc. must only contain letters,
- numbers and underscores.</para>
- </section>
-
- <section id="xpand_reference_general_structure_of_template_files">
- <title>General structure of template files</title>
-
- <para>Here is a first example of a template:
-
-
- <programlisting>«IMPORT meta::model» «EXTENSION my::ExtensionFile»
- «DEFINE javaClass FOR Entity» «FILE fileName()» package «javaPackage()»;
- public class «name» { // implementation } «ENDFILE»
- «ENDDEFINE»</programlisting>
- A template file consists of any number of IMPORT statements, followed by any number
- of EXTENSION statements, followed by one or more DEFINE blocks (called
- definitions).</para>
- </section>
-
- <section id="xpand_reference_statements_of_the_expand_language">
- <title>Statements of the <emphasis>Xpand</emphasis> language</title>
-
- <section id="xpand_reference_import">
- <title>IMPORT <indexterm>
- <primary>IMPORT</primary> </indexterm></title>
-
- <para>If you are tired of always typing the fully qualified names of your types and
- definitions, you can import a namespace using the IMPORT statement.
- <programlisting>«IMPORT meta::model»</programlisting>This one imports
- the namespace <varname>meta::model</varname>. If your template contains
- such a statement, you can use the unqualified names of all types and template
- files contained in that namespace. This is similar to a Java import statement
- <varname>import meta.model.*</varname>.</para>
- </section>
-
- <section id="xpand_reference_extension">
- <title>EXTENSION <indexterm>
- <primary>EXTENSION</primary> </indexterm></title>
-
- <para>Metamodels are typically described in a structural way (graphical, or
- hierarchical, etc.) . A shortcoming of this is that it is difficult to specify
- additional behaviour (query operations, derived properties, etc.). Also, it
- is a good idea not to pollute the metamodel with target platform specific
- information (e.g. Java type names, packages, getter and setter names,
- etc.).</para>
-
- <para>Extensions provide a flexible and convenient way of defining additional
- features of metaclasses. You do this by using the <emphasis>Extend</emphasis>
- <indexterm>
- <primary>Extend</primary> </indexterm> language. (See the corresponding
- reference documentation for details)</para>
-
- <para>An EXTENSION import points to the <emphasis>Xtend</emphasis> file
- containing the required extensions:
- <programlisting>«EXTENSION my::ExtensionFile»</programlisting> Note
- that extension files have to reside on the Java classpath <indexterm>
- <primary>classpath</primary> </indexterm>, too. Therefore, they use the
- same namespace mechanism (and syntax) as types and template files.</para>
- </section>
-
- <section id="xpand_reference_define">
- <title>DEFINE <indexterm>
- <primary>DEFINE</primary> </indexterm></title>
-
- <para>The central concept of <emphasis>Xpand</emphasis> is the
- <code>DEFINE</code> block, also called a template. This is the smallest
- identifiable unit in a template file <indexterm>
- <primary>template file</primary> </indexterm>. The tag consists of a name, an
- optional comma-separated parameter list, as well as the name of the metamodel
- class for which the template is defined.
-
-
- <programlisting>«DEFINE templateName(formalParameterList) FOR MetaClass» a
- sequence of statements «ENDDEFINE»</programlisting>To
- some extent, templates can be seen as special methods of the metaclass &ndash;
- there is always an implicit <emphasis>this</emphasis> parameter which can be
- used to address the "underlying" model element; in our example above, this model
- element is "MetaClass".</para>
-
- <para>As in Java, a formal parameter list entry consists of the type followed by the
- name of that parameter.</para>
-
- <para>The body of a template can contain a sequence of other statements including
- any text.</para>
-
- <para>A full parametric polymorphism <indexterm>
- <primary>polymorphism</primary> </indexterm> <indexterm>
- <primary>template</primary>
-
- <secondary>polymorphism</secondary> </indexterm> is available for
- templates. If there are two templates with the same name that are defined for two
- metaclasses which inherit from the same superclass,
- <emphasis>Xpand</emphasis> will use the corresponding subclass template, in
- case the template is called for the superclass. Vice versa, the template of the
- superclass would be used in case a subclass template is not available. Note that
- this not only works for the target type, but for all parameters. Technically, the
- target type is handled as the first parameter.</para>
-
- <para>So, let us assume you have the following metamodel:
- <figure>
- <title>Sample metamodel</title>
-
- <mediaobject>
- <imageobject role="fo">
- <imagedata fileref="images/Xpand/metamodelexample.gif"
- scale="80"/>
- </imageobject>
-
- <imageobject role="html">
- <imagedata
- fileref="images/Xpand/metamodelexample.gif"/>
- </imageobject>
- </mediaobject>
- </figure></para>
-
- <para>Assume further, you would have a model which contains a collection of
- <classname>A</classname>, <classname>B</classname> and
- <classname>C</classname> instances in the property
- <methodname>listOfAs</methodname>. Then, you can write the following
- template:
-
-
- <programlisting>«DEFINE someOtherDefine FOR SomeMetaClass» «EXPAND
- implClass FOREACH listOfAs» «ENDDEFINE»
- «DEFINE implClass FOR A» // this is the code generated for the superclass A
- «ENDDEFINE»
- «DEFINE implClass FOR B» // this is the code generated for the subclass B
- «ENDDEFINE»
- «DEFINE implClass FOR C» // this is the code generated for the subclass C
- «ENDDEFINE»</programlisting>So
- for each <classname>B</classname> in the list, the template defined for
- <classname>B</classname> is executed, for each <classname>C</classname> in
- the collection the template defined for <emphasis> <classname>C</classname>
- </emphasis> is invoked, and for all others (which are then instances of
- <classname>A</classname>) the default template is executed.</para>
- </section>
-
- <section id="xpand_reference_file">
- <title>FILE <indexterm>
- <primary>FILE</primary> </indexterm></title>
-
- <para>The <varname>FILE</varname> statement redirects the output generated
- from its body statements to the specified target.
-
-
- <programlisting>«FILE expression [outletName]» a sequence of statements
- «ENDFILE»</programlisting>The
- target is a file in the file system whose name is specified by the expression
- (relative to the specified target directory for that generator run). The
- expression for the target specification can be a concatenation (using the +
- operator). Additionally, you can specify an identifier (a legal Java
- identifier) for the name of the outlet <indexterm>
- <primary>outlet</primary> </indexterm>. (See the configuration section for
- a description of outlets).</para>
-
- <para>The body of a <varname>FILE</varname> statement can contain any other
- statements. Example:
-
-
- <programlisting>«FILE InterfaceName + ".java"» package
- «InterfacePackageName»;
- /* generated class! Do not modify! */ public interface «InterfaceName» {
- «EXPAND Operation::InterfaceImplementation FOREACH Operation» } «ENDFILE»
- «FILE ImplName + ".java" MY_OUTLET» package «ImplPackageName»;
- public class «ImplName» extends «ImplBaseName» implements «InterfaceName» {
- //TODO: implement it } «ENDFILE»</programlisting></para>
- </section>
-
- <section id="xpand_reference_expand">
- <title>EXPAND <indexterm>
- <primary>EXPAND</primary> </indexterm></title>
-
- <para>The <varname>EXPAND</varname> statement "expands" another
- <varname>DEFINE</varname> block (in a separate variable context), inserts
- its output at the current location and continues with the next statement. This is
- similar in concept to a subroutine call.
-
-
- <programlisting>«EXPAND definitionName [(parameterList)] [FOR expression |
- FOREACH expression [SEPARATOR expression] ]»</programlisting>The
- various alternative syntaxes are explained below.</para>
-
- <section id="xpand_reference_names">
- <title>Names</title>
-
- <para>If the <emphasis>definitionName</emphasis> is a simple unqualified
- name, the corresponding <varname>DEFINE</varname> block must be in the same
- template file.</para>
-
- <para>If the called definition is not contained in the same template file, the
- name of the template file must be specified. As usual, the double colon is used
- to delimit namespaces.
-
-
- <programlisting>«EXPAND TemplateFile::definitionName FOR
- myModelElement»</programlisting>Note
- that you would need to import the namespace <indexterm>
- <primary>namespace</primary>
-
- <secondary>import</secondary> </indexterm> of the template file (if there
- is one). For instance, if the template file resides in the java package
- <varname>my.templates</varname>, there are two alternatives. You could
- either write
-
-
- <programlisting>«IMPORT my::templates» ... «EXPAND
- TemplateFile::definitionName FOR myModelElement»</programlisting>
- or
-
-
- <programlisting>«EXPAND my::templates::TemplateFile::definitionName
- FOR myModelElement»</programlisting></para>
- </section>
- </section>
-
- <section id="xpand_reference_for_vs_foreach">
- <title>FOR vs. FOREACH <indexterm>
- <primary>FOR</primary> </indexterm> <indexterm>
- <primary>FOREACH</primary> </indexterm></title>
-
- <para>If <varname>FOR</varname> or <varname>FOREACH</varname> is omitted the
- other template is called <varname>FOR this</varname>.
-
-
- <programlisting>«EXPAND TemplateFile::definitionName»</programlisting>
- equals
-
-
- <programlisting>«EXPAND TemplateFile::definitionName FOR
- this»</programlisting>
- If <varname>FOR</varname> is specified, the definition is executed for the
- result of the target expression.
- <programlisting>«EXPAND myDef FOR entity»</programlisting>If
- <varname>FOREACH</varname> is specified, the target expression must
- evaluate to a collection type <indexterm>
- <primary>collection type</primary> </indexterm>. In this case, the
- specified definition is executed for each element of that collection.
-
-
- <programlisting>«EXPAND myDef FOREACH entity.allAttributes»
- </programlisting></para>
-
- <section id="xpand_reference_specifying_a_separator">
- <title>Specifying a Separator <indexterm>
- <primary>separator</primary> </indexterm></title>
-
- <para>If a definition is to be expanded <varname>FOREACH</varname> element of
- the target expression it is possible to specify a
- <varname>SEPARATOR</varname> expression:
-
-
- <programlisting>«EXPAND paramTypeAndName FOREACH params SEPARATOR
- ','»</programlisting>The
- result of the separator expression <indexterm>
- <primary>separator</primary>
-
- <secondary>expression</secondary> </indexterm> will be written to the
- output between each evaluation of the target definition (not
- <emphasis>after</emphasis> each one, but rather only in
- <emphasis>between</emphasis> two elements. This comes in handy for things
- such as comma-separated parameter lists).</para>
-
- <para>An <varname>EvaluationException</varname> will be thrown if the
- specified target expression cannot be evaluated to an existing element of the
- instantiated model or no suitable <varname>DEFINE</varname> block can be
- found.</para>
- </section>
- </section>
-
- <section id="xpand_reference_foreach">
- <title>FOREACH <indexterm>
- <primary>FOREACH</primary> </indexterm></title>
-
- <para>This statement expands the body of the <varname>FOREACH</varname> block
- for each element of the target collection <indexterm>
- <primary>collection</primary> </indexterm> that results from the
- expression. The current element is bound to a variable with the specified name in
- the current context.
-
-
- <programlisting>«FOREACH expression AS variableName [ITERATOR iterName]
- [SEPARATOR expression]» a sequence of statements using variableName to access
- the current element of the iteration «ENDFOREACH»</programlisting>The
- body of a <varname>FOREACH</varname> block can contain any other statements;
- specifically <varname>FOREACH</varname> statements may be nested. If
- <varname>ITERATOR</varname> <indexterm>
- <primary>ITERATOR</primary> </indexterm> name is specified, an object of the
- type <emphasis>xpand2::Iterator</emphasis> (see API doc for details) is
- accessible using the specified name. The <varname>SEPARATOR</varname>
- expression works in the same way as the one for <varname>EXPAND</varname>
- .</para>
-
- <para>Example:
-
-
- <programlisting>«FOREACH {'A','B','C'} AS c ITERATOR iter SEPARATOR ','»
- «iter.counter1» : «c» «ENDFOREACH»</programlisting>The
- evaluation of the above statement results in the following text:
- <programlisting>1 : A, 2 : B, 3 : C</programlisting></para>
- </section>
-
- <section id="xpand_reference_if">
- <title>IF <indexterm>
- <primary>IF</primary> </indexterm></title>
-
- <para>The <varname>IF</varname> statement supports conditional expansion.
- Any number of <varname>ELSEIF</varname> <indexterm>
- <primary>ELSEIF</primary> </indexterm> statements are allowed. The
- <varname>ELSE</varname> block is optional. Every <varname>IF</varname>
- statement must be closed with an <varname>ENDIF</varname> <indexterm>
- <primary>ENDIF</primary> </indexterm>. The body of an
- <varname>IF</varname> block can contain any other statement, specifically,
- <varname>IF</varname> statements may be nested.
-
-
- <programlisting>«IF expression» a sequence of statements [ «ELSEIF expression»
- ] a sequence of statements ] [ «ELSE» a sequence of statements ]
- «ENDIF»</programlisting></para>
- </section>
-
- <section id="xpand_reference_protect">
- <title>PROTECT <indexterm>
- <primary>PROTECT</primary> </indexterm></title>
-
- <para>Protected Regions <indexterm>
- <primary>protected regions</primary> </indexterm> are used to mark sections
- in the generated code that shall not be overridden again by the subsequent
- generator run. These sections typically contain manually written code.
-
-
- <programlisting>«PROTECT CSTART expression CEND expression ID expression
- (DISABLE)?» a sequence of statements «ENDPROTECT»</programlisting>
- The values of CSTART <indexterm>
- <primary>CSTART</primary> </indexterm> and CEND <indexterm>
- <primary>CEND</primary> </indexterm> expressions are used to enclose the
- protected regions marker in the output. They should build valid comment
- beginning and end strings corresponding to the generated target language (e.g.
- <emphasis>"/*"</emphasis> and <emphasis>"*/"</emphasis> for Java). The
- following is an example for Java:
-
-
- <programlisting>«PROTECT CSTART "/*" CEND "*/" ID ElementsUniqueID» here goes
- some content «ENDPROTECT»</programlisting>The
- ID is set by the <varname>ID</varname> expression and must be globally unique
- (at least for one complete pass of the generator).</para>
-
- <para>Generated target code looks like this:
-
-
- <programlisting>public class Person { /*PROTECTED REGION ID(Person) ENABLED
- START*/ This protected region is enabled, therefore the contents will always be
- preserved. If you want to get the default contents from the template you must
- remove the ENABLED keyword (or even remove the whole file :-)) /*PROTECTED
- REGION END*/ }</programlisting>
- Protected regions are generated in enabled state <indexterm>
- <primary>protected regions</primary>
-
- <secondary>enable</secondary> </indexterm> by default. Unless you manually
- disable <indexterm>
- <primary>protected regions</primary>
-
- <secondary>disable</secondary> </indexterm> them, by removing the
- <varname>ENABLED</varname> keyword, they will always be preserved.</para>
-
- <para>If you want the generator to generate disabled protected regions, you need
- to add the <varname>DISABLE</varname> keyword inside the declaration:
-
-
- <programlisting>«PROTECT CSTART '/*' CEND '*/' ID this.name
- DISABLE»</programlisting></para>
- </section>
-
- <section id="xpand_reference_let">
- <title>LET</title>
-
- <para> <varname>LET</varname> lets you specify local variables:
-
-
- <programlisting>«LET expression AS variableName» a sequence of statements
- «ENDLET»</programlisting>During
- the expansion of the body of the <varname>LET</varname> <indexterm>
- <primary>LET</primary> </indexterm> block, the value of the expression is
- bound to the specified variable. Note that the expression will only be evaluated
- once, independent from the number of usages of the variable within the
- <varname>LET</varname> block. Example:
-
-
- <programlisting>«LET packageName + "." + className AS fqn» the fully qualified
- name is: «fqn»; «ENDLET»</programlisting></para>
- </section>
-
- <section id="xpand_reference_error">
- <title>ERROR <indexterm>
- <primary>ERROR</primary> </indexterm></title>
-
- <para>The <varname>ERROR</varname> statement aborts the evaluation of the
- templates by throwing an <varname>XpandException</varname> <indexterm>
- <primary>XpandException</primary> </indexterm> with the specified
- message.
- <programlisting>«ERROR expression»</programlisting>Note that you should
- use this facility very sparingly, since it is better practice to check for
- invalid models using constraints on the metamodel, and not in the
- templates.</para>
- </section>
-
- <section id="xpand_reference_comments">
- <title>Comments <indexterm>
- <primary>comments</primary> </indexterm></title>
-
- <para>Comments are only allowed outside of tags.
- <programlisting>«REM» text comment «ENDREM»</programlisting>Comments
- may not contain a REM <indexterm>
- <primary>REM</primary> </indexterm> tag, this implies that comments are not
- nestable. A comment may not have a white space between the REM keyword and its
- brackets. Example:
-
-
- <programlisting>«REM»«LET expression AS variableName»«ENDREM» a sequence of
- statements «REM» «variableName.stuff» «ENDLET»«ENDREM»</programlisting>
- </para>
- </section>
-
- <section id="xpand_reference_expression_statement">
- <title>Expression Statement <indexterm>
- <primary>expression statements</primary> </indexterm></title>
-
- <para>Expressions support processing of the information provided by the
- instantiated metamodel. Xpand provides powerful expressions for selection,
- aggregation, and navigation. Xpand uses the expressions sublanguage in almost
- any statement that we have seen so far. The expression statement just evaluates
- the contained expression and writes the result to the output (using the
- <varname>toString()</varname> method of
- <varname>java.lang.Object</varname>). Example:
- <programlisting>public class «this.name» {</programlisting> All
- expressions defined by the oArchitectureWare expressions sublanguage are
- also available in Xpand. You can invoke imported extensions. (See the
- <emphasis> <xref linkend="r10_expressions_language"/> </emphasis> and
- <emphasis> <xref linkend="Xtend_language"/> language
- reference</emphasis> for more details).</para>
- </section>
-
- <section id="xpand_reference_controlling_generation_of_white_space">
- <title>Controlling generation of white space</title>
-
- <para>If you want to omit the output of superfluous whitespace <indexterm>
- <primary>whitespace</primary>
-
- <secondary>omit</secondary> </indexterm> you can add a minus sign just before
- any closing bracket. Example:
-
-
- <programlisting>«FILE InterfaceName + ".java"-» «IF hasPackage-» package
- «InterfacePackageName»; «ENDIF-» ... «ENDFILE»</programlisting>The
- generated file would start with two new lines (one after the
- <varname>FILE</varname> and one after the <varname>IF</varname> statement)
- if the minus characters had not been set.</para>
-
- <para>In general, this mechanism works as follows: If a statement (or comment)
- ends with such a minus all preceding whitespace up to the newline <indexterm>
- <primary>newline</primary> </indexterm> character (excluded!) is removed.
- Additionally all following whitespace including the first newline character
- (\r\n is handled as one character) is also removed.</para>
- </section>
- </section>
-
- <section id="xpand_reference_aspect-oriented_programming_in_xpand">
- <title>Aspect-Oriented Programming in <emphasis>Xpand</emphasis> <indexterm>
- <primary>AOP</primary> </indexterm></title>
-
- <para>Using the workflow engine it is now possible to package (
- <emphasis>e.g.</emphasis> zip) a written generator and deliver it as a kind of
- black box. If you want to use such a generator but need to change some small
- generation stuff, you can make use of the <varname>AROUND</varname> <indexterm>
- <primary>AROUND</primary> </indexterm> aspects.
-
-
- <programlisting>«AROUND qualifiedDefinitionName(parameterList)? FOR type» a
- sequence of statements «ENDAROUND» </programlisting>
- <varname>AROUND</varname> lets you add templates in an non-invasive way (you do
- not need to touch the generator templates). Because aspects are invasive, a
- template file containing <varname>AROUND</varname> aspects must be wrapped by
- configuration (see next section).</para>
-
- <section id="xpand_reference_join_point_and_cut_syntax">
- <title>Join Point <indexterm>
- <primary>join point</primary> </indexterm> <indexterm>
- <primary>AOP</primary>
-
- <secondary>join point</secondary> </indexterm> and Point Cut <indexterm>
- <primary>point cut</primary> </indexterm> <indexterm>
- <primary>AOP</primary>
-
- <secondary>point cut</secondary> </indexterm> Syntax</title>
-
- <para>AOP is basically about weaving code into different points inside the call
- graph of a software module. Such points are called <emphasis>Join
- Points</emphasis>. In <emphasis>Xpand</emphasis>, there is only one join
- point so far: a call to a definition.</para>
-
- <para>You specify on which join points the contributed code should be executed by
- specifying something like a 'query' on all available join points. Such a query is
- called a <emphasis>point cut</emphasis>.
-
-
- <programlisting>«AROUND [pointcut]» do stuff «ENDAROUND»</programlisting>
- A pointcut consists of a fully qualified name, parameter types and the target
- type.</para>
-
- <section id="xpand_reference_definition_name">
- <title>Definition Name</title>
-
- <para>The definition name part of a point cut must match the fully qualified name
- of the join point definition. Such expressions are case sensitive. The
- asterisk character is used to specify wildcards.</para>
-
- <para>Some examples:
-
-
- <programlisting>my::Template::definition // definitions with the
- specified name org::oaw::* // definitions prefixed with 'org::oaw::'
- *Operation* // definitions containing the word 'Operation' in it. * // all
- definitions</programlisting></para>
- </section>
-
- <section id="xpand_reference_parameter_types">
- <title>Parameter Types</title>
-
- <para>The parameters of the definitions we want to add our advice to, can also be
- specified in the point cut. The rule is that the type of the specified parameter
- must be the same or a supertype of the corresponding parameter type (the
- dynamic type at runtime!) of the definition to be called.</para>
-
- <para>Additionally, one can set a wildcard at the end of the parameter list, to
- specify that there might be an arbitrary number of parameters of any
- kind.</para>
-
- <para>Some examples:
-
-
- <programlisting>my::Templ::def() // templ def without parameters
- my::Templ::def(String s) // templ def with exactly one parameter // of type
- String my::Templ::def(String s,*) // templ def with one or more parameters,
- // where the first parameter is of type String my::Templ::def(*) // templ def
- with any number of parameters</programlisting></para>
- </section>
-
- <section id="xpand_reference_target_type">
- <title>Target Type</title>
-
- <para>Finally, we have to specify the target type. This is straightforward:
-
-
- <programlisting>my::Templ::def() FOR Object// templ def for any target type
- my::Templ::def() FOR Entity// templ def objects of type
- Entity</programlisting></para>
- </section>
- </section>
-
- <section id="xpand_reference_proceeding">
- <title>Proceeding</title>
-
- <para>Inside an advice, you might want to call the underlying definition. This can
- be done using the implicit variable <varname>targetDef</varname>, which is of
- the type <type>xpand2::Definition</type> and which provides an operation
- <methodname>proceed()</methodname>that invokes the underlying definition
- with the original parameters (Note that you might have changed any mutable
- object in the advice before).</para>
-
- <para>If you want to control, what parameters are to be passed to the definition,
- you can use the operation <methodname>proceed</methodname>(
- <classname>Object</classname> <varname>target</varname>,
- <classname>List</classname> <varname>params</varname>). Please keep in
- mind that no type checking is done in this context.</para>
-
- <para>Additionally, there are some inspection properties (like
- <varname>name</varname>, <varname>paramTypes</varname>, etc.)
- available.</para>
- </section>
- </section>
-
- <section id="xpand_reference_generator_workflow_component">
- <title>Generator Workflow Component</title>
-
- <para>This section describes the workflow component that is provided to perform the
- code generation, i.e. run the templates. You should have a basic idea of how the
- workflow engine works. (see <emphasis> <phrase condition="main"> <xref
- linkend="workflow_reference"/></phrase><phrase
- condition="individual">Workflow reference</phrase></emphasis>). A
- simple generator component configuration could look as follows:
-
-
- <programlisting>&lt;component class="oaw.xpand2.Generator"&gt;
- &lt;fileEncoding value="ISO-8859-1"/&gt;
- &lt;metaModel class="oaw.type.emf.EmfMetaModel"&gt;
- &lt;metaModelPackage value="org.eclipse.emf.ecore.EcorePackage"/&gt;
- &lt;/metaModel&gt;
- &lt;expand value="example::Java::all FOR myModel"/&gt;
-
- &lt;!-- aop configuration --&gt;
- &lt;advices value='example::Advices1, example::Advices2'/&gt;
-
- &lt;!-- output configuration --&gt;
- &lt;outlet path='main/src-gen'/&gt;
- &lt;outlet name='TO_SRC' path='main/src' overwrite='false'/&gt;
- &lt;beautifier class="oaw.xpand2.output.JavaBeautifier"/&gt;
- &lt;beautifier class="oaw.xpand2.output.XmlBeautifier"/&gt;
-
- &lt;!-- protected regions configuration --&gt;
- &lt;prSrcPaths value="main/src"/&gt;
- &lt;prDefaultExcludes value="false"/&gt;
- &lt;prExcludes value="*.xml"/&gt;
- &lt;/component&gt;</programlisting>Now,
- let us go through the different properties one by one.</para>
-
- <section id="xpand_reference_main_configuration">
- <title>Main configuration</title>
-
- <para>The first thing to note is that the qualified Java name of the component is
- <varname>org.openarchitectureware.xpand2.Generator2</varname>. One can
- use the shortcut <varname>oaw</varname> instead of a preceding
- <varname>org.openarchitectureware</varname>. The workflow engine will
- resolve it.</para>
- </section>
-
- <section id="xpand_reference_encoding">
- <title>Encoding</title>
-
- <para>For <emphasis>Xpand</emphasis>, it is important to have the file encoding
- in mind because of the <foreignphrase>guillemet</foreignphrase> characters
- used to delimit keywords and property access. The
- <varname>fileEncoding</varname> property specifies the file encoding to use
- for reading the templates, reading the protected regions and writing the
- generated files. This property defaults to the default file encoding of your
- JVM.</para>
- </section>
-
- <section id="xpand_reference_metamodel">
- <title>Metamodel</title>
-
- <para>The property <varname>metaModel</varname> is used to tell the generator
- engine on which metamodels the <emphasis>Xpand</emphasis> templates should
- be evaluated. One can specify more than one metamodel here. Metamodel
- implementations are required by the expression framework (see <emphasis>
- <xref linkend="r10_expressions_language"/> </emphasis>) used by
- <emphasis>Xpand2</emphasis>. In the example above we configured the Ecore
- metamodel using the <emphasis>EMFMetaModel</emphasis> implementation
- shipped with the core part of the openArchitectureWare 4 release.</para>
-
- <para>A mandatory configuration is the <varname>expand</varname> property. It
- expects a syntax similar to that of the <varname>EXPAND</varname> statement
- (described above). The only difference is that we omit the
- <varname>EXPAND</varname> keyword. Instead, we specify the name of the
- property. Examples:
-
-
- <programlisting>&lt;expand value="Template::define FOR
- mySlot"/&gt;</programlisting>
- or:
-
-
- <programlisting>&lt;expand value="Template::define('foo') FOREACH
- {mySlot1,mySlot2}"/&gt;</programlisting>The
- expressions are evaluated using the workflow context. Each slot is mapped to a
- variable. For the examples above the workflow context needs to contain elements
- in the slots <varname>'mySlot'</varname>, <varname>'mySlot1'</varname>
- and <varname>'mySlot2'</varname>. It is also possible to specify some complex
- expressions here. If, for instance, the slot <varname>myModel</varname>
- contains a collection of model elements one could write:
-
-
- <programlisting>&lt;expand value="Template::define FOREACH
- myModel.typeSelect(Entity)"/&gt;</programlisting>This
- selects all elements of type <emphasis>Entity</emphasis> contained in the
- collection stored in the <varname>myModel</varname> slot.</para>
- </section>
-
- <section id="xpand_reference_output_configuration">
- <title>Output configuration</title>
-
- <para>The second mandatory configuration is the specification of so called
- outlets (a concept borrowed from AndroMDA). Outlets are responsible for
- writing the generated files to disk . Example:
-
-
- <programlisting>&lt;component class="oaw.xpand2.Generator2"&gt; ...
- &lt;outlet path='main/src-gen'/&gt;
- &lt;outlet name='TO_SRC' path='main/src' overwrite='false'/&gt; ...
- &lt;/component&gt;</programlisting>In
- the example there are two outlets configured. The first one has no name and is
- therefore handled as the default outlet. Default outlets are triggered by
- omitting an outlet name:
-
-
- <programlisting>«FILE 'test/note.txt'» # this goes to the default outlet
- «ENDFILE»</programlisting>The
- configured base path is ' <filename>main/src-gen</filename>', so the file
- from above would go to ' <filename>main/src-gen/test/note.txt</filename>
- '.</para>
-
- <para>The second outlet has a <varname>name</varname> ('TO_SRC') specified.
- Additionally the flag <varname>overwrite</varname> is set to
- <varname>false</varname> (defaults to <varname>true</varname>). The
- following <emphasis>Xpand</emphasis> fragment
-
-
- <programlisting>«FILE 'test/note.txt' TO_SRC» # this goes to the TO_SRC outlet
- «ENDFILE»</programlisting>would
- cause the generator to write the contents to '
- <filename>main/src/test/note.txt</filename>' if the file does not already
- exist (the <varname>overwrite</varname> flag).</para>
-
- <para>Another option called <varname>append</varname> (defaults to
- <varname>false</varname>) causes the generator to append the generated text
- to an existing file. If <varname>overwrite</varname> is set to
- <varname>false</varname> this flag has no effect.</para>
- </section>
-
- <section id="xpand_reference_beautifier">
- <title>Beautifier</title>
-
- <para>Beautifying the generated code is a good idea. It is very important that
- generated code looks good, because developers should be able to understand it.
- On the other hand template files should look good, too. It is thus best practice to
- write nice looking template files and not to care how the generated code looks
- &ndash; and then you run a beautifier over the generated code to fix that problem.
- Of course, if a beautifier is not available, or if white space has syntactical
- meaning (as in Python), you would have to write your templates with that in mind
- (using the minus character before closing brackets as described in a preceding
- section).</para>
-
- <para>The <emphasis>Xpand</emphasis> workflow component can be configured
- with multiple beautifiers:
-
-
- <programlisting>&lt;beautifier
- class="org.openarchitectureware.xpand2.output.JavaBeautifier"/&gt;
- &lt;beautifier
- class="org.openarchitectureware.xpand2.output.XmlBeautifier"/&gt;</programlisting>
- These are the two beautifiers delivered with <emphasis>Xpand</emphasis>. If
- you want to use your own beautifier, you would just need to implement the
- following Java interface:
-
-
- <programlisting>package org.openarchitectureware.xpand2.output;
- public interface PostProcessor { public void
- beforeWriteAndClose(FileHandle handle); public void
- afterClose(FileHandle handle); }</programlisting>The
- <varname>beforeWriteAndClose</varname> method is called for each
- <varname>ENDFILE</varname> statement.</para>
-
- <section id="xpand_reference_javabeautifier">
- <title>JavaBeautifier</title>
-
- <para>The JavaBeautifier is based on the Eclipse Java formatter provides base
- beautifying for Java files.</para>
- </section>
-
- <section id="xpand_reference_xmlbeautifier">
- <title>XmlBeautifier</title>
-
- <para>The XmlBeautifier is based on <emphasis>dom4j</emphasis> and provides
- a single option <varname>fileExtensions</varname> (defaults to "
- <filename>.xml</filename>, <filename>.xsl</filename>,
- <filename>.wsdd</filename>, <filename>.wsdl</filename>") used to
- specify which files should be pretty-printed.</para>
- </section>
- </section>
-
- <section id="xpand_reference_protected_region_configuration">
- <title>Protected Region Configuration</title>
-
- <para>Finally, you need to configure the protected region resolver, if you want to
- use protected regions.
-
-
- <programlisting>&lt;prSrcPaths value="main/src"/&gt;
- &lt;prDefaultExcludes value="false"/&gt;
- &lt;prExcludes value="*.xml"/&gt;</programlisting>The
- <emphasis>prSrcPaths</emphasis> property points to a comma-separated list
- of directories. The protected region resolver will scan these directories for
- files containing activated protected regions.</para>
-
- <para>There are several file names which are excluded by default:
-
-
- <programlisting>RCS, SCCS, CVS, CVS.adm, RCSLOG, cvslog.*, tags, TAGS,
- .make.state, .nse_depinfo, *~, #*, .#*, ',*', _$*,*$, *.old, *.bak, *.BAK,
- *.orig, *.rej, .del-*, *.a, *.olb, *.o, *.obj, *.so, *.exe, *.Z,* .elc, *.ln,
- core, .svn</programlisting>
- If you do not want to exclude any of these, you must set
- <varname>prDefaultExcludes</varname> to false.
-
-
- <programlisting>&lt;prDefaultExcludes
- value="false"/&gt;</programlisting>
- If you want to add additional excludes, you should use the prExcludes property.
-
-
- <programlisting>&lt;prExcludes
- value="*.xml,*.hbm"/&gt;</programlisting></para>
- <note>
- <para>It is bad practice to mix generated and non-generated code in one artifact.
- Instead of using protected regions, you should try to leverage the extension
- features of the used target language (inheritance, inclusion, references,
- etc.) wherever possible. It is very rare that the use of protected regions is an
- appropriate solution.</para> </note>
- </section>
- </section>
-
- <section id="aop_template_introduction">
- <title>Example for using Aspect-Oriented Programming in
- <emphasis>Xpand</emphasis></title>
-
- <para>This example shows how to use aspect-oriented programming techniques in
- <emphasis>Xpand</emphasis> templates. It is applicable to EMF based and
- <emphasis>Classic</emphasis> systems. However, we explain the idea based on the
- <emphasis>emfExample</emphasis> &ndash; hence you should read that
- before.</para>
- </section>
-
- <section id="aop_template_the_problem">
- <title>The Problem</title>
-
- <para>There are many circumstances when template-AOP is useful. Here are two
- examples:</para>
-
- <para> <emphasis role="bold">Scenario 1:</emphasis> Assume you have a nice
- generator that generates certain artifacts. The generator (or cartridge) might
- be a third party product, delivered in a single JAR file. Still you might want to
- adapt certain aspects of the generation process &ndash; <emphasis>without
- modifying the original generator</emphasis>.</para>
-
- <para> <emphasis role="bold">Scenario 2:</emphasis> You are building a family of
- generators that can generate variations of the generate code, e.g.
- Implementations for different embedded platforms. In such a scenario, you need to
- be able to express those differences (variabilities) sensibly without creating a
- non-understandable chaos of <emphasis>if</emphasis> statements in the
- templates.</para>
- </section>
-
- <section id="aop_template_example">
- <title>Example</title>
-
- <para>To illustrate the idea of extending a generator without "touching" it, let us
- create a new project called
- <classname>oaw4.demo.emf.datamodel.generator-aop</classname>. The idea is
- that it will "extend" the original
- <classname>oaw4.demo.emf.datamodel.generator</classname> project
- introduced in the <emphasis>emfExample</emphasis>. So this new projects needs
- to have a project dependency to the former one.</para>
-
- <section id="aop_template_example_templates">
- <title>Templates</title>
-
- <para>An AOP system always needs to define a join point model; this is, you have to
- define, at which locations of a (template) program you can add additional
- (template) code. In Xpand, the join points are simply templates (i.e.
- <emphasis>DEFINE .. ENDDEFINE</emphasis>) blocks. An "aspect template" can
- be declared <emphasis>AROUND</emphasis> previously existing templates. If
- you take a look at the
- <classname>oaw4.demo.emf.datamodel.generator</classname> source folder
- of the project, you can find the <filename>Root.xpt</filename> template file.
- Inside, you can find a template called <classname>Impl</classname> that
- generates the implementation of the JavaBean.</para>
-
- <programlisting language="Xpand">
-
- «DEFINE Entity FOR data::Entity» «FILE
- baseClassFileName() » // generated at «timestamp()» public abstract class
- «baseClassName()» { «EXPAND Impl» } «ENDFILE» «ENDDEFINE»
- «DEFINE Impl FOR data::Entity» «EXPAND GettersAndSetters» «ENDDEFINE»
- «DEFINE Impl FOR data::PersistentEntity» «EXPAND GettersAndSetters» public
- void save() {
- } «ENDDEFINE»</programlisting>
-
- <para>What we now want to do is as follows: Whenever the
- <emphasis>Impl</emphasis> template is executed, we want to run an additional
- template that generates additional code (for example, some kind of meta
- information for frameworks &ndash; the specific code is not important for the
- example here).</para>
-
- <para>So, in our new project, we define the following template file:</para>
-
- <programlisting language="Xpand">
-
- «AROUND Impl FOR data::Entity» «FOREACH
- attribute AS a» public static final AttrInfo «a.name»Info = new AttrInfo(
- "«a.name»", «a.type».class ); «ENDFOREACH» «targetDef.proceed()»
- «ENDAROUND»</programlisting>
-
- <para>So, this new template wraps around the existing template called
- <classname>Impl</classname> It first generates additional code and then
- forwards the execution to the original template using
- <methodname>targetDef.proceed()</methodname>. So, in effect, this is a
- <varname>BEFORE</varname> advice. Moving the
- <methodname>proceed</methodname> statement to the beginning makes it an
- <varname>AFTER</varname> advice, omitting it, makes it an override.</para>
- </section>
-
- <section id="aop_template_example_workflow_file">
- <title>Workflow File</title>
-
- <para>Let us take a look at the workflow file to run this generator:</para>
-
- <programlisting language="xml">
-
- &lt;workflow&gt;
- &lt;cartridge file="workflow.oaw"/&gt;
- &lt;component adviceTarget="generator" id="reflectionAdvice"
- class="oaw.xpand2.GeneratorAdvice"&gt;
- &lt;advices value="templates::Advices"/&gt;
- &lt;/component&gt;
- &lt;/workflow&gt;</programlisting>
-
- <para>Mainly, what we do here, is to call the original workflow file. It has to be
- available from the classpath. After this cartridge call, we define an
- additional workflow component, a so called <emphasis>advice
- component</emphasis>. It specifies <emphasis>generator</emphasis> as its
- <emphasis>adviceTarget</emphasis>. That means, that all the properties we
- define inside this advice component will be added to the component referenced by
- name in the <emphasis>adviceTarget</emphasis> instead. In our case, this is
- the generator. So, in effect, we add the
- &lt;advices value="templates::Advices" /&gt; to the original generator
- component (without invasively modifying its own definition). This
- contributes the advice templates to the generator.</para>
- </section>
-
- <section id="aop_template_example_running_the_new_generator">
- <title>Running the new generator</title>
-
- <para>Running the generator produces the following code:</para>
-
- <programlisting language="Java">
-
- public abstract class PersonImplBase { public
- static final AttrInfo nameInfo = new AttrInfo("name", String.class); public
- static final AttrInfo name2Info = new AttrInfo("name2", String.class); private
- String name; private String name2;
- public void setName(String value) { this.name = value; }
- public String getName() { return this.name; }
- public void setName2(String value) { this.name2 = value; }
- public String getName2() { return this.name2; } }</programlisting>
- </section>
- </section>
-
- <section id="aop_template_more_ao">
- <title>More Aspect Orientation</title>
-
- <para>In general, the syntax for the <emphasis>AROUND</emphasis> construct is as
- follows:</para>
-
- <programlisting language="Expand">
-
- &lt;&lt;AROUND
- fullyQualifiedDefinitionNameWithWildcards (Paramlist (*)?) FOR
- TypeName&gt;&gt; do Stuff
- &lt;&lt;ENDAROUND&gt;&gt;</programlisting>
-
- <para>Here are some examples:</para>
-
- <programlisting>&lt;&lt;AROUND *(*) FOR Object&gt;&gt;</programlisting>
-
- <para>matches all templates</para>
-
-
- <programlisting>&lt;&lt;AROUND *define(*) FOR Object&gt;&gt;</programlisting>
-
- <para>matches all templates with <emphasis>define</emphasis> at the end of its
- name and any number of parameters</para>
-
-
- <programlisting>&lt;&lt;AROUND org::oaw::* FOR
- Entity&gt;&gt;</programlisting>
-
- <para>matches all templates with namespace <emphasis>org::oaw::</emphasis>
- that do not have any parameters and whose type is Entity or a subclass</para>
-
-
- <programlisting>&lt;&lt;AROUND *(String s) FOR Object&gt;&gt;</programlisting>
-
- <para>matches all templates that have exactly one <classname>String</classname>
- parameter</para>
-
-
- <programlisting>&lt;&lt;AROUND *(String s,*) FOR
- Object&gt;&gt;</programlisting>
-
- <para>matches all templates that have at least one <classname>String</classname>
- parameter</para>
-
-
- <programlisting>&lt;&lt;AROUND my::Template::definition(String s) FOR
- Entity&gt;&gt;</programlisting>
-
- <para>matches exactly this single definition</para>
-
- <para>Inside an <varname>AROUND</varname>, there is the variable
- <varname>targetDef</varname>, which has the type
- <classname>xpand2::Definition</classname>. On this variable, you can call
- <methodname>proceed</methodname>, and also query a number of other
- things:</para>
-
-
- <programlisting>&lt;&lt;AROUND my::Template::definition(String s) FOR
- String&gt;&gt; log('invoking '+&lt;&lt;targetDef.name&gt;&gt;+' with '+this)
- &lt;&lt;targetDef.proceed()&gt;&gt;
- &lt;&lt;ENDAROUND&gt;&gt;</programlisting>
- </section>
- </section>
-
- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
- href="../content/builtin_api.xml"/>
-</chapter> \ No newline at end of file
diff --git a/doc/org.eclipse.xpand.doc/src/5.0/index.xml b/doc/org.eclipse.xpand.doc/src/5.0/index.xml
deleted file mode 100644
index b6892c2..0000000
--- a/doc/org.eclipse.xpand.doc/src/5.0/index.xml
+++ /dev/null
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-
-<book xmlns="http://docbook.org/ns/docbook" version="5.0"
- xmlns:xi="http://www.w3.org/2001/XInclude" >
- <title>@TITLE@</title>
-
- <xi:include href="bookinfo.xml" />
-
- <toc />
-
- <part id="reference">
- <title>Reference</title>
- <xi:include href="structure/xpand_reference_structure.xml" />
- </part>
-
- <index />
-</book>
-
diff --git a/doc/org.eclipse.xpand.doc/src/5.0/structure/xpand_reference_structure.xml b/doc/org.eclipse.xpand.doc/src/5.0/structure/xpand_reference_structure.xml
deleted file mode 100644
index aca0ee1..0000000
--- a/doc/org.eclipse.xpand.doc/src/5.0/structure/xpand_reference_structure.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-
- <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
- href="../content/xpand_reference.xml"/>
diff --git a/doc/org.eclipse.xpand.doc/tasks/.keepdir b/doc/org.eclipse.xpand.doc/tasks/.keepdir
deleted file mode 100644
index e69de29..0000000
--- a/doc/org.eclipse.xpand.doc/tasks/.keepdir
+++ /dev/null
diff --git a/doc/org.eclipse.xpand.doc/toc.xml b/doc/org.eclipse.xpand.doc/toc.xml
deleted file mode 100644
index 09f2734..0000000
--- a/doc/org.eclipse.xpand.doc/toc.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?NLS TYPE="org.eclipse.help.toc"?>
-
-<toc label="M2T _SUBPROJECTNAME_ Table of Contents">
- <topic label="Javadoc" href="references/javadoc/index.html"/>
-</toc>
diff --git a/doc/org.eclipse.xpand.doc/topics_Reference.xml b/doc/org.eclipse.xpand.doc/topics_Reference.xml
deleted file mode 100644
index 714e7f9..0000000
--- a/doc/org.eclipse.xpand.doc/topics_Reference.xml
+++ /dev/null
@@ -1,3 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<span>File created to avoid PDE warnings.
-The actual content is created during the build.</span>
diff --git a/doc/org.eclipse.xpand.doc/tutorials/.keepdir b/doc/org.eclipse.xpand.doc/tutorials/.keepdir
deleted file mode 100644
index e69de29..0000000
--- a/doc/org.eclipse.xpand.doc/tutorials/.keepdir
+++ /dev/null