public void onClick(ClickEvent clickEvent)
{
DeploymentRecord selection = selectionModel.getSelectedObject();
if (selection != null)
{
new DeploymentCommandDelegate(
StandaloneDeploymentView.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(
StandaloneDeploymentView.this.presenter,
DeploymentCommand.ENABLE_DISABLE).execute(
selection
);
}
}
}));
toolStrip.addToolButtonRight(new ToolButton("Replace", new
ClickHandler()
{
@Override
public void onClick(ClickEvent clickEvent)
{
DeploymentRecord selection = selectionModel.getSelectedObject();
if (selection != null)
{
new DeploymentCommandDelegate(
StandaloneDeploymentView.this.presenter,
DeploymentCommand.UPDATE_CONTENT).execute(
selection
);
}