@Override public void onAddToView() { List<VariableDto> variables = new ArrayList<>(); variables.add(variable); VariablesToViewPresenter variablesToViewPresenter = variablesToViewProvider.get(); variablesToViewPresenter.initialize(table, variables); }
@Override public void onAddVariablesToView(List<VariableDto> variableDtos) { if (variableDtos.isEmpty()) { fireEvent(NotificationEvent.newBuilder().error("CopyVariableSelectAtLeastOne").build()); } else { VariablesToViewPresenter variablesToViewPresenter = variablesToViewProvider.get(); variablesToViewPresenter.initialize(table, variableDtos); } }