Added capabilities plugin
diff --git a/examples/org.eclipse.graphiti.ui.capabilities/.classpath b/examples/org.eclipse.graphiti.ui.capabilities/.classpath
new file mode 100644
index 0000000..ad32c83
--- /dev/null
+++ b/examples/org.eclipse.graphiti.ui.capabilities/.classpath
@@ -0,0 +1,7 @@
+<?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" path="src"/>
+	<classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/examples/org.eclipse.graphiti.ui.capabilities/.project b/examples/org.eclipse.graphiti.ui.capabilities/.project
new file mode 100644
index 0000000..2010566
--- /dev/null
+++ b/examples/org.eclipse.graphiti.ui.capabilities/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>org.eclipse.graphiti.ui.capabilities</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>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.pde.PluginNature</nature>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+	</natures>
+</projectDescription>
diff --git a/examples/org.eclipse.graphiti.ui.capabilities/.settings/org.eclipse.jdt.core.prefs b/examples/org.eclipse.graphiti.ui.capabilities/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 0000000..bbd17ce
--- /dev/null
+++ b/examples/org.eclipse.graphiti.ui.capabilities/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,8 @@
+#Wed Feb 09 10:21:49 CET 2011
+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
diff --git a/examples/org.eclipse.graphiti.ui.capabilities/META-INF/MANIFEST.MF b/examples/org.eclipse.graphiti.ui.capabilities/META-INF/MANIFEST.MF
new file mode 100644
index 0000000..d6732b6
--- /dev/null
+++ b/examples/org.eclipse.graphiti.ui.capabilities/META-INF/MANIFEST.MF
@@ -0,0 +1,12 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %pluginName
+Bundle-SymbolicName: org.eclipse.graphiti.ui.capabilities;singleton:=true
+Bundle-Version: 0.8.0.qualifier
+Bundle-Activator: org.eclipse.graphiti.ui.capabilities.Activator
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime
+Bundle-ActivationPolicy: lazy
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Bundle-Vendor: %providerName
+Bundle-Localization: plugin
diff --git a/examples/org.eclipse.graphiti.ui.capabilities/build.properties b/examples/org.eclipse.graphiti.ui.capabilities/build.properties
new file mode 100644
index 0000000..0dc34f7
--- /dev/null
+++ b/examples/org.eclipse.graphiti.ui.capabilities/build.properties
@@ -0,0 +1,6 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+               .,\
+               plugin.xml,\
+               plugin.properties
diff --git a/examples/org.eclipse.graphiti.ui.capabilities/plugin.properties b/examples/org.eclipse.graphiti.ui.capabilities/plugin.properties
new file mode 100644
index 0000000..f763ba3
--- /dev/null
+++ b/examples/org.eclipse.graphiti.ui.capabilities/plugin.properties
@@ -0,0 +1,24 @@
+###############################################################################
+# <copyright>
+#
+# Copyright (c) 2005, 2011 SAP AG.
+# 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:
+#    SAP AG - initial API, implementation and documentation
+#
+# </copyright>
+#
+###############################################################################
+pluginName = Graphiti Examples for Capabilities (Incubation)
+providerName = Eclipse Modeling Project 
+
+activity.description.framework = All contributions of the Graphiti framework
+activity.name.framework = Graphiti Framework
+activity.description.examples = All contributions of the Graphiti examples
+activity.name.examples = Graphiti Examples
+category.description = All contributions of Graphiti
+category.name = Graphiti
\ No newline at end of file
diff --git a/examples/org.eclipse.graphiti.ui.capabilities/plugin.xml b/examples/org.eclipse.graphiti.ui.capabilities/plugin.xml
new file mode 100644
index 0000000..fa18737
--- /dev/null
+++ b/examples/org.eclipse.graphiti.ui.capabilities/plugin.xml
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+   <extension
+         point="org.eclipse.ui.activities">
+         
+      <!-- The activity for the framework contributions -->
+      <activity
+            description="%activity.description.framework"
+            id="org.eclipse.graphiti.ui.capabilities.framework"
+            name="%activity.name.framework">
+      </activity>
+      <defaultEnablement
+            id="org.eclipse.graphiti.ui.capabilities.framework">
+      </defaultEnablement>
+      
+      <!-- The activity for the example contributions (requires framework contributions) -->
+      <activity
+            description="%activity.description.examples"
+            id="org.eclipse.graphiti.ui.capabilities.examples"
+            name="%activity.name.examples">
+      </activity>
+      <activityRequirementBinding
+            activityId="org.eclipse.graphiti.ui.capabilities.examples"
+            requiredActivityId="org.eclipse.graphiti.ui.capabilities.framework">
+      </activityRequirementBinding>
+      <defaultEnablement
+            id="org.eclipse.graphiti.ui.capabilities.examples">
+      </defaultEnablement>
+      
+      <!-- The category for the Graphiti capabilities -->
+      <category
+            description="%category.description"
+            id="org.eclipse.graphiti.ui.capabilities.category"
+            name="%category.name">
+      </category>
+      <categoryActivityBinding
+            activityId="org.eclipse.graphiti.ui.capabilities.framework"
+            categoryId="org.eclipse.graphiti.ui.capabilities.category">
+      </categoryActivityBinding>
+      <categoryActivityBinding
+            activityId="org.eclipse.graphiti.ui.capabilities.examples"
+            categoryId="org.eclipse.graphiti.ui.capabilities.category">
+      </categoryActivityBinding>
+      
+      <!-- Bind export to Batik extensions to framework capability -->
+      <activityPatternBinding
+            activityId="org.eclipse.graphiti.ui.capabilities.framework"
+            pattern="org\.eclipse\.graphiti\.export\.batik\..*/.*">
+      </activityPatternBinding>
+
+      <!-- Bind UI extensions to framework capability -->
+      <activityPatternBinding
+            activityId="org.eclipse.graphiti.ui.capabilities.framework"
+            pattern="org\.eclipse\.graphiti\.ui\..*/.*">
+      </activityPatternBinding>
+
+      <!-- Bind examples extensions to examples capability -->
+      <activityPatternBinding
+            activityId="org.eclipse.graphiti.ui.capabilities.examples"
+            pattern="org\.eclipse\.graphiti\.examples\..*/.*">
+      </activityPatternBinding>
+
+      <!-- Bind sample tools extensions to examples capability -->
+      <activityPatternBinding
+            activityId="org.eclipse.graphiti.ui.capabilities.examples"
+            pattern="org\.eclipse\.graphiti\.sample\..*/.*">
+      </activityPatternBinding>
+   </extension>
+
+</plugin>
diff --git a/examples/org.eclipse.graphiti.ui.capabilities/src/org/eclipse/graphiti/ui/capabilities/Activator.java b/examples/org.eclipse.graphiti.ui.capabilities/src/org/eclipse/graphiti/ui/capabilities/Activator.java
new file mode 100644
index 0000000..4a33735
--- /dev/null
+++ b/examples/org.eclipse.graphiti.ui.capabilities/src/org/eclipse/graphiti/ui/capabilities/Activator.java
@@ -0,0 +1,50 @@
+package org.eclipse.graphiti.ui.capabilities;
+
+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.eclipse.graphiti.ui.capabilities"; //$NON-NLS-1$
+
+	// The shared instance
+	private static Activator plugin;
+	
+	/**
+	 * The constructor
+	 */
+	public Activator() {
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
+	 */
+	public void start(BundleContext context) throws Exception {
+		super.start(context);
+		plugin = this;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * @see org.eclipse.ui.plugin.AbstractUIPlugin#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;
+	}
+
+}