final GWTJahiaNodeProperty gwtJahiaNodeProperty = new GWTJahiaNodeProperty(property,
new GWTJahiaNodePropertyValue((String) null,
GWTJahiaNodePropertyType.WEAKREFERENCE));
properties.add(gwtJahiaNodeProperty);
JahiaContentManagementService.App.getInstance()
.saveProperties(Arrays.asList(node), properties, null, new BaseAsyncCallback() {
public void onSuccess(Object o) {
getMainModule().getEditLinker().refresh(EditLinker.REFRESH_MAIN);
}
public void onApplicationFailure(Throwable throwable) {
Window.alert("Failed : " + throwable);
}
});
} else {
String s = JahiaGWTParameters.getContextPath();
if (s.equals("/")) {
s = "";
}
mainModule.setStyleAttribute("cursor",
"url('" + s + "/gwt/resources/images/xtheme-jahia-andromeda/panel/link.cur'), pointer");
mainModule.getEditLinker().setSelectionListener(new ModuleSelectionListener() {
public void onModuleSelection(Module selection) {
mainModule.setStyleAttribute("cursor", "");
mainModule.getEditLinker().setSelectionListener(null);
if (selection.getNode() != node) {
List<GWTJahiaNodeProperty> properties = new ArrayList<GWTJahiaNodeProperty>();
final GWTJahiaNodeProperty gwtJahiaNodeProperty = new GWTJahiaNodeProperty(property,
new GWTJahiaNodePropertyValue(selection.getNode(),
GWTJahiaNodePropertyType.WEAKREFERENCE));
properties.add(gwtJahiaNodeProperty);
JahiaContentManagementService.App.getInstance()
.saveProperties(Arrays.asList(node), properties, null, new BaseAsyncCallback() {
public void onSuccess(Object o) {
getMainModule().getEditLinker().refresh(EditLinker.REFRESH_MAIN);
}
public void onApplicationFailure(Throwable throwable) {