-
Notifications
You must be signed in to change notification settings - Fork 7
/
PreferenceInitializer.java
46 lines (40 loc) · 1.52 KB
/
PreferenceInitializer.java
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
35
36
37
38
39
40
41
42
43
44
45
46
/******************************************************************************
* Copyright (c) 2004, 2007 IBM Corporation and others.
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBM Corporation - initial API and implementation
****************************************************************************/
package org.eclipse.emf.validation.ui.internal.preferences;
import org.eclipse.core.runtime.Preferences;
import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.emf.validation.ui.internal.ValidationUIPlugin;
/**
* Default preferences initializer for the Validation UI plug-in.
*
* @author Christian W. Damus (cdamus)
*/
public class PreferenceInitializer extends AbstractPreferenceInitializer {
/**
* Initializes me.
*/
public PreferenceInitializer() {
super();
}
/*
* (non-Javadoc) Implements the inherited method.
*/
@Override
public void initializeDefaultPreferences() {
Preferences prefs = ValidationUIPlugin.getPlugin().getPluginPreferences();
// validation preference defaults
prefs.setDefault(IPreferenceConstants.VALIDATION_LIVE_PROBLEMS_DISPLAY,
ValidationLiveProblemsDestination.DIALOG.getName());
prefs.setDefault(IPreferenceConstants.VALIDATION_LIVE_WARNINGS_IN_DIALOG, true);
prefs.setDefault(IPreferenceConstants.VALIDATION_LIVE_SHOW_CONSOLE, false);
}
}