In 0.5.0 we introduced a new more general sensor interface (see Aswin's post or the Wiki for more details). So you need to obtain the appropriate sensor mode interface, each sensor exports a number of modes which in turn have a sample provider which can be used to obtain the data. In the case of the EV3ColorSensor it provides 4 modes ColorIDMode, RedMode, RGBMode and AmbientMode each of which can be obtained via a call like getRedMode() etc., note that RGB mode is not currently working. So to obtain a reading for the sensor with the red led on, you use RedMode to obtain a background reading (with no illumination) you use AmbientMode. In each case you need to use the fetchSample method to obtain the data and sampleSize to determine how many values will be returned (and hence how big an array you need to provide to fetchSample).
Also note that you no longer need to open the sensor port. Instead you can either use one of the convenience variables (S1, S2 etc.) or you can use the more general form:
and then simply pass the returned Port object into the constructor for the sensor driver.
As always if you don't understand something you can always look at the source:https://sourceforge.net/p/lejos/ev3/ci/ ... ensor.java
or look at the sample code we provide:https://sourceforge.net/p/lejos/ev3/ci/ ... rTest.java