/* 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(clientFactory,
eventBus,
decodeDependencyPath(dependencyPath)[1],
conf.getUuid(),
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?")) {
ModuleServiceAsync moduleService = GWT.create(ModuleService.class);