Examples of addMessage()


Examples of com.codeforces.graygoose.web.page.ApplicationPage.addMessage()

public abstract class ApplicationFrame extends Frame {
    public void addMessage(String text, Noty.Type type) {
        Page page = ApplicationContext.getInstance().getCurrentPage();
        if (page instanceof ApplicationPage) {
            ApplicationPage applicationPage = (ApplicationPage) page;
            applicationPage.addMessage(text, type);
        }
    }
}
View Full Code Here

Examples of com.dbxml.db.admin.Admin.addMessage()

                  }
                  return REMOVE_SELF;
               }
            }
            catch ( dbXMLException e ) {
               admin.addMessage(e.getMessage());
            }
            break;

         case ACTION_PERMISSIONS:
            PermissionsDialog perms = new PermissionsDialog(admin, col, id);
View Full Code Here

Examples of com.ecyrd.jspwiki.WikiSession.addMessage()

        if( request.getParameter("action").equalsIgnoreCase("remove") )
        {
            try
            {
                mgr.getUserDatabase().deleteByLoginName(loginid);
                session.addMessage("User profile "+loginid+" ("+fullname+") has been deleted");
            }
            catch (NoSuchPrincipalException e)
            {
                session.addMessage("User profile has already been removed");
            }
View Full Code Here

Examples of com.esri.gpt.framework.jsf.MessageBroker.addMessage()

    MessageBroker broker = this.extractMessageBroker();
    if(broker != null) {
      FacesMessage message = new FacesMessage();
      message.setSummary(strMessage);
      message.setSeverity(FacesMessage.SEVERITY_ERROR);
      broker.addMessage(message);


    }
    if(rethrowExcep) {
      throw e;
View Full Code Here

Examples of com.google.caja.reporting.EchoingMessageQueue.addMessage()

    final MessageQueue errs = new EchoingMessageQueue(
        err, mc, false);
    RenderContext rc = new RenderContext(
        new JsMinimalPrinter(new Concatenator(out, new Callback<IOException>() {
          public void handle(IOException ex) {
            errs.addMessage(
                MessageType.IO_ERROR,
                MessagePart.Factory.valueOf(ex.getMessage()));
          }
        })));
View Full Code Here

Examples of com.google.caja.reporting.MessageQueue.addMessage()

      CharProducer cp = fetcher.fetch(extRef, mime).getTextualContent();
      ParseTreeNode ptn = parse(is, cp, mime, mq);
      return rewrite(uri, container, ptn, es53, debug);
    } catch (UnsupportedEncodingException e) {
      LOG.severe("Unexpected inability to recognize mime type: " + mime);
      mq.addMessage(ServiceMessageType.UNEXPECTED_INPUT_MIME_TYPE,
          MessagePart.Factory.valueOf(mime));
    } catch (UriFetchException e) {
      LOG.info("Failed to retrieve: " + e.toString());
    } catch (ParseException e) {
      mq.addMessage(MessageType.PARSE_ERROR, FilePosition.UNKNOWN);
View Full Code Here

Examples of com.google.caja.reporting.SimpleMessageQueue.addMessage()

      CharProducer cp = fetcher.fetch(extRef, mime).getTextualContent();
      ParseTreeNode ptn = parse(is, cp, mime, mq);
      return rewrite(uri, container, ptn, es53, debug);
    } catch (UnsupportedEncodingException e) {
      LOG.severe("Unexpected inability to recognize mime type: " + mime);
      mq.addMessage(ServiceMessageType.UNEXPECTED_INPUT_MIME_TYPE,
          MessagePart.Factory.valueOf(mime));
    } catch (UriFetchException e) {
      LOG.info("Failed to retrieve: " + e.toString());
    } catch (ParseException e) {
      mq.addMessage(MessageType.PARSE_ERROR, FilePosition.UNKNOWN);
View Full Code Here

Examples of com.google.inject.internal.Errors.addMessage()

    Errors errors = new Errors(rawType);
    Constructor<?> cxtor = null;
    for (Constructor<?> constructor : rawType.getDeclaredConstructors()) {
      if (constructor.isAnnotationPresent(ThrowingInject.class)) {
        if (cxtor != null) {
          errors.addMessage("%s has more than one constructor annotated with @ThrowingInject. "
              + CONSTRUCTOR_RULES, rawType);
        }

        cxtor = constructor;
        Annotation misplacedBindingAnnotation = Annotations.findBindingAnnotation(
View Full Code Here

Examples of com.google.transconsole.common.messages.MessageBundle.addMessage()

  public static MessageBundle bundleMessages(AlertSink alertSink,
                                             List<ExtractedMessage> messages) {
    MessageBundle messageBundle = new MessageBundle(PROJECT_ID, LANGUAGE_ID);
    for (ExtractedMessage msg : messages) {
      try {
        messageBundle.addMessage(msg.getTcMessage());
      } catch (InvalidMessageBundleException e) {
        alertSink.add(new InvalidMessageError(msg.getSourcePosition(), e.getCause()));
      }
    }
    return messageBundle;
View Full Code Here

Examples of com.ibm.xsp.context.FacesContextEx.addMessage()

      c.setValue(value);
    } else {
      FacesContextEx ctx = FacesContextEx.getCurrentInstance();
      String msg = "Invalid file content";
      FacesMessage m = new FacesMessage(FacesMessage.SEVERITY_WARN, msg, msg);
      ctx.addMessage(c != null ? c.getClientId(ctx) : null, m);
    }
  }
  public void compact(UIInputEx c) {
    String value = c.getValueAsString();
    value = prettify(value,true);
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.