X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics%2Fsrc%2Forg%2Fsimantics%2Finternal%2FAutosavePreferenceInitializer.java;h=36238f96afd5e6bcc3b266ef52d4ceda43b58b17;hb=16cb606570307cf9be0138baa51d5babac2fb99c;hp=4f13201ef33268927589c69c0e89c56d70187353;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics/src/org/simantics/internal/AutosavePreferenceInitializer.java b/bundles/org.simantics/src/org/simantics/internal/AutosavePreferenceInitializer.java index 4f13201ef..36238f96a 100644 --- a/bundles/org.simantics/src/org/simantics/internal/AutosavePreferenceInitializer.java +++ b/bundles/org.simantics/src/org/simantics/internal/AutosavePreferenceInitializer.java @@ -1,32 +1,32 @@ -/******************************************************************************* - * Copyright (c) 2012 Association for Decentralized Information Management - * in Industry THTH ry. - * 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: - * Semantum Oy - initial API and implementation - *******************************************************************************/ -package org.simantics.internal; - -import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer; -import org.eclipse.core.runtime.preferences.DefaultScope; -import org.eclipse.core.runtime.preferences.IScopeContext; -import org.osgi.service.prefs.Preferences; -import org.simantics.AutosavePreferences; - -/** - * @author Tuukka Lehtonen - */ -public class AutosavePreferenceInitializer extends AbstractPreferenceInitializer { - - public void initializeDefaultPreferences() { - IScopeContext context = DefaultScope.INSTANCE; - Preferences node = context.getNode(AutosavePreferences.P_NODE); - node.putBoolean(AutosavePreferences.P_VG_AUTOSAVE_ENABLED, AutosavePreferences.DEFAULT_VG_AUTOSAVE_ENABLED); - node.putInt(AutosavePreferences.P_VG_AUTOSAVE_INTERVAL, AutosavePreferences.DEFAULT_VG_AUTOSAVE_INTERVAL); - } - -} +/******************************************************************************* + * Copyright (c) 2012 Association for Decentralized Information Management + * in Industry THTH ry. + * 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: + * Semantum Oy - initial API and implementation + *******************************************************************************/ +package org.simantics.internal; + +import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer; +import org.eclipse.core.runtime.preferences.DefaultScope; +import org.eclipse.core.runtime.preferences.IScopeContext; +import org.osgi.service.prefs.Preferences; +import org.simantics.AutosavePreferences; + +/** + * @author Tuukka Lehtonen + */ +public class AutosavePreferenceInitializer extends AbstractPreferenceInitializer { + + public void initializeDefaultPreferences() { + IScopeContext context = DefaultScope.INSTANCE; + Preferences node = context.getNode(AutosavePreferences.P_NODE); + node.putBoolean(AutosavePreferences.P_VG_AUTOSAVE_ENABLED, AutosavePreferences.DEFAULT_VG_AUTOSAVE_ENABLED); + node.putInt(AutosavePreferences.P_VG_AUTOSAVE_INTERVAL, AutosavePreferences.DEFAULT_VG_AUTOSAVE_INTERVAL); + } + +}