try { sleep(2000); SwingUtilities.invokeLater(new Runnable() { public void run() { if (nodeObject.getClass() == DownloadMainNode.class && ( (DownloadMainNode) nodeObject). getType() == DownloadMainNode.ROOT_NODE) { downloadDOOverviewPanel.setDownloadDO( ( ( DownloadMainNode) nodeObject). getDownloadDO()); } else if (nodeObject.getClass() == DownloadSourceDO.class) { if ( ( (DownloadSourceDO) nodeObject). getStatus() == DownloadSourceDO.IN_WARTESCHLANGE && ( (DownloadSourceDO) nodeObject). getQueuePosition() > 20) { return; } downloadDOOverviewPanel.setDownloadSourceDO( ( DownloadSourceDO) nodeObject); } } }); } catch (InterruptedException ex) { interrupt(); }
ApplejuiceFassade.getInstance().processLink(link); SoundPlayer.getInstance().playSound(SoundPlayer.LADEN);
                public void run() {                    try {                        sleep(2000);                        SwingUtilities.invokeLater(new Runnable() {                            public void run() {                                if (nodeObject.getClass() ==                                    DownloadMainNode.class                                    &&                                    ( (DownloadMainNode) nodeObject).                                    getType() ==                                    DownloadMainNode.ROOT_NODE) {                                    downloadDOOverviewPanel.setDownloadDO( ( (                                        DownloadMainNode) nodeObject).                                        getDownloadDO());                                }                                else if (nodeObject.getClass() ==                                         DownloadSourceDO.class) {                                    if ( ( (DownloadSourceDO) nodeObject).                                        getStatus() ==                                        DownloadSourceDO.IN_WARTESCHLANGE &&                                        ( (DownloadSourceDO) nodeObject).                                        getQueuePosition() > 20) {                                        return;                                    }                                    downloadDOOverviewPanel.setDownloadSourceDO( (                                        DownloadSourceDO) nodeObject);                                }                            }                        });                    }                    catch (InterruptedException ex) {                        interrupt();                    }                }