Commits

Jens Reimann committed 4cb9ee2

remove acceleo generation

Comments (0)

Files changed (35)

org.openscada.doc.output.acceleo.plaintext.content/.classpath

-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
-	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
-	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
-	<classpathentry kind="src" output="bin" path="src"/>
-	<classpathentry kind="output" path="bin"/>
-</classpath>

org.openscada.doc.output.acceleo.plaintext.content/.gitignore

-/bin

org.openscada.doc.output.acceleo.plaintext.content/.project

-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
-	<name>org.openscada.doc.output.acceleo.plaintext.content</name>
-	<comment></comment>
-	<projects>
-	</projects>
-	<buildSpec>
-		<buildCommand>
-			<name>org.eclipse.jdt.core.javabuilder</name>
-			<arguments>
-			</arguments>
-		</buildCommand>
-		<buildCommand>
-			<name>org.eclipse.pde.ManifestBuilder</name>
-			<arguments>
-			</arguments>
-		</buildCommand>
-		<buildCommand>
-			<name>org.eclipse.pde.SchemaBuilder</name>
-			<arguments>
-			</arguments>
-		</buildCommand>
-		<buildCommand>
-			<name>org.eclipse.acceleo.ide.ui.acceleoBuilder</name>
-			<arguments>
-				<dictionary>
-					<key>compilation.kind</key>
-					<value>compilation.platform.resource</value>
-				</dictionary>
-				<dictionary>
-					<key>compliance</key>
-					<value>pragmatic</value>
-				</dictionary>
-				<dictionary>
-					<key>resource.kind</key>
-					<value>xmi</value>
-				</dictionary>
-			</arguments>
-		</buildCommand>
-		<buildCommand>
-			<name>org.eclipse.pde.api.tools.apiAnalysisBuilder</name>
-			<arguments>
-			</arguments>
-		</buildCommand>
-		<buildCommand>
-			<name>org.eclipse.babel.editor.rbeBuilder</name>
-			<arguments>
-			</arguments>
-		</buildCommand>
-	</buildSpec>
-	<natures>
-		<nature>org.eclipse.acceleo.ide.ui.acceleoNature</nature>
-		<nature>org.eclipse.jdt.core.javanature</nature>
-		<nature>org.eclipse.pde.PluginNature</nature>
-		<nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature>
-		<nature>org.eclipse.babel.editor.rbeNature</nature>
-	</natures>
-</projectDescription>

org.openscada.doc.output.acceleo.plaintext.content/.settings/org.eclipse.jdt.core.prefs

-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
-org.eclipse.jdt.core.compiler.compliance=1.6
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.6

org.openscada.doc.output.acceleo.plaintext.content/META-INF/MANIFEST.MF

-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: Acceleo Content Module Runtime Plug-in
-Bundle-SymbolicName: org.openscada.doc.output.acceleo.plaintext.content;singleton:=true
-Bundle-Version: 0.2.0.qualifier
-Bundle-Activator: org.openscada.doc.output.acceleo.plaintext.content.Activator
-Bundle-Vendor: Eclipse Modeling Project
-Require-Bundle: org.eclipse.core.runtime,
- org.eclipse.emf.ecore,
- org.eclipse.emf.ecore,
- org.eclipse.emf.ecore.xmi,
- org.eclipse.ocl,
- org.eclipse.ocl.ecore,
- org.eclipse.acceleo.common;bundle-version="3.3.0",
- org.eclipse.acceleo.model;bundle-version="3.3.0",
- org.eclipse.acceleo.profiler;bundle-version="3.3.0",
- org.eclipse.acceleo.engine;bundle-version="3.3.0",
- com.google.guava,
- org.openscada.doc.output.acceleo.plaintext;bundle-version="0.2.0"
-Bundle-RequiredExecutionEnvironment: JavaSE-1.7
-Bundle-ActivationPolicy: lazy
-Eclipse-LazyStart: true
-

org.openscada.doc.output.acceleo.plaintext.content/bin/org/openscada/doc/output/acceleo/plaintext/content/Activator.class

Binary file removed.

org.openscada.doc.output.acceleo.plaintext.content/bin/org/openscada/doc/output/acceleo/plaintext/content/common/content.mtl

-[comment encoding = UTF-8 /]
-[module content('urn:openscada:doc:content', 'urn:openscada:doc:fragment', 'http://www.eclipse.org/emf/2002/Ecore') extends org::openscada::doc::output::acceleo::plaintext::common::content ]
-
-[template public content(paragraph : Paragraph)]
-para
-[/template]

org.openscada.doc.output.acceleo.plaintext.content/build.acceleo

-<!-- ===================================================================== -->
-<!-- Custom targets.                                                       -->
-<!-- Set customBuildCallbacks = build.acceleo in your build.properties.    -->
-<!-- ===================================================================== -->
-<project name="Build Acceleo Module" default="noDefault">    
-    <!-- ================================================================= -->
-    <!-- Default target                                                    -->
-    <!-- ================================================================= -->
-    <target name="noDefault">
-        <echo message="This file must be called with explicit targets" />
-    </target>
-
-    <!-- ================================================================= -->
-    <!-- This will be called automatically after the compilation of each   -->
-    <!-- Bundle... in dependency order.                                    -->
-    <!-- ================================================================= -->
-    <target name="post.compile.@dot">
-        <acceleoCompiler 
-            sourceFolder="${target.folder}"
-            outputFolder="${target.folder}"
-            dependencies="${target.folder}/../../org.openscada.doc.output.acceleo.plaintext;${target.folder}/../../org.openscada.doc.model;${target.folder}/../../org.openscada.doc.util;${target.folder}/../../org.openscada.ui.databinding;${target.folder}/../../org.eclipse.ui.workbench;${target.folder}/../../org.eclipse.e4.ui.css.swt.theme;${target.folder}/../../org.eclipse.e4.ui.css.swt;${target.folder}/../../org.eclipse.e4.ui.css.core;${target.folder}/../../org.openscada.utils;"
-            binaryResource="false"
-            packagesToRegister="">
-        </acceleoCompiler>
-    </target>    
-</project>

org.openscada.doc.output.acceleo.plaintext.content/build.properties

-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
-               .,\
-               plugin.xml
-customBuildCallbacks = build.acceleo
-jre.compilation.profile = JavaSE-1.7

org.openscada.doc.output.acceleo.plaintext.content/plugin.xml

-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.4"?>
-<plugin>
-   <extension
-         point="org.eclipse.acceleo.engine.dynamic.templates">
-      <templates
-            path="src/org/openscada/doc/output/acceleo/plaintext/content/common/">
-      </templates>
-   </extension>
-
-</plugin>

org.openscada.doc.output.acceleo.plaintext.content/src/org/openscada/doc/output/acceleo/plaintext/content/Activator.java

-/*******************************************************************************
- * Copyright (c) 2008, 2011 Obeo.
- * 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:
- *     Obeo - initial API and implementation
- *******************************************************************************/
-package org.openscada.doc.output.acceleo.plaintext.content;
-
-import org.eclipse.core.runtime.Plugin;
-import org.osgi.framework.BundleContext;
-
-/**
- * The activator class controls the plug-in life cycle.
- */
-public class Activator extends Plugin {
-
-    /**
-     * The plug-in ID.
-     */
-    public static final String PLUGIN_ID = "org.openscada.doc.output.acceleo.plaintext.content";
-
-    /**
-     * The shared instance.
-     */
-    private static Activator plugin;
-    
-    /**
-     * The constructor.
-     */
-    public Activator() {
-    }
-
-    /**
-     * {@inheritDoc}
-     *
-     * @see org.eclipse.core.runtime.Plugin#start(org.osgi.framework.BundleContext)
-     */
-    public void start(BundleContext context) throws Exception {
-        super.start(context);
-        plugin = this;
-    }
-
-    /**
-     * {@inheritDoc}
-     *
-     * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
-     */
-    public void stop(BundleContext context) throws Exception {
-        plugin = null;
-        super.stop(context);
-    }
-
-    /**
-     * Returns the shared instance.
-     *
-     * @return the shared instance
-     */
-    public static Activator getDefault() {
-        return plugin;
-    }
-
-}

org.openscada.doc.output.acceleo.plaintext.content/src/org/openscada/doc/output/acceleo/plaintext/content/common/content.mtl

-[comment encoding = UTF-8 /]
-[module content('urn:openscada:doc:content', 'urn:openscada:doc:fragment', 'http://www.eclipse.org/emf/2002/Ecore') extends org::openscada::doc::output::acceleo::plaintext::common::content ]
-
-[template public content(paragraph : Paragraph)]
-para
-[/template]

org.openscada.doc.output.acceleo.plaintext.ui/.classpath

-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
-	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
-	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
-	<classpathentry kind="src" path="src"/>
-	<classpathentry kind="output" path="bin"/>
-</classpath>

org.openscada.doc.output.acceleo.plaintext.ui/.gitignore

-/bin

org.openscada.doc.output.acceleo.plaintext.ui/.project

-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
-	<name>org.openscada.doc.output.acceleo.plaintext.ui</name>
-	<comment></comment>
-	<projects>
-	</projects>
-	<buildSpec>
-		<buildCommand>
-			<name>org.eclipse.jdt.core.javabuilder</name>
-			<arguments>
-			</arguments>
-		</buildCommand>
-		<buildCommand>
-			<name>org.eclipse.pde.ManifestBuilder</name>
-			<arguments>
-			</arguments>
-		</buildCommand>
-		<buildCommand>
-			<name>org.eclipse.pde.SchemaBuilder</name>
-			<arguments>
-			</arguments>
-		</buildCommand>
-		<buildCommand>
-			<name>org.eclipse.pde.api.tools.apiAnalysisBuilder</name>
-			<arguments>
-			</arguments>
-		</buildCommand>
-		<buildCommand>
-			<name>org.eclipse.babel.editor.rbeBuilder</name>
-			<arguments>
-			</arguments>
-		</buildCommand>
-	</buildSpec>
-	<natures>
-		<nature>org.eclipse.pde.PluginNature</nature>
-		<nature>org.eclipse.jdt.core.javanature</nature>
-		<nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature>
-		<nature>org.eclipse.babel.editor.rbeNature</nature>
-	</natures>
-</projectDescription>

org.openscada.doc.output.acceleo.plaintext.ui/.settings/org.eclipse.jdt.core.prefs

-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.5

org.openscada.doc.output.acceleo.plaintext.ui/META-INF/MANIFEST.MF

-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: Acceleo Plaintext Module IDE Plug-in
-Bundle-SymbolicName: org.openscada.doc.output.acceleo.plaintext.ui;singleton:=true
-Bundle-Version: 0.2.0.qualifier
-Bundle-Activator: org.openscada.doc.output.acceleo.plaintext.ui.Activator
-Bundle-Vendor: Eclipse Modeling Project
-Require-Bundle: org.eclipse.ui,
- org.eclipse.core.runtime,
- org.eclipse.core.resources,
- org.openscada.doc.output.acceleo.plaintext,
- org.eclipse.emf.ecore,
- org.eclipse.emf.ecore.xmi,
- org.eclipse.ocl,
- org.eclipse.ocl.ecore,
- org.eclipse.acceleo.model,
- org.eclipse.acceleo.engine
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
-Bundle-ActivationPolicy: lazy
-Eclipse-LazyStart: true

org.openscada.doc.output.acceleo.plaintext.ui/build.properties

-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
-               .,\
-               plugin.xml,\
-               icons/
-

org.openscada.doc.output.acceleo.plaintext.ui/icons/default.gif

Removed
Old image

org.openscada.doc.output.acceleo.plaintext.ui/plugin.xml

-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.2"?>
-<plugin>
-   <extension point="org.eclipse.ui.popupMenus">
-      <objectContribution
-            adaptable="true"
-            objectClass="org.eclipse.core.resources.IFile"
-            nameFilter="*.book"
-            id="org.openscada.doc.output.acceleo.plaintext.ui.popupMenus.contribution.IFile">
-         <menu id="org.eclipse.acceleo.module.menu" label="openSCADA DocSys" path="additionsAcceleo">
-               <groupMarker name="acceleo"/> 
-         </menu>
-         <action
-               class="org.openscada.doc.output.acceleo.plaintext.ui.popupMenus.AcceleoGeneratePlaintextAction"
-               enablesFor="+"
-               icon="icons/default.gif"
-               id="org.openscada.doc.output.acceleo.plaintext.ui.popupMenus.acceleoGeneratePlaintextAction"
-               label="Generate Plaintext"
-               menubarPath="org.eclipse.acceleo.module.menu/acceleo"/>
-      </objectContribution>
-   </extension>
-</plugin>

org.openscada.doc.output.acceleo.plaintext.ui/src/org/openscada/doc/output/acceleo/plaintext/ui/Activator.java

-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- *     Obeo - initial API and implementation
- *******************************************************************************/
-package org.openscada.doc.output.acceleo.plaintext.ui;
-
-import org.eclipse.ui.plugin.AbstractUIPlugin;
-import org.osgi.framework.BundleContext;
-
-/**
- * The activator class controls the plug-in life cycle.
- */
-public class Activator extends AbstractUIPlugin {
-
-	/**
-	 * The plug-in ID.
-	 */
-	public static final String PLUGIN_ID = "org.openscada.doc.output.acceleo.plaintext.ui";
-
-	/**
-	 * The shared instance.
-	 */
-	private static Activator plugin;
-	
-	/**
-	 * The constructor.
-	 */
-	public Activator() {
-	}
-
-	/**{@inheritDoc}
-	 *
-	 * @see org.eclipse.core.runtime.Plugin#start(org.osgi.framework.BundleContext)
-	 * @generated
-	 */
-	public void start(BundleContext context) throws Exception {
-		super.start(context);
-		plugin = this;
-	}
-
-	/**{@inheritDoc}
-	 *
-	 * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
-	 * @generated
-	 */
-	public void stop(BundleContext context) throws Exception {
-		plugin = null;
-		super.stop(context);
-	}
-
-	/**
-	 * Returns the shared instance.
-	 *
-	 * @return the shared instance
-	 */
-	public static Activator getDefault() {
-		return plugin;
-	}
-
-}

org.openscada.doc.output.acceleo.plaintext.ui/src/org/openscada/doc/output/acceleo/plaintext/ui/common/GenerateAll.java

-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- *     Obeo - initial API and implementation
- *******************************************************************************/
-package org.openscada.doc.output.acceleo.plaintext.ui.common;
-
-import java.io.IOException;
-import java.net.URL;
-import java.util.ArrayList;
-import java.util.Enumeration;
-import java.util.List;
-
-import org.eclipse.core.resources.IContainer;
-import org.eclipse.core.runtime.IPath;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.Path;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.emf.common.util.BasicMonitor;
-import org.eclipse.emf.common.util.URI;
-import org.osgi.framework.Bundle;
-
-
-/**
- * Main entry point of the 'Plaintext' generation module.
- */
-public class GenerateAll {
-
-	/**
-	 * The model URI.
-	 */
-	private URI modelURI;
-
-	/**
-	 * The output folder.
-	 */
-	private IContainer targetFolder;
-
-	/**
-	 * The other arguments.
-	 */
-	List<? extends Object> arguments;
-
-	/**
-	 * Constructor.
-	 * 
-	 * @param modelURI
-	 *            is the URI of the model.
-	 * @param targetFolder
-	 *            is the output folder
-	 * @param arguments
-	 *            are the other arguments
-	 * @throws IOException
-	 *             Thrown when the output cannot be saved.
-	 * @generated
-	 */
-	public GenerateAll(URI modelURI, IContainer targetFolder, List<? extends Object> arguments) {
-		this.modelURI = modelURI;
-		this.targetFolder = targetFolder;
-		this.arguments = arguments;
-	}
-
-	/**
-	 * Launches the generation.
-	 *
-	 * @param monitor
-	 *            This will be used to display progress information to the user.
-	 * @throws IOException
-	 *             Thrown when the output cannot be saved.
-	 * @generated
-	 */
-	public void doGenerate(IProgressMonitor monitor) throws IOException {
-		if (!targetFolder.getLocation().toFile().exists()) {
-			targetFolder.getLocation().toFile().mkdirs();
-		}
-		
-		// final URI template0 = getTemplateURI("org.openscada.doc.output.acceleo.plaintext", new Path("/org/openscada/doc/output/acceleo/plaintext/main/generate.emtl"));
-		// org.openscada.doc.output.acceleo.plaintext.main.Generate gen0 = new org.openscada.doc.output.acceleo.plaintext.main.Generate(modelURI, targetFolder.getLocation().toFile(), arguments) {
-		//	protected URI createTemplateURI(String entry) {
-		//		return template0;
-		//	}
-		//};
-		//gen0.doGenerate(BasicMonitor.toMonitor(monitor));
-		monitor.subTask("Loading...");
-		org.openscada.doc.output.acceleo.plaintext.main.Generate gen0 = new org.openscada.doc.output.acceleo.plaintext.main.Generate(modelURI, targetFolder.getLocation().toFile(), arguments);
-		monitor.worked(1);
-		String generationID = org.eclipse.acceleo.engine.utils.AcceleoLaunchingUtil.computeUIProjectID("org.openscada.doc.output.acceleo.plaintext", "org.openscada.doc.output.acceleo.plaintext.main.Generate", modelURI.toString(), targetFolder.getFullPath().toString(), new ArrayList<String>());
-		gen0.setGenerationID(generationID);
-		gen0.doGenerate(BasicMonitor.toMonitor(monitor));
-			
-		
-	}
-	
-	/**
-	 * Finds the template in the plug-in. Returns the template plug-in URI.
-	 * 
-	 * @param bundleID
-	 *            is the plug-in ID
-	 * @param relativePath
-	 *            is the relative path of the template in the plug-in
-	 * @return the template URI
-	 * @throws IOException
-	 * @generated
-	 */
-	@SuppressWarnings("unchecked")
-	private URI getTemplateURI(String bundleID, IPath relativePath) throws IOException {
-		Bundle bundle = Platform.getBundle(bundleID);
-		if (bundle == null) {
-			// no need to go any further
-			return URI.createPlatformResourceURI(new Path(bundleID).append(relativePath).toString(), false);
-		}
-		URL url = bundle.getEntry(relativePath.toString());
-		if (url == null && relativePath.segmentCount() > 1) {
-			Enumeration<URL> entries = bundle.findEntries("/", "*.emtl", true);
-			if (entries != null) {
-				String[] segmentsRelativePath = relativePath.segments();
-				while (url == null && entries.hasMoreElements()) {
-					URL entry = entries.nextElement();
-					IPath path = new Path(entry.getPath());
-					if (path.segmentCount() > relativePath.segmentCount()) {
-						path = path.removeFirstSegments(path.segmentCount() - relativePath.segmentCount());
-					}
-					String[] segmentsPath = path.segments();
-					boolean equals = segmentsPath.length == segmentsRelativePath.length;
-					for (int i = 0; equals && i < segmentsPath.length; i++) {
-						equals = segmentsPath[i].equals(segmentsRelativePath[i]);
-					}
-					if (equals) {
-						url = bundle.getEntry(entry.getPath());
-					}
-				}
-			}
-		}
-		URI result;
-		if (url != null) {
-			result = URI.createPlatformPluginURI(new Path(bundleID).append(new Path(url.getPath())).toString(), false);
-		} else {
-			result = URI.createPlatformResourceURI(new Path(bundleID).append(relativePath).toString(), false);
-		}
-		return result;
-	}
-
-}

org.openscada.doc.output.acceleo.plaintext.ui/src/org/openscada/doc/output/acceleo/plaintext/ui/popupMenus/AcceleoGeneratePlaintextAction.java

-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- *     Obeo - initial API and implementation
- *******************************************************************************/
-package org.openscada.doc.output.acceleo.plaintext.ui.popupMenus;
-
-import java.io.IOException;
-import java.lang.reflect.InvocationTargetException;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.core.resources.IContainer;
-import org.eclipse.core.resources.IFile;
-import org.eclipse.core.resources.IResource;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.jface.action.IAction;
-import org.eclipse.jface.operation.IRunnableWithProgress;
-import org.eclipse.jface.viewers.ISelection;
-import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.ui.IActionDelegate;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.actions.ActionDelegate;
-import org.openscada.doc.output.acceleo.plaintext.ui.Activator;
-import org.openscada.doc.output.acceleo.plaintext.ui.common.GenerateAll;
-
-/**
- * Plaintext code generation.
- */
-public class AcceleoGeneratePlaintextAction extends ActionDelegate implements IActionDelegate {
-	
-	/**
-	 * Selected model files.
-	 */
-	protected List<IFile> files;
-
-	/**{@inheritDoc}
-	 *
-	 * @see org.eclipse.ui.actions.ActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection)
-	 * @generated
-	 */
-	@SuppressWarnings("unchecked")
-	public void selectionChanged(IAction action, ISelection selection) {
-		if (selection instanceof IStructuredSelection) {
-			files = ((IStructuredSelection) selection).toList();
-		}
-	}
-
-	/**{@inheritDoc}
-	 *
-	 * @see org.eclipse.ui.actions.ActionDelegate#run(org.eclipse.jface.action.IAction)
-	 * @generated
-	 */
-	public void run(IAction action) {
-		if (files != null) {
-			IRunnableWithProgress operation = new IRunnableWithProgress() {
-				public void run(IProgressMonitor monitor) {
-					try {
-						Iterator<IFile> filesIt = files.iterator();
-						while (filesIt.hasNext()) {
-							IFile model = (IFile)filesIt.next();
-							URI modelURI = URI.createPlatformResourceURI(model.getFullPath().toString(), true);
-							try {
-								IContainer target = model.getParent();
-								GenerateAll generator = new GenerateAll(modelURI, target, getArguments());
-								generator.doGenerate(monitor);
-							} catch (IOException e) {
-								IStatus status = new Status(IStatus.ERROR, Activator.PLUGIN_ID, e.getMessage(), e);
-								Activator.getDefault().getLog().log(status);
-							} finally {
-								model.getProject().refreshLocal(IResource.DEPTH_INFINITE, monitor);
-							}
-						}
-					} catch (CoreException e) {
-						IStatus status = new Status(IStatus.ERROR, Activator.PLUGIN_ID, e.getMessage(), e);
-						Activator.getDefault().getLog().log(status);
-					}
-				}
-			};
-			try {
-				PlatformUI.getWorkbench().getProgressService().run(true, true, operation);
-			} catch (InvocationTargetException e) {
-				IStatus status = new Status(IStatus.ERROR, Activator.PLUGIN_ID, e.getMessage(), e);
-				Activator.getDefault().getLog().log(status);
-			} catch (InterruptedException e) {
-				IStatus status = new Status(IStatus.ERROR, Activator.PLUGIN_ID, e.getMessage(), e);
-				Activator.getDefault().getLog().log(status);
-			}
-		}
-	}
-
-	/**
-	 * Computes the arguments of the generator.
-	 * 
-	 * @return the arguments
-	 * @generated
-	 */
-	protected List<? extends Object> getArguments() {
-		return new ArrayList<String>();
-	}
-
-}

org.openscada.doc.output.acceleo.plaintext/.classpath

-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
-	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
-	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
-	<classpathentry kind="src" output="bin" path="src"/>
-	<classpathentry kind="output" path="bin"/>
-</classpath>

org.openscada.doc.output.acceleo.plaintext/.gitignore

-/bin

org.openscada.doc.output.acceleo.plaintext/.project

-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
-	<name>org.openscada.doc.output.acceleo.plaintext</name>
-	<comment></comment>
-	<projects>
-	</projects>
-	<buildSpec>
-		<buildCommand>
-			<name>org.eclipse.jdt.core.javabuilder</name>
-			<arguments>
-			</arguments>
-		</buildCommand>
-		<buildCommand>
-			<name>org.eclipse.pde.ManifestBuilder</name>
-			<arguments>
-			</arguments>
-		</buildCommand>
-		<buildCommand>
-			<name>org.eclipse.pde.SchemaBuilder</name>
-			<arguments>
-			</arguments>
-		</buildCommand>
-		<buildCommand>
-			<name>org.eclipse.acceleo.ide.ui.acceleoBuilder</name>
-			<arguments>
-				<dictionary>
-					<key>compilation.kind</key>
-					<value>compilation.platform.resource</value>
-				</dictionary>
-				<dictionary>
-					<key>compliance</key>
-					<value>pragmatic</value>
-				</dictionary>
-				<dictionary>
-					<key>resource.kind</key>
-					<value>xmi</value>
-				</dictionary>
-			</arguments>
-		</buildCommand>
-		<buildCommand>
-			<name>org.eclipse.babel.editor.rbeBuilder</name>
-			<arguments>
-			</arguments>
-		</buildCommand>
-		<buildCommand>
-			<name>org.eclipse.pde.api.tools.apiAnalysisBuilder</name>
-			<arguments>
-			</arguments>
-		</buildCommand>
-	</buildSpec>
-	<natures>
-		<nature>org.eclipse.acceleo.ide.ui.acceleoNature</nature>
-		<nature>org.eclipse.jdt.core.javanature</nature>
-		<nature>org.eclipse.pde.PluginNature</nature>
-		<nature>org.eclipse.babel.editor.rbeNature</nature>
-		<nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature>
-	</natures>
-</projectDescription>

org.openscada.doc.output.acceleo.plaintext/META-INF/MANIFEST.MF

-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: Acceleo Plaintext Module Runtime Plug-in
-Bundle-SymbolicName: org.openscada.doc.output.acceleo.plaintext;singleton:=true
-Bundle-Version: 0.2.0.qualifier
-Bundle-Activator: org.openscada.doc.output.acceleo.plaintext.Activator
-Bundle-Vendor: Eclipse Modeling Project
-Require-Bundle: org.eclipse.core.runtime,
- org.eclipse.emf.ecore,
- org.eclipse.emf.ecore,
- org.eclipse.emf.ecore.xmi,
- org.eclipse.ocl,
- org.eclipse.ocl.ecore,
- org.eclipse.acceleo.common;bundle-version="3.3.0",
- org.eclipse.acceleo.model;bundle-version="3.3.0",
- org.eclipse.acceleo.profiler;bundle-version="3.3.0",
- org.eclipse.acceleo.engine;bundle-version="3.3.0",
- com.google.guava,
- org.openscada.doc.model;bundle-version="0.1.0"
-Bundle-RequiredExecutionEnvironment: JavaSE-1.6
-Bundle-ActivationPolicy: lazy
-Eclipse-LazyStart: true
-Export-Package: org.openscada.doc.output.acceleo.plaintext.main
-

org.openscada.doc.output.acceleo.plaintext/build.acceleo

-<!-- ===================================================================== -->
-<!-- Custom targets.                                                       -->
-<!-- Set customBuildCallbacks = build.acceleo in your build.properties.    -->
-<!-- ===================================================================== -->
-<project name="Build Acceleo Module" default="noDefault">    
-    <!-- ================================================================= -->
-    <!-- Default target                                                    -->
-    <!-- ================================================================= -->
-    <target name="noDefault">
-        <echo message="This file must be called with explicit targets" />
-    </target>
-
-    <!-- ================================================================= -->
-    <!-- This will be called automatically after the compilation of each   -->
-    <!-- Bundle... in dependency order.                                    -->
-    <!-- ================================================================= -->
-    <target name="post.compile.@dot">
-        <acceleoCompiler 
-            sourceFolder="${target.folder}"
-            outputFolder="${target.folder}"
-            dependencies="${target.folder}/../../org.openscada.doc.model;${target.folder}/../../org.openscada.doc.util;${target.folder}/../../org.openscada.ui.databinding;${target.folder}/../../org.eclipse.ui.workbench;${target.folder}/../../org.eclipse.e4.ui.css.swt.theme;${target.folder}/../../org.eclipse.e4.ui.css.swt;${target.folder}/../../org.eclipse.e4.ui.css.core;${target.folder}/../../org.openscada.utils;"
-            binaryResource="false"
-            packagesToRegister="">
-        </acceleoCompiler>
-    </target>    
-</project>

org.openscada.doc.output.acceleo.plaintext/build.properties

-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
-               .
-customBuildCallbacks = build.acceleo
-jre.compilation.profile = JavaSE-1.6

org.openscada.doc.output.acceleo.plaintext/src/org/openscada/doc/output/acceleo/plaintext/Activator.java

-/*******************************************************************************
- * Copyright (c) 2008, 2011 Obeo.
- * 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:
- *     Obeo - initial API and implementation
- *******************************************************************************/
-package org.openscada.doc.output.acceleo.plaintext;
-
-import org.eclipse.core.runtime.Plugin;
-import org.osgi.framework.BundleContext;
-
-/**
- * The activator class controls the plug-in life cycle.
- */
-public class Activator extends Plugin
-{
-
-    /**
-     * The plug-in ID.
-     */
-    public static final String PLUGIN_ID = "org.openscada.doc.output.acceleo.plaintext";
-
-    /**
-     * The shared instance.
-     */
-    private static Activator plugin;
-
-    /**
-     * The constructor.
-     */
-    public Activator ()
-    {
-    }
-
-    /**
-     * {@inheritDoc}
-     * 
-     * @see org.eclipse.core.runtime.Plugin#start(org.osgi.framework.BundleContext)
-     */
-    @Override
-    public void start ( final BundleContext context ) throws Exception
-    {
-        super.start ( context );
-        plugin = this;
-    }
-
-    /**
-     * {@inheritDoc}
-     * 
-     * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
-     */
-    @Override
-    public void stop ( final BundleContext context ) throws Exception
-    {
-        plugin = null;
-        super.stop ( context );
-    }
-
-    /**
-     * Returns the shared instance.
-     * 
-     * @return the shared instance
-     */
-    public static Activator getDefault ()
-    {
-        return plugin;
-    }
-
-}

org.openscada.doc.output.acceleo.plaintext/src/org/openscada/doc/output/acceleo/plaintext/common/content.mtl

-[comment encoding = UTF-8 /]
-[module content('urn:openscada:doc:book', 'urn:openscada:doc:fragment', 'http://www.eclipse.org/emf/2002/Ecore')]
-
-[template public content ( content : PlainTextContent ) ]
-[content.value/]
-[/template]
-
-[template public content ( content : EObject ) ]
-Y: [content/]
-[/template]
-
-[template public contentList ( content : OrderedSet(EObject) ) ]
-[for (content : EObject | content)]
-C: [content/]
-[content(content)/]
-[/for]
-[/template]

org.openscada.doc.output.acceleo.plaintext/src/org/openscada/doc/output/acceleo/plaintext/main/Generate.java

-/*******************************************************************************
- * Copyright (c) 2008, 2012 Obeo.
- * 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:
- *     Obeo - initial API and implementation
- *******************************************************************************/
-package org.openscada.doc.output.acceleo.plaintext.main;
-
-import java.io.File;
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.acceleo.engine.event.IAcceleoTextGenerationListener;
-import org.eclipse.acceleo.engine.generation.strategy.IAcceleoGenerationStrategy;
-import org.eclipse.acceleo.engine.service.AbstractAcceleoGenerator;
-import org.eclipse.emf.common.util.BasicMonitor;
-import org.eclipse.emf.common.util.Monitor;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.resource.ResourceSet;
-
-/**
- * Entry point of the 'Generate' generation module.
- * 
- * @generated
- */
-public class Generate extends AbstractAcceleoGenerator
-{
-    /**
-     * The name of the module.
-     * 
-     * @generated
-     */
-    public static final String MODULE_FILE_NAME = "/org/openscada/doc/output/acceleo/plaintext/main/generate";
-
-    /**
-     * The name of the templates that are to be generated.
-     * 
-     * @generated
-     */
-    public static final String[] TEMPLATE_NAMES = { "generateElement" };
-
-    /**
-     * The list of properties files from the launch parameters (Launch
-     * configuration).
-     * 
-     * @generated
-     */
-    private List<String> propertiesFiles = new ArrayList<String>();
-
-    /**
-     * Allows the public constructor to be used. Note that a generator created
-     * this way cannot be used to launch generations before one of
-     * {@link #initialize(EObject, File, List)} or
-     * {@link #initialize(URI, File, List)} is called.
-     * <p>
-     * The main reason for this constructor is to allow clients of this
-     * generation to call it from another Java file, as it allows for the
-     * retrieval of {@link #getProperties()} and
-     * {@link #getGenerationListeners()}.
-     * </p>
-     * 
-     * @generated
-     */
-    public Generate ()
-    {
-        // Empty implementation
-    }
-
-    /**
-     * This allows clients to instantiates a generator with all required
-     * information.
-     * 
-     * @param modelURI
-     *            URI where the model on which this generator will be used is
-     *            located.
-     * @param targetFolder
-     *            This will be used as the output folder for this generation :
-     *            it will be the base path
-     *            against which all file block URLs will be resolved.
-     * @param arguments
-     *            If the template which will be called requires more than one
-     *            argument taken from the model,
-     *            pass them here.
-     * @throws IOException
-     *             This can be thrown in three scenarios : the module cannot be
-     *             found, it cannot be loaded, or
-     *             the model cannot be loaded.
-     * @generated
-     */
-    public Generate ( URI modelURI, File targetFolder, List<? extends Object> arguments ) throws IOException
-    {
-        initialize(modelURI, targetFolder, arguments);
-    }
-
-    /**
-     * This allows clients to instantiates a generator with all required
-     * information.
-     * 
-     * @param model
-     *            We'll iterate over the content of this element to find Objects
-     *            matching the first parameter
-     *            of the template we need to call.
-     * @param targetFolder
-     *            This will be used as the output folder for this generation :
-     *            it will be the base path
-     *            against which all file block URLs will be resolved.
-     * @param arguments
-     *            If the template which will be called requires more than one
-     *            argument taken from the model,
-     *            pass them here.
-     * @throws IOException
-     *             This can be thrown in two scenarios : the module cannot be
-     *             found, or it cannot be loaded.
-     * @generated
-     */
-    public Generate ( EObject model, File targetFolder, List<? extends Object> arguments ) throws IOException
-    {
-        initialize(model, targetFolder, arguments);
-    }
-
-    /**
-     * This can be used to launch the generation from a standalone application.
-     * 
-     * @param args
-     *            Arguments of the generation.
-     * @generated
-     */
-    public static void main ( String[] args )
-    {
-        try {
-            if (args.length < 2) {
-                System.out.println("Arguments not valid : {model, folder}.");
-            } else {
-                URI modelURI = URI.createFileURI(args[0]);
-                File folder = new File(args[1]);
-                
-                List<String> arguments = new ArrayList<String>();
-                
-                /*
-                 * If you want to change the content of this method, do NOT forget to change the "@generated"
-                 * tag in the Javadoc of this method to "@generated NOT". Without this new tag, any compilation
-                 * of the Acceleo module with the main template that has caused the creation of this class will
-                 * revert your modifications.
-                 */
-
-                /*
-                 * Add in this list all the arguments used by the starting point of the generation
-                 * If your main template is called on an element of your model and a String, you can
-                 * add in "arguments" this "String" attribute.
-                 */
-                
-                Generate generator = new Generate(modelURI, folder, arguments);
-                
-                /*
-                 * Add the properties from the launch arguments.
-                 * If you want to programmatically add new properties, add them in "propertiesFiles"
-                 * You can add the absolute path of a properties files, or even a project relative path.
-                 * If you want to add another "protocol" for your properties files, please override 
-                 * "getPropertiesLoaderService(AcceleoService)" in order to return a new property loader.
-                 * The behavior of the properties loader service is explained in the Acceleo documentation
-                 * (Help -> Help Contents).
-                 */
-                 
-                for (int i = 2; i < args.length; i++) {
-                    generator.addPropertiesFile(args[i]);
-                }
-                
-                generator.doGenerate(new BasicMonitor());
-            }
-        } catch (IOException e) {
-            e.printStackTrace();
-        }
-    }
-
-    /**
-     * Launches the generation described by this instance.
-     * 
-     * @param monitor
-     *            This will be used to display progress information to the user.
-     * @throws IOException
-     *             This will be thrown if any of the output files cannot be
-     *             saved to disk.
-     * @generated
-     */
-    @Override
-    public void doGenerate ( Monitor monitor ) throws IOException
-    {
-        /*
-         * TODO if you wish to change the generation as a whole, override this. The default behavior should
-         * be sufficient in most cases. If you want to change the content of this method, do NOT forget to
-         * change the "@generated" tag in the Javadoc of this method to "@generated NOT". Without this new tag,
-         * any compilation of the Acceleo module with the main template that has caused the creation of this
-         * class will revert your modifications. If you encounter a problem with an unresolved proxy during the
-         * generation, you can remove the comments in the following instructions to check for problems. Please
-         * note that those instructions may have a significant impact on the performances.
-         */
-
-        //org.eclipse.emf.ecore.util.EcoreUtil.resolveAll(model);
-
-        /*
-         * If you want to check for potential errors in your models before the launch of the generation, you
-         * use the code below.
-         */
-
-        //if (model != null && model.eResource() != null) {
-        //    List<org.eclipse.emf.ecore.resource.Resource.Diagnostic> errors = model.eResource().getErrors();
-        //    for (org.eclipse.emf.ecore.resource.Resource.Diagnostic diagnostic : errors) {
-        //        System.err.println(diagnostic.toString());
-        //    }
-        //}
-
-        super.doGenerate(monitor);
-    }
-
-    /**
-     * If this generator needs to listen to text generation events, listeners
-     * can be returned from here.
-     * 
-     * @return List of listeners that are to be notified when text is generated
-     *         through this launch.
-     * @generated
-     */
-    @Override
-    public List<IAcceleoTextGenerationListener> getGenerationListeners ()
-    {
-        List<IAcceleoTextGenerationListener> listeners = super.getGenerationListeners();
-        /*
-         * TODO if you need to listen to generation event, add listeners to the list here. If you want to change
-         * the content of this method, do NOT forget to change the "@generated" tag in the Javadoc of this method
-         * to "@generated NOT". Without this new tag, any compilation of the Acceleo module with the main template
-         * that has caused the creation of this class will revert your modifications.
-         */
-        return listeners;
-    }
-
-    /**
-     * If you need to change the way files are generated, this is your entry
-     * point.
-     * <p>
-     * The default is
-     * {@link org.eclipse.acceleo.engine.generation.strategy.DefaultStrategy};
-     * it generates files on the fly. If you only need to preview the results,
-     * return a new
-     * {@link org.eclipse.acceleo.engine.generation.strategy.PreviewStrategy}.
-     * Both of these aren't aware of the running Eclipse and can be used
-     * standalone.
-     * </p>
-     * <p>
-     * If you need the file generation to be aware of the workspace (A typical
-     * example is when you wanna override files that are under clear case or any
-     * other VCS that could forbid the overriding), then return a new
-     * {@link org.eclipse.acceleo.engine.generation.strategy.WorkspaceAwareStrategy}
-     * . <b>Note</b>, however, that this <b>cannot</b> be used standalone.
-     * </p>
-     * <p>
-     * All three of these default strategies support merging through JMerge.
-     * </p>
-     * 
-     * @return The generation strategy that is to be used for generations
-     *         launched through this launcher.
-     * @generated
-     */
-    @Override
-    public IAcceleoGenerationStrategy getGenerationStrategy ()
-    {
-        return super.getGenerationStrategy();
-    }
-
-    /**
-     * This will be called in order to find and load the module that will be
-     * launched through this launcher.
-     * We expect this name not to contain file extension, and the module to be
-     * located beside the launcher.
-     * 
-     * @return The name of the module that is to be launched.
-     * @generated
-     */
-    @Override
-    public String getModuleName ()
-    {
-        return MODULE_FILE_NAME;
-    }
-
-    /**
-     * If the module(s) called by this launcher require properties files, return
-     * their qualified path from
-     * here.Take note that the first added properties files will take precedence
-     * over subsequent ones if they
-     * contain conflicting keys.
-     * 
-     * @return The list of properties file we need to add to the generation
-     *         context.
-     * @see java.util.ResourceBundle#getBundle(String)
-     * @generated
-     */
-    @Override
-    public List<String> getProperties ()
-    {
-        /*
-         * If you want to change the content of this method, do NOT forget to change the "@generated"
-         * tag in the Javadoc of this method to "@generated NOT". Without this new tag, any compilation
-         * of the Acceleo module with the main template that has caused the creation of this class will
-         * revert your modifications.
-         */
-
-        /*
-         * TODO if your generation module requires access to properties files, add their qualified path to the list here.
-         * 
-         * Properties files can be located in an Eclipse plug-in or in the file system (all Acceleo projects are Eclipse
-         * plug-in). In order to use properties files located in an Eclipse plugin, you need to add the path of the properties
-         * files to the "propertiesFiles" list:
-         * 
-         * final String prefix = "platform:/plugin/";
-         * final String pluginName = "org.eclipse.acceleo.module.sample";
-         * final String packagePath = "/org/eclipse/acceleo/module/sample/properties/";
-         * final String fileName = "default.properties";
-         * propertiesFiles.add(prefix + pluginName + packagePath + fileName);
-         * 
-         * With this mechanism, you can load properties files from your plugin or from another plugin.
-         * 
-         * You may want to load properties files from the file system, for that you need to add the absolute path of the file:
-         * 
-         * propertiesFiles.add("C:\Users\MyName\MyFile.properties");
-         * 
-         * If you want to let your users add properties files located in the same folder as the model:
-         *
-         * if (EMFPlugin.IS_ECLIPSE_RUNNING && model != null && model.eResource() != null) { 
-         *     propertiesFiles.addAll(AcceleoEngineUtils.getPropertiesFilesNearModel(model.eResource()));
-         * }
-         * 
-         * To learn more about Properties Files, have a look at the Acceleo documentation (Help -> Help Contents).
-         */
-        return propertiesFiles;
-    }
-
-    /**
-     * Adds a properties file in the list of properties files.
-     * 
-     * @param propertiesFile
-     *            The properties file to add.
-     * @generated
-     * @since 3.1
-     */
-    @Override
-    public void addPropertiesFile ( String propertiesFile )
-    {
-        this.propertiesFiles.add(propertiesFile);
-    }
-
-    /**
-     * This will be used to get the list of templates that are to be launched by
-     * this launcher.
-     * 
-     * @return The list of templates to call on the module
-     *         {@link #getModuleName()}.
-     * @generated
-     */
-    @Override
-    public String[] getTemplateNames ()
-    {
-        return TEMPLATE_NAMES;
-    }
-
-    /**
-     * This can be used to update the resource set's package registry with all
-     * needed EPackages.
-     * 
-     * @param resourceSet
-     *            The resource set which registry has to be updated.
-     * @generated
-     */
-    @Override
-    public void registerPackages ( ResourceSet resourceSet )
-    {
-        super.registerPackages(resourceSet);
-        if (!isInWorkspace(org.eclipse.emf.ecore.EcorePackage.class)) {
-            resourceSet.getPackageRegistry().put(org.eclipse.emf.ecore.EcorePackage.eINSTANCE.getNsURI(), org.eclipse.emf.ecore.EcorePackage.eINSTANCE);
-        }
-        
-        /*
-         * If you want to change the content of this method, do NOT forget to change the "@generated"
-         * tag in the Javadoc of this method to "@generated NOT". Without this new tag, any compilation
-         * of the Acceleo module with the main template that has caused the creation of this class will
-         * revert your modifications.
-         */
-        
-        /*
-         * If you need additional package registrations, you can register them here. The following line
-         * (in comment) is an example of the package registration for UML.
-         * 
-         * You can use the method  "isInWorkspace(Class c)" to check if the package that you are about to
-         * register is in the workspace.
-         * 
-         * To register a package properly, please follow the following conventions:
-         *
-         * If the package is located in another plug-in, already installed in Eclipse. The following content should
-         * have been generated at the beginning of this method. Do not register the package using this mechanism if
-         * the metamodel is located in the workspace.
-         *  
-         * if (!isInWorkspace(UMLPackage.class)) {
-         *     // The normal package registration if your metamodel is in a plugin.
-         *     resourceSet.getPackageRegistry().put(UMLPackage.eNS_URI, UMLPackage.eINSTANCE);
-         * }
-         * 
-         * If the package is located in another project in your workspace, the plugin containing the package has not
-         * been register by EMF and Acceleo should register it automatically. If you want to use the generator in
-         * stand alone, the regular registration (seen a couple lines before) is needed.
-         * 
-         * To learn more about Package Registration, have a look at the Acceleo documentation (Help -> Help Contents).
-         */
-    }
-
-    /**
-     * This can be used to update the resource set's resource factory registry
-     * with all needed factories.
-     * 
-     * @param resourceSet
-     *            The resource set which registry has to be updated.
-     * @generated
-     */
-    @Override
-    public void registerResourceFactories ( ResourceSet resourceSet )
-    {
-        super.registerResourceFactories(resourceSet);
-        /*
-         * If you want to change the content of this method, do NOT forget to change the "@generated"
-         * tag in the Javadoc of this method to "@generated NOT". Without this new tag, any compilation
-         * of the Acceleo module with the main template that has caused the creation of this class will
-         * revert your modifications.
-         */
-        
-        /*
-         * TODO If you need additional resource factories registrations, you can register them here. the following line
-         * (in comment) is an example of the resource factory registration for UML.
-         *
-         * If you want to use the generator in stand alone, the resource factory registration will be required.
-         *  
-         * To learn more about the registration of Resource Factories, have a look at the Acceleo documentation (Help -> Help Contents). 
-         */ 
-        
-        // resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put(UMLResource.FILE_EXTENSION, UMLResource.Factory.INSTANCE);
-    }
-
-}

org.openscada.doc.output.acceleo.plaintext/src/org/openscada/doc/output/acceleo/plaintext/main/generate.mtl

-[comment encoding = UTF-8 /]
-[**
- * The documentation of the module generate.
- */]
-[module generate('urn:openscada:doc:book','urn:openscada:doc:fragment', 'http://www.eclipse.org/emf/2002/Ecore')]
-
-[import org::openscada::doc::output::acceleo::plaintext::common::content /]
-
-[**
- * The documentation of the template generateElement.
- * @param book
- */]
-[template public generateElement(book : Book)]
-[comment @main/]
- 
-[file ('book.txt', false, 'UTF-8')]
-[contentList(book.content->filter(EObject))/]
-[sections(book.sections)/]
-[/file]
-
-[/template]
-
-[template public sections(sections : OrderedSet(BookSection))]
-[for (section : BookSection | sections)]
-[section(section)/]
-[/for]
-[/template]
-
-[template public section(section : BookSection)]
-[section.number/] - [section.title/]
-[section.hl(section.level())/]
-
-[contentList(section.content->filter(EObject))/]
-[sections(section.sections)/]
-[/template]
-
-[query public level(section : BookSection) : Integer =
-	if ( section.eContainer().oclIsUndefined() or ( not section.eContainer().oclIsTypeOf(BookSection) ) )
-	then
-		1
-	else
-		level ( section.eContainer().oclAsType(BookSection) ) + 1
-	endif
- /]
-
-[query public hl(level : Integer) : String =
-	if level<=1 then
-		'=========================================='
-	else if level<=2 then
-		'------------------------------------------'
-	else if level<=3 then
-		'..........................................'
-	else
-		'-----'
-	endif
-	endif
-    endif
-/]
-

org.openscada.doc.output.acceleo.plaintext/tasks/generate.xml

-<?xml version="1.0" encoding="UTF-8"?>
-<project default="generate" name="org.openscada.doc.output.acceleo.plaintext">
-    <property name="ECLIPSE_HOME" value="../../../../../Desktop/eclipse_43RC1"/>
-    <property name="ECLIPSE_WORKSPACE" value="../../.."/>
-
-    <!-- The classpath with only the dependencies used by the project -->
-    <path id="org.openscada.doc.output.acceleo.plaintext.libraryclasspath">
-        <pathelement location="${ECLIPSE_WORKSPACE}/org.openscada.doc.output.acceleo.plaintext/bin"/>
-        <pathelement location="${ECLIPSE_WORKSPACE}//org.openscada.external/builder_external/builder/lib/javax.transaction_1.1.1.v201105210645.jar"/>
-        <pathelement location="${ECLIPSE_WORKSPACE}//.metadata/.plugins/org.eclipse.pde.core/.bundle_pool/plugins/org.eclipse.ocl_3.3.0.v20130520-1918.jar"/>
-        <pathelement location="${ECLIPSE_WORKSPACE}//.metadata/.plugins/org.eclipse.pde.core/.bundle_pool/plugins/lpg.runtime.java_2.0.17.v201004271640.jar"/>
-        <pathelement location="${ECLIPSE_WORKSPACE}//.metadata/.plugins/org.eclipse.pde.core/.bundle_pool/plugins/org.eclipse.ocl.common_1.1.0.v20130520-1222.jar"/>
-        <pathelement location="${ECLIPSE_WORKSPACE}//.metadata/.plugins/org.eclipse.pde.core/.bundle_pool/plugins/org.eclipse.ocl.ecore_3.3.0.v20130520-1222.jar"/>
-        <pathelement location="${ECLIPSE_WORKSPACE}//.metadata/.plugins/org.eclipse.pde.core/.bundle_pool/plugins/org.eclipse.acceleo.common_3.4.0.201305170827.jar"/>
-        <pathelement location="${ECLIPSE_WORKSPACE}//.metadata/.plugins/org.eclipse.pde.core/.bundle_pool/plugins/org.eclipse.acceleo.model_3.4.0.201305170827.jar"/>
-        <pathelement location="${ECLIPSE_WORKSPACE}//.metadata/.plugins/org.eclipse.pde.core/.bundle_pool/plugins/org.eclipse.acceleo.profiler_3.4.0.201305170827.jar"/>
-        <pathelement location="${ECLIPSE_WORKSPACE}//.metadata/.plugins/org.eclipse.pde.core/.bundle_pool/plugins/org.eclipse.acceleo.engine_3.4.0.201305170827.jar"/>
-        <pathelement location="${ECLIPSE_WORKSPACE}//.metadata/.plugins/org.eclipse.pde.core/.bundle_pool/plugins/org.eclipse.emf.codegen.ecore_2.9.0.v20130527-0426.jar"/>
-        <pathelement location="${ECLIPSE_WORKSPACE}//.metadata/.plugins/org.eclipse.pde.core/.bundle_pool/plugins/org.eclipse.emf.codegen_2.9.0.v20130527-0426.jar"/>
-        <pathelement location="${ECLIPSE_WORKSPACE}//org.openscada.external/builder_external/builder/lib/com.google.guava_12.0.0.v201212092141.jar"/>
-    </path>
-
-    <path id="org.openscada.doc.output.acceleo.plaintext.classpath">
-        <path refid="org.openscada.doc.output.acceleo.plaintext.libraryclasspath"/>
-    </path>
-
-    <!-- The classpath with only the jars available in the plugin folder of Eclipse -->
-    <path id="org.openscada.doc.output.acceleo.plaintext.libraryclasspath.alljars">
-        <pathelement location="../org.openscada.doc.output.acceleo.plaintext/bin"/>
-        <fileset dir="${ECLIPSE_HOME}/plugins/" includes="*.jar"/>
-    </path>
-
-    <path id="org.openscada.doc.output.acceleo.plaintext.classpath.alljars">
-        <path refid="org.openscada.doc.output.acceleo.plaintext.libraryclasspath.alljars"/>
-    </path>
-
-    <!-- The default task with the jars used by this project -->
-    <target name="generate">
-        <java classname="org.openscada.doc.output.acceleo.plaintext.main.Generate" classpathref="org.openscada.doc.output.acceleo.plaintext.classpath">
-            <arg value="${model}"/>
-            <arg value="${target}"/>
-        </java>
-    </target>
-
-    <!--
-        In case of problem you can also try with all the jar available in your Eclipse
-        Keep in mind that having two versions of the same jar can create problems
-    -->
-    <target name="generate.alljars">
-        <java classname="org.openscada.doc.output.acceleo.plaintext.main.Generate" classpathref="org.openscada.doc.output.acceleo.plaintext.classpath">
-            <arg value="${model}"/>
-            <arg value="${target}"/>
-        </java>
-    </target>
-</project>

org.openscada.doc.output.acceleo.plaintext/tasks/generateTarget.xml

-<?xml version="1.0" encoding="UTF-8"?>
-
-<!-- Place this file in the target project and call it with "External Tools > Run As > Ant Build" -->
-<!-- You have to change the MODEL and the TARGET values -->
-
-<project basedir="." default="generateSample" name="org.openscada.doc.output.acceleo.plaintextSample">
-	<import file="../../org.openscada.doc.output.acceleo.plaintext/tasks/generate.xml"/>
-
-    <!-- Change the values of MODEL and TARGET to point to your model and output folder -->
-	<property name="MODEL" value="${basedir}/model/file.xmi"/>
-	<property name="TARGET" value="${basedir}/src-gen"/>
-
-	<target name="generateSample" description="Generate files in 'TARGET'">
-		<antcall target="generate" >
-			<param name="model" value="${MODEL}"/>
-			<param name="target" value="${TARGET}"/>
-		</antcall>
-	</target>
-</project>