/
PackageMergerOptionsDialog.java
126 lines (108 loc) · 4.28 KB
/
PackageMergerOptionsDialog.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
/*
* Copyright (c) 2005, 2018 IBM Corporation, CEA, 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) - 327039, 416833
* Christian W. Damus (CEA) - 416833
* Kenn Hussey - 535301
*
*/
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 PackageMergerOptionsDialog
extends OptionsDialog {
public PackageMergerOptionsDialog(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_EmptyQualifiedNames_label"), //$NON-NLS-1$
UMLUtil.PackageMerger.OPTION__EMPTY_QUALIFIED_NAMES, new String[]{
ignoreChoiceLabel, reportChoiceLabel}, reportChoiceLabel);
createOptionArea(
parent,
UMLEditorPlugin.INSTANCE
.getString("_UI_IndistinguishableClassifiers_label"), //$NON-NLS-1$
UMLUtil.PackageMerger.OPTION__INDISTINGUISHABLE_CLASSIFIERS,
new String[]{ignoreChoiceLabel, reportChoiceLabel},
reportChoiceLabel);
createOptionArea(
parent,
UMLEditorPlugin.INSTANCE
.getString("_UI_DifferentPropertyStaticity_label"), //$NON-NLS-1$
UMLUtil.PackageMerger.OPTION__DIFFERENT_PROPERTY_STATICITY,
new String[]{ignoreChoiceLabel, reportChoiceLabel},
reportChoiceLabel);
createOptionArea(
parent,
UMLEditorPlugin.INSTANCE
.getString("_UI_DifferentPropertyUniqueness_label"), //$NON-NLS-1$
UMLUtil.PackageMerger.OPTION__DIFFERENT_PROPERTY_UNIQUENESS,
new String[]{ignoreChoiceLabel, reportChoiceLabel},
reportChoiceLabel);
createOptionArea(
parent,
UMLEditorPlugin.INSTANCE.getString("_UI_EmptyUnions_label"), //$NON-NLS-1$
UMLUtil.PackageMerger.OPTION__EMPTY_UNIONS, new String[]{
ignoreChoiceLabel, reportChoiceLabel, processChoiceLabel},
processChoiceLabel);
createOptionArea(
parent,
UMLEditorPlugin.INSTANCE
.getString("_UI_ImplicitRedefinitions_label"), //$NON-NLS-1$
UMLUtil.PackageMerger.OPTION__IMPLICIT_REDEFINITIONS, new String[]{
ignoreChoiceLabel, reportChoiceLabel, processChoiceLabel},
processChoiceLabel);
createOptionArea(parent,
UMLEditorPlugin.INSTANCE
.getString("_UI_InvalidRedefinitions_label"), //$NON-NLS-1$
UMLUtil.PackageMerger.OPTION__INVALID_REDEFINITIONS, new String[]{
ignoreChoiceLabel, reportChoiceLabel, discardChoiceLabel,
processChoiceLabel}, processChoiceLabel);
createOptionArea(parent,
UMLEditorPlugin.INSTANCE.getString("_UI_InvalidSubsets_label"), //$NON-NLS-1$
UMLUtil.PackageMerger.OPTION__INVALID_SUBSETS, new String[]{
ignoreChoiceLabel, reportChoiceLabel, discardChoiceLabel,
processChoiceLabel}, processChoiceLabel);
createOptionArea(
parent,
UMLEditorPlugin.INSTANCE
.getString("_UI_AssociationSpecializations_label"), //$NON-NLS-1$
UMLUtil.PackageMerger.OPTION__ASSOCIATION_SPECIALIZATIONS,
new String[]{ignoreChoiceLabel, reportChoiceLabel,
processChoiceLabel}, processChoiceLabel);
createOptionArea(
parent,
UMLEditorPlugin.INSTANCE
.getString("_UI_RedundantGeneralizations_label"), //$NON-NLS-1$
UMLUtil.PackageMerger.OPTION__REDUNDANT_GENERALIZATIONS,
new String[]{ignoreChoiceLabel, reportChoiceLabel,
discardChoiceLabel}, discardChoiceLabel);
createOptionArea(
parent,
UMLEditorPlugin.INSTANCE.getString("_UI_Capabilities_label"), //$NON-NLS-1$
UMLUtil.PackageMerger.OPTION__CAPABILITIES, new String[]{
ignoreChoiceLabel, reportChoiceLabel, processChoiceLabel},
processChoiceLabel);
createOptionArea(
parent,
UMLEditorPlugin.INSTANCE
.getString("_UI_AttributeTransformations_label"), //$NON-NLS-1$
UMLUtil.PackageMerger.OPTION__ATTRIBUTE_TRANSFORMATIONS,
new String[]{ignoreChoiceLabel, reportChoiceLabel,
processChoiceLabel}, processChoiceLabel);
}
}