layout.add(new ContentGroupLabel(Console.CONSTANTS.subsys_osgi_preloadedModules()));
ToolStrip toolStrip = new ToolStrip();
toolStrip.addToolButton(new ToolButton(Console.CONSTANTS.common_label_edit(), new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
OSGiPreloadedModule module = preloadedModulesTable.getSelection();
presenter.launchModuleWizard(module);
}
}));
toolStrip.addToolButton(new ToolButton(Console.CONSTANTS.common_label_delete(), new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
final OSGiPreloadedModule module = preloadedModulesTable.getSelection();
Feedback.confirm(Console.MESSAGES.subsys_osgi_removePreloadedModule(),
Console.MESSAGES.subsys_osgi_removePreloadedModuleConfirm(module.getIdentifier()),
new Feedback.ConfirmationHandler() {
@Override
public void onConfirmation(boolean isConfirmed) {
if (isConfirmed)
presenter.onDeletePreloadedModule(module.getIdentifier());
}
});
}
}));
toolStrip.addToolButtonRight(new ToolButton(Console.CONSTANTS.common_label_add(), new ClickHandler() {