| /******************************************************************************* |
| * Copyright (c) 2006, 2008 IBM Corporation and Others |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Kentarou FUKUDA - initial API and implementation |
| *******************************************************************************/ |
| |
| package org.eclipse.actf.examples.adesigner.ui.preferences; |
| |
| import org.eclipse.actf.examples.adesigner.ADesignerPlugin; |
| import org.eclipse.actf.visualization.ui.IVisualizationPerspective; |
| import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer; |
| import org.eclipse.jface.preference.IPreferenceStore; |
| |
| |
| |
| |
| public class PreferenceInitializer extends AbstractPreferenceInitializer { |
| |
| /* |
| * (non-Javadoc) |
| * |
| * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences() |
| */ |
| public void initializeDefaultPreferences() { |
| IPreferenceStore store = ADesignerPlugin.getDefault().getPreferenceStore(); |
| store.setDefault(IPreferenceConstants.STARTUP_OPTION_ID, IPreferenceConstants.CHOICE_SHOW_MODE_DIALOG); |
| store.setDefault(IPreferenceConstants.SELECTED_MODE_PERSPECTIVE_ID, IVisualizationPerspective.ID_HTML_PERSPECTIVE); |
| |
| } |
| |
| } |