CPD Results

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

Duplications

File Line
io\github\tonywasher\joceanus\themis\gui\reference\ThemisUIRefModuleSelect.java 88
io\github\tonywasher\joceanus\themis\gui\source\ThemisUISourceModuleSelect.java 98
theButton = pFactory.buttonFactory().newScrollButton(ThemisSolverModule.class);
        theModuleMenu = theButton.getMenu();

        /* Create the panel */
        final TethysUIPaneFactory myPanes = pFactory.paneFactory();
        thePanel = myPanes.newHBoxPane();
        thePanel.addNode(myPromptLabel);
        thePanel.addNode(theButton);

        /* Set listeners */
        final OceanusEventRegistrar<TethysUIEvent> myRegistrar = theButton.getEventRegistrar();
        myRegistrar.addEventListener(TethysUIEvent.NEWVALUE, e -> handleNewModule());
        theButton.setMenuConfigurator(e -> buildModuleMenu());
    }

    @Override
    public OceanusEventRegistrar<TethysUIEvent> getEventRegistrar() {
        return theEventManager.getEventRegistrar();
    }

    @Override
    public TethysUIComponent getUnderlying() {
        return thePanel;
    }