The following document contains the results of PMD's CPD 4.2.5.
File | Line |
---|---|
info/magnolia/ui/contentapp/browser/BrowserSubApp.java | 246 |
info/magnolia/ui/contentapp/browser/BrowserSubApp.java | 317 |
BrowserSubAppDescriptor subAppDescriptor = (BrowserSubAppDescriptor) getSubAppContext().getSubAppDescriptor(); WorkbenchDefinition workbench = subAppDescriptor.getWorkbench(); ActionbarDefinition actionbarDefinition = subAppDescriptor.getActionbar(); if (actionbarDefinition == null) { return; } List<ActionbarSectionDefinition> sections = actionbarDefinition.getSections(); try { String workbenchRootItemId = JcrItemUtil.getItemId(workbench.getWorkspace(), workbench.getPath()); List<String> selectedItemIds = getBrowser().getSelectedItemIds(); List<Item> items = getJcrItemsExceptOne(workbench.getWorkspace(), selectedItemIds, workbenchRootItemId); // Figure out which section to show, only one ActionbarSectionDefinition sectionDefinition = getVisibleSection(sections, items); // If there no section matched the selection we just hide everything if (sectionDefinition == null) { |