Example #1
0
  @Override
  public void contribute(EditorCell cell, TreeBuilder builder) {
    Collection<CellActionType> availableActions = cell.getAvailableActions();
    if (availableActions.isEmpty()) return;

    TreeBuilder actions = builder.subtree().text("Actions");

    for (CellActionType action : availableActions) {
      actions.property(CellExplorer.CellActionKey, action.name(), cell.getAction(action));
    }
  }