CPD Results

The following document contains the results of PMD's CPD 6.13.0.

Duplications

File Line
de/aikiit/fotorenamer/gui/ImageDirectorySelector.java 220
de/aikiit/fotorenamer/gui/MainUIWindow.java 217
                            } catch (InvalidDirectoryException uv) {
                                LOG.info("Invalid directory selected: " + uv.getMessage());
                                JOptionPane.showMessageDialog(null,
                                        getParameterizedBundleString("fotorenamer.ui.error.invaliddirectory", uv.getMessage()),
                                        getBundleString("fotorenamer.ui.error.invaliddirectory.title"),
                                        JOptionPane.ERROR_MESSAGE);
                            } catch (NoFilesFoundException kde) {
                                LOG.info("No files found in " + kde.getMessage());
                                JOptionPane.showMessageDialog(null,
                                        getParameterizedBundleString("fotorenamer.ui.error.nofiles", kde.getMessage()),
                                        getBundleString("fotorenamer.ui.error.nofiles.title"),
                                        JOptionPane.ERROR_MESSAGE);
                            }
                            return null;
                        }

                        @Override
                        protected void done() {
                            // TODO how can I communicate with the surrounding UI to block the user from pressing the buttons
                            LOG.debug("Finished working, cannot reset UI from the selector itself. Should find a way to lock the startbutton somehow.");