public UpdateExtensionAction() {
super("updateExtension", "extensions", 300, "", true, SessionInfo.MANAGEMENT_CONSOLE_CONTEXT, PolicyConstants.EXTENSIONS_RESOURCE_TYPE, new Permission[]{ PolicyConstants.PERM_CHANGE});
}
public boolean isEnabled(AvailableTableItemAction availableItem) {
ExtensionBundleItem item = (ExtensionBundleItem)availableItem.getRowItem();
return !item.getBundle().isDevExtension() && item.getBundle().isUpdateable() && item.getSubFormName().equals("updateableExtensionsForm");
}