final FormStylePopup editor = new FormStylePopup(images.management(), "Edit Dependency");
/* editor.addRow(new HTML("<i>" + "Choose the version you want to depend on"
+ "</i>"));
*/
editor.addAttribute("Dependency Path: ", new Label(decodeDependencyPath(dependencyPath)[0]));
final VersionChooser versionChoose = new VersionChooser(
decodeDependencyPath(dependencyPath)[1],
conf.uuid,
decodeDependencyPath(dependencyPath)[0],
new Command() {
public void execute() {
table.refresh();
}
});
editor.addAttribute("Dependency Version: ", versionChoose);
HorizontalPanel hp = new HorizontalPanel();
Button useSelectedVersionButton = new Button("Use selected version");
hp.add(useSelectedVersionButton);
useSelectedVersionButton.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent w) {
String selectedVersion = versionChoose.getSelectedVersionName();
if(selectedVersion == null) {
return;
}
if (Window.confirm("Are you sure you want to use version: " + selectedVersion + " as dependency?")) {
RepositoryServiceFactory.getPackageService().updateDependency(