Examples of addMessage()


Examples of com.pragprog.aebook.chat.client.ChatMessageList.addMessage()

    ChatMessageList result = null;
    if (messages.size() > 1) {
        PChatMessage lastMessage = messages.get(messages.size() - 1);//(1)
        result = new ChatMessageList(chat, lastMessage.getDate());
        for (PChatMessage pchatmsg : messages) {
                    result.addMessage(pchatmsg.asChatMessage());
        }
    } else {
        result = new ChatMessageList(chat, System.currentTimeMillis());
    }
    return result;
View Full Code Here

Examples of com.puppycrawl.tools.checkstyle.DefaultConfiguration.addMessage()

    @Test
    public void testCustomMessage() throws CheckstyleException
    {
        DefaultConfiguration config = createCheckConfig(emptyCheck.getClass());
        config.addMessage("msgKey", "This is a custom message.");
        emptyCheck.configure(config);

        LocalizedMessages collector = new LocalizedMessages();
        emptyCheck.setMessages(collector);
View Full Code Here

Examples of com.python.pydev.analysis.messages.CompositeMessage.addMessage()

                                message.getEndLine(document), message.getStartCol(document),
                                message.getEndCol(document), prefs);

                    }
                    for (IMessage m : l) {
                        compositeMessage.addMessage(m);
                    }

                    //don't add additional info: not being used
                    //                    addAdditionalInfoToUnusedWildImport(compositeMessage);
                    addToResult(result, compositeMessage);
View Full Code Here

Examples of com.serotonin.m2m2.i18n.ProcessResult.addMessage()

            catch (ResultTypeException e) {
                message = e.getTranslatableMessage();
            }
        }

        response.addMessage("script", message);
        return response;
    }
}
View Full Code Here

Examples of com.subhajit.diagram.sequencediagram.model.SequenceDiagramModel.addMessage()

            CommonUtils
                .getClassNameSansPackage(destInvokeInstruction
                    .getInvokedClass())
                + "."
                + destInvokeInstruction.getInvokedMethod());
        model.addMessage(new ImmutableMessage(srcActor, destActor,
            generateSequenceDiagramMessage(destInvokeInstruction),
            destInvokeInstruction.getInvokedMethodReturnType()));

        // Experimentally, at this point, add a sequence diagram model
        // for the destActor's invoked method.
View Full Code Here

Examples of com.sun.enterprise.admin.event.AdminEventResult.addMessage()

        if (result == null) {
            // Still couldn't communicate, set result appropriately
            result = new AdminEventResult(event.getSequenceNumber());
            result.setResultCode(AdminEventResult.TRANSMISSION_ERROR);
            if (stub == null) {
                result.addMessage(event.getEffectiveDestination(),
                    "Remote Stub is null");
            }
        }
        return result;
    }
View Full Code Here

Examples of ee.widespace.forum.data.ForumData.addMessage()

          }
        Connection conn = getConnection();
        try {
         
          ForumData data = new ForumData(conn);
          data.addMessage( msg, forumName);
          conn.commit();
         
        } finally {
          conn.close();
        }
View Full Code Here

Examples of hermes.browser.actions.FIXSessionBrowserDocumentComponent.addMessage()

          }) ;
        }     
       
       
       
        document.addMessage(message);
      }
    } catch (Throwable ex) {
      log.error("browse stopped: " + ex.getMessage());
    } finally {
      reader.close();
View Full Code Here

Examples of javax.faces.context.FacesContext.addMessage()

        VariableResolver vr = fc.getApplication().getVariableResolver();
        AdvancedFilter af = (AdvancedFilter) vr.resolveVariable(fc, "advancedFilter");
       
        DataFilterEntry entry = af.getEntry();
        if (entry.getOperator() == null) {
            fc.addMessage("msg", new FacesMessage("Operator is not filled!"));
        } else if (entry.getOperator().needsValue() && Utilities.isEmpty(entry.getValue())) {
            fc.addMessage("msg", new FacesMessage("Value is not filled!"));
        } else {
            af.addCurrentEntry();
        }
View Full Code Here

Examples of javax.wsdl.Definition.addMessage()

        }
       
        iter = definition.getMessages().values().iterator();
        while (iter.hasNext()) {
            Message msg = (Message)iter.next();
            def.addMessage(msg);
        }               
       
        iter = definition.getNamespaces().values().iterator();      
        while (iter.hasNext()) {
            String namespace = (String)iter.next();
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.