Codebase list jd-gui / beb5dc6 app / src / main / java / org / jd / gui / controller / PreferencesController.java
beb5dc6

Tree @beb5dc6 (Download .tar.gz)

PreferencesController.java @beb5dc6raw · history · blame

/*
 * Copyright (c) 2008-2019 Emmanuel Dupuy.
 * This project is distributed under the GPLv3 license.
 * This is a Copyleft license that gives the user the right to use,
 * copy and modify the code freely for non-commercial purposes.
 */

package org.jd.gui.controller;

import org.jd.gui.model.configuration.Configuration;
import org.jd.gui.spi.PreferencesPanel;
import org.jd.gui.view.PreferencesView;

import javax.swing.*;
import java.util.Collection;

public class PreferencesController {
    protected PreferencesView preferencesView;

    public PreferencesController(Configuration configuration, JFrame mainFrame, Collection<PreferencesPanel> panels) {
        // Create UI
        preferencesView = new PreferencesView(configuration, mainFrame, panels);
    }

    public void show(Runnable okCallback) {
        // Show
        preferencesView.show(okCallback);
    }
}