Java tutorial
/******************************************************************************* * Copyright (c) 2008 Scott Stanchfield, based on ANTLR-Eclipse plugin * by Torsten Juergeleit. * 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 * Torsten Juergeleit - original ANTLR Eclipse plugin * Scott Stanchfield - modifications for ANTXR *******************************************************************************/ package com.javadude.antxr.eclipse.ui; import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer; import org.eclipse.jface.preference.IPreferenceStore; /** * Initialize default preferences for the ANTXR UI plugin. */ public class AntxrPreferenceInitializer extends AbstractPreferenceInitializer { /** {@inheritDoc} */ public void initializeDefaultPreferences() { IPreferenceStore store = AntxrUIPlugin.getDefault().getPreferenceStore(); store.setDefault(IPreferencesConstants.EDITOR_SHOW_SEGMENTS, false); AntxrColorProvider.initializeDefaults(store); } }