Package org.ugosan.eclipse.fullscreen

Source Code of org.ugosan.eclipse.fullscreen.FullScreenPreferenceInitializer

/*******************************************************************************
* Copyright (c) 2010 Ugo Sangiorgi 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:
*  Ugo Sangiorgi <ugo.sangiorgi@gmail.com> - Initial contribution
*  Daoen Pan <http://code.google.com/u/gr8vyguy/> - Original code
*******************************************************************************/
package org.ugosan.eclipse.fullscreen;

import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.core.runtime.preferences.InstanceScope;
import org.eclipse.ui.preferences.ScopedPreferenceStore;


public class FullScreenPreferenceInitializer extends
    AbstractPreferenceInitializer {

  public void initializeDefaultPreferences() {
    ScopedPreferenceStore preferences = new ScopedPreferenceStore(
        InstanceScope.INSTANCE, FullScreenActivator.ID);
    preferences.setDefault(FullScreenActivator.HIDE_MENU_BAR, true);
    preferences.setDefault(FullScreenActivator.HIDE_STATUS_BAR, true);
    preferences.setDefault(FullScreenActivator.FULLSCREEN_STARTUP, false);
  }

}
TOP

Related Classes of org.ugosan.eclipse.fullscreen.FullScreenPreferenceInitializer

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.