blob: d6b003ef33a74787650544e7546b9f541fbdee6c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/*******************************************************************************
* Copyright (c) 2014, 2016 Obeo.
* 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:
* Obeo - initial API and implementation
*******************************************************************************/
package org.eclipse.emf.compare.ide.ui.internal.preferences;
import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.emf.compare.ide.ui.internal.EMFCompareIDEUIPlugin;
import org.eclipse.emf.compare.ide.ui.internal.logical.resolver.CrossReferenceResolutionScope;
import org.eclipse.jface.preference.IPreferenceStore;
/**
* This will be used to initialize all of our UI preferences to their default.
*
* @author <a href="mailto:laurent.goubet@obeo.fr">Laurent Goubet</a>
*/
public class EMFCompareUIPreferencesInitializer extends AbstractPreferenceInitializer {
/** {@inheritDoc} */
@Override
public void initializeDefaultPreferences() {
final IPreferenceStore store = EMFCompareIDEUIPlugin.getDefault().getPreferenceStore();
store.setDefault(EMFCompareUIPreferences.DISABLE_RESOLVERS_PREFERENCE, false);
store.setDefault(EMFCompareUIPreferences.DISABLE_THREADING_PREFERENCE, false);
store.setDefault(EMFCompareUIPreferences.RESOLUTION_SCOPE_PREFERENCE,
CrossReferenceResolutionScope.CONTAINER.name());
store.setDefault(EMFCompareUIPreferences.PRE_MERGE_MODELS_WHEN_CONFLICT, false);
}
}
|