1 /*******************************************************************************
\r
2 * Copyright (c) 2013 Association for Decentralized Information Management in
\r
4 * All rights reserved. This program and the accompanying materials
\r
5 * are made available under the terms of the Eclipse Public License v1.0
\r
6 * which accompanies this distribution, and is available at
\r
7 * http://www.eclipse.org/legal/epl-v10.html
\r
11 *******************************************************************************/
\r
12 package org.simantics.sysdyn.ui.preferences;
\r
14 import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
\r
15 import org.eclipse.jface.preference.IPreferenceStore;
\r
16 import org.eclipse.jface.resource.StringConverter;
\r
17 import org.eclipse.swt.graphics.RGB;
\r
18 import org.simantics.sysdyn.ui.Activator;
\r
22 * @author Teemu Lempinen
\r
25 public class SysdynDiagramPreferencesInitializer extends AbstractPreferenceInitializer {
\r
28 public void initializeDefaultPreferences() {
\r
29 IPreferenceStore store = Activator.getDefault().getPreferenceStore();
\r
30 store.setDefault(SysdynDiagramPreferences.ARROW_COLOR, StringConverter.asString(new RGB(0, 0, 255)));
\r
31 store.setDefault(SysdynDiagramPreferences.FLOW_COLOR, StringConverter.asString(new RGB(0, 0, 0)));
\r
32 store.setDefault(SysdynDiagramPreferences.AUXILIARY_COLOR, StringConverter.asString(new RGB(0, 0, 0)));
\r
33 store.setDefault(SysdynDiagramPreferences.STOCK_COLOR, StringConverter.asString(new RGB(0, 0, 0)));
\r
34 store.setDefault(SysdynDiagramPreferences.VALVE_COLOR, StringConverter.asString(new RGB(0, 0, 0)));
\r
35 store.setDefault(SysdynDiagramPreferences.CLOUD_COLOR, StringConverter.asString(new RGB(0, 0, 0)));
\r