Bug 399777 - CreateConnectionFeatureForPattern does not return the
delegate IConnectionPattern

*Added method getPattern to CreateConnectionFeatureForPattern

Change-Id: I1086c64b4dbb177f760877233fff199a082da2d2
diff --git a/plugins/org.eclipse.graphiti.pattern/src/org/eclipse/graphiti/pattern/CreateConnectionFeatureForPattern.java b/plugins/org.eclipse.graphiti.pattern/src/org/eclipse/graphiti/pattern/CreateConnectionFeatureForPattern.java
index 854e220..ffbd26a 100644
--- a/plugins/org.eclipse.graphiti.pattern/src/org/eclipse/graphiti/pattern/CreateConnectionFeatureForPattern.java
+++ b/plugins/org.eclipse.graphiti.pattern/src/org/eclipse/graphiti/pattern/CreateConnectionFeatureForPattern.java
@@ -127,4 +127,14 @@
 	public void canceledAttaching(ICreateConnectionContext context) {
 		delegate.canceledAttaching(context);
 	}
+
+	/**
+	 * Gets the pattern.
+	 * 
+	 * @return the pattern
+	 * @since 0.10
+	 */
+	public IConnectionPattern getPattern() {
+		return delegate;
+	}
 }