Search in sources :

Example 1 with AbstractToolbarCommand

use of org.kie.workbench.common.stunner.client.widgets.toolbar.command.AbstractToolbarCommand in project kie-wb-common by kiegroup.

the class ManagedToolbar method show.

@SuppressWarnings("unchecked")
private void show(final S session) {
    for (int i = 0; i < commands.size(); i++) {
        final AbstractToolbarCommand command = (AbstractToolbarCommand) commands.get(i);
        final AbstractToolbarItem<S> item = items.get(i);
        getView().addItem(item.asWidget());
        item.show(this, session, command, command::execute);
    }
    getView().show();
}
Also used : AbstractToolbarCommand(org.kie.workbench.common.stunner.client.widgets.toolbar.command.AbstractToolbarCommand)

Aggregations

AbstractToolbarCommand (org.kie.workbench.common.stunner.client.widgets.toolbar.command.AbstractToolbarCommand)1