예제 #1
0
 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;
 }
예제 #2
0
 @Override
 protected void doRemoveReference(SNode node) {
   AttributeOperations.deleteAttribute(
       myReferenceContainer, myAttributeDescriptor, (SNode) node);
 }
예제 #3
0
 @Override
 protected void doAddReference(SNode node) {
   AttributeOperations.addAttribute(myReferenceContainer, myAttributeDescriptor, (SNode) node);
 }
예제 #4
0
 @Override
 protected void insertAfter(SNode node, SNode anchorNode) {
   AttributeOperations.insertAttribute(
       myReferenceContainer, anchorNode, myAttributeDescriptor, (SNode) node);
 }