X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics%2Fsrc%2Forg%2Fsimantics%2Finternal%2FModelBrowserPreferenceInitializer.java;h=0f6b36da29b2eff4a6f43b2fbca8c85dc181a4af;hp=02b66d8cef48ad6a717dadd6f8099334b71ab692;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hpb=24e2b34260f219f0d1644ca7a138894980e25b14 diff --git a/bundles/org.simantics/src/org/simantics/internal/ModelBrowserPreferenceInitializer.java b/bundles/org.simantics/src/org/simantics/internal/ModelBrowserPreferenceInitializer.java index 02b66d8ce..0f6b36da2 100644 --- a/bundles/org.simantics/src/org/simantics/internal/ModelBrowserPreferenceInitializer.java +++ b/bundles/org.simantics/src/org/simantics/internal/ModelBrowserPreferenceInitializer.java @@ -1,31 +1,31 @@ -/******************************************************************************* - * 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.ModelBrowserPreferences; - -/** - * @author Tuukka Lehtonen - */ -public class ModelBrowserPreferenceInitializer extends AbstractPreferenceInitializer { - - public void initializeDefaultPreferences() { - IScopeContext context = DefaultScope.INSTANCE; - Preferences node = context.getNode(ModelBrowserPreferences.P_NODE); - node.put(ModelBrowserPreferences.P_ONTOLOGY_VISIBILITY, ModelBrowserPreferences.DEFAULT_ONTOLOGY_VISIBILITY); - } - -} +/******************************************************************************* + * 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.ModelBrowserPreferences; + +/** + * @author Tuukka Lehtonen + */ +public class ModelBrowserPreferenceInitializer extends AbstractPreferenceInitializer { + + public void initializeDefaultPreferences() { + IScopeContext context = DefaultScope.INSTANCE; + Preferences node = context.getNode(ModelBrowserPreferences.P_NODE); + node.put(ModelBrowserPreferences.P_ONTOLOGY_VISIBILITY, ModelBrowserPreferences.DEFAULT_ONTOLOGY_VISIBILITY); + } + +}