sysperfana/perfinvestigator/com.nokia.carbide.cpp.pi.util/src/com/nokia/carbide/cpp/pi/util/TestTableColorPalette.java
--- a/sysperfana/perfinvestigator/com.nokia.carbide.cpp.pi.util/src/com/nokia/carbide/cpp/pi/util/TestTableColorPalette.java Wed Jun 23 14:49:59 2010 +0300
+++ b/sysperfana/perfinvestigator/com.nokia.carbide.cpp.pi.util/src/com/nokia/carbide/cpp/pi/util/TestTableColorPalette.java Wed Jun 23 15:05:09 2010 +0300
@@ -34,18 +34,19 @@
public class TestTableColorPalette {
private Shell sShell = null;
- private Map<Button,CLabel> testColorsMap = new HashMap<Button,CLabel>();
- private FunctionColorPalette palette = new FunctionColorPalette();
+ private final Map<Button,CLabel> testColorsMap = new HashMap<Button,CLabel>();
+ private final FunctionColorPalette palette = new FunctionColorPalette();
- public static void main(String[] args) {
+ public static void main(final String[] args) {
Display display = Display.getDefault();
TestTableColorPalette thisClass = new TestTableColorPalette();
thisClass.createSShell();
thisClass.sShell.open();
while (!thisClass.sShell.isDisposed()) {
- if (!display.readAndDispatch())
+ if (!display.readAndDispatch()){
display.sleep();
+ }
}
display.dispose();
}
@@ -69,7 +70,7 @@
button.setText(i.toString());
button.setBackground(palette.getColor(i.toString()));
button.addSelectionListener(new SelectionAdapter() {
- public void widgetSelected(SelectionEvent e) {
+ public void widgetSelected(final SelectionEvent e) {
if(palette.recolorEntryDialog(sShell, finalI))
{
Color myColor = palette.getColor(finalI);