Fork me on GitHub

CPD Results

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

Duplications

File Line
info/mikethomas/fahview/v6project/files/config/ConfigFileVisualElement.java 71
info/mikethomas/fahview/v6project/files/queue/QueueFileVisualElement.java 71
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 400, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 300, Short.MAX_VALUE)
        );
    }// </editor-fold>//GEN-END:initComponents

    // Variables declaration - do not modify//GEN-BEGIN:variables
    // End of variables declaration//GEN-END:variables
    /** {@inheritDoc} */
    @Override
    public JComponent getVisualRepresentation() {
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public JComponent getToolbarRepresentation() {
        return toolbar;
    }

    /** {@inheritDoc} */
    @Override
    public Action[] getActions() {
        return new Action[0];
    }

    /** {@inheritDoc} */
    @Override
    public Lookup getLookup() {
        return obj.getLookup();
    }

    /** {@inheritDoc} */
    @Override
    public void componentOpened() {
    }

    /** {@inheritDoc} */
    @Override
    public void componentClosed() {
    }

    /** {@inheritDoc} */
    @Override
    public void componentShowing() {
    }

    /** {@inheritDoc} */
    @Override
    public void componentHidden() {
    }

    /** {@inheritDoc} */
    @Override
    public void componentActivated() {
    }

    /** {@inheritDoc} */
    @Override
    public void componentDeactivated() {
    }

    /** {@inheritDoc} */
    @Override
    public UndoRedo getUndoRedo() {
        return UndoRedo.NONE;
    }

    /** {@inheritDoc} */
    @Override
    public void setMultiViewCallback(MultiViewElementCallback callback) {
        this.callback = callback;
    }

    /** {@inheritDoc} */
    @Override
    public CloseOperationState canCloseElement() {
        return CloseOperationState.STATE_OK;
    }
}
File Line
info/mikethomas/fahview/v6project/panels/QueuePanel.java 164
info/mikethomas/fahview/v6project/panels/QueueTopComponent.java 84
        core = new javax.swing.JLabel();

        table.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {"0", null, "0%", null},
                {"1", null, "0%", null},
                {"2", null, "0%", null},
                {"3", null, "0%", null},
                {"4", null, "0%", null},
                {"5", null, "0%", null},
                {"6", null, "0%", null},
                {"7", null, "0%", null},
                {"8", null, "0%", null},
                {"9", null, "0%", null}
            },
            new String [] {
                "Position", "Status", "Progress", "Project"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.Integer.class, java.lang.String.class, java.lang.String.class
            };
            boolean[] canEdit = new boolean [] {
                true, false, true, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        table.setEnabled(false);