Bug 435384 - Add support for 'transparent' colors
- Remove un-used imports
- set the native alpha value in range of 0-1(float)

Change-Id: I7e6de9a0de2bb493b514590f06c006a57e3bf1f1
Signed-off-by: Niraj Modi <niraj.modi@in.ibm.com>
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Color.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Color.java
index d5a9ea5..e1e9a4b 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Color.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/graphics/Color.java
@@ -12,7 +12,6 @@
 
 
 import org.eclipse.swt.*;
-import org.eclipse.swt.graphics.*;
 
 /**
  * Instances of this class manage the operating system resources that
@@ -370,7 +369,7 @@
 	double /*float*/ [] rgbColor = handle;
 	Color color = new Color(device);
 	color.handle = rgbColor;
-	color.handle[3] = alpha;
+	color.handle[3] = alpha / 255f;
 	return color;
 }