public void handleNewLinkerSelection() {
LinkerSelectionContext lh = linker.getSelectionContext();
GWTJahiaNode singleSelection = lh.getSingleSelection();
setEnabled(singleSelection!=null && singleSelection.isLockable() &&
PermissionsUtils.isPermitted("jcr:lockManagement", lh.getSelectionPermissions()) && singleSelection.getLockInfos() != null &&
singleSelection.canUnlock() && !lh.isSecondarySelection());
}
}