sysperfana/perfinvestigator/com.nokia.carbide.cpp.pi.util/src/com/nokia/carbide/cpp/pi/util/TestTableColorPalette.java
changeset 12 ae255c9aa552
parent 2 b9ab3b238396
--- 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);