blob: 6def300544f81b2b17b1ad0afa1a0a295a0ce433 [file] [log] [blame]
/*****************************************************************************
* Copyright (c) 2015 CEA LIST.
*
*
* 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:
* CEA LIST. - initial API and implementation
* Mauricio Alferez (mauricio.alferez@cea.fr) CEA LIST - Bugs 477726, 478595, 481377, ...
*
******************************************************************************/
package org.eclipse.papyrus.requirements.preferences;
import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.jface.preference.IPreferenceStore;
/**
* Initializes the preferences for the creation of Papyrus for Requirements SysML
* requirements
*
*/
public class PreferenceInitializer extends AbstractPreferenceInitializer {
@Override
public void initializeDefaultPreferences() {
IPreferenceStore store = Activator.getDefault().getPreferenceStore();
// Options for requirements creation
store.setDefault(PreferenceConstants.REQUIREMENT_ID_PREFIX, "R-");
store.setDefault(PreferenceConstants.REQUIREMENT_ID_DIGIT, 2);
store.setDefault(PreferenceConstants.CHILD_REQUIREMENTS_SEPARATOR, "-");
store.setDefault(PreferenceConstants.REQUIREMENT_ID_UNIQUE_IN_ENTIRE_MODEL, true);
store.setDefault(PreferenceConstants.INITIAL_CHAR, "[");
store.setDefault(PreferenceConstants.FINAL_CHAR, "]");
store.setDefault(PreferenceConstants.MEANING_OF_TEXT_BETWEEN_CHARS, "Stakeholder: ");
// Options for the generation of a profile based on a domain model
store.setDefault(PreferenceConstants.NSURI_PREFIX, "https://www.eclipse.org/papyrus/");
store.setDefault(PreferenceConstants.GENERATE_ABSTRACTIONS_MODEL, false);
store.setDefault(PreferenceConstants.FROM_ASSOCIATIONS_TO_STEREOTYPES, false);
store.setDefault(PreferenceConstants.FROM_ASSOCIATIONS_TO_ASSOCIATIONS, false);
// store.setDefault(PreferenceConstants.METACLASS_EXTENDED_BY_NODES,
// "none");
// store.setDefault(PreferenceConstants.METACLASS_EXTENDED_BY_EDGES,
// "none");
}
}