Codebase list jd-gui / 51036aa1-31f9-4199-8deb-e896fba34b49/upstream app / src / main / java / org / jd / gui / controller / GoToController.java
51036aa1-31f9-4199-8deb-e896fba34b49/upstream

Tree @51036aa1-31f9-4199-8deb-e896fba34b49/upstream (Download .tar.gz)

GoToController.java @51036aa1-31f9-4199-8deb-e896fba34b49/upstreamraw · 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.api.feature.LineNumberNavigable;
import org.jd.gui.model.configuration.Configuration;
import org.jd.gui.view.GoToView;

import javax.swing.*;
import java.util.function.IntConsumer;

public class GoToController {
    protected GoToView goToView;

    public GoToController(Configuration configuration, JFrame mainFrame) {
        // Create UI
        goToView = new GoToView(configuration, mainFrame);
    }

    public void show(LineNumberNavigable navigator, IntConsumer okCallback) {
        // Show
        goToView.show(navigator, okCallback);
    }
}