Actifsource

#6761 [Bug/Core] Delete nested selector

Actifsource code generator for any programming language

The bug occurs when a selector e.g. '(TestClass.relationA).distinct' is deleted except '.distinct'.

6761 1 Selector

ch.actifsource.util.AssertionFailure: not supported
    at ch.actifsource.util.Assert.fail(Assert.java:41)
    at ch.actifsource.template.model.code.CodeUtil$2.visit(CodeUtil.java:354)
    at ch.actifsource.template.model.code.CodeUtil$2.visit(CodeUtil.java:1)
    at ch.actifsource.core.selector.token.impl.ListToken.accept(ListToken.java:220)
    at ch.actifsource.template.model.code.CodeUtil.isLinkedToAnOwnedResource(CodeUtil.java:306)
    at ch.actifsource.template.model.code.CodeUtil$2.isLinkedToAnOwnedResourceFromFunctionToken(CodeUtil.java:413)
    at ch.actifsource.template.model.code.CodeUtil$2.visit(CodeUtil.java:386)
    at ch.actifsource.template.model.code.CodeUtil$2.visit(CodeUtil.java:1)
    at ch.actifsource.core.selector.token.impl.SubFunctionToken.accept(SubFunctionToken.java:276)
    at ch.actifsource.template.model.code.CodeUtil.isLinkedToAnOwnedResource(CodeUtil.java:306)
    at ch.actifsource.template.model.code.CodeUtil.isUsed(CodeUtil.java:291)
    at ch.actifsource.ui.templateeditor.templatetexteditor.maincontentpage.ContextBreadcrumbProvider.getSeparatorImageDescriptor(ContextBreadcrumbProvider.java:330)
    at ch.actifsource.ui.templateeditor.templatetexteditor.maincontentpage.ContextBreadcrumbProvider.getSeparatorImage(ContextBreadcrumbProvider.java:321)
    at ch.actifsource.ui.templateeditor.templatetexteditor.maincontentpage.ContextBreadcrumbProvider.getSeparatorImage(ContextBreadcrumbProvider.java:1)
    at ch.actifsource.ui.widget.breadcrumb.BreadcrumbSeparator.getImage(BreadcrumbSeparator.java:127)
    at ch.actifsource.ui.widget.breadcrumb.BreadcrumbSeparator.refresh(BreadcrumbSeparator.java:172)
    at ch.actifsource.ui.widget.breadcrumb.Breadcrumb.refreshLabel(Breadcrumb.java:262)
    at ch.actifsource.ui.widget.breadcrumb.Breadcrumb.access$1(Breadcrumb.java:255)
    at ch.actifsource.ui.widget.breadcrumb.Breadcrumb$1.itemChanged(Breadcrumb.java:100)
    at ch.actifsource.ui.widget.breadcrumb.AbstractBreadcrumbContentProvider.notifyItemChanged(AbstractBreadcrumbContentProvider.java:30)
    at ch.actifsource.ui.templateeditor.templatetexteditor.maincontentpage.ContextBreadcrumbProvider.access$10(ContextBreadcrumbProvider.java:1)
    at ch.actifsource.ui.templateeditor.templatetexteditor.maincontentpage.ContextBreadcrumbProvider$2.check(ContextBreadcrumbProvider.java:111)
    at ch.actifsource.ui.templateeditor.templatetexteditor.maincontentpage.ContextBreadcrumbProvider$2.afterRemove(ContextBreadcrumbProvider.java:131)
    at ch.actifsource.core.selector.metaelement.impl.property.ModelPropertyChangeObserverList.afterRemove(ModelPropertyChangeObserverList.java:48)