public void widgetSelected( SelectionEvent e ) {
ColorDialog dialog = new ColorDialog(e.display.getActiveShell());
Color currentColor = (Color) e.widget.getData();
RGB currentRGB = new RGB(currentColor.getRed(), currentColor.getGreen(), currentColor.getBlue());
dialog.setRGB(currentRGB);
dialog.open();
RGB rgb = dialog.getRGB();
e.widget.setData(new Color(rgb.red, rgb.green, rgb.blue));