Examples of UpdateChecker


Examples of com.skcraft.launcher.selfupdate.UpdateChecker

    private void checkLauncherUpdate() {
        if (SelfUpdater.updatedAlready) {
            return;
        }

        ListenableFuture<URL> future = launcher.getExecutor().submit(new UpdateChecker(launcher));

        Futures.addCallback(future, new FutureCallback<URL>() {
            @Override
            public void onSuccess(URL result) {
                if (result != null) {
View Full Code Here

Examples of de.beimax.simplespleef.util.UpdateChecker

  /**
   * Check for updates
   */
  protected void checkForUpdate() {
    // create update checker
    final UpdateChecker checker = new UpdateChecker();
   
    // possibly check for updates in the internet on startup
    this.getServer().getScheduler().scheduleAsyncDelayedTask(this, new Runnable() {
        public void run() {
          try {
          String newVersion = checker.checkForUpdate(SimpleSpleef.simpleSpleef.getDescription().getVersion());
          if (newVersion != null)
            log.info("[SimpleSpleef] Update found for SimpleSpleef - please go to http://dev.bukkit.org/server-mods/simple-spleef/ to download version " + newVersion + "!");
        } catch (Exception e) {
          log.warning("[SimpleSpleef] Could not connect to remote server to check for update. Exception said: " + e.getMessage());
        }
        }
    }, 0L);
   
    // also check for updates in the configuration files and update them, if needed
    checker.updateConfigurationVersion(this);
  }
View Full Code Here

Examples of de.beimax.simplespleef.util.UpdateChecker

   
    // add listener for other plugins
    pm.registerEvents(new PluginListener(), this);
    // Register our events
    pm.registerEvents(gameHandler, this);
    pm.registerEvents(new UpdateChecker(), this); // check updates
    pm.registerEvents(new SimpleSpleefSignCommandExecutor(), this); // check sign actions
    pm.registerEvents(new SimpleSpleefCommandWhitelist(), this); // check command whitelist
  }
View Full Code Here

Examples of edu.umd.cs.findbugs.updates.UpdateChecker

                    enabledPlugins.add(plugin);
                }
            }
        }
        setGlobalOptions();
        updateChecker = new UpdateChecker(this);
        pluginsToUpdate = combine(enabledPlugins);
        // There are too many places where the detector factory collection can be created,
        // and in many cases it has nothing to do with update checks, like Plugin#addCustomPlugin(URI).

        // Line below commented to allow custom plugins be loaded/registered BEFORE we
View Full Code Here

Examples of edu.umd.cs.findbugs.updates.UpdateChecker

                    mainFrame.about();
                }
            });

            JMenuItem updateItem = newJMenuItem("menu.check_for_updates", "Check for Updates...");
            UpdateChecker checker = DetectorFactoryCollection.instance().getUpdateChecker();
            boolean disabled = checker.updateChecksGloballyDisabled();
            updateItem.setEnabled(!disabled);
            if (disabled) {
                updateItem.setToolTipText("Update checks disabled by plugin: "
                        + checker.getPluginThatDisabledUpdateChecks());
            }
            helpMenu.add(updateItem);

            updateItem.addActionListener(new ActionListener() {
                @Override
View Full Code Here

Examples of net.ftb.updater.UpdateChecker

        /*
         * Run UpdateChecker swingworker. done() will open LauncherUpdateDialog if needed
         */
        final int beta_ = beta;
        UpdateChecker updateChecker = new UpdateChecker(Constants.buildNumber, LaunchFrame.getInstance().minUsable, beta_) {
            @Override
            protected void done () {
                try {
                    if (get()) {
                        LauncherUpdateDialog p = new LauncherUpdateDialog(this, LaunchFrame.getInstance().minUsable);
                        p.setVisible(true);
                    }
                } catch (InterruptedException e) {
                } catch (ExecutionException e) {
                }
            }
        };
        updateChecker.execute();
        LoadingDialog.advance("Downloading pack data");
    }
View Full Code Here

Examples of net.sf.ehcache.util.UpdateChecker

    }

    private void checkForUpdateIfNeeded(boolean updateCheckNeeded) {
        try {
            if (updateCheckNeeded) {
                UpdateChecker updateChecker = new UpdateChecker();
                cacheManagerTimer.scheduleAtFixedRate(updateChecker, DELAY_UPDATE_CHECK, EVERY_WEEK);
            }
        } catch (Throwable t) {
            LOG.debug("Failed to set up update checker", t);
        }
View Full Code Here

Examples of org.apache.openejb.util.UpdateChecker

            return sys;
        }

        Thread updateCheckerThreader = null;
        if (!offline && !UpdateChecker.isSkipped()) {
            updateCheckerThreader = new Thread(new UpdateChecker());
            updateCheckerThreader.start();
        }

        if (configLocation != null) {
            openejb = JaxbOpenejb.readConfig(configLocation);
View Full Code Here

Examples of org.mcsg.survivalgames.util.UpdateChecker

        if((p.isOp() || p.hasPermission("sg.system.updatenotify")) && SettingsManager.getInstance().getConfig().getBoolean("check-for-update", true)){
            Bukkit.getServer().getScheduler().scheduleAsyncDelayedTask(plugin, new Runnable() {

                public void run() {
                    System.out.println("[SG]Checking for updates");
                    new UpdateChecker().check(p, plugin);
                }
             }, 60L);
        }
    }
View Full Code Here

Examples of org.quartz.utils.UpdateChecker

   
    /**
     * Update checker scheduler - fires every week
     */
    private void scheduleUpdateCheck() {
        new Timer(true).scheduleAtFixedRate(new UpdateChecker(), 1, 7 * 24 * 60 * 60 * 1000L);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.