public void installCellInfo(SNode child, EditorCell editorCell) { editorCell.setSubstituteInfo( new DefaultChildSubstituteInfo( myOwnerNode, myContainmentLink.getDeclarationNode(), myEditorContext)); if (editorCell.getRole() == null) { editorCell.setRole("deprecated"); } Style style = new StyleImpl(); BaseLanguageStyle_StyleSheet.apply_JavaDoc(style, editorCell); style.set(StyleAttributes.INDENT_LAYOUT_INDENT, 0, true); style.set(StyleAttributes.INDENT_LAYOUT_NEW_LINE, 0, true); editorCell.getStyle().putAll(style); DeleteTagsAndHandleDeprecationOnAttributedNode.setCellActions( editorCell, myOwnerNode, myEditorContext); }
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)); elementCell.setAction(CellActionType.BACKSPACE, new CellAction_DeleteNode(elementNode)); DeleteTagsAndHandleDeprecationOnAttributedNode.setCellActions( elementCell, elementNode, editorContext); } if (elementCell.getSubstituteInfo() == null || elementCell.getSubstituteInfo() instanceof DefaultSubstituteInfo) { elementCell.setSubstituteInfo( new DefaultChildSubstituteInfo( listOwner, elementNode, super.getLinkDeclaration(), editorContext)); } } }