Search in sources :

Example 1 with IUpdateCallback

use of jadx.gui.update.JadxUpdate.IUpdateCallback in project jadx by skylot.

the class MainWindow method checkForUpdate.

private void checkForUpdate() {
    if (!settings.isCheckForUpdates()) {
        return;
    }
    JadxUpdate.check(new IUpdateCallback() {

        @Override
        public void onUpdate(final Release r) {
            SwingUtilities.invokeLater(new Runnable() {

                @Override
                public void run() {
                    updateLink.setText(String.format(NLS.str("menu.update_label"), r.getName()));
                    updateLink.setVisible(true);
                }
            });
        }
    });
}
Also used : IUpdateCallback(jadx.gui.update.JadxUpdate.IUpdateCallback) Release(jadx.gui.update.data.Release)

Aggregations

IUpdateCallback (jadx.gui.update.JadxUpdate.IUpdateCallback)1 Release (jadx.gui.update.data.Release)1