blob: 374dd33c4253efed408565bcd5b2c77f9b5885f9 (
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
|
/*****************************************************************************
* Copyright (c) 2017 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:
* Pauline DEVILLE (CEA LIST) - Initial API and implementation
*
*****************************************************************************/
package org.eclipse.papyrus.uml.tools.helper;
import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.papyrus.uml.tools.Activator;
/**
* @since 4.0
*
*/
public class ProfileApplicationDelegatePreferenceInitializer extends AbstractPreferenceInitializer {
public static final String PROFILE_APPLICATION_DELEGATE_PREFERENCE = "profile_application_delegate"; //$NON-NLS-1$
public static final String PREFERENCE_CONSTANT_FOR_DEFAULT = "externalized_profile_application_delegate"; //$NON-NLS-1$
/**
* @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
*
*/
@Override
public void initializeDefaultPreferences() {
IPreferenceStore store = getPreferenceStore();
store.setDefault(PROFILE_APPLICATION_DELEGATE_PREFERENCE, PREFERENCE_CONSTANT_FOR_DEFAULT);
}
/**
* Get the preference store
*/
protected IPreferenceStore getPreferenceStore() {
return Activator.getDefault().getPreferenceStore();
}
}
|