/*
 * PerfClispe
 * 
 *
 * Copyright (c) 2014 Jakub Knetl
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.perfclipse.ui.preferences;

import org.eclipse.jface.preference.ColorFieldEditor;
import org.eclipse.jface.preference.FieldEditorPreferencePage;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;
import org.perfclipse.ui.Activator;

public class ColorPreferencePage extends FieldEditorPreferencePage implements
		IWorkbenchPreferencePage {
	
	private ColorFieldEditor generatorColor;

	public ColorPreferencePage(){
		super(GRID);
		setPreferenceStore(Activator.getDefault().getPreferenceStore());
		setDescription("Set PerfCake components colors");
		
	}
	@Override
	public void init(IWorkbench workbench) {
		
	}

	@Override
	protected void createFieldEditors() {
//		generatorColor = new ColorFieldEditor("generator-color", "Generator: ", getFieldEditorParent());
//		addField(generatorColor);
	}
	
	



}

@@ -1040,16 +1040,224 @@
 orColor;
+%0A%09private ColorFieldEditor senderColor;%0A%09private ColorFieldEditor messagesColor;%0A%09private ColorFieldEditor validationColor;%0A%09private ColorFieldEditor reportingColor;%0A%09private ColorFieldEditor propertiesColor;
 %0A%0A%09publi
@@ -1531,18 +1531,16 @@
 ors() %7B%0A
-//
 %09%09genera
@@ -1575,37 +1575,730 @@
 tor(
-%22generator-color%22, %22Generator
+PreferencesConstants.GENERATOR_COLOR_FOREGROUND,%0A%09%09%09%09%22Generator: %22, getFieldEditorParent());%0A%09%09senderColor = new ColorFieldEditor(PreferencesConstants.SENDER_COLOR_FOREGROUND,%0A%09%09%09%09%22Sender: %22, getFieldEditorParent());%0A%09%09messagesColor = new ColorFieldEditor(PreferencesConstants.MESSAGES_COLOR_FOREGROUND,%0A%09%09%09%09%22Messages: %22, getFieldEditorParent());%0A%09%09validationColor = new ColorFieldEditor(PreferencesConstants.VALIDATION_COLOR_FOREGROUND,%0A%09%09%09%09%22Validation: %22, getFieldEditorParent());%0A%09%09reportingColor = new ColorFieldEditor(PreferencesConstants.REPORTING_COLOR_FOREGROUND,%0A%09%09%09%09%22Reporting: %22, getFieldEditorParent());%0A%09%09propertiesColor = new ColorFieldEditor(PreferencesConstants.PROPERTIES_COLOR_FOREGROUND,%0A%09%09%09%09%22Properties
 : %22,
@@ -2323,18 +2323,17 @@
 ent());%0A
-//
+%0A
 %09%09addFie
@@ -2352,16 +2352,155 @@
 Color);%0A
+%09%09addField(senderColor);%0A%09%09addField(messagesColor);%0A%09%09addField(validationColor);%0A%09%09addField(reportingColor);%0A%09%09addField(propertiesColor);%0A%0A
 %09%7D%0A%09%0A%09%0A%0A

Add top level foreground color selection