summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Kriese2011-06-20 04:14:42 (EDT)
committerSteffen Kriese2011-06-20 04:14:42 (EDT)
commitb1926c886eff396a687f71819cf088151ad37e15 (patch)
tree8ddf8333351a9a78fe5d4d5d7e478605bec831e0
parent2d3e6260b235458553a7e531c73b8bf05cf2be58 (diff)
downloadorg.eclipse.riena-b1926c886eff396a687f71819cf088151ad37e15.zip
org.eclipse.riena-b1926c886eff396a687f71819cf088151ad37e15.tar.gz
org.eclipse.riena-b1926c886eff396a687f71819cf088151ad37e15.tar.bz2
fixed compile error due to API change in StatusMeter
-rw-r--r--org.eclipse.riena.tests/src/org/eclipse/riena/client/controller/test/TableSubModuleController.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/org.eclipse.riena.tests/src/org/eclipse/riena/client/controller/test/TableSubModuleController.java b/org.eclipse.riena.tests/src/org/eclipse/riena/client/controller/test/TableSubModuleController.java
index 09ed81b..9261d6d 100644
--- a/org.eclipse.riena.tests/src/org/eclipse/riena/client/controller/test/TableSubModuleController.java
+++ b/org.eclipse.riena.tests/src/org/eclipse/riena/client/controller/test/TableSubModuleController.java
@@ -104,12 +104,12 @@ public class TableSubModuleController extends SubModuleController {
@Override
public Image getImage(final Object element) {
if (((WordNode) element).isUpperCase()) {
- return StatusMeter.imageFinished().width(16).gradientStartColor(green).gradientEndColor(darkGreen)
- .getImage();
- } else {
- final int value = (int) ((WordNode) element).getAQuota();
- return StatusMeter.imageDefault().width(16).value(value).getImage();
+ return new Image(Display.getCurrent(), StatusMeter.imageFinished().width(16)
+ .gradientStartColor(green).gradientEndColor(darkGreen).getImageData());
}
+ final int value = (int) ((WordNode) element).getAQuota();
+ return new Image(Display.getCurrent(), StatusMeter.imageDefault().width(16).value(value).getImageData());
+
}
});
}