/*
* 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);
}
}