Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnsgar Radermacher2014-03-07 12:38:14 +0000
committerAnsgar Radermacher2014-03-07 12:38:14 +0000
commita7aea95fd9fa113521725808efd0d9bc53cf2f52 (patch)
tree2893ba9776d89976c3de2ac0e9dd491432080ace /plugins
parent5dd9d8433022c5b982174af3e17f71eb009aaf1e (diff)
downloadorg.eclipse.papyrus-a7aea95fd9fa113521725808efd0d9bc53cf2f52.tar.gz
org.eclipse.papyrus-a7aea95fd9fa113521725808efd0d9bc53cf2f52.tar.xz
org.eclipse.papyrus-a7aea95fd9fa113521725808efd0d9bc53cf2f52.zip
Bug 411256 - OCL constraints in a profile should be checked by default
Diffstat (limited to 'plugins')
-rw-r--r--plugins/uml/org.eclipse.papyrus.uml.profile/src/org/eclipse/papyrus/uml/profile/ui/dialogs/ProfileDefinitionDialog.java12
1 files changed, 7 insertions, 5 deletions
diff --git a/plugins/uml/org.eclipse.papyrus.uml.profile/src/org/eclipse/papyrus/uml/profile/ui/dialogs/ProfileDefinitionDialog.java b/plugins/uml/org.eclipse.papyrus.uml.profile/src/org/eclipse/papyrus/uml/profile/ui/dialogs/ProfileDefinitionDialog.java
index 34b370df065..8e846a173d9 100644
--- a/plugins/uml/org.eclipse.papyrus.uml.profile/src/org/eclipse/papyrus/uml/profile/ui/dialogs/ProfileDefinitionDialog.java
+++ b/plugins/uml/org.eclipse.papyrus.uml.profile/src/org/eclipse/papyrus/uml/profile/ui/dialogs/ProfileDefinitionDialog.java
@@ -50,7 +50,7 @@ import org.eclipse.uml2.uml.Profile;
public class ProfileDefinitionDialog extends TitleAreaDialog {
/** path to the banner image */
- public final static String PROFILE_DEFINITION = ImageManager.IMAGE_PATH + "wizban/NewDefinition.gif";
+ public final static String PROFILE_DEFINITION = ImageManager.IMAGE_PATH + "wizban/NewDefinition.gif"; //$NON-NLS-1$
/** Text area that displays previous version of the profile definition */
protected Text oldVersionText;
@@ -255,14 +255,16 @@ public class ProfileDefinitionDialog extends TitleAreaDialog {
*/
private Composite createSaveConstraintAera(Composite composite) {
Group group = new Group(composite, SWT.CENTER);
- group.setText("Constraint");
+ group.setText("Constraints"); //$NON-NLS-1$
GridLayout layout = new GridLayout();
group.setLayout(layout);
// new copyright area
- constraintCheck=new Button(group, SWT.CHECK);
+ constraintCheck = new Button(group, SWT.CHECK);
+ // Enable button by default, see bug #411256
+ constraintCheck.setSelection(true);
// should look
- constraintCheck.setText("Save OCL constraints into the definition");////$NON-NLS-N$
+ constraintCheck.setText("Save OCL constraints into the definition"); //$NON-NLS-1$
GridData gd = new GridData(SWT.FILL, SWT.CENTER, true, true);
gd.heightHint = 60;
constraintCheck.setLayoutData(gd);
@@ -276,7 +278,7 @@ public class ProfileDefinitionDialog extends TitleAreaDialog {
*/
private Composite createCopyrightArea(Composite composite) {
Group group = new Group(composite, SWT.CENTER);
- group.setText("Copyright");
+ group.setText("Copyright"); //$NON-NLS-1$
GridLayout layout = new GridLayout();
group.setLayout(layout);

Back to the top