blob: 3de2dbbeea36c8cfad296fd2c7428aac9de763c1 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
/*****************************************************************************
* Copyright (c) 2014 CEA LIST 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:
* Gabriel Pascual (ALL4TEC) gabriel.pascual@all4tec.fr - Initial API and implementation
* Fanch BONNABESSE (ALL4TEC) fanch.bonnabesse@all4tec.net - Bug 497289
*
*****************************************************************************/
package org.eclipse.papyrus.views.modelexplorer.newchild.preferences;
import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.papyrus.views.modelexplorer.newchild.Activator;
/**
* Initialiser for new child preferences in Model Explorer.
*
* @author Gabriel Pascual
*
*/
public class NewChildPreferenceInitializer extends AbstractPreferenceInitializer {
/**
* Constructor.
*
*/
public NewChildPreferenceInitializer() {
super();
}
/**
* @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
*
*/
@Override
public void initializeDefaultPreferences() {
IPreferenceStore store = Activator.getDefault().getPreferenceStore();
store.setDefault(NewChildPreferences.DEFAULT_SELECTION, true);
store.setDefault(NewChildPreferences.DEFAULT_EDITION, true);
}
}
|