public void installElementCellActions(SNode elementNode, EditorCell elementCell) {
   if (elementCell.getUserObject(AbstractCellListHandler.ELEMENT_CELL_ACTIONS_SET) == null) {
     elementCell.putUserObject(
         AbstractCellListHandler.ELEMENT_CELL_ACTIONS_SET,
         AbstractCellListHandler.ELEMENT_CELL_ACTIONS_SET);
     if (elementNode != null) {
       elementCell.setAction(
           CellActionType.DELETE,
           new CellAction_DeleteNode(
               elementNode, CellAction_DeleteNode.DeleteDirection.FORWARD));
       elementCell.setAction(
           CellActionType.BACKSPACE,
           new CellAction_DeleteNode(
               elementNode, CellAction_DeleteNode.DeleteDirection.BACKWARD));
     }
     if (elementCell.getSubstituteInfo() == null
         || elementCell.getSubstituteInfo() instanceof DefaultSubstituteInfo) {
       elementCell.setSubstituteInfo(
           new OldNewCompositeSubstituteInfo(
               getEditorContext(),
               new SChildSubstituteInfo(
                   elementCell,
                   getNode(),
                   MetaAdapterFactory.getContainmentLink(
                       0x798100da4f0a421aL,
                       0xb99171f8c50ce5d2L,
                       0x5f1f0652f6049405L,
                       0x5f1f0652f6049407L,
                       "participant"),
                   elementNode),
               new DefaultChildSubstituteInfo(
                   getNode(), elementNode, super.getLinkDeclaration(), getEditorContext())));
     }
   }
 }
Example #2
0
 public void installElementCellActions(
     SNode listOwner, SNode elementNode, EditorCell elementCell, EditorContext editorContext) {
   if (elementCell.getUserObject(AbstractCellListHandler.ELEMENT_CELL_ACTIONS_SET) == null) {
     elementCell.putUserObject(
         AbstractCellListHandler.ELEMENT_CELL_ACTIONS_SET,
         AbstractCellListHandler.ELEMENT_CELL_ACTIONS_SET);
     if (elementNode != null) {
       elementCell.setAction(
           CellActionType.DELETE,
           new CellAction_DeleteNode(
               elementNode, CellAction_DeleteNode.DeleteDirection.FORWARD));
       elementCell.setAction(
           CellActionType.BACKSPACE,
           new CellAction_DeleteNode(
               elementNode, CellAction_DeleteNode.DeleteDirection.BACKWARD));
       elementCell.addKeyMap(new RefNodeListHandlerElementKeyMap(this, ","));
     }
     if (elementCell.getSubstituteInfo() == null
         || elementCell.getSubstituteInfo() instanceof DefaultSubstituteInfo) {
       elementCell.setSubstituteInfo(
           new DefaultChildSubstituteInfo(
               listOwner, elementNode, super.getLinkDeclaration(), editorContext));
     }
   }
 }
 public void installElementCellActions(SNode elementNode, EditorCell elementCell) {
   if (elementCell.getUserObject(AbstractCellListHandler.ELEMENT_CELL_ACTIONS_SET) == null) {
     elementCell.putUserObject(
         AbstractCellListHandler.ELEMENT_CELL_ACTIONS_SET,
         AbstractCellListHandler.ELEMENT_CELL_ACTIONS_SET);
     if (elementNode != null) {
       elementCell.setAction(
           CellActionType.DELETE,
           new CellAction_DeleteNode(
               elementNode, CellAction_DeleteNode.DeleteDirection.FORWARD));
       elementCell.setAction(
           CellActionType.BACKSPACE,
           new CellAction_DeleteNode(
               elementNode, CellAction_DeleteNode.DeleteDirection.BACKWARD));
     }
     if (elementCell.getSubstituteInfo() == null
         || elementCell.getSubstituteInfo() instanceof DefaultSubstituteInfo) {
       elementCell.setSubstituteInfo(
           new OldNewCompositeSubstituteInfo(
               getEditorContext(),
               new SChildSubstituteInfo(
                   elementCell,
                   getNode(),
                   MetaAdapterFactory.getContainmentLink(
                       0xf3061a5392264cc5L,
                       0xa443f952ceaf5816L,
                       0x114a6be947aL,
                       0x114a6beb0bdL,
                       "annotation"),
                   elementNode),
               new DefaultChildSubstituteInfo(
                   getNode(), elementNode, super.getLinkDeclaration(), getEditorContext())));
     }
   }
 }
 public void installElementCellActions(
     SNode listOwner, SNode elementNode, EditorCell elementCell, EditorContext editorContext) {
   if (elementCell.getUserObject(AbstractCellListHandler.ELEMENT_CELL_ACTIONS_SET) == null) {
     elementCell.putUserObject(
         AbstractCellListHandler.ELEMENT_CELL_ACTIONS_SET,
         AbstractCellListHandler.ELEMENT_CELL_ACTIONS_SET);
     if (elementNode != null) {
       elementCell.setAction(CellActionType.DELETE, new CellAction_DeleteNode(elementNode));
     }
     if (elementCell.getSubstituteInfo() == null
         || elementCell.getSubstituteInfo() instanceof DefaultReferenceSubstituteInfo) {
       elementCell.setSubstituteInfo(
           new DefaultChildSubstituteInfo(
               listOwner, elementNode, super.getLinkDeclaration(), editorContext));
     }
   }
 }