String neuerName = JOptionPane.showInputDialog( AppleJuiceDialog.getApp(), neuesVerzeichnis + ":", downloadDO.getTargetDirectory()); if (neuerName == null) { return; } else{ neuerName = neuerName.trim(); if (neuerName.indexOf(File.separator)==0 || neuerName.indexOf(ApplejuiceFassade.separator)==0 ){ neuerName = neuerName.substring(1); } } if (downloadDO.getTargetDirectory().compareTo(neuerName)!=0){ ApplejuiceFassade.getInstance().setTargetDir(
if (downloadDO.getTargetDirectory().compareTo( neuerName) != 0) { ApplejuiceFassade.getInstance(). setTargetDir(
            public void actionPerformed(ActionEvent ae) {                Object[] selectedItems = getSelectedDownloadItems();                if (selectedItems != null && selectedItems.length == 1) {                    if (selectedItems[0].getClass() == DownloadMainNode.class                        &&                        ( (DownloadMainNode) selectedItems[0]).getType() ==                        DownloadMainNode.ROOT_NODE) {                        DownloadDO downloadDO = ( (DownloadMainNode) selectedItems[0]).                            getDownloadDO();                        String neuerName = JOptionPane.showInputDialog(                            AppleJuiceDialog.getApp(), neuesVerzeichnis + ":",                            downloadDO.getTargetDirectory());                        if (neuerName == null) {                            return;                        }                        else{                            neuerName = neuerName.trim();                            if (neuerName.indexOf(File.separator)==0 ||                                neuerName.indexOf(ApplejuiceFassade.separator)==0 ){                                neuerName = neuerName.substring(1);                            }                        }                        if (downloadDO.getTargetDirectory().compareTo(neuerName)!=0){                            ApplejuiceFassade.getInstance().setTargetDir(                                downloadDO.getId(), neuerName);                        }                    }                }            }