/** * Returns {@link #editor} if the user object of the cell is a rich text * value or {@link #redirector} if the user object is a component. * * @return Returns the editor for the cell view. */ public GraphCellEditor getEditor() { Object value = ((DefaultMutableTreeNode) getCell()).getUserObject(); if (value instanceof RichTextBusinessObject) { RichTextBusinessObject obj = (RichTextBusinessObject) value; if (obj.isRichText()) return editor; else if (obj.isComponent()) return redirector; } return super.getEditor(); }