if (isDownloadUebersicht && selectedItems != null && selectedItems.length == 1) { if ( (selectedItems[0].getClass() == DownloadMainNode.class && ( (DownloadMainNode) selectedItems[0]).getType() == DownloadMainNode.ROOT_NODE) || (selectedItems[0].getClass() == DownloadSourceDO.class)) { item7.setVisible(true); if (selectedItems[0].getClass() != DownloadSourceDO.class) { item4.setVisible(true); item5.setVisible(true);
if (selectedItems != null) { if (selectedItems.length == 1) { if ( (selectedItems[0].getClass() == DownloadMainNode.class && ( (DownloadMainNode) selectedItems[0]). getType() == DownloadMainNode.ROOT_NODE) || (selectedItems[0].getClass() == DownloadSourceDO.class)) { item7.setVisible(true); if (selectedItems[0].getClass() != DownloadSourceDO.class) { item4.setVisible(true); item5.setVisible(true); } } } else { for (int i = 0; i < selectedItems.length; i++) { if ( (selectedItems[i].getClass() == DownloadMainNode.class && ( (DownloadMainNode) selectedItems[i]). getType() == DownloadMainNode.ROOT_NODE)) { item5.setVisible(true); }
            private void maybeShowPopup(MouseEvent e) {                if (!DownloadRootNode.isInitialized()) {                    return;                }                if (e.isPopupTrigger()) {                    Point p = e.getPoint();                    int selectedRow = downloadTable.rowAtPoint(p);                    int[] currentSelectedRows = downloadTable.getSelectedRows();                    for (int i = 0; i < currentSelectedRows.length; i++) {                        if (currentSelectedRows[i] == selectedRow) {                            selectedRow = -1;                            break;                        }                    }                    if (selectedRow != -1) {                        downloadTable.setRowSelectionInterval(selectedRow,                            selectedRow);                    }                    Object[] selectedItems = getSelectedDownloadItems();                    item4.setVisible(false);                    item5.setVisible(false);                    item7.setVisible(false);                    if (isDownloadUebersicht && selectedItems != null &&                        selectedItems.length == 1) {                        if ( (selectedItems[0].getClass() == DownloadMainNode.class                              &&                              ( (DownloadMainNode) selectedItems[0]).getType() ==                              DownloadMainNode.ROOT_NODE)                            || (selectedItems[0].getClass() == DownloadSourceDO.class)) {                            item7.setVisible(true);                            if (selectedItems[0].getClass() != DownloadSourceDO.class) {                                item4.setVisible(true);                                item5.setVisible(true);                            }                        }                    }                    popup.show(downloadTable, e.getX(), e.getY());                }            }