Package freenet.node.useralerts

Examples of freenet.node.useralerts.UserAlert


      return false; // Not much we can do ...
      // FIXME post a useralert
    }
    pluginManager.killPluginByFilename(pluginName, Integer.MAX_VALUE, true);
    pluginManager.startPluginAuto(pluginName, true);
    UserAlert a;
    synchronized(this) {
      a = alert;
      alert = null;
    }
    node.clientCore.alerts.unregister(a);
View Full Code Here


      tempBlobFile.delete();
      return;
    }
    // Create a useralert to ask the user to deploy the new version.
   
    UserAlert toRegister = null;
    synchronized(this) {
      readyToDeploy = true;
      if(alert != null) return;
     
      toRegister = alert = new AbstractUserAlert(true, l10n("pluginUpdatedTitle", "name", pluginName), l10n("pluginUpdatedText", "name", pluginName), l10n("pluginUpdatedShortText", "name", pluginName), null, UserAlert.ERROR, true, NodeL10n.getBase().getString("UserAlert.hide"), true, this) {
View Full Code Here

    System.err.println("Written " + jarName() + " to " + fNew);
  }

  void writeJar() throws IOException {
    writeJarTo(result, pluginManager.getPluginFilename(pluginName));
    UserAlert a;
    synchronized(this) {
      a = alert;
      alert = null;
    }
    if(a != null)
View Full Code Here

  }

  @Override
  void kill() {
    super.kill();
    UserAlert a;
    synchronized(this) {
      a = alert;
      alert = null;
    }
    if(a != null)
View Full Code Here

    }

    // Don't persist for now - FIXME
    this.deleteExtraPeerDataFile(fileNumber);

    UserAlert alert = offer.askUserUserAlert();

    node.clientCore.alerts.register(alert);
  }
View Full Code Here

      // FIXME prb's can't be shared, right? Well they aren't here...
      prb.abort(RetrievalException.CANCELLED_BY_RECEIVER, "Cancelled by receiver");
    }

    protected void onReceiveFailure() {
      UserAlert alert = new AbstractUserAlert() {
        @Override
        public String dismissButtonText() {
          return NodeL10n.getBase().getString("UserAlert.hide");
        }
        @Override
View Full Code Here

      };
      node.clientCore.alerts.register(alert);
    }

    private void onReceiveSuccess() {
      UserAlert alert = new AbstractUserAlert() {
        @Override
        public String dismissButtonText() {
          return NodeL10n.getBase().getString("UserAlert.hide");
        }
        @Override
View Full Code Here

        if(this.manager.isAutoUpdateAllowed()) {
            atomicDeployer.deployMultiFileUpdateOffThread();
        } else {
            final long now = System.currentTimeMillis();
            System.err.println("Not deploying multi-file update for "+atomicDeployer.name+" because auto-update is not enabled.");
            node.clientCore.alerts.register(new UserAlert() {

                private String l10n(String key) {
                    return NodeL10n.getBase().getString("MainJarUpdater.ConfirmMultiFileUpdater."+key);
                }
               
View Full Code Here

                new SimpleUserAlert(false, l10n("noConnectivityTitle"), l10n("noConnectivity"), l10n("noConnectivityShort"), UserAlert.ERROR);
          }
          if(toRegister != null)
            node.clientCore.alerts.register(toRegister);
        } else {
          UserAlert toKill;
          synchronized(this) {
            toKill = noConnectivityAlert;
            noConnectivityAlert = null;
          }
          if(toKill != null)
View Full Code Here

TOP

Related Classes of freenet.node.useralerts.UserAlert

Copyright © 2018 www.massapicom. 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.