@Override public EditorCell getCell(EditorComponent editor) { if (editor == null) { return null; } return editor.getBigValidCellForNode(getNode()); }
@Override public EditorCell getCellForParentNodeInMainEditor(final EditorComponent editor) { return new ModelAccessHelper(editor.getRepository()) .runReadAction( () -> { if (getNode() == null) { return null; } if (editor instanceof InspectorEditorComponent) { return null; } SNode parent = getNode().getParent(); while (parent != null) { EditorCell result = editor.getBigValidCellForNode(parent); if (result != null) { return result; } parent = parent.getParent(); } return null; }); }