ToolStrip toolStrip = super.createToolStrip();
ToolButton clearBtn = new ToolButton(Console.CONSTANTS.subsys_infinispan_local_cache_clear_cache(),
new ClickHandler() {
@Override
public void onClick(ClickEvent clickEvent) {
final LocalCache localCache = (LocalCache) ((SingleSelectionModel)
table.getSelectionModel()).getSelectedObject();
localCachePresenter.clearCache(localCache.getCacheContainer(), localCache.getName());
}
});
// standalone only
if (Console.getBootstrapContext().isStandalone())