* Pushes to the remote
*/
public class PushConfiguredRemoteCommand extends
RepositoriesViewCommandHandler<RepositoryTreeNode<?>> {
public Object execute(ExecutionEvent event) throws ExecutionException {
RepositoryTreeNode node = getSelectedNodes(event).get(0);
RemoteConfig config = getRemoteConfig(node);
if (config == null) {
MessageDialog.openInformation(getShell(event),
UIText.SimplePushActionHandler_NothingToPushDialogTitle,
UIText.SimplePushActionHandler_NothingToPushDialogMessage);
return null;
}
new PushOperationUI(node.getRepository(), config.getName(), false)
.start();
return null;
}