Examples of History


Examples of org.apache.vysper.xmpp.modules.extension.xep0045_muc.stanzas.History

        List<Stanza> stanzas = history.createStanzas(RECEIVER_OCCUPANT, true, new History(3, null, null, null));
        assertStanzas(stanzas, 3);
    }
   
    public void testZeroStanzas() throws Exception {
        List<Stanza> stanzas = history.createStanzas(RECEIVER_OCCUPANT, true, new History(0, null, null, null));
       
        assertStanzas(stanzas, 0);
    }
View Full Code Here

Examples of org.apache.vysper.xmpp.modules.extension.xep0045_muc.stanzas.History

       
        assertStanzas(stanzas, 0);
    }

    public void test500CharStanzas() throws Exception {
        List<Stanza> stanzas = history.createStanzas(RECEIVER_OCCUPANT, true, new History(null, 500, null, null));
       
        // 2 stanzas should fit in 500 chars
        assertStanzas(stanzas, 2);
    }
View Full Code Here

Examples of org.apache.vysper.xmpp.modules.extension.xep0045_muc.stanzas.History

        // 2 stanzas should fit in 500 chars
        assertStanzas(stanzas, 2);
    }

    public void test0CharStanzas() throws Exception {
        List<Stanza> stanzas = history.createStanzas(RECEIVER_OCCUPANT, true, new History(null, 0, null, null));
       
        assertStanzas(stanzas, 0);
    }
View Full Code Here

Examples of org.apache.vysper.xmpp.modules.extension.xep0045_muc.stanzas.History

        room.getHistory().append(
                StanzaBuilder.createMessageStanza(OCCUPANT2_JID, ROOM1_JID, MessageStanzaType.GROUPCHAT, null, "Body3")
                        .build(), new Occupant(OCCUPANT2_JID, "nick2", room, Role.Participant));

        // now, let user 1 enter room
        enterRoom(OCCUPANT1_JID, ROOM1_JID_WITH_NICK, null, new History(2, null, null, null), false);

        Stanza stanza = occupant1Queue.getNext();
        // first stanza should be room presence
        assertNotNull(stanza);
        assertEquals("presence", stanza.getName());
View Full Code Here

Examples of org.broad.igv.session.History

    }


    public HistoryMenu(String name) {
        super(name);
        final History history = IGV.getInstance().getSession().getHistory();

        clearAllItem = new JMenuItem("Clear all");
        clearAllItem.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent actionEvent) {
                history.clear();
            }
        });

        //backItem = new JMenuItem("<html>Back&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<i>Alt &rarr;");
        backItem = new JMenuItem("Back          Alt+Arrow");
        backItem.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent actionEvent) {
                history.back();
            }
        });

        forwardItem = new JMenuItem("Forward     Alt+Arrow");
        forwardItem.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent actionEvent) {
                history.forward();
            }
        });


        this.addMenuListener(new MenuListener() {
            public void menuSelected(MenuEvent menuEvent) {

                final History history = IGV.getInstance().getSession().getHistory();


                List<History.Entry> allLoci = IGV.getInstance().getSession().getAllHistory();
               
                boolean hasBack = history.peekBack() != null;
                boolean hasForward = history.peekForward() != null;
                backItem.setEnabled(hasBack);
                forwardItem.setEnabled(hasForward);
                clearAllItem.setEnabled(allLoci.size() > 0);

                // Update history list
View Full Code Here

Examples of org.freerealm.history.History

        Node diplomacyNode = XMLConverterUtility.findNode(node, "diplomacy");
        Diplomacy diplomacy = (new DiplomacyXMLConverter()).initializeFromNode(realm, diplomacyNode);
        realm.setDiplomacy(diplomacy);

        Node historyNode = XMLConverterUtility.findNode(node, "history");
        History history = (new FreeRealmHistoryXMLConverter()).initializeFromNode(realm, historyNode);
        realm.setHistory(history);

        Node worldMapNode = XMLConverterUtility.findNode(node, "WorldMap");
        WorldMap worldMap = new WorldMap();
        (new WorldMapXMLWrapper(worldMap)).initializeFromNode(realm, worldMapNode);
View Full Code Here

Examples of org.jboss.fresh.shell.impl.History

      sb.append("    --help : this help\r\n");
      error(sb.toString());
      return;
    }

    History h = null;
    Context context = getShell().getContext();
    if(project) {
      context = (Context) context.get("AppContext");
    } else if(global) {
      context = (Context) context.get("GlobalContext");
    }

    if(context == null) {
      if(project)
        error("AppContext not available");
      else if(global)
        error("GlobalContext not available");
      else
        error("Context not available");
      return;
    }

    h = (History) context.get("History");

    if(h == null) return;

    BufferObjectWriter oout = null;
    SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss");

    String val = null;

    try {
      Iterator it = h.list().iterator();
      while(it.hasNext()) {
        HistoryItem hi = (HistoryItem) it.next();

        if(objs) {
          if(oout == null)
View Full Code Here

Examples of org.maltparserx.parser.history.History

    setSymboltables(algorithm.getManager().getSymbolTables());
    setHistoryStructure(new HistoryList());
    setTransitionSystem(factory.makeTransitionSystem());
    String decisionSettings = algorithm.getManager().getOptionValue("guide", "decision_settings").toString().trim();
    getTransitionSystem().initTableHandlers(decisionSettings, symboltables);
    setHistory(new History(decisionSettings, algorithm.getManager().getOptionValue("guide", "classitem_separator").toString(), getTransitionSystem().getTableHandlers()));
    getTransitionSystem().initTransitionSystem(history);
    config = getFactory().makeParserConfiguration();
  }
View Full Code Here

Examples of org.modeshape.jcr.api.monitor.History

    @Override
    public HistoricalData getValues( ValueMetric metric,
                                     Window windowInTime ) throws MBeanException {
        try {
            History history = monitor.getHistory(metric, windowInTime);
            return historyToHistoricalData(history);
        } catch (RepositoryException e) {
            throw new MBeanException(e);
        }
    }
View Full Code Here

Examples of org.opensolaris.opengrok.history.History

        throws HistoryException
    {
        if (m == null) {
            return false;
        }
        History hist = HistoryGuru.getInstance().getHistory(src);
        return getHistoryContext(hist, path, out, null,context);
    }
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.