blob: a6bec71914459dd44b4265b9a1c4ff6a875bb1e2 [file] [log] [blame]
/*
* Copyright (c) 2007, 2019 IBM Corporation, CEA, EclipseSource and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* Contributors:
* IBM - initial API and implementation
* Kenn Hussey (CEA) - 322715, 163556
* Christian W. Damus (CEA) - 409396, 403374, 420338, 405065
* Kenn Hussey - 535301
* Camille Letavernier (EclipseSource) - 544487
*/
package org.eclipse.uml2.uml.editor.dialogs;
import java.util.Map;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.uml2.uml.editor.UMLEditorPlugin;
import org.eclipse.uml2.uml.util.UMLUtil;
public class Profile2EPackageConverterOptionsDialog
extends OptionsDialog {
public Profile2EPackageConverterOptionsDialog(Shell parent, String title,
String message, Map<String, String> options) {
super(parent, title, message, options);
}
@Override
protected void createOptionAreas(Composite parent) {
super.createOptionAreas(parent);
createOptionArea(
parent,
UMLEditorPlugin.INSTANCE.getString("_UI_EcoreTaggedValues_label"), //$NON-NLS-1$
UMLUtil.UML2EcoreConverter.OPTION__ECORE_TAGGED_VALUES,
new String[]{ignoreChoiceLabel, reportChoiceLabel,
processChoiceLabel}, processChoiceLabel);
createOptionArea(
parent,
UMLEditorPlugin.INSTANCE.getString("_UI_DerivedFeatures_label"), //$NON-NLS-1$
UMLUtil.UML2EcoreConverter.OPTION__DERIVED_FEATURES, new String[]{
ignoreChoiceLabel, reportChoiceLabel, processChoiceLabel},
reportChoiceLabel);
createOptionArea(
parent,
UMLEditorPlugin.INSTANCE
.getString("_UI_DuplicateFeatureInheritance_label"), //$NON-NLS-1$
UMLUtil.UML2EcoreConverter.OPTION__DUPLICATE_FEATURE_INHERITANCE,
new String[]{ignoreChoiceLabel, reportChoiceLabel,
discardChoiceLabel, processChoiceLabel}, processChoiceLabel);
createOptionArea(
parent,
UMLEditorPlugin.INSTANCE.getString("_UI_DuplicateFeatures_label"), //$NON-NLS-1$
UMLUtil.UML2EcoreConverter.OPTION__DUPLICATE_FEATURES,
new String[]{ignoreChoiceLabel, reportChoiceLabel,
discardChoiceLabel, processChoiceLabel}, processChoiceLabel);
createOptionArea(
parent,
UMLEditorPlugin.INSTANCE
.getString("_UI_DuplicateOperationInheritance_label"), //$NON-NLS-1$
UMLUtil.UML2EcoreConverter.OPTION__DUPLICATE_OPERATION_INHERITANCE,
new String[]{ignoreChoiceLabel, reportChoiceLabel,
discardChoiceLabel, processChoiceLabel}, reportChoiceLabel);
createOptionArea(
parent,
UMLEditorPlugin.INSTANCE.getString("_UI_DuplicateOperations_label"), //$NON-NLS-1$
UMLUtil.UML2EcoreConverter.OPTION__DUPLICATE_OPERATIONS,
new String[]{ignoreChoiceLabel, reportChoiceLabel,
discardChoiceLabel, processChoiceLabel}, reportChoiceLabel);
createOptionArea(
parent,
UMLEditorPlugin.INSTANCE
.getString("_UI_RedefiningOperations_label"), //$NON-NLS-1$
UMLUtil.UML2EcoreConverter.OPTION__REDEFINING_OPERATIONS,
new String[]{ignoreChoiceLabel, reportChoiceLabel,
processChoiceLabel}, reportChoiceLabel);
createOptionArea(
parent,
UMLEditorPlugin.INSTANCE
.getString("_UI_RedefiningProperties_label"), //$NON-NLS-1$
UMLUtil.UML2EcoreConverter.OPTION__REDEFINING_PROPERTIES,
new String[]{ignoreChoiceLabel, reportChoiceLabel,
processChoiceLabel}, reportChoiceLabel);
createOptionArea(
parent,
UMLEditorPlugin.INSTANCE
.getString("_UI_SubsettingProperties_label"), //$NON-NLS-1$
UMLUtil.UML2EcoreConverter.OPTION__SUBSETTING_PROPERTIES,
new String[]{ignoreChoiceLabel, reportChoiceLabel,
processChoiceLabel}, reportChoiceLabel);
createOptionArea(
parent,
UMLEditorPlugin.INSTANCE.getString("_UI_UnionProperties_label"), //$NON-NLS-1$
UMLUtil.UML2EcoreConverter.OPTION__UNION_PROPERTIES, new String[]{
ignoreChoiceLabel, reportChoiceLabel, reportChoiceLabel},
processChoiceLabel);
createOptionArea(
parent,
UMLEditorPlugin.INSTANCE.getString("_UI_SuperClassOrder_label"), //$NON-NLS-1$
UMLUtil.UML2EcoreConverter.OPTION__SUPER_CLASS_ORDER, new String[]{
ignoreChoiceLabel, reportChoiceLabel, processChoiceLabel},
reportChoiceLabel);
createOptionArea(
parent,
UMLEditorPlugin.INSTANCE.getString("_UI_AnnotationDetails_label"), //$NON-NLS-1$
UMLUtil.UML2EcoreConverter.OPTION__ANNOTATION_DETAILS,
new String[]{ignoreChoiceLabel, reportChoiceLabel,
processChoiceLabel}, reportChoiceLabel);
createOptionArea(
parent,
UMLEditorPlugin.INSTANCE
.getString("_UI_InvariantConstraints_label"), //$NON-NLS-1$
UMLUtil.UML2EcoreConverter.OPTION__INVARIANT_CONSTRAINTS,
new String[]{ignoreChoiceLabel, reportChoiceLabel,
processChoiceLabel}, ignoreChoiceLabel);
createOptionArea(
parent,
UMLEditorPlugin.INSTANCE.getString("_UI_ValidationDelegates_label"), //$NON-NLS-1$
UMLUtil.UML2EcoreConverter.OPTION__VALIDATION_DELEGATES,
new String[]{ignoreChoiceLabel, processChoiceLabel},
ignoreChoiceLabel);
createOptionArea(
parent,
UMLEditorPlugin.INSTANCE.getString("_UI_NonAPIInvariants_label"), //$NON-NLS-1$
UMLUtil.UML2EcoreConverter.OPTION__NON_API_INVARIANTS,
new String[]{ignoreChoiceLabel, processChoiceLabel},
ignoreChoiceLabel);
createOptionArea(
parent,
UMLEditorPlugin.INSTANCE.getString("_UI_OperationBodies_label"), //$NON-NLS-1$
UMLUtil.UML2EcoreConverter.OPTION__OPERATION_BODIES, new String[]{
ignoreChoiceLabel, reportChoiceLabel, processChoiceLabel},
ignoreChoiceLabel);
createOptionArea(
parent,
UMLEditorPlugin.INSTANCE.getString("_UI_InvocationDelegates_label"), //$NON-NLS-1$
UMLUtil.UML2EcoreConverter.OPTION__INVOCATION_DELEGATES,
new String[]{ignoreChoiceLabel, processChoiceLabel},
ignoreChoiceLabel);
createOptionArea(
parent,
UMLEditorPlugin.INSTANCE
.getString("_UI_PropertyDefaultExpressions_label"), //$NON-NLS-1$
UMLUtil.UML2EcoreConverter.OPTION__PROPERTY_DEFAULT_EXPRESSIONS,
new String[]{ignoreChoiceLabel, reportChoiceLabel,
processChoiceLabel}, ignoreChoiceLabel);
createOptionArea(
parent,
UMLEditorPlugin.INSTANCE.getString("_UI_Comments_label"), //$NON-NLS-1$
UMLUtil.UML2EcoreConverter.OPTION__COMMENTS, new String[]{
ignoreChoiceLabel, reportChoiceLabel, processChoiceLabel},
ignoreChoiceLabel);
createOptionArea(
parent,
UMLEditorPlugin.INSTANCE.getString("_UI_ForeignDefinitions_label"), //$NON-NLS-1$
UMLUtil.Profile2EPackageConverter.OPTION__FOREIGN_DEFINITIONS,
new String[]{ignoreChoiceLabel, processChoiceLabel},
ignoreChoiceLabel);
createOptionArea(
parent,
UMLEditorPlugin.INSTANCE.getString("_UI_UntypedProperties_label"), //$NON-NLS-1$
UMLUtil.Profile2EPackageConverter.OPTION__UNTYPED_PROPERTIES,
new String[]{ignoreChoiceLabel, reportChoiceLabel,
discardChoiceLabel, processChoiceLabel}, reportChoiceLabel);
createOptionArea(
parent,
UMLEditorPlugin.INSTANCE.getString("_UI_OppositeRoleNames_label"), //$NON-NLS-1$
UMLUtil.UML2EcoreConverter.OPTION__OPPOSITE_ROLE_NAMES,
new String[]{ignoreChoiceLabel, processChoiceLabel},
ignoreChoiceLabel);
createOptionArea(
parent,
UMLEditorPlugin.INSTANCE.getString("_UI_UnsettablePrimitiveAttributes_label"), //$NON-NLS-1$
UMLUtil.UML2EcoreConverter.OPTION__UNSETTABLE_PRIMITIVE_ATTRIBUTES,
new String[]{ignoreChoiceLabel, reportChoiceLabel, processChoiceLabel},
ignoreChoiceLabel);
createOptionArea(
parent,
UMLEditorPlugin.INSTANCE.getString("_UI_NullableEnumAttributes_label"), //$NON-NLS-1$
UMLUtil.UML2EcoreConverter.OPTION__NULLABLE_ENUM_ATTRIBUTES,
new String[]{ignoreChoiceLabel, reportChoiceLabel, processChoiceLabel},
ignoreChoiceLabel);
}
}