Skip to content
Snippets Groups Projects
Commit 54777e1c authored by Tiziano Munaro's avatar Tiziano Munaro
Browse files

GREEN/RED

Issue-Ref: 4324
Issue-Url: af3#4324



Signed-off-by: default avatarTiziano Munaro <munaro@fortiss.org>
parent be1a7073
No related branches found
No related tags found
1 merge request!207Add exclusion from constraint checks possibility for certain types
Pipeline #39116 failed
ToolingReuseActivator.java 52b9208684334f60ee8c0bc074c86f06f6248227 YELLOW ToolingReuseActivator.java 52b9208684334f60ee8c0bc074c86f06f6248227 GREEN
CommandLineInterfaceService.java 6b5c94c52702f773c60b181eff52204ab379b248 GREEN CommandLineInterfaceService.java 6b5c94c52702f773c60b181eff52204ab379b248 GREEN
CommandStackService.java 957bda69b5feb91f002aed4d25ed334e92801e7e GREEN CommandStackService.java 957bda69b5feb91f002aed4d25ed334e92801e7e GREEN
ConnectionCompositorService.java 5a52f8a3e88c167ae6909c3d9eb3fb4706177e8b GREEN ConnectionCompositorService.java 5a52f8a3e88c167ae6909c3d9eb3fb4706177e8b GREEN
ConstraintCheckerService.java 4f6f11949433f8dc76c00c2eb6d56bf277378954 YELLOW ConstraintCheckerService.java 94f1c07c37520161065128d8faaab10ab0c041b0 RED
DummyTopLevelElement.java 21807bbdafec2e0ef28f0ee9090218f90bd73aee GREEN DummyTopLevelElement.java 21807bbdafec2e0ef28f0ee9090218f90bd73aee GREEN
ElementCompositorService.java b1924b5b349118a70149cfac5b48544897d26e9e GREEN ElementCompositorService.java b1924b5b349118a70149cfac5b48544897d26e9e GREEN
LoggingService.java da784259f7b456b54bf75c41ec268f64919ce78d GREEN LoggingService.java da784259f7b456b54bf75c41ec268f64919ce78d GREEN
......
...@@ -132,6 +132,9 @@ public class ConstraintCheckerService extends EObjectAwareServiceBase<IConstrain ...@@ -132,6 +132,9 @@ public class ConstraintCheckerService extends EObjectAwareServiceBase<IConstrain
// Skip constraint checks if the given element itself is excluded from checks or if it // Skip constraint checks if the given element itself is excluded from checks or if it
// exists within an excluded element. // exists within an excluded element.
// TODO (TM): Looking through all parents for each excluded type introduces quite an
// overhead. As the list of parents is never used, memory and runtime overhead can be
// reduced by using `getFirstParentWithType` or, even better, `isAncestor` instead.
for(Class<? extends EObject> excludedClass : constraintCheckExclusionTypes) { for(Class<? extends EObject> excludedClass : constraintCheckExclusionTypes) {
List<? extends EObject> foundExcludedParents = List<? extends EObject> foundExcludedParents =
getParentsWithType(modelElement, excludedClass); getParentsWithType(modelElement, excludedClass);
......
ICommandLineInterfaceService.java c3e3ba08b2a1b8125b43abd1c29b7dc0a0be2b80 GREEN ICommandLineInterfaceService.java c3e3ba08b2a1b8125b43abd1c29b7dc0a0be2b80 GREEN
ICommandStackService.java 678dcd1a6ab435ed0870fa2a9ec48ce47f25a187 GREEN ICommandStackService.java 678dcd1a6ab435ed0870fa2a9ec48ce47f25a187 GREEN
IConnectionCompositorService.java 0cdf4568b2cd3e95ea195df90a84699eff36442b GREEN IConnectionCompositorService.java 0cdf4568b2cd3e95ea195df90a84699eff36442b GREEN
IConstraintCheckerService.java dc04965ac0265f77cb846f472d76620fb05a491a YELLOW IConstraintCheckerService.java dc04965ac0265f77cb846f472d76620fb05a491a GREEN
IEclipseResourceStorageService.java b1155ca15cd9474d4d533d6cb2725e8a22040ec9 GREEN IEclipseResourceStorageService.java b1155ca15cd9474d4d533d6cb2725e8a22040ec9 GREEN
IElementCompositorService.java acd462ec15f3bcc247b544b46ceebee971fe1408 GREEN IElementCompositorService.java acd462ec15f3bcc247b544b46ceebee971fe1408 GREEN
IKernelIntrospectionSystemService.java 7005c3acb4c6f978729d93279c595765e94e38eb GREEN IKernelIntrospectionSystemService.java 7005c3acb4c6f978729d93279c595765e94e38eb GREEN
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment