rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
if (jj_scan_token(LPAREN)) return true;
if (jj_scan_token(WS)) return true;
final private boolean jj_3R_46() { if (jj_scan_token(LPAREN)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_3R_68()) return true;
if (jj_3R_69()) return true;
final private boolean jj_3R_47() { if (jj_3R_68()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_3R_69()) return true;
if (jj_scan_token(LPAREN)) return true;
final private boolean jj_3R_48() { if (jj_3R_69()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(NULL)) return true;
if (jj_3R_70()) return true;
final private boolean jj_3R_49() { if (jj_scan_token(NULL)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(TRUE)) return true;
if (jj_3R_71()) return true;
final private boolean jj_3R_50() { if (jj_scan_token(TRUE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(FALSE)) return true;
if (jj_scan_token(NULL)) return true;
final private boolean jj_3R_51() { if (jj_scan_token(FALSE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(UNDEFINED)) return true;
if (jj_scan_token(TRUE)) return true;
final private boolean jj_3R_52() { if (jj_scan_token(UNDEFINED)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(OP_NOT)) return true;
if (jj_scan_token(FALSE)) return true;
final private boolean jj_3R_53() { if (jj_scan_token(OP_NOT)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(NUMBER)) return true;
if (jj_scan_token(UNDEFINED)) return true;
final private boolean jj_3R_54() { if (jj_scan_token(NUMBER)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(OP_MINUS)) return true;
if (jj_scan_token(OP_NOT)) return true;
final private boolean jj_3R_55() { if (jj_scan_token(OP_MINUS)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(OP_EQ)) return true;
if (jj_scan_token(NUMBER)) return true;
final private boolean jj_3R_56() { if (jj_scan_token(OP_EQ)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(OP_SET)) return true;
if (jj_scan_token(OP_MINUS)) return true;
final private boolean jj_3R_57() { if (jj_scan_token(OP_SET)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(OP_NE)) return true;
if (jj_scan_token(OP_EQ)) return true;
final private boolean jj_3R_58() { if (jj_scan_token(OP_NE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(OP_GT)) return true;
if (jj_scan_token(OP_SET)) return true;
final private boolean jj_3R_59() { if (jj_scan_token(OP_GT)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(OP_GE)) return true;
if (jj_scan_token(OP_NE)) return true;
final private boolean jj_3R_60() { if (jj_scan_token(OP_GE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(OP_LE)) return true;
if (jj_scan_token(OP_GT)) return true;
final private boolean jj_3R_61() { if (jj_scan_token(OP_LE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(OP_LT)) return true;
if (jj_scan_token(OP_GE)) return true;
final private boolean jj_3R_62() { if (jj_scan_token(OP_LT)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
Token xsp; xsp = jj_scanpos; if (jj_3R_70()) { jj_scanpos = xsp; if (jj_3R_71()) { jj_scanpos = xsp; if (jj_3R_72()) { jj_scanpos = xsp; if (jj_3R_73()) { jj_scanpos = xsp; if (jj_3R_74()) return true;
if (jj_scan_token(OP_LE)) return true;
final private boolean jj_3R_63() { Token xsp; xsp = jj_scanpos; if (jj_3R_70()) { jj_scanpos = xsp; if (jj_3R_71()) { jj_scanpos = xsp; if (jj_3R_72()) { jj_scanpos = xsp; if (jj_3R_73()) { jj_scanpos = xsp; if (jj_3R_74()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
} else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
final private boolean jj_3R_63() { Token xsp; xsp = jj_scanpos; if (jj_3R_70()) { jj_scanpos = xsp; if (jj_3R_71()) { jj_scanpos = xsp; if (jj_3R_72()) { jj_scanpos = xsp; if (jj_3R_73()) { jj_scanpos = xsp; if (jj_3R_74()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(LBRACE)) return true;
if (jj_scan_token(OP_LT)) return true;
final private boolean jj_3R_64() { if (jj_scan_token(LBRACE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(RBRACE)) return true;
Token xsp; xsp = jj_scanpos; if (jj_3R_72()) { jj_scanpos = xsp; if (jj_3R_73()) { jj_scanpos = xsp; if (jj_3R_74()) { jj_scanpos = xsp; if (jj_3R_75()) { jj_scanpos = xsp; if (jj_3R_76()) return true;
final private boolean jj_3R_65() { if (jj_scan_token(RBRACE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
} else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
final private boolean jj_3R_65() { if (jj_scan_token(RBRACE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(POUND)) return true;
if (jj_scan_token(LBRACE)) return true;
final private boolean jj_3R_66() { if (jj_scan_token(POUND)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(DOLLAR)) return true;
if (jj_scan_token(RBRACE)) return true;
final private boolean jj_3R_67() { if (jj_scan_token(DOLLAR)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
Token xsp; xsp = jj_scanpos; if (jj_3R_75()) { jj_scanpos = xsp; if (jj_3R_76()) return true;
if (jj_scan_token(POUND)) return true;
final private boolean jj_3R_68() { Token xsp; xsp = jj_scanpos; if (jj_3R_75()) { jj_scanpos = xsp; if (jj_3R_76()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
} else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
final private boolean jj_3R_68() { Token xsp; xsp = jj_scanpos; if (jj_3R_75()) { jj_scanpos = xsp; if (jj_3R_76()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(LBRACKET)) return true;
if (jj_scan_token(DOLLAR)) return true;
final private boolean jj_3R_69() { if (jj_scan_token(LBRACKET)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(STUFF)) return true;
Token xsp; xsp = jj_scanpos; if (jj_3R_77()) { jj_scanpos = xsp; if (jj_3R_78()) return true;
final private boolean jj_3R_70() { if (jj_scan_token(STUFF)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
} else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
final private boolean jj_3R_70() { if (jj_scan_token(STUFF)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(QCHAR)) return true;
if (jj_scan_token(LBRACKET)) return true;
final private boolean jj_3R_71() { if (jj_scan_token(QCHAR)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(SLASH)) return true;
if (jj_scan_token(STUFF)) return true;
final private boolean jj_3R_72() { if (jj_scan_token(SLASH)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_3R_77()) return true;
if (jj_scan_token(QCHAR)) return true;
final private boolean jj_3R_73() { if (jj_3R_77()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_3R_78()) return true;
if (jj_scan_token(SLASH)) return true;
final private boolean jj_3R_74() { if (jj_3R_78()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(QUOTE)) return true;
if (jj_3R_79()) return true;
final private boolean jj_3R_75() { if (jj_scan_token(QUOTE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(SQUOTE)) return true;
if (jj_3R_80()) return true;
final private boolean jj_3R_76() { if (jj_scan_token(SQUOTE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(POUNDPOUND)) return true;
if (jj_scan_token(QUOTE)) return true;
final private boolean jj_3R_77() { if (jj_scan_token(POUNDPOUND)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
Token xsp; xsp = jj_scanpos; if (jj_3R_79()) { jj_scanpos = xsp; if (jj_3R_80()) return true;
if (jj_scan_token(SQUOTE)) return true;
final private boolean jj_3R_78() { Token xsp; xsp = jj_scanpos; if (jj_3R_79()) { jj_scanpos = xsp; if (jj_3R_80()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
} else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
final private boolean jj_3R_78() { Token xsp; xsp = jj_scanpos; if (jj_3R_79()) { jj_scanpos = xsp; if (jj_3R_80()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_3R_67()) return true;
if (jj_scan_token(POUNDPOUND)) return true;
final private boolean jj_3R_79() { if (jj_3R_67()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_scan_token(DOLLAR)) return true;
Token xsp; xsp = jj_scanpos; if (jj_3R_81()) { jj_scanpos = xsp; if (jj_3R_82()) return true;
final private boolean jj_3R_80() { if (jj_scan_token(DOLLAR)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
} else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
final private boolean jj_3R_80() { if (jj_scan_token(DOLLAR)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_3R_15()) jj_scanpos = xsp;
if (jj_3R_16()) jj_scanpos = xsp;
final private boolean jj_3_1() { Token xsp; xsp = jj_scanpos; if (jj_3R_15()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(NEWLINE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_3R_16()) {
if (jj_3R_17()) {
final private boolean jj_3_5() { if (jj_scan_token(WS)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; Token xsp; xsp = jj_scanpos; if (jj_3R_16()) { jj_scanpos = xsp; if (jj_3R_17()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (jj_3R_17()) return true;
if (jj_3R_18()) return true;
final private boolean jj_3_5() { if (jj_scan_token(WS)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; Token xsp; xsp = jj_scanpos; if (jj_3R_16()) { jj_scanpos = xsp; if (jj_3R_17()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
xsp = jj_scanpos; if (jj_3R_18()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(NEWLINE)) return true;
if (jj_3R_19()) return true;
final private boolean jj_3_6() { Token xsp; xsp = jj_scanpos; if (jj_3R_18()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(NEWLINE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_19()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
xsp = jj_scanpos; if (jj_3R_19()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
while (true) { xsp = jj_scanpos; if (jj_3R_19()) { jj_scanpos = xsp; break; } if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; }
final private boolean jj_3_6() { Token xsp; xsp = jj_scanpos; if (jj_3R_18()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(NEWLINE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_19()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
if (getToken(n).kind == WS) ++n; if (getToken(n).kind == NEWLINE) ++n; if (getToken(n).kind == WS) ++n;
Token t = getToken(n); while ( t.kind == WS || t.kind == NEWLINE ) { t = getToken(++n); }
Subdirective lookahead_subdirective(Subdirective[] subdirectives) throws ParseException { int n=1; if (getToken(n).kind == WS) ++n; if (getToken(n).kind == NEWLINE) ++n; if (getToken(n).kind == WS) ++n; if (getToken(n).kind == POUND && getToken(n+1).kind == WORD) { String word = getToken(n+1).image; for (int i=0; i<subdirectives.length; i++) if (word.equals(subdirectives[i].name)) return subdirectives[i]; } return null; }
final TranscriptWindow window = new TranscriptWindow();
final JTextArea window = new JTextArea(); window.setWrapStyleWord(true); window.setFont(new Font("Dialog", Font.PLAIN, 12));
private void showHistory(final String jid) { SwingWorker transcriptLoader = new SwingWorker() { public Object construct() { String bareJID = StringUtils.parseBareAddress(jid); return ChatTranscripts.getChatTranscript(bareJID); } public void finished() { final JPanel mainPanel = new BackgroundPanel(); mainPanel.setLayout(new BorderLayout()); final VCardPanel topPanel = new VCardPanel(jid); mainPanel.add(topPanel, BorderLayout.NORTH); final TranscriptWindow window = new TranscriptWindow(); final JScrollPane pane = new JScrollPane(window); pane.getVerticalScrollBar().setBlockIncrement(50); pane.getVerticalScrollBar().setUnitIncrement(20); mainPanel.add(pane, BorderLayout.CENTER); ChatTranscript transcript = (ChatTranscript)get(); List<HistoryMessage> list = transcript.getMessages(); //Collections.sort(list, dateComparator); for (HistoryMessage message : list) { String from = message.getFrom(); String nickname = StringUtils.parseName(from); final SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy h:mm a"); final String date = formatter.format(message.getDate()); String prefix = nickname + " [" + date + "]"; if (from.equals(SparkManager.getSessionManager().getJID())) { window.insertCustomMessage(prefix, message.getBody()); } else { window.insertCustomOtherMessage(prefix, message.getBody()); } } // Handle no history if (transcript.getMessages().size() == 0) { window.setText(Res.getString("message.no.history.found")); } final JFrame frame = new JFrame(Res.getString("title.history.for", jid)); frame.setIconImage(SparkRes.getImageIcon(SparkRes.HISTORY_16x16).getImage()); frame.getContentPane().setLayout(new BorderLayout()); frame.getContentPane().add(mainPanel, BorderLayout.CENTER); frame.pack(); frame.setSize(600, 400); window.setCaretPosition(0); GraphicUtils.centerWindowOnScreen(frame); frame.setVisible(true); } }; transcriptLoader.start(); }
window.insertCustomMessage(prefix, message.getBody());
buf.append(prefix + ": " + message.getBody()); buf.append("\n");
private void showHistory(final String jid) { SwingWorker transcriptLoader = new SwingWorker() { public Object construct() { String bareJID = StringUtils.parseBareAddress(jid); return ChatTranscripts.getChatTranscript(bareJID); } public void finished() { final JPanel mainPanel = new BackgroundPanel(); mainPanel.setLayout(new BorderLayout()); final VCardPanel topPanel = new VCardPanel(jid); mainPanel.add(topPanel, BorderLayout.NORTH); final TranscriptWindow window = new TranscriptWindow(); final JScrollPane pane = new JScrollPane(window); pane.getVerticalScrollBar().setBlockIncrement(50); pane.getVerticalScrollBar().setUnitIncrement(20); mainPanel.add(pane, BorderLayout.CENTER); ChatTranscript transcript = (ChatTranscript)get(); List<HistoryMessage> list = transcript.getMessages(); //Collections.sort(list, dateComparator); for (HistoryMessage message : list) { String from = message.getFrom(); String nickname = StringUtils.parseName(from); final SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy h:mm a"); final String date = formatter.format(message.getDate()); String prefix = nickname + " [" + date + "]"; if (from.equals(SparkManager.getSessionManager().getJID())) { window.insertCustomMessage(prefix, message.getBody()); } else { window.insertCustomOtherMessage(prefix, message.getBody()); } } // Handle no history if (transcript.getMessages().size() == 0) { window.setText(Res.getString("message.no.history.found")); } final JFrame frame = new JFrame(Res.getString("title.history.for", jid)); frame.setIconImage(SparkRes.getImageIcon(SparkRes.HISTORY_16x16).getImage()); frame.getContentPane().setLayout(new BorderLayout()); frame.getContentPane().add(mainPanel, BorderLayout.CENTER); frame.pack(); frame.setSize(600, 400); window.setCaretPosition(0); GraphicUtils.centerWindowOnScreen(frame); frame.setVisible(true); } }; transcriptLoader.start(); }
window.insertCustomOtherMessage(prefix, message.getBody());
buf.append(prefix + ": " + message.getBody()); buf.append("\n");
private void showHistory(final String jid) { SwingWorker transcriptLoader = new SwingWorker() { public Object construct() { String bareJID = StringUtils.parseBareAddress(jid); return ChatTranscripts.getChatTranscript(bareJID); } public void finished() { final JPanel mainPanel = new BackgroundPanel(); mainPanel.setLayout(new BorderLayout()); final VCardPanel topPanel = new VCardPanel(jid); mainPanel.add(topPanel, BorderLayout.NORTH); final TranscriptWindow window = new TranscriptWindow(); final JScrollPane pane = new JScrollPane(window); pane.getVerticalScrollBar().setBlockIncrement(50); pane.getVerticalScrollBar().setUnitIncrement(20); mainPanel.add(pane, BorderLayout.CENTER); ChatTranscript transcript = (ChatTranscript)get(); List<HistoryMessage> list = transcript.getMessages(); //Collections.sort(list, dateComparator); for (HistoryMessage message : list) { String from = message.getFrom(); String nickname = StringUtils.parseName(from); final SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy h:mm a"); final String date = formatter.format(message.getDate()); String prefix = nickname + " [" + date + "]"; if (from.equals(SparkManager.getSessionManager().getJID())) { window.insertCustomMessage(prefix, message.getBody()); } else { window.insertCustomOtherMessage(prefix, message.getBody()); } } // Handle no history if (transcript.getMessages().size() == 0) { window.setText(Res.getString("message.no.history.found")); } final JFrame frame = new JFrame(Res.getString("title.history.for", jid)); frame.setIconImage(SparkRes.getImageIcon(SparkRes.HISTORY_16x16).getImage()); frame.getContentPane().setLayout(new BorderLayout()); frame.getContentPane().add(mainPanel, BorderLayout.CENTER); frame.pack(); frame.setSize(600, 400); window.setCaretPosition(0); GraphicUtils.centerWindowOnScreen(frame); frame.setVisible(true); } }; transcriptLoader.start(); }
window.setText(buf.toString());
private void showHistory(final String jid) { SwingWorker transcriptLoader = new SwingWorker() { public Object construct() { String bareJID = StringUtils.parseBareAddress(jid); return ChatTranscripts.getChatTranscript(bareJID); } public void finished() { final JPanel mainPanel = new BackgroundPanel(); mainPanel.setLayout(new BorderLayout()); final VCardPanel topPanel = new VCardPanel(jid); mainPanel.add(topPanel, BorderLayout.NORTH); final TranscriptWindow window = new TranscriptWindow(); final JScrollPane pane = new JScrollPane(window); pane.getVerticalScrollBar().setBlockIncrement(50); pane.getVerticalScrollBar().setUnitIncrement(20); mainPanel.add(pane, BorderLayout.CENTER); ChatTranscript transcript = (ChatTranscript)get(); List<HistoryMessage> list = transcript.getMessages(); //Collections.sort(list, dateComparator); for (HistoryMessage message : list) { String from = message.getFrom(); String nickname = StringUtils.parseName(from); final SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy h:mm a"); final String date = formatter.format(message.getDate()); String prefix = nickname + " [" + date + "]"; if (from.equals(SparkManager.getSessionManager().getJID())) { window.insertCustomMessage(prefix, message.getBody()); } else { window.insertCustomOtherMessage(prefix, message.getBody()); } } // Handle no history if (transcript.getMessages().size() == 0) { window.setText(Res.getString("message.no.history.found")); } final JFrame frame = new JFrame(Res.getString("title.history.for", jid)); frame.setIconImage(SparkRes.getImageIcon(SparkRes.HISTORY_16x16).getImage()); frame.getContentPane().setLayout(new BorderLayout()); frame.getContentPane().add(mainPanel, BorderLayout.CENTER); frame.pack(); frame.setSize(600, 400); window.setCaretPosition(0); GraphicUtils.centerWindowOnScreen(frame); frame.setVisible(true); } }; transcriptLoader.start(); }
final TranscriptWindow window = new TranscriptWindow();
final JTextArea window = new JTextArea(); window.setWrapStyleWord(true); window.setFont(new Font("Dialog", Font.PLAIN, 12));
public void finished() { final JPanel mainPanel = new BackgroundPanel(); mainPanel.setLayout(new BorderLayout()); final VCardPanel topPanel = new VCardPanel(jid); mainPanel.add(topPanel, BorderLayout.NORTH); final TranscriptWindow window = new TranscriptWindow(); final JScrollPane pane = new JScrollPane(window); pane.getVerticalScrollBar().setBlockIncrement(50); pane.getVerticalScrollBar().setUnitIncrement(20); mainPanel.add(pane, BorderLayout.CENTER); ChatTranscript transcript = (ChatTranscript)get(); List<HistoryMessage> list = transcript.getMessages(); //Collections.sort(list, dateComparator); for (HistoryMessage message : list) { String from = message.getFrom(); String nickname = StringUtils.parseName(from); final SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy h:mm a"); final String date = formatter.format(message.getDate()); String prefix = nickname + " [" + date + "]"; if (from.equals(SparkManager.getSessionManager().getJID())) { window.insertCustomMessage(prefix, message.getBody()); } else { window.insertCustomOtherMessage(prefix, message.getBody()); } } // Handle no history if (transcript.getMessages().size() == 0) { window.setText(Res.getString("message.no.history.found")); } final JFrame frame = new JFrame(Res.getString("title.history.for", jid)); frame.setIconImage(SparkRes.getImageIcon(SparkRes.HISTORY_16x16).getImage()); frame.getContentPane().setLayout(new BorderLayout()); frame.getContentPane().add(mainPanel, BorderLayout.CENTER); frame.pack(); frame.setSize(600, 400); window.setCaretPosition(0); GraphicUtils.centerWindowOnScreen(frame); frame.setVisible(true); }
window.insertCustomMessage(prefix, message.getBody());
buf.append(prefix + ": " + message.getBody()); buf.append("\n");
public void finished() { final JPanel mainPanel = new BackgroundPanel(); mainPanel.setLayout(new BorderLayout()); final VCardPanel topPanel = new VCardPanel(jid); mainPanel.add(topPanel, BorderLayout.NORTH); final TranscriptWindow window = new TranscriptWindow(); final JScrollPane pane = new JScrollPane(window); pane.getVerticalScrollBar().setBlockIncrement(50); pane.getVerticalScrollBar().setUnitIncrement(20); mainPanel.add(pane, BorderLayout.CENTER); ChatTranscript transcript = (ChatTranscript)get(); List<HistoryMessage> list = transcript.getMessages(); //Collections.sort(list, dateComparator); for (HistoryMessage message : list) { String from = message.getFrom(); String nickname = StringUtils.parseName(from); final SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy h:mm a"); final String date = formatter.format(message.getDate()); String prefix = nickname + " [" + date + "]"; if (from.equals(SparkManager.getSessionManager().getJID())) { window.insertCustomMessage(prefix, message.getBody()); } else { window.insertCustomOtherMessage(prefix, message.getBody()); } } // Handle no history if (transcript.getMessages().size() == 0) { window.setText(Res.getString("message.no.history.found")); } final JFrame frame = new JFrame(Res.getString("title.history.for", jid)); frame.setIconImage(SparkRes.getImageIcon(SparkRes.HISTORY_16x16).getImage()); frame.getContentPane().setLayout(new BorderLayout()); frame.getContentPane().add(mainPanel, BorderLayout.CENTER); frame.pack(); frame.setSize(600, 400); window.setCaretPosition(0); GraphicUtils.centerWindowOnScreen(frame); frame.setVisible(true); }
window.insertCustomOtherMessage(prefix, message.getBody());
buf.append(prefix + ": " + message.getBody()); buf.append("\n");
public void finished() { final JPanel mainPanel = new BackgroundPanel(); mainPanel.setLayout(new BorderLayout()); final VCardPanel topPanel = new VCardPanel(jid); mainPanel.add(topPanel, BorderLayout.NORTH); final TranscriptWindow window = new TranscriptWindow(); final JScrollPane pane = new JScrollPane(window); pane.getVerticalScrollBar().setBlockIncrement(50); pane.getVerticalScrollBar().setUnitIncrement(20); mainPanel.add(pane, BorderLayout.CENTER); ChatTranscript transcript = (ChatTranscript)get(); List<HistoryMessage> list = transcript.getMessages(); //Collections.sort(list, dateComparator); for (HistoryMessage message : list) { String from = message.getFrom(); String nickname = StringUtils.parseName(from); final SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy h:mm a"); final String date = formatter.format(message.getDate()); String prefix = nickname + " [" + date + "]"; if (from.equals(SparkManager.getSessionManager().getJID())) { window.insertCustomMessage(prefix, message.getBody()); } else { window.insertCustomOtherMessage(prefix, message.getBody()); } } // Handle no history if (transcript.getMessages().size() == 0) { window.setText(Res.getString("message.no.history.found")); } final JFrame frame = new JFrame(Res.getString("title.history.for", jid)); frame.setIconImage(SparkRes.getImageIcon(SparkRes.HISTORY_16x16).getImage()); frame.getContentPane().setLayout(new BorderLayout()); frame.getContentPane().add(mainPanel, BorderLayout.CENTER); frame.pack(); frame.setSize(600, 400); window.setCaretPosition(0); GraphicUtils.centerWindowOnScreen(frame); frame.setVisible(true); }
window.setText(buf.toString());
public void finished() { final JPanel mainPanel = new BackgroundPanel(); mainPanel.setLayout(new BorderLayout()); final VCardPanel topPanel = new VCardPanel(jid); mainPanel.add(topPanel, BorderLayout.NORTH); final TranscriptWindow window = new TranscriptWindow(); final JScrollPane pane = new JScrollPane(window); pane.getVerticalScrollBar().setBlockIncrement(50); pane.getVerticalScrollBar().setUnitIncrement(20); mainPanel.add(pane, BorderLayout.CENTER); ChatTranscript transcript = (ChatTranscript)get(); List<HistoryMessage> list = transcript.getMessages(); //Collections.sort(list, dateComparator); for (HistoryMessage message : list) { String from = message.getFrom(); String nickname = StringUtils.parseName(from); final SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy h:mm a"); final String date = formatter.format(message.getDate()); String prefix = nickname + " [" + date + "]"; if (from.equals(SparkManager.getSessionManager().getJID())) { window.insertCustomMessage(prefix, message.getBody()); } else { window.insertCustomOtherMessage(prefix, message.getBody()); } } // Handle no history if (transcript.getMessages().size() == 0) { window.setText(Res.getString("message.no.history.found")); } final JFrame frame = new JFrame(Res.getString("title.history.for", jid)); frame.setIconImage(SparkRes.getImageIcon(SparkRes.HISTORY_16x16).getImage()); frame.getContentPane().setLayout(new BorderLayout()); frame.getContentPane().add(mainPanel, BorderLayout.CENTER); frame.pack(); frame.setSize(600, 400); window.setCaretPosition(0); GraphicUtils.centerWindowOnScreen(frame); frame.setVisible(true); }
new DisplayedDocument(shell);
Dispatcher dispatcher = new Dispatcher(); Listener listener = new Listener(dispatcher); new DisplayedDocument(shell, listener, dispatcher);
public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); new DisplayedDocument(shell); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); }
FileUtils.contentsEqual(target, test, true);
assertTrue(FileUtils.contentsEqual(target, test, true));
protected void check() throws Exception { FileUtils.contentsEqual(target, test, true); }
this(null,null);
this(null);
BrokerOwner() { this(null,null); }
_broker = (_config == null) ? new Broker(_classloader) : new Broker(_config,_classloader);
_broker = (_config == null) ? new Broker() : new Broker(_config);
synchronized Broker init() throws InitException { _brokerUsers++; if (_broker == null) { try { _broker = (_config == null) ? new Broker(_classloader) : new Broker(_config,_classloader); } catch (InitException e) {e.printStackTrace(); _broker = null; _brokerUsers = 0; throw e; // rethrow } catch (Throwable t) { _broker = null; _brokerUsers = 0; throw new InitException("An unexpected exception was raised during initialization. This is bad,\n" +"there is either a bug in WebMacro, or your configuration is messed up:\n" + t +"\nHere are some clues: if you got a ClassNotFound exception, either\n" +"something is missing from your classpath (odd since this code ran)\n" +"or your JVM is failing some important classfile due to bytecode problems\n" +"and then claiming that, it does not exist... you might also see some kind\n" +"of VerifyException or error in that case. If you suspect something like\n" +"this is happening, recompile the WebMacro base classes with your own Java\n" +"compiler and libraries--usually that helps. It could also be that your\n" +"JVM is not new enough. Again you could try recompiling, but if it is\n" +"older than Java 1.1.7 you might be out of luck. If none of this helps,\n" +"please join the WebMacro mailing list and let us know about the problem,\n" +"because yet another possibility is WebMacro has a bug--and anyway, we \n" +"might know a workaround, or at least like to hear about the bug.\n"); } } return _broker; }
this(null, null);
this(null);
public WM() throws InitException { this(null, null); }
String bodyValue = htmlBodyElement.getText();
String bodyValue = htmlBodyElement.getContentAsString();
public boolean load(WebdavExtendedResource webdavResource) throws IOException { XMLParser builder = new XMLParser(); XMLDocument bodyDoc = null; try { WebdavResource theArticle = null; if(webdavResource.isCollection()){ IWContext iwc = IWContext.getInstance(); WebdavResources resources = webdavResource.getChildResources(); String userLanguageArticleName = getArticleName(iwc.getCurrentLocale()); String systemLanguageArticleName = getArticleName(iwc.getIWMainApplication().getDefaultLocale()); if(resources.isThereResourceName(userLanguageArticleName)){ //the language that the user has selected theArticle = resources.getResource(userLanguageArticleName); } else if(resources.isThereResourceName(systemLanguageArticleName)){ //the language that is default for the system theArticle = resources.getResource(systemLanguageArticleName); } else { // take the first language Enumeration en = resources.getResources(); if(en.hasMoreElements()){ theArticle = (WebdavResource)en.nextElement(); } } } else { theArticle = webdavResource; } if(theArticle!=null && !theArticle.isCollection()){ setArticleResourcePath(theArticle.getPath()); bodyDoc = builder.parse(new ByteArrayInputStream(theArticle.getMethodDataAsString().getBytes("UTF-8"))); } else { bodyDoc = null; } } catch (XMLException e) { e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates. } if(bodyDoc!=null){ XMLElement rootElement = bodyDoc.getRootElement(); try { XMLElement language = rootElement.getChild(FIELDNAME_CONTENT_LANGUAGE,idegaXMLNameSpace); if(language != null){ setContentLanguage(language.getText()); } else { setContentLanguage(null); } }catch(Exception e) { setContentLanguage(null); } try { XMLElement headline = rootElement.getChild(FIELDNAME_HEADLINE,idegaXMLNameSpace); if(headline != null){ setHeadline(headline.getText()); } else { setHeadline(""); } }catch(Exception e) { //Nullpointer could occur if field isn't used e.printStackTrace(); setHeadline(""); } try { XMLElement teaser = rootElement.getChild(FIELDNAME_TEASER,idegaXMLNameSpace); if(teaser != null){ setTeaser(teaser.getText()); } else { setTeaser(""); } }catch(Exception e) { //Nullpointer could occur if field isn't used e.printStackTrace(); setTeaser(""); } try { XMLElement author = rootElement.getChild(FIELDNAME_AUTHOR,idegaXMLNameSpace); if(author != null){ setAuthor(author.getText()); } else { setAuthor(""); } }catch(Exception e) { //Nullpointer could occur if field isn't used e.printStackTrace(); setAuthor(""); } //Parse out the body try { XMLNamespace htmlNamespace = new XMLNamespace("http://www.w3.org/1999/xhtml"); XMLElement bodyElement = rootElement.getChild(FIELDNAME_BODY,idegaXMLNameSpace); XMLElement htmlElement = bodyElement.getChild("html",htmlNamespace); XMLElement htmlBodyElement = htmlElement.getChild("body",htmlNamespace); String bodyValue = htmlBodyElement.getText(); // System.out.println("htmlBody value= "+bodyValue); setBody(bodyValue); }catch(Exception e) { //Nullpointer could occur if field isn't used // e.printStackTrace(); Logger log = Logger.getLogger(this.getClass().toString()); log.warning("Body of article is empty"); setBody(""); } try { XMLElement source = rootElement.getChild(FIELDNAME_SOURCE,idegaXMLNameSpace); if(source != null){ setSource(source.getText()); } else { setSource(""); } }catch(Exception e) { //Nullpointer could occur if field isn't used setSource(""); } try { XMLElement comment = rootElement.getChild(FIELDNAME_ARTICLE_COMMENT,idegaXMLNameSpace); if(comment != null){ setComment(comment.getText()); } else { setComment(""); } }catch(Exception e) { //Nullpointer could occur if field isn't used e.printStackTrace(); setComment(""); } } else { //article not found Logger log = Logger.getLogger(this.getClass().toString()); log.warning("Article xml file was not found"); setRendered(false); return false; } return true;// setFilename();// setFolderLocation(bodyElement.getChild(FIELDNAME_FOLDER_LOCATION,idegans).getText()); }
answer = "xsd:string";
answer = "xs:string";
protected String getXSDType(JProperty property) { if (xsdTypeMap == null) { xsdTypeMap = new HashMap(); loadXsdTypeMap(xsdTypeMap); } String typeName = property.getType().getQualifiedName(); String answer = (String) xsdTypeMap.get(typeName); if (answer == null) { answer = "xsd:string"; } return answer; }
if (maxMemory != null) java.setJvmargs("-Xmx" + maxMemory);
protected Java getJava() { if (java == null) { java = (Java)getProject().createTask("java"); java.setTaskName(getTaskName()); java.setClassname(getClassName()); java.setFork(true); java.setDir(getProject().getBaseDir()); /** * We replace %20 with a space character because, for some * reason, when we call Cobertura from within CruiseControl, * the classpath here contains %20's instead of spaces. I * don't know if this is our problem, or CruiseControl, or * ant, but this seems to fix it. --Mark */ if (getClass().getClassLoader() instanceof AntClassLoader) { String classpath = ((AntClassLoader)getClass() .getClassLoader()).getClasspath(); createClasspath().setPath( StringUtil.replaceAll(classpath, "%20", " ")); } else if (getClass().getClassLoader() instanceof URLClassLoader) { URL[] earls = ((URLClassLoader)getClass().getClassLoader()) .getURLs(); for (int i = 0; i < earls.length; i++) { String classpath = (new File(earls[i].getFile())).getAbsolutePath(); createClasspath().setPath( StringUtil.replaceAll(classpath, "%20", " ")); } } } return java; }
_inputEncoding = getDefaultEncoding();
_inputEncoding = defaultEncoding;
private void setupLocalProperties() { InputStream is = null; URL u = null; try { u = new URL(_url, WMConstants.WEBMACRO_LOCAL_FILE); _log.debug("Looking for encodings file: "+u); Object obj = propertiesCache.get(u); if (obj != null) { return; } Properties p = new Properties(); is = u.openStream(); p.load(is); _inputEncoding = p.getProperty(WMConstants.TEMPLATE_INPUT_ENCODING); if (_inputEncoding == null) { _inputEncoding = getDefaultEncoding(); } _outputEncoding = p.getProperty(WMConstants.TEMPLATE_OUTPUT_ENCODING); String loc = p.getProperty(WMConstants.TEMPLATE_LOCALE); if (loc != null) { _outputLocale = LocaleTool.buildLocale(loc); } propertiesCache.put(u,dummy); } catch (Exception e) { // if there's an Exception here, put a dummy object here so // we don't try to look for the file every time // propertiesCache.put(u, dummy); } finally { if (is != null) { try { is.close(); } catch (Exception ignore) {} } } }
List<String> classNames = new ArrayList(); String jarPath = location.getFile().replaceFirst("./META-INF", "");
String jarPath = location.getFile(); if (jarPath.indexOf("!") > -1){ jarPath = jarPath.substring(0, jarPath.indexOf("!")); }
private List<String> jar(URL location) throws IOException { List<String> classNames = new ArrayList(); String jarPath = location.getFile().replaceFirst("./META-INF", ""); URL url = new URL(jarPath); InputStream in = url.openStream(); JarInputStream jarStream = new JarInputStream(in); JarEntry entry; while ((entry = jarStream.getNextJarEntry()) != null) { if (entry.isDirectory() || !entry.getName().endsWith(".class")) { continue; } String className = entry.getName(); className = className.replaceFirst(".class$", ""); className = className.replace('/', '.'); classNames.add(className); } return classNames; }
JarInputStream jarStream = new JarInputStream(in); JarEntry entry; while ((entry = jarStream.getNextJarEntry()) != null) { if (entry.isDirectory() || !entry.getName().endsWith(".class")) { continue; } String className = entry.getName(); className = className.replaceFirst(".class$", ""); className = className.replace('/', '.'); classNames.add(className);
try { JarInputStream jarStream = new JarInputStream(in); return jar(jarStream); } finally { in.close();
private List<String> jar(URL location) throws IOException { List<String> classNames = new ArrayList(); String jarPath = location.getFile().replaceFirst("./META-INF", ""); URL url = new URL(jarPath); InputStream in = url.openStream(); JarInputStream jarStream = new JarInputStream(in); JarEntry entry; while ((entry = jarStream.getNextJarEntry()) != null) { if (entry.isDirectory() || !entry.getName().endsWith(".class")) { continue; } String className = entry.getName(); className = className.replaceFirst(".class$", ""); className = className.replace('/', '.'); classNames.add(className); } return classNames; }
return classNames;
private List<String> jar(URL location) throws IOException { List<String> classNames = new ArrayList(); String jarPath = location.getFile().replaceFirst("./META-INF", ""); URL url = new URL(jarPath); InputStream in = url.openStream(); JarInputStream jarStream = new JarInputStream(in); JarEntry entry; while ((entry = jarStream.getNextJarEntry()) != null) { if (entry.isDirectory() || !entry.getName().endsWith(".class")) { continue; } String className = entry.getName(); className = className.replaceFirst(".class$", ""); className = className.replace('/', '.'); classNames.add(className); } return classNames; }
int availableRows = testHeadlines.length; int nrOfRows = rows.intValue(); if (nrOfRows == 0) { nrOfRows = availableRows;
try { ArticleItemBean[] articleItemBean = (ArticleItemBean[]) ArticleListBean.loadAllArticlesInFolder(new File("/Test/article/")).toArray(new ArticleItemBean[0]); int availableRows = articleItemBean.length; int nrOfRows = rows.intValue(); if (nrOfRows == 0) { nrOfRows = availableRows; } int maxRow = Math.min(start.intValue() + nrOfRows,availableRows); for (int i = start.intValue(); i < maxRow; i++) { ListArticlesBean bean = new ListArticlesBean(articleItemBean[i].getHeadline(), articleItemBean[i].getHeadline(), ""); _dataModel.set(bean, i); } _dataModel.setRowCount(availableRows);
public void updateDataModel(Integer start, Integer rows) { if (_dataModel == null) { _dataModel = new WFDataModel(); } int availableRows = testHeadlines.length; int nrOfRows = rows.intValue(); if (nrOfRows == 0) { nrOfRows = availableRows; } int maxRow = start.intValue() + nrOfRows; if (maxRow > availableRows) { maxRow = availableRows; } for (int i = start.intValue(); i < maxRow; i++) { ListArticlesBean bean = new ListArticlesBean(String.valueOf(i), testHeadlines[i], testPublished[i]); _dataModel.set(bean, i); } _dataModel.setRowCount(availableRows); }
int maxRow = start.intValue() + nrOfRows; if (maxRow > availableRows) { maxRow = availableRows;
catch (XmlException e) { e.printStackTrace();
public void updateDataModel(Integer start, Integer rows) { if (_dataModel == null) { _dataModel = new WFDataModel(); } int availableRows = testHeadlines.length; int nrOfRows = rows.intValue(); if (nrOfRows == 0) { nrOfRows = availableRows; } int maxRow = start.intValue() + nrOfRows; if (maxRow > availableRows) { maxRow = availableRows; } for (int i = start.intValue(); i < maxRow; i++) { ListArticlesBean bean = new ListArticlesBean(String.valueOf(i), testHeadlines[i], testPublished[i]); _dataModel.set(bean, i); } _dataModel.setRowCount(availableRows); }
for (int i = start.intValue(); i < maxRow; i++) { ListArticlesBean bean = new ListArticlesBean(String.valueOf(i), testHeadlines[i], testPublished[i]); _dataModel.set(bean, i);
catch (IOException e) { e.printStackTrace();
public void updateDataModel(Integer start, Integer rows) { if (_dataModel == null) { _dataModel = new WFDataModel(); } int availableRows = testHeadlines.length; int nrOfRows = rows.intValue(); if (nrOfRows == 0) { nrOfRows = availableRows; } int maxRow = start.intValue() + nrOfRows; if (maxRow > availableRows) { maxRow = availableRows; } for (int i = start.intValue(); i < maxRow; i++) { ListArticlesBean bean = new ListArticlesBean(String.valueOf(i), testHeadlines[i], testPublished[i]); _dataModel.set(bean, i); } _dataModel.setRowCount(availableRows); }
_dataModel.setRowCount(availableRows);
public void updateDataModel(Integer start, Integer rows) { if (_dataModel == null) { _dataModel = new WFDataModel(); } int availableRows = testHeadlines.length; int nrOfRows = rows.intValue(); if (nrOfRows == 0) { nrOfRows = availableRows; } int maxRow = start.intValue() + nrOfRows; if (maxRow > availableRows) { maxRow = availableRows; } for (int i = start.intValue(); i < maxRow; i++) { ListArticlesBean bean = new ListArticlesBean(String.valueOf(i), testHeadlines[i], testPublished[i]); _dataModel.set(bean, i); } _dataModel.setRowCount(availableRows); }
case 0: case 4: if ((0xffffff6fffffdbffL & l) == 0L) break; if (kind > 56) kind = 56; jjCheckNAdd(4); break;
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 5; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 0: case 4: if ((0xffffff6fffffdbffL & l) == 0L) break; if (kind > 56) kind = 56; jjCheckNAdd(4); break; case 1: if ((0xfc00ffffffffffffL & l) != 0L) { if (kind > 21) kind = 21; } if (curChar == 13) jjstateSet[jjnewStateCnt++] = 2; break; case 2: if (curChar == 10 && kind > 21) kind = 21; break; case 3: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 2; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 0: if ((0xffffffffefffffffL & l) != 0L) { if (kind > 56) kind = 56; jjCheckNAdd(4); } else if (curChar == 92) jjAddStates(0, 1); break; case 1: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21; break; case 4: if ((0xffffffffefffffffL & l) == 0L) break; if (kind > 56) kind = 56; jjCheckNAdd(4); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 0: case 4: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 56) kind = 56; jjCheckNAdd(4); break; case 1: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21; break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 5 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
jjAddStates(0, 1); break; case 1: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21;
jjAddStates(2, 3);
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 5; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 0: case 4: if ((0xffffff6fffffdbffL & l) == 0L) break; if (kind > 56) kind = 56; jjCheckNAdd(4); break; case 1: if ((0xfc00ffffffffffffL & l) != 0L) { if (kind > 21) kind = 21; } if (curChar == 13) jjstateSet[jjnewStateCnt++] = 2; break; case 2: if (curChar == 10 && kind > 21) kind = 21; break; case 3: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 2; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 0: if ((0xffffffffefffffffL & l) != 0L) { if (kind > 56) kind = 56; jjCheckNAdd(4); } else if (curChar == 92) jjAddStates(0, 1); break; case 1: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21; break; case 4: if ((0xffffffffefffffffL & l) == 0L) break; if (kind > 56) kind = 56; jjCheckNAdd(4); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 0: case 4: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 56) kind = 56; jjCheckNAdd(4); break; case 1: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21; break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 5 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
break; case 1: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21;
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 5; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 0: case 4: if ((0xffffff6fffffdbffL & l) == 0L) break; if (kind > 56) kind = 56; jjCheckNAdd(4); break; case 1: if ((0xfc00ffffffffffffL & l) != 0L) { if (kind > 21) kind = 21; } if (curChar == 13) jjstateSet[jjnewStateCnt++] = 2; break; case 2: if (curChar == 10 && kind > 21) kind = 21; break; case 3: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 2; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 0: if ((0xffffffffefffffffL & l) != 0L) { if (kind > 56) kind = 56; jjCheckNAdd(4); } else if (curChar == 92) jjAddStates(0, 1); break; case 1: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21; break; case 4: if ((0xffffffffefffffffL & l) == 0L) break; if (kind > 56) kind = 56; jjCheckNAdd(4); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 0: case 4: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 56) kind = 56; jjCheckNAdd(4); break; case 1: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21; break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 5 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
case 0: case 4: if ((0xffffffebffffdbffL & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(4); break;
private final int jjMoveNfa_1(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 5; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 0: case 4: if ((0xffffffebffffdbffL & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(4); break; case 1: if ((0xfc00ffffffffffffL & l) != 0L) { if (kind > 21) kind = 21; } if (curChar == 13) jjstateSet[jjnewStateCnt++] = 2; break; case 2: if (curChar == 10 && kind > 21) kind = 21; break; case 3: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 2; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 0: if ((0xffffffffefffffffL & l) != 0L) { if (kind > 55) kind = 55; jjCheckNAdd(4); } else if (curChar == 92) jjAddStates(0, 1); break; case 1: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21; break; case 4: if ((0xffffffffefffffffL & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(4); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 0: case 4: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 55) kind = 55; jjCheckNAdd(4); break; case 1: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21; break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 5 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
jjAddStates(0, 1); break; case 1: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21;
jjAddStates(2, 3);
private final int jjMoveNfa_1(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 5; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 0: case 4: if ((0xffffffebffffdbffL & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(4); break; case 1: if ((0xfc00ffffffffffffL & l) != 0L) { if (kind > 21) kind = 21; } if (curChar == 13) jjstateSet[jjnewStateCnt++] = 2; break; case 2: if (curChar == 10 && kind > 21) kind = 21; break; case 3: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 2; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 0: if ((0xffffffffefffffffL & l) != 0L) { if (kind > 55) kind = 55; jjCheckNAdd(4); } else if (curChar == 92) jjAddStates(0, 1); break; case 1: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21; break; case 4: if ((0xffffffffefffffffL & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(4); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 0: case 4: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 55) kind = 55; jjCheckNAdd(4); break; case 1: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21; break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 5 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
break; case 1: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21;
private final int jjMoveNfa_1(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 5; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 0: case 4: if ((0xffffffebffffdbffL & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(4); break; case 1: if ((0xfc00ffffffffffffL & l) != 0L) { if (kind > 21) kind = 21; } if (curChar == 13) jjstateSet[jjnewStateCnt++] = 2; break; case 2: if (curChar == 10 && kind > 21) kind = 21; break; case 3: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 2; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 0: if ((0xffffffffefffffffL & l) != 0L) { if (kind > 55) kind = 55; jjCheckNAdd(4); } else if (curChar == 92) jjAddStates(0, 1); break; case 1: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21; break; case 4: if ((0xffffffffefffffffL & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(4); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 0: case 4: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 55) kind = 55; jjCheckNAdd(4); break; case 1: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21; break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 5 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
jjAddStates(2, 3);
jjAddStates(4, 5);
private final int jjMoveNfa_3(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 31; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 4: if ((0xfc00ffffffffffffL & l) != 0L) { if (kind > 21) kind = 21; } if (curChar == 13) jjstateSet[jjnewStateCnt++] = 5; break; case 2: if ((0x3ff000000000000L & l) != 0L) { if (kind > 53) kind = 53; jjCheckNAdd(30); } else if ((0x2400L & l) != 0L) { if (kind > 30) kind = 30; } else if ((0x100000200L & l) != 0L) { if (kind > 29) kind = 29; jjCheckNAdd(7); } else if (curChar == 33) { if (kind > 49) kind = 49; } else if (curChar == 38) jjstateSet[jjnewStateCnt++] = 15; else if (curChar == 60) jjstateSet[jjnewStateCnt++] = 13; else if (curChar == 35) jjstateSet[jjnewStateCnt++] = 0; if (curChar == 33) jjstateSet[jjnewStateCnt++] = 11; else if (curChar == 13) jjstateSet[jjnewStateCnt++] = 8; break; case 0: if (curChar != 35) break; if (kind > 16) kind = 16; jjCheckNAdd(1); break; case 1: if ((0xffffffffffffdbffL & l) == 0L) break; if (kind > 16) kind = 16; jjCheckNAdd(1); break; case 5: if (curChar == 10 && kind > 21) kind = 21; break; case 6: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 5; break; case 7: if ((0x100000200L & l) == 0L) break; if (kind > 29) kind = 29; jjCheckNAdd(7); break; case 8: if (curChar == 10 && kind > 30) kind = 30; break; case 9: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 8; break; case 10: if ((0x2400L & l) != 0L && kind > 30) kind = 30; break; case 11: if (curChar == 61 && kind > 42) kind = 42; break; case 12: if (curChar == 33) jjstateSet[jjnewStateCnt++] = 11; break; case 13: if (curChar == 62 && kind > 42) kind = 42; break; case 14: if (curChar == 60) jjstateSet[jjnewStateCnt++] = 13; break; case 15: if (curChar == 38 && kind > 47) kind = 47; break; case 16: if (curChar == 38) jjstateSet[jjnewStateCnt++] = 15; break; case 24: if (curChar == 33 && kind > 49) kind = 49; break; case 29: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 52) kind = 52; jjstateSet[jjnewStateCnt++] = 29; break; case 30: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 53) kind = 53; jjCheckNAdd(30); break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 4: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21; break; case 2: if ((0x7fffffe07fffffeL & l) != 0L) { if (kind > 52) kind = 52; jjCheckNAdd(29); } else if (curChar == 124) jjstateSet[jjnewStateCnt++] = 20; else if (curChar == 92) jjAddStates(2, 3); if (curChar == 78) jjstateSet[jjnewStateCnt++] = 26; else if (curChar == 79) jjstateSet[jjnewStateCnt++] = 22; else if (curChar == 65) jjstateSet[jjnewStateCnt++] = 18; break; case 1: if (kind > 16) kind = 16; jjstateSet[jjnewStateCnt++] = 1; break; case 3: if (curChar == 92) jjAddStates(2, 3); break; case 17: if (curChar == 68 && kind > 47) kind = 47; break; case 18: if (curChar == 78) jjstateSet[jjnewStateCnt++] = 17; break; case 19: if (curChar == 65) jjstateSet[jjnewStateCnt++] = 18; break; case 20: if (curChar == 124 && kind > 48) kind = 48; break; case 21: if (curChar == 124) jjstateSet[jjnewStateCnt++] = 20; break; case 22: if (curChar == 82 && kind > 48) kind = 48; break; case 23: if (curChar == 79) jjstateSet[jjnewStateCnt++] = 22; break; case 25: if (curChar == 84 && kind > 49) kind = 49; break; case 26: if (curChar == 79) jjstateSet[jjnewStateCnt++] = 25; break; case 27: if (curChar == 78) jjstateSet[jjnewStateCnt++] = 26; break; case 28: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 52) kind = 52; jjCheckNAdd(29); break; case 29: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 52) kind = 52; jjCheckNAdd(29); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 4: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21; break; case 1: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 16) kind = 16; jjstateSet[jjnewStateCnt++] = 1; break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 31 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
break; case 1: case 0: if ((0xffffffe7ffffffffL & l) == 0L) break; if (kind > 11) kind = 11; jjCheckNAdd(0);
private final int jjMoveNfa_4(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 5; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 2: if ((0xfc00ffffffffffffL & l) != 0L) { if (kind > 21) kind = 21; } if (curChar == 13) jjstateSet[jjnewStateCnt++] = 3; break; case 1: case 0: if ((0xffffffe7ffffffffL & l) == 0L) break; if (kind > 11) kind = 11; jjCheckNAdd(0); break; case 3: if (curChar == 10 && kind > 21) kind = 21; break; case 4: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 3; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 2: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21; break; case 1: if ((0xd7ffffffefffffffL & l) != 0L) { if (kind > 11) kind = 11; jjCheckNAdd(0); } else if (curChar == 92) jjAddStates(4, 5); break; case 0: if ((0xd7ffffffefffffffL & l) == 0L) break; if (kind > 11) kind = 11; jjCheckNAdd(0); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 2: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21; break; case 1: case 0: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 11) kind = 11; jjCheckNAdd(0); break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 5 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
case 2: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21; break;
private final int jjMoveNfa_4(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 5; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 2: if ((0xfc00ffffffffffffL & l) != 0L) { if (kind > 21) kind = 21; } if (curChar == 13) jjstateSet[jjnewStateCnt++] = 3; break; case 1: case 0: if ((0xffffffe7ffffffffL & l) == 0L) break; if (kind > 11) kind = 11; jjCheckNAdd(0); break; case 3: if (curChar == 10 && kind > 21) kind = 21; break; case 4: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 3; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 2: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21; break; case 1: if ((0xd7ffffffefffffffL & l) != 0L) { if (kind > 11) kind = 11; jjCheckNAdd(0); } else if (curChar == 92) jjAddStates(4, 5); break; case 0: if ((0xd7ffffffefffffffL & l) == 0L) break; if (kind > 11) kind = 11; jjCheckNAdd(0); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 2: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21; break; case 1: case 0: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 11) kind = 11; jjCheckNAdd(0); break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 5 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
jjAddStates(4, 5);
jjAddStates(0, 1); break; case 2: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21;
private final int jjMoveNfa_4(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 5; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 2: if ((0xfc00ffffffffffffL & l) != 0L) { if (kind > 21) kind = 21; } if (curChar == 13) jjstateSet[jjnewStateCnt++] = 3; break; case 1: case 0: if ((0xffffffe7ffffffffL & l) == 0L) break; if (kind > 11) kind = 11; jjCheckNAdd(0); break; case 3: if (curChar == 10 && kind > 21) kind = 21; break; case 4: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 3; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 2: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21; break; case 1: if ((0xd7ffffffefffffffL & l) != 0L) { if (kind > 11) kind = 11; jjCheckNAdd(0); } else if (curChar == 92) jjAddStates(4, 5); break; case 0: if ((0xd7ffffffefffffffL & l) == 0L) break; if (kind > 11) kind = 11; jjCheckNAdd(0); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 2: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21; break; case 1: case 0: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 11) kind = 11; jjCheckNAdd(0); break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 5 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
case 2: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21; break;
private final int jjMoveNfa_4(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 5; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 2: if ((0xfc00ffffffffffffL & l) != 0L) { if (kind > 21) kind = 21; } if (curChar == 13) jjstateSet[jjnewStateCnt++] = 3; break; case 1: case 0: if ((0xffffffe7ffffffffL & l) == 0L) break; if (kind > 11) kind = 11; jjCheckNAdd(0); break; case 3: if (curChar == 10 && kind > 21) kind = 21; break; case 4: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 3; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 2: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21; break; case 1: if ((0xd7ffffffefffffffL & l) != 0L) { if (kind > 11) kind = 11; jjCheckNAdd(0); } else if (curChar == 92) jjAddStates(4, 5); break; case 0: if ((0xd7ffffffefffffffL & l) == 0L) break; if (kind > 11) kind = 11; jjCheckNAdd(0); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 2: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21; break; case 1: case 0: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 11) kind = 11; jjCheckNAdd(0); break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 5 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
break; case 2: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21;
private final int jjMoveNfa_4(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 5; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 2: if ((0xfc00ffffffffffffL & l) != 0L) { if (kind > 21) kind = 21; } if (curChar == 13) jjstateSet[jjnewStateCnt++] = 3; break; case 1: case 0: if ((0xffffffe7ffffffffL & l) == 0L) break; if (kind > 11) kind = 11; jjCheckNAdd(0); break; case 3: if (curChar == 10 && kind > 21) kind = 21; break; case 4: if (curChar == 13) jjstateSet[jjnewStateCnt++] = 3; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 2: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21; break; case 1: if ((0xd7ffffffefffffffL & l) != 0L) { if (kind > 11) kind = 11; jjCheckNAdd(0); } else if (curChar == 92) jjAddStates(4, 5); break; case 0: if ((0xd7ffffffefffffffL & l) == 0L) break; if (kind > 11) kind = 11; jjCheckNAdd(0); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 2: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21; break; case 1: case 0: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 11) kind = 11; jjCheckNAdd(0); break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 5 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
if ((active0 & 0x400000L) != 0L) return 4;
private final int jjStopStringLiteralDfa_3(int pos, long active0){ switch (pos) { case 0: if ((active0 & 0x804000L) != 0L) return 0; if ((active0 & 0x1c000000L) != 0L) { jjmatchedKind = 52; return 29; } if ((active0 & 0x3000000000L) != 0L) return 13; if ((active0 & 0x400000L) != 0L) return 4; return -1; case 1: if ((active0 & 0x1c000000L) != 0L) { jjmatchedKind = 52; jjmatchedPos = 1; return 29; } return -1; case 2: if ((active0 & 0x1c000000L) != 0L) { jjmatchedKind = 52; jjmatchedPos = 2; return 29; } return -1; case 3: if ((active0 & 0xc000000L) != 0L) return 29; if ((active0 & 0x10000000L) != 0L) { jjmatchedKind = 52; jjmatchedPos = 3; return 29; } return -1; case 4: if ((active0 & 0x10000000L) != 0L) return 29; return -1; default : return -1; }}
if ((active0 & 0xc000000L) != 0L) return 29;
private final int jjStopStringLiteralDfa_3(int pos, long active0){ switch (pos) { case 0: if ((active0 & 0x804000L) != 0L) return 0; if ((active0 & 0x1c000000L) != 0L) { jjmatchedKind = 52; return 29; } if ((active0 & 0x3000000000L) != 0L) return 13; if ((active0 & 0x400000L) != 0L) return 4; return -1; case 1: if ((active0 & 0x1c000000L) != 0L) { jjmatchedKind = 52; jjmatchedPos = 1; return 29; } return -1; case 2: if ((active0 & 0x1c000000L) != 0L) { jjmatchedKind = 52; jjmatchedPos = 2; return 29; } return -1; case 3: if ((active0 & 0xc000000L) != 0L) return 29; if ((active0 & 0x10000000L) != 0L) { jjmatchedKind = 52; jjmatchedPos = 3; return 29; } return -1; case 4: if ((active0 & 0x10000000L) != 0L) return 29; return -1; default : return -1; }}
if ((active0 & 0xc000000L) != 0L) return 29;
private final int jjStopStringLiteralDfa_3(int pos, long active0){ switch (pos) { case 0: if ((active0 & 0x804000L) != 0L) return 0; if ((active0 & 0x1c000000L) != 0L) { jjmatchedKind = 52; return 29; } if ((active0 & 0x3000000000L) != 0L) return 13; if ((active0 & 0x400000L) != 0L) return 4; return -1; case 1: if ((active0 & 0x1c000000L) != 0L) { jjmatchedKind = 52; jjmatchedPos = 1; return 29; } return -1; case 2: if ((active0 & 0x1c000000L) != 0L) { jjmatchedKind = 52; jjmatchedPos = 2; return 29; } return -1; case 3: if ((active0 & 0xc000000L) != 0L) return 29; if ((active0 & 0x10000000L) != 0L) { jjmatchedKind = 52; jjmatchedPos = 3; return 29; } return -1; case 4: if ((active0 & 0x10000000L) != 0L) return 29; return -1; default : return -1; }}
return "</color>";
return "</font>";
protected String renderColorEnd() { return "</color>"; }
SortedMap sortedSourceFiles = new TreeMap(); for (Iterator iter = sourceFiles.iterator(); iter.hasNext();) { SourceFileData sourceFileData = (SourceFileData)iter.next(); sortedSourceFiles.put(sourceFileData.getBaseName(), sourceFileData); }
Vector sortedSourceFiles = new Vector(); sortedSourceFiles.addAll(sourceFiles); Collections.sort(sortedSourceFiles, new SourceFileDataBaseNameComparator());
private void generateSourceFileList(PackageData packageData) throws IOException { String filename; SortedSet sourceFiles; if (packageData == null) { filename = "frame-sourcefiles.html"; sourceFiles = projectData.getSourceFiles(); } else { filename = "frame-sourcefiles-" + packageData.getName() + ".html"; sourceFiles = packageData.getSourceFiles(); } // sourceFiles is sorted, but it's sorted by the full path // to the file, and we only want to sort based on the // file's basename. SortedMap sortedSourceFiles = new TreeMap(); for (Iterator iter = sourceFiles.iterator(); iter.hasNext();) { SourceFileData sourceFileData = (SourceFileData)iter.next(); sortedSourceFiles.put(sourceFileData.getBaseName(), sourceFileData); } File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.println("<title>Coverage Report Classes</title>"); out .println("<link title=\"Style\" type=\"text/css\" rel=\"stylesheet\" href=\"css/main.css\" />"); out.println("</head>"); out.println("<body>"); out.println("<h5>"); out.println(packageData == null ? "All Packages" : generatePackageName(packageData)); out.println("</h5>"); out.println("<h5>Classes</h5>"); out.println("<table width=\"100%\">"); for (Iterator iter = sortedSourceFiles.values().iterator(); iter .hasNext();) { SourceFileData sourceFileData = (SourceFileData)iter.next(); out.println("<tr>"); String percentCovered; if (sourceFileData.getNumberOfValidLines() > 0) percentCovered = getPercentValue(sourceFileData .getLineCoverageRate()); else percentCovered = "N/A"; out .println("<td nowrap=\"nowrap\"><a target=\"summary\" href=\"" + sourceFileData.getNormalizedName() + ".html\">" + sourceFileData.getBaseName() + "</a> <i>(" + percentCovered + ")</i></td>"); out.println("</tr>"); } out.println("</td>"); out.println("</tr>"); out.println("</table>"); out.println("</body>"); out.println("</html>"); } finally { if (out != null) { out.close(); } } }
for (Iterator iter = sortedSourceFiles.values().iterator(); iter
for (Iterator iter = sortedSourceFiles.iterator(); iter
private void generateSourceFileList(PackageData packageData) throws IOException { String filename; SortedSet sourceFiles; if (packageData == null) { filename = "frame-sourcefiles.html"; sourceFiles = projectData.getSourceFiles(); } else { filename = "frame-sourcefiles-" + packageData.getName() + ".html"; sourceFiles = packageData.getSourceFiles(); } // sourceFiles is sorted, but it's sorted by the full path // to the file, and we only want to sort based on the // file's basename. SortedMap sortedSourceFiles = new TreeMap(); for (Iterator iter = sourceFiles.iterator(); iter.hasNext();) { SourceFileData sourceFileData = (SourceFileData)iter.next(); sortedSourceFiles.put(sourceFileData.getBaseName(), sourceFileData); } File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.println("<title>Coverage Report Classes</title>"); out .println("<link title=\"Style\" type=\"text/css\" rel=\"stylesheet\" href=\"css/main.css\" />"); out.println("</head>"); out.println("<body>"); out.println("<h5>"); out.println(packageData == null ? "All Packages" : generatePackageName(packageData)); out.println("</h5>"); out.println("<h5>Classes</h5>"); out.println("<table width=\"100%\">"); for (Iterator iter = sortedSourceFiles.values().iterator(); iter .hasNext();) { SourceFileData sourceFileData = (SourceFileData)iter.next(); out.println("<tr>"); String percentCovered; if (sourceFileData.getNumberOfValidLines() > 0) percentCovered = getPercentValue(sourceFileData .getLineCoverageRate()); else percentCovered = "N/A"; out .println("<td nowrap=\"nowrap\"><a target=\"summary\" href=\"" + sourceFileData.getNormalizedName() + ".html\">" + sourceFileData.getBaseName() + "</a> <i>(" + percentCovered + ")</i></td>"); out.println("</tr>"); } out.println("</td>"); out.println("</tr>"); out.println("</table>"); out.println("</body>"); out.println("</html>"); } finally { if (out != null) { out.close(); } } }
add(mainPanel, BorderLayout.CENTER);
add(treeScroller, BorderLayout.CENTER);
public ContactList() { // Load Local Preferences localPreferences = SettingsManager.getLocalPreferences(); offlineGroup = new ContactGroup("Offline Group"); JToolBar toolbar = new JToolBar(); toolbar.setFloatable(false); addContactMenu = new JMenuItem("Add Contact", SparkRes.getImageIcon(SparkRes.USER1_ADD_16x16)); addContactGroupMenu = new JMenuItem("Add Contact Group", SparkRes.getImageIcon(SparkRes.SMALL_ADD_IMAGE)); removeContactFromGroupMenu = new JMenuItem("Remove from Group", SparkRes.getImageIcon(SparkRes.SMALL_DELETE)); chatMenu = new JMenuItem("Start a Chat", SparkRes.getImageIcon(SparkRes.SMALL_MESSAGE_IMAGE)); renameMenu = new JMenuItem("Rename", SparkRes.getImageIcon(SparkRes.DESKTOP_IMAGE)); addContactMenu.addActionListener(this); removeContactFromGroupMenu.addActionListener(this); chatMenu.addActionListener(this); renameMenu.addActionListener(this); setLayout(new BorderLayout()); addingGroupButton = new RolloverButton(SparkRes.getImageIcon(SparkRes.ADD_CONTACT_IMAGE)); RolloverButton groupChatButton = new RolloverButton(SparkRes.getImageIcon(SparkRes.JOIN_GROUPCHAT_IMAGE)); toolbar.add(addingGroupButton); toolbar.add(groupChatButton); addingGroupButton.addActionListener(this); mainPanel.setLayout(new VerticalFlowLayout(VerticalFlowLayout.TOP, 0, 0, true, false)); mainPanel.setBackground((Color)UIManager.get("List.background")); treeScroller = new JScrollPane(mainPanel); treeScroller.setBorder(BorderFactory.createEmptyBorder()); treeScroller.getVerticalScrollBar().setBlockIncrement(50); treeScroller.getVerticalScrollBar().setUnitIncrement(20); retryPanel = new RetryPanel(); workspace = SparkManager.getWorkspace(); workspace.getCardPanel().add(RETRY_PANEL, retryPanel); add(mainPanel, BorderLayout.CENTER); // Load Properties file props = new Properties(); // Save to properties file. propertiesFile = new File(new File(Spark.getUserHome(), "Spark"), "groups.properties"); try { props.load(new FileInputStream(propertiesFile)); } catch (IOException e) { // File does not exist. } // Add ActionListener(s) to menus addContactGroup(offlineGroup); showHideMenu.setSelected(false); // Add KeyMappings getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("control N"), "searchContacts"); getActionMap().put("searchContacts", new AbstractAction("searchContacts") { public void actionPerformed(ActionEvent evt) { searchContacts(""); } }); // Save state on shutdown. SparkManager.getMainWindow().addMainWindowListener(new MainWindowListener() { public void shutdown() { saveState(); } public void mainWindowActivated() { } public void mainWindowDeactivated() { } }); SparkManager.getConnection().addConnectionListener(this); // Get command panel and add View Online/Offline, Add Contact StatusBar statusBar = SparkManager.getWorkspace().getStatusBar(); JPanel commandPanel = statusBar.getCommandPanel(); viewOnline = new RolloverButton(SparkRes.getImageIcon(SparkRes.VIEW_IMAGE)); commandPanel.add(viewOnline); viewOnline.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { showEmptyGroups(!showHideMenu.isSelected()); } }); final RolloverButton addContactButton = new RolloverButton(SparkRes.getImageIcon(SparkRes.SMALL_ADD_IMAGE)); commandPanel.add(addContactButton); addContactButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { new RosterDialog().showRosterDialog(); } }); }
viewOnline = new RolloverButton(SparkRes.getImageIcon(SparkRes.VIEW_IMAGE)); commandPanel.add(viewOnline); viewOnline.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { showEmptyGroups(!showHideMenu.isSelected()); } });
public ContactList() { // Load Local Preferences localPreferences = SettingsManager.getLocalPreferences(); offlineGroup = new ContactGroup("Offline Group"); JToolBar toolbar = new JToolBar(); toolbar.setFloatable(false); addContactMenu = new JMenuItem("Add Contact", SparkRes.getImageIcon(SparkRes.USER1_ADD_16x16)); addContactGroupMenu = new JMenuItem("Add Contact Group", SparkRes.getImageIcon(SparkRes.SMALL_ADD_IMAGE)); removeContactFromGroupMenu = new JMenuItem("Remove from Group", SparkRes.getImageIcon(SparkRes.SMALL_DELETE)); chatMenu = new JMenuItem("Start a Chat", SparkRes.getImageIcon(SparkRes.SMALL_MESSAGE_IMAGE)); renameMenu = new JMenuItem("Rename", SparkRes.getImageIcon(SparkRes.DESKTOP_IMAGE)); addContactMenu.addActionListener(this); removeContactFromGroupMenu.addActionListener(this); chatMenu.addActionListener(this); renameMenu.addActionListener(this); setLayout(new BorderLayout()); addingGroupButton = new RolloverButton(SparkRes.getImageIcon(SparkRes.ADD_CONTACT_IMAGE)); RolloverButton groupChatButton = new RolloverButton(SparkRes.getImageIcon(SparkRes.JOIN_GROUPCHAT_IMAGE)); toolbar.add(addingGroupButton); toolbar.add(groupChatButton); addingGroupButton.addActionListener(this); mainPanel.setLayout(new VerticalFlowLayout(VerticalFlowLayout.TOP, 0, 0, true, false)); mainPanel.setBackground((Color)UIManager.get("List.background")); treeScroller = new JScrollPane(mainPanel); treeScroller.setBorder(BorderFactory.createEmptyBorder()); treeScroller.getVerticalScrollBar().setBlockIncrement(50); treeScroller.getVerticalScrollBar().setUnitIncrement(20); retryPanel = new RetryPanel(); workspace = SparkManager.getWorkspace(); workspace.getCardPanel().add(RETRY_PANEL, retryPanel); add(mainPanel, BorderLayout.CENTER); // Load Properties file props = new Properties(); // Save to properties file. propertiesFile = new File(new File(Spark.getUserHome(), "Spark"), "groups.properties"); try { props.load(new FileInputStream(propertiesFile)); } catch (IOException e) { // File does not exist. } // Add ActionListener(s) to menus addContactGroup(offlineGroup); showHideMenu.setSelected(false); // Add KeyMappings getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("control N"), "searchContacts"); getActionMap().put("searchContacts", new AbstractAction("searchContacts") { public void actionPerformed(ActionEvent evt) { searchContacts(""); } }); // Save state on shutdown. SparkManager.getMainWindow().addMainWindowListener(new MainWindowListener() { public void shutdown() { saveState(); } public void mainWindowActivated() { } public void mainWindowDeactivated() { } }); SparkManager.getConnection().addConnectionListener(this); // Get command panel and add View Online/Offline, Add Contact StatusBar statusBar = SparkManager.getWorkspace().getStatusBar(); JPanel commandPanel = statusBar.getCommandPanel(); viewOnline = new RolloverButton(SparkRes.getImageIcon(SparkRes.VIEW_IMAGE)); commandPanel.add(viewOnline); viewOnline.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { showEmptyGroups(!showHideMenu.isSelected()); } }); final RolloverButton addContactButton = new RolloverButton(SparkRes.getImageIcon(SparkRes.SMALL_ADD_IMAGE)); commandPanel.add(addContactButton); addContactButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { new RosterDialog().showRosterDialog(); } }); }
showEmptyGroups(!showHideMenu.isSelected());
new RosterDialog().showRosterDialog();
public void actionPerformed(ActionEvent e) { showEmptyGroups(!showHideMenu.isSelected()); }
new RosterDialog().showRosterDialog();
String groupName = JOptionPane.showInputDialog(getGUI(), "Name of Group:", "Add New Group", JOptionPane.QUESTION_MESSAGE); if (ModelUtil.hasLength(groupName)) { ContactGroup contactGroup = getContactGroup(groupName); if (contactGroup == null) { contactGroup = new ContactGroup(groupName); addContactGroup(contactGroup); } }
public void actionPerformed(ActionEvent e) { new RosterDialog().showRosterDialog(); }
String groupName = JOptionPane.showInputDialog(getGUI(), "Name of Group:", "Add New Group", JOptionPane.QUESTION_MESSAGE); if (ModelUtil.hasLength(groupName)) { ContactGroup contactGroup = getContactGroup(groupName); if (contactGroup == null) { contactGroup = new ContactGroup(groupName); addContactGroup(contactGroup); } }
showEmptyGroups(showHideMenu.isSelected());
public void actionPerformed(ActionEvent e) { String groupName = JOptionPane.showInputDialog(getGUI(), "Name of Group:", "Add New Group", JOptionPane.QUESTION_MESSAGE); if (ModelUtil.hasLength(groupName)) { ContactGroup contactGroup = getContactGroup(groupName); if (contactGroup == null) { contactGroup = new ContactGroup(groupName); addContactGroup(contactGroup); } } }
subscriptionRequest(presence.getFrom());
Roster roster = SparkManager.getConnection().getRoster(); RosterEntry entry = roster.getEntry(presence.getFrom()); if (entry != null) { try { removeContactItem(presence.getFrom()); roster.removeEntry(entry); } catch (XMPPException e) { Presence unsub = new Presence(Presence.Type.UNSUBSCRIBED); unsub.setTo(presence.getFrom()); SparkManager.getConnection().sendPacket(unsub); Log.error(e); } }
public void run() { subscriptionRequest(presence.getFrom()); }
Presence unsub = new Presence(Presence.Type.UNSUBSCRIBED); unsub.setTo(presence.getFrom()); SparkManager.getConnection().sendPacket(unsub);
public void run() { Roster roster = SparkManager.getConnection().getRoster(); RosterEntry entry = roster.getEntry(presence.getFrom()); if (entry != null) { try { removeContactItem(presence.getFrom()); roster.removeEntry(entry); } catch (XMPPException e) { Presence unsub = new Presence(Presence.Type.UNSUBSCRIBED); unsub.setTo(presence.getFrom()); SparkManager.getConnection().sendPacket(unsub); Log.error(e); } } }
String jid = StringUtils.parseBareAddress(presence.getFrom()); removeContactItem(jid);
public void run() { Roster roster = SparkManager.getConnection().getRoster(); RosterEntry entry = roster.getEntry(presence.getFrom()); if (entry != null) { try { removeContactItem(presence.getFrom()); roster.removeEntry(entry); } catch (XMPPException e) { Presence unsub = new Presence(Presence.Type.UNSUBSCRIBED); unsub.setTo(presence.getFrom()); SparkManager.getConnection().sendPacket(unsub); Log.error(e); } } }
public void actionPerformed(ActionEvent e) { String newName = JOptionPane.showInputDialog(group, "Rename Roster Group", "Rename to:", JOptionPane.QUESTION_MESSAGE); if (!ModelUtil.hasLength(newName)) { return; } String groupName = group.getGroupName(); Roster roster = SparkManager.getConnection().getRoster(); RosterGroup rosterGroup = roster.getGroup(groupName); if (rosterGroup != null) { removeContactGroup(group); rosterGroup.setName(newName); }
public void actionPerformed(ActionEvent actionEvent) { SparkManager.getTransferManager().sendFileTo(item);
public void actionPerformed(ActionEvent e) { String newName = JOptionPane.showInputDialog(group, "Rename Roster Group", "Rename to:", JOptionPane.QUESTION_MESSAGE); if (!ModelUtil.hasLength(newName)) { return; } String groupName = group.getGroupName(); Roster roster = SparkManager.getConnection().getRoster(); RosterGroup rosterGroup = roster.getGroup(groupName); if (rosterGroup != null) { removeContactGroup(group); rosterGroup.setName(newName); } }
int ok = JOptionPane.showConfirmDialog(group, "Are you sure you want to delete \"" + group.getGroupName() + "\"", "Delete Confirmation", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE); if (ok == JOptionPane.YES_OPTION) { String groupName = group.getGroupName(); Roster roster = SparkManager.getConnection().getRoster();
String newName = JOptionPane.showInputDialog(group, "Rename Roster Group", "Rename to:", JOptionPane.QUESTION_MESSAGE); if (!ModelUtil.hasLength(newName)) { return; } String groupName = group.getGroupName(); Roster roster = SparkManager.getConnection().getRoster();
public void actionPerformed(ActionEvent e) { int ok = JOptionPane.showConfirmDialog(group, "Are you sure you want to delete \"" + group.getGroupName() + "\"", "Delete Confirmation", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE); if (ok == JOptionPane.YES_OPTION) { String groupName = group.getGroupName(); Roster roster = SparkManager.getConnection().getRoster(); RosterGroup rosterGroup = roster.getGroup(groupName); if (rosterGroup != null) { Iterator entries = rosterGroup.getEntries(); while (entries.hasNext()) { RosterEntry entry = (RosterEntry)entries.next(); try { rosterGroup.removeEntry(entry); } catch (XMPPException e1) { Log.error("Error removing entry", e1); } } } // Remove from UI removeContactGroup(group); invalidate(); repaint(); } }
RosterGroup rosterGroup = roster.getGroup(groupName); if (rosterGroup != null) { Iterator entries = rosterGroup.getEntries(); while (entries.hasNext()) { RosterEntry entry = (RosterEntry)entries.next(); try { rosterGroup.removeEntry(entry); } catch (XMPPException e1) { Log.error("Error removing entry", e1); } } }
RosterGroup rosterGroup = roster.getGroup(groupName); if (rosterGroup != null) {
public void actionPerformed(ActionEvent e) { int ok = JOptionPane.showConfirmDialog(group, "Are you sure you want to delete \"" + group.getGroupName() + "\"", "Delete Confirmation", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE); if (ok == JOptionPane.YES_OPTION) { String groupName = group.getGroupName(); Roster roster = SparkManager.getConnection().getRoster(); RosterGroup rosterGroup = roster.getGroup(groupName); if (rosterGroup != null) { Iterator entries = rosterGroup.getEntries(); while (entries.hasNext()) { RosterEntry entry = (RosterEntry)entries.next(); try { rosterGroup.removeEntry(entry); } catch (XMPPException e1) { Log.error("Error removing entry", e1); } } } // Remove from UI removeContactGroup(group); invalidate(); repaint(); } }