@Override
public void onClick(ClickEvent clickEvent) {
DeploymentRecord selection = selectionModel.getSelectedObject();
if(selection!=null)
{
new DeploymentCommandDelegate(
DeploymentListView.this.presenter,
DeploymentCommand.REMOVE_FROM_STANDALONE).execute(
selection
);
}
}
}));
toolStrip.addToolButtonRight(new ToolButton(Console.CONSTANTS.common_label_enOrDisable(), new ClickHandler() {
@Override
public void onClick(ClickEvent clickEvent) {
DeploymentRecord selection = selectionModel.getSelectedObject();
if(selection!=null)
{
new DeploymentCommandDelegate(
DeploymentListView.this.presenter,
DeploymentCommand.ENABLE_DISABLE).execute(
selection
);
}
}
}));
toolStrip.addToolButtonRight(new ToolButton("Update", new ClickHandler() {
@Override
public void onClick(ClickEvent clickEvent) {
DeploymentRecord selection = selectionModel.getSelectedObject();
if(selection!=null)
{
new DeploymentCommandDelegate(
DeploymentListView.this.presenter,
DeploymentCommand.UPDATE_CONTENT).execute(
selection
);
}