remove warnings / draw2d: Ray replaced with Vector
diff --git a/plugins/org.eclipse.graphiti.ui/src/org/eclipse/graphiti/ui/internal/util/draw2d/LineSeg.java b/plugins/org.eclipse.graphiti.ui/src/org/eclipse/graphiti/ui/internal/util/draw2d/LineSeg.java
index acfb709..e5ca460 100644
--- a/plugins/org.eclipse.graphiti.ui/src/org/eclipse/graphiti/ui/internal/util/draw2d/LineSeg.java
+++ b/plugins/org.eclipse.graphiti.ui/src/org/eclipse/graphiti/ui/internal/util/draw2d/LineSeg.java
@@ -17,9 +17,10 @@
 
 import org.eclipse.draw2d.geometry.Point;
 import org.eclipse.draw2d.geometry.PointList;
-import org.eclipse.draw2d.geometry.Ray;
+import org.eclipse.draw2d.geometry.PrecisionPoint;
 import org.eclipse.draw2d.geometry.Rectangle;
 import org.eclipse.draw2d.geometry.Translatable;
+import org.eclipse.draw2d.geometry.Vector;
 
 /**
  * @noinstantiate This class is not intended to be instantiated by clients.
@@ -581,11 +582,11 @@
 	 *         values for the angle of the passed in <code>Ray</code> relative
 	 *         to <code>this</code> or null if calculation is not possible,
 	 */
-	public TrigValues getTrigValues(final Ray ptToVector) {
+	public TrigValues getTrigValues(final Vector ptToVector) {
 		double dFromLength = length();
-		double dToLength = ptToVector.length();
+		double dToLength = ptToVector.getLength();
 
-		Ray ptFromVector = new Ray(getOrigin(), getTerminus());
+		Vector ptFromVector = new Vector(new PrecisionPoint(getOrigin()), new PrecisionPoint(getTerminus()));
 
 		if (dFromLength <= 0 || dToLength <= 0) {
 			return null;
@@ -886,7 +887,7 @@
 	 *         given point.
 	 */
 	public final Sign positionRelativeTo(Point rel) {
-		Ray ptRelRay = new Ray(getOrigin(), rel);
+		Vector ptRelRay = new Vector(new PrecisionPoint(getOrigin()), new PrecisionPoint(rel));
 
 		TrigValues val = getTrigValues(ptRelRay);
 		double dNewAngle = Math.atan2(-val.sinTheta, -val.cosTheta);
diff --git a/plugins/org.eclipse.graphiti.ui/src/org/eclipse/graphiti/ui/internal/util/draw2d/TransparentGhostFigure.java b/plugins/org.eclipse.graphiti.ui/src/org/eclipse/graphiti/ui/internal/util/draw2d/TransparentGhostFigure.java
index c291f56..ac672b5 100644
--- a/plugins/org.eclipse.graphiti.ui/src/org/eclipse/graphiti/ui/internal/util/draw2d/TransparentGhostFigure.java
+++ b/plugins/org.eclipse.graphiti.ui/src/org/eclipse/graphiti/ui/internal/util/draw2d/TransparentGhostFigure.java
@@ -55,6 +55,7 @@
 	 * 
 	 * @return the ghost image.
 	 */
+	@SuppressWarnings("unused")
 	private Image generateImage() {
 		if (figure == null)
 			return null;