public AttributeList(SNode attributed, IAttributeDescriptor descriptor) { super( attributed, "smodelAttribute", (List) Sequence.fromIterable( AttributeOperations.getAttributes( SNodeOperations.cast( attributed, MetaAdapterFactory.getConcept( 0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL, "jetbrains.mps.lang.core.structure.BaseConcept")), descriptor)) .toListSequence()); myAttributeDescriptor = descriptor; }
@Override protected void doRemoveReference(SNode node) { AttributeOperations.deleteAttribute( myReferenceContainer, myAttributeDescriptor, (SNode) node); }
@Override protected void doAddReference(SNode node) { AttributeOperations.addAttribute(myReferenceContainer, myAttributeDescriptor, (SNode) node); }
@Override protected void insertAfter(SNode node, SNode anchorNode) { AttributeOperations.insertAttribute( myReferenceContainer, anchorNode, myAttributeDescriptor, (SNode) node); }