Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruno Marques2015-05-27 04:08:08 -0400
committerPatrick Tessier2015-05-27 07:39:05 -0400
commitd696ec8f0a2d90dcb5cf78840b8f16fdb3fd6ab2 (patch)
tree9499c399bdd48b0bd7dd6edfb47e2c186859548f
parentce8984c97478bee899fb3fe281745622a88cf0c4 (diff)
downloadorg.eclipse.papyrus-d696ec8f0a2d90dcb5cf78840b8f16fdb3fd6ab2.tar.gz
org.eclipse.papyrus-d696ec8f0a2d90dcb5cf78840b8f16fdb3fd6ab2.tar.xz
org.eclipse.papyrus-d696ec8f0a2d90dcb5cf78840b8f16fdb3fd6ab2.zip
Bug 463290 - Papyrus diagram shall be expanded with new visual graphical
Supporting BorderItem on the Container Node Change-Id: I55f5b3eb8cfc68ef7e07b00c717253b600e91a60 Signed-off-by: Bruno Marques <bruno.marques@cea.fr> Reviewed-on: https://git.eclipse.org/r/48723 Tested-by: Hudson CI Reviewed-by: Patrick Tessier <Patrick.Tessier@cea.fr>
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editparts/ContainerNodeEditPart.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editparts/ContainerNodeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editparts/ContainerNodeEditPart.java
index a78007adfbc..f5ad89a6e5c 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editparts/ContainerNodeEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editparts/ContainerNodeEditPart.java
@@ -16,6 +16,7 @@ import java.util.List;
import org.eclipse.draw2d.IFigure;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.gef.EditPolicy;
+import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
import org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart;
import org.eclipse.gmf.runtime.diagram.ui.editpolicies.EditPolicyRoles;
import org.eclipse.gmf.runtime.draw2d.ui.figures.ConstrainedToolbarLayout;
@@ -129,12 +130,16 @@ public class ContainerNodeEditPart extends RoundedCompartmentEditPart {
}
return super.getContentPane();
}
-
+
/**
* @generated
*/
@Override
protected IFigure getContentPaneFor(IGraphicalEditPart editPart) {
+ if (editPart instanceof IBorderItemEditPart) {
+ return getBorderedFigure().getBorderItemContainer();
+ }
+
return getContentPane();
}

Back to the top