Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.etrice.ui.behavior/src/org/eclipse/etrice/ui/behavior/support/TrPointSupport.java')
-rw-r--r--plugins/org.eclipse.etrice.ui.behavior/src/org/eclipse/etrice/ui/behavior/support/TrPointSupport.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/org.eclipse.etrice.ui.behavior/src/org/eclipse/etrice/ui/behavior/support/TrPointSupport.java b/plugins/org.eclipse.etrice.ui.behavior/src/org/eclipse/etrice/ui/behavior/support/TrPointSupport.java
index b458949c2..fadf9dcde 100644
--- a/plugins/org.eclipse.etrice.ui.behavior/src/org/eclipse/etrice/ui/behavior/support/TrPointSupport.java
+++ b/plugins/org.eclipse.etrice.ui.behavior/src/org/eclipse/etrice/ui/behavior/support/TrPointSupport.java
@@ -384,8 +384,7 @@ public class TrPointSupport {
if (bo instanceof TrPoint) {
TrPoint tp = (TrPoint) bo;
- ContainerShape containerShape = context.getTargetContainer();
- if (SupportUtil.isInherited(tp, containerShape))
+ if (SupportUtil.isInherited(getDiagram(), tp))
return false;
if (isSubTP(context.getPictogramElement()))
@@ -530,7 +529,7 @@ public class TrPointSupport {
if (pes != null && pes.length == 1 && pes[0] instanceof ContainerShape) {
Object bo = getBusinessObjectForPictogramElement(pes[0]);
if (bo instanceof TrPoint) {
- return true;
+ return !SupportUtil.isInherited(getDiagram(), (TrPoint) bo);
}
}
return false;
@@ -628,7 +627,7 @@ public class TrPointSupport {
}
TrPoint tp = (TrPoint) bo;
- boolean inherited = SupportUtil.isInherited(tp, (ContainerShape)containerShape.eContainer());
+ boolean inherited = SupportUtil.isInherited(getDiagram(), tp);
Color dark = manageColor(inherited? INHERITED_COLOR:DARK_COLOR);
updateTrPointFigure(tp, containerShape, dark, manageColor(BRIGHT_COLOR));
@@ -663,7 +662,7 @@ public class TrPointSupport {
ContainerShape containerShape = (ContainerShape) context.getPictogramElement();
TrPoint tp = (TrPoint) getBusinessObjectForPictogramElement(containerShape);
- if (SupportUtil.isInherited(tp, containerShape))
+ if (SupportUtil.isInherited(getDiagram(), tp))
return false;
if (ValidationUtil.isConnectedOutside(tp))

Back to the top