public void onClick(ClickEvent clickEvent)
{
final DeploymentRecord selection = deploymentSelection.getSelectedObject();
if (selection != null)
{
new DeploymentCommandDelegate(ContentRepositoryPanel.this.presenter,
DeploymentCommand.REMOVE_FROM_DOMAIN).execute(selection);
}
}
}));
toolStrip.addToolButtonRight(new ToolButton(Console.CONSTANTS.common_label_assign(),
new ClickHandler()
{
@Override
public void onClick(ClickEvent clickEvent)
{
final DeploymentRecord selection = deploymentSelection.getSelectedObject();
if (selection != null)
{
new DeploymentCommandDelegate(ContentRepositoryPanel.this.presenter,
DeploymentCommand.ADD_TO_GROUP).execute(selection);
}
}
}));
toolStrip.addToolButtonRight(new ToolButton(Console.CONSTANTS.common_label_replace(),
new ClickHandler()
{
@Override
public void onClick(ClickEvent clickEvent)
{
final DeploymentRecord selection = deploymentSelection.getSelectedObject();
if (selection != null)
{
new DeploymentCommandDelegate(ContentRepositoryPanel.this.presenter,
DeploymentCommand.UPDATE_CONTENT).execute(selection);
}
}
}));