Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCamille Letavernier2015-02-16 11:29:35 -0500
committerGerrit Code Review @ Eclipse.org2015-02-16 11:29:36 -0500
commit9f8084341168a02318fefd0787c26edce975764f (patch)
tree7a1a4a51675c8adabb15a1c9ddc2a61ee259fdc9
parentee34e565e9020af73588f105877191eff6eb1973 (diff)
parente3c4b281336e58449c208d2daa2b10fb6f72b00a (diff)
downloadorg.eclipse.papyrus-9f8084341168a02318fefd0787c26edce975764f.tar.gz
org.eclipse.papyrus-9f8084341168a02318fefd0787c26edce975764f.tar.xz
org.eclipse.papyrus-9f8084341168a02318fefd0787c26edce975764f.zip
Merge "fix for https://bugs.eclipse.org/bugs/show_bug.cgi?id=431516" into streams/1.0-maintenance
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.stereotype.edition/src/org/eclipse/papyrus/uml/diagram/stereotype/edition/command/CreateAppliedStereotypeViewCommand.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.stereotype.edition/src/org/eclipse/papyrus/uml/diagram/stereotype/edition/command/CreateAppliedStereotypeViewCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.stereotype.edition/src/org/eclipse/papyrus/uml/diagram/stereotype/edition/command/CreateAppliedStereotypeViewCommand.java
index fdaa9ea7a3f..ac29d035b6c 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.stereotype.edition/src/org/eclipse/papyrus/uml/diagram/stereotype/edition/command/CreateAppliedStereotypeViewCommand.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.stereotype.edition/src/org/eclipse/papyrus/uml/diagram/stereotype/edition/command/CreateAppliedStereotypeViewCommand.java
@@ -1,5 +1,5 @@
/*****************************************************************************
- * Copyright (c) 2012 CEA LIST.
+ * Copyright (c) 2012, 2015 CEA LIST and others.
*
*
* All rights reserved. This program and the accompanying materials
@@ -9,6 +9,7 @@
*
* Contributors:
* Patrick Tessier (CEA LIST) Patrick.tessier@cea.fr - Initial API and implementation
+ * Calin Glitia (Esterel Technologies) calin.glitia@esterel-technologies.com - fix for Bugzilla Bug 431516
*
*****************************************************************************/
package org.eclipse.papyrus.uml.diagram.stereotype.edition.command;
@@ -56,7 +57,6 @@ public class CreateAppliedStereotypeViewCommand extends RecordingCommand {
@Override
public void doExecute() {
Node compartment = NotationFactory.eINSTANCE.createBasicCompartment();
- compartment.setVisible(displayit);
compartment.setLayoutConstraint(NotationFactory.eINSTANCE.createBounds());
TitleStyle ts = NotationFactory.eINSTANCE.createTitleStyle();
ts.setShowTitle(true);
@@ -65,6 +65,7 @@ public class CreateAppliedStereotypeViewCommand extends RecordingCommand {
compartment.setType(AppliedStereotypeCompartmentEditPart.ID);
ViewUtil.insertChildView(owner, compartment, ViewUtil.APPEND, false);
compartment.setMutable(true);
+ compartment.setVisible(displayit);
}
}

Back to the top