rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
if (jj_scan_token(SLASH)) return true; | if (jj_scan_token(QCHAR)) return true; | final private boolean jj_3R_71() { if (jj_scan_token(SLASH)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } |
if (jj_3R_76()) return true; | if (jj_scan_token(SLASH)) return true; | final private boolean jj_3R_72() { if (jj_3R_76()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } |
if (jj_scan_token(QUOTE)) return true; | if (jj_3R_78()) return true; | final private boolean jj_3R_74() { 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_scan_token(QUOTE)) return true; | final private boolean jj_3R_75() { 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(SQUOTE)) return true; | final private boolean jj_3R_76() { 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_78()) { jj_scanpos = xsp; if (jj_3R_79()) return true; | if (jj_scan_token(POUNDPOUND)) return true; | final private boolean jj_3R_77() { Token xsp; xsp = jj_scanpos; if (jj_3R_78()) { jj_scanpos = xsp; if (jj_3R_79()) 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_77() { Token xsp; xsp = jj_scanpos; if (jj_3R_78()) { jj_scanpos = xsp; if (jj_3R_79()) 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_66()) return true; | Token xsp; xsp = jj_scanpos; if (jj_3R_79()) { jj_scanpos = xsp; if (jj_3R_80()) return true; | final private boolean jj_3R_78() { if (jj_3R_66()) 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_78() { if (jj_3R_66()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } | |
if (jj_scan_token(DOLLAR)) return true; | if (jj_3R_67()) return true; | final private boolean jj_3R_79() { if (jj_scan_token(DOLLAR)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } |
if (!jj_semLA || jj_3R_43()) return true; | if (!jj_semLA || jj_3R_44()) return true; | final private boolean jj_3_21() { Token xsp; xsp = jj_scanpos; if (jj_3R_41()) { jj_scanpos = xsp; if (jj_3R_42()) { jj_scanpos = xsp; lookingAhead = true; jj_semLA = lookahead_not_breaking_subd(); lookingAhead = false; if (!jj_semLA || jj_3R_43()) return true; if (jj_la == 0 && jj_sc... |
} else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; | final private boolean jj_3_21() { Token xsp; xsp = jj_scanpos; if (jj_3R_41()) { jj_scanpos = xsp; if (jj_3R_42()) { jj_scanpos = xsp; lookingAhead = true; jj_semLA = lookahead_not_breaking_subd(); lookingAhead = false; if (!jj_semLA || jj_3R_43()) return true; if (jj_la == 0 && jj_sc... | |
Log.error("Could not locate chat room.", e1); | Log.debug("Could not locate chat room " + roomname); | private void handleRoomPresence(final Presence p) { final String roomname = StringUtils.parseBareAddress(p.getFrom()); ChatRoom chatRoom; try { chatRoom = getChatRoom(roomname); } catch (ChatRoomNotFoundException e1) { Log.error("Could not locate chat room.",... |
finder.addBaseDirectory(new File(args[++i])); | baseDir = args[++i]; | private void parseArguments(String[] args) throws Exception { FileFinder finder = new FileFinder(); for (int i = 0; i < args.length; i++) { if (args[i].equals("--basedir")) { finder.addBaseDirectory(new File(args[++i])); } else if (args[i].equals("--datafile")) { setDataFile( args[++i]); } else if (args[... |
finder.addSourceFilePath(args[i]); | if( baseDir==null) { finder.addSourceDirectory( args[i]); } else { finder.addSourceFile( baseDir, args[i]); } | private void parseArguments(String[] args) throws Exception { FileFinder finder = new FileFinder(); for (int i = 0; i < args.length; i++) { if (args[i].equals("--basedir")) { finder.addBaseDirectory(new File(args[++i])); } else if (args[i].equals("--datafile")) { setDataFile( args[++i]); } else if (args[... |
new HTMLReport(projectData, destinationDir, finder); | new HTMLReport(projectData, destinationDir, finder, complexity); | private void parseArguments(String[] args) throws Exception { FileFinder finder = new FileFinder(); for (int i = 0; i < args.length; i++) { if (args[i].equals("--basedir")) { finder.addBaseDirectory(new File(args[++i])); } else if (args[i].equals("--datafile")) { setDataFile( args[++i]); } else if (args[... |
new XMLReport(projectData, destinationDir, finder); | new XMLReport(projectData, destinationDir, finder, complexity); | private void parseArguments(String[] args) throws Exception { FileFinder finder = new FileFinder(); for (int i = 0; i < args.length; i++) { if (args[i].equals("--basedir")) { finder.addBaseDirectory(new File(args[++i])); } else if (args[i].equals("--datafile")) { setDataFile( args[++i]); } else if (args[... |
sourceFilePaths.add(path); | sourceFilePaths.add(getCorrectedPath(path)); | public void addSourceFilePath(String path) { change(); sourceFilePaths.add(path); } |
System.err.println ("build: >"); | public void gt() { newData (); _currentData.setType (WikiDataTypes.GT); } | |
System.err.println ("build: <"); | public void lt() { newData (); _currentData.setType (WikiDataTypes.LT); } | |
StringTokenizer st = new StringTokenizer(plugin, ", ", false); | final StringTokenizer st = new StringTokenizer(plugin, ",", false); | public void loadPlugins() { // Delete all old plugins File[] oldFiles = PLUGINS_DIRECTORY.listFiles(); final int no = oldFiles != null ? oldFiles.length : 0; for (int i = 0; i < no; i++) { File file = oldFiles[i]; if (file.isDirectory()) { // Check to... |
return; | public static void main(String arg[]) { // Build a context WebMacro wm = null; Context context = null; String encoding = null; try { wm = new WM(); context = wm.getContext(); Object names[] = {"prop"}; context.setProperty(names, "Example property"); en... | |
if (holder instanceof Note) parent = (Note) holder; | this.holder = holder; | public Note(String name, NoteHolder holder, String text) { this.name = name; if (holder instanceof Note) parent = (Note) holder; this.notes = new LinkedList<Note>(); this.text = text; holder.addNote(this); } |
_levels.put(keys[i], levels.getSetting(keys[i])); | _levels.put(keys[i], new Integer(LogSystem.getLevel(levels.getSetting(keys[i])))); | public LogFile(Settings s) throws FileNotFoundException { this(s.getSetting("LogFile")); _trace = s.getBooleanSetting("LogTraceExceptions"); String slevel = s.getSetting("LogLevel", "NOTICE"); _defaultLevel = LogSystem.getLevel(slevel); String format = s.getSetting("LogFormat"); if (for... |
try { b = Expression.isTrue(conditions[i].evaluate(context)); } catch (Exception e) { String warning = "#if: Error evaluating condition: " + e; writeWarning(warning, context, out); } | b = Expression.isTrue(conditions[i].evaluate(context)); | public void write(FastWriter out, Context context) throws PropertyException, IOException { for (int i = 0; i < nConditions; i++) { boolean b = false; try { b = Expression.isTrue(conditions[i].evaluate(context)); } catch (Exception e) { String warning... |
dialog.setSize(400, 225); | dialog.setSize(400, 250); | public void invoke(final String jid) { this.jid = jid; final Roster roster = SparkManager.getConnection().getRoster(); // If User is already in roster, do not show. RosterEntry entry = roster.getEntry(jid); if (entry != null && entry.getType() == RosterPacket.ItemType.TO) { ... |
titlePanel = new TitlePanel("AIM Registration", transport.getTitle(), transport.getIcon(), true); | titlePanel = new TitlePanel(transport.getTitle(), transport.getInstructions(), transport.getIcon(), true); | public TransportRegistrationPanel(String serviceName) { setLayout(new GridBagLayout()); final Transport transport = TransportManager.getTransport(serviceName); titlePanel = new TitlePanel("AIM Registration", transport.getTitle(), transport.getIcon(), true); add(titlePanel, new GridBagCon... |
context.put("helloworld", "Hello World"); context.put("hello", "Hello"); context.put("file", "include.txt"); TestObject[] fruits = { new TestObject("apple",false), new TestObject("lemon",true), new TestObject("pear",false), new TestObject("orange",true), new TestObject("watermelon",false), new TestObject("peach",false)... | try { context.put("helloworld", "Hello World"); context.put("hello", "Hello"); context.put("file", "include.txt"); TestObject[] fruits = { new TestObject("apple",false), new TestObject("lemon",true), new TestObject("pear",false), new TestObject("orange",true), new TestObject("watermelon",false), new TestObject("peach",... | public static void main(String arg[]) { Log.traceExceptions(true); Log.setLevel(Log.ALL); Log.setTarget(System.err); if (arg.length != 0) { System.out.println("Enabling log types"); Log.enableTypes(arg); } // Build a context WebMacro wm = null; Context conte... |
System.out.println("- - - - - - - - - - - - - - - - - - - -"); System.out.println("Context contains: helloWorld, hello, file, TestObject[] fruits, SelectList sl(fruits, 3), TestObject flipper"); System.out.println("- - - - - - - - - - - - - - - - - - - -"); | context.registerTool("testTool", new TestTool()); | public static void main(String arg[]) { Log.traceExceptions(true); Log.setLevel(Log.ALL); Log.setTarget(System.err); if (arg.length != 0) { System.out.println("Enabling log types"); Log.enableTypes(arg); } // Build a context WebMacro wm = null; Context conte... |
try { | System.out.println("- - - - - - - - - - - - - - - - - - - -"); System.out.println("Context contains: helloWorld, hello, file, TestObject[] fruits, SelectList sl(fruits, 3), TestObject flipper"); System.out.println("- - - - - - - - - - - - - - - - - - - -"); | public static void main(String arg[]) { Log.traceExceptions(true); Log.setLevel(Log.ALL); Log.setTarget(System.err); if (arg.length != 0) { System.out.println("Enabling log types"); Log.enableTypes(arg); } // Build a context WebMacro wm = null; Context conte... |
presence.setTo(transport.getServiceName()); SparkManager.getConnection().sendPacket(presence); | Presence p = new Presence(presence.getType(), presence.getStatus(), presence.getPriority(), presence.getMode()); p.setTo(transport.getServiceName()); SparkManager.getConnection().sendPacket(p); | private void registerPresenceListener() { SparkManager.getConnection().addPacketListener(new PacketListener() { public void processPacket(Packet packet) { Presence presence = (Presence)packet; Transport transport = TransportUtils.getTransport(packet.getFrom()); ... |
presence.setTo(transport.getServiceName()); SparkManager.getConnection().sendPacket(presence); | Presence p = new Presence(presence.getType(), presence.getStatus(), presence.getPriority(), presence.getMode()); p.setTo(transport.getServiceName()); SparkManager.getConnection().sendPacket(p); | public void presenceChanged(Presence presence) { for (Transport transport : TransportUtils.getTransports()) { presence.setTo(transport.getServiceName()); SparkManager.getConnection().sendPacket(presence); } } |
sourceFiles.addAll(packageData.getChildren()); | sourceFiles.addAll(packageData.getSourceFiles()); | public SortedSet getSourceFiles() { SortedSet sourceFiles = new TreeSet(); Iterator iter = this.children.values().iterator(); while (iter.hasNext()) { PackageData packageData = (PackageData)iter.next(); sourceFiles.addAll(packageData.getChildren()); } return sourceFiles; } |
public Collection getSubPackages(String packageName) | public SortedSet getSubPackages(String packageName) | public Collection getSubPackages(String packageName) { Collection subPackages = new HashSet(); Iterator iter = this.children.values().iterator(); while (iter.hasNext()) { PackageData packageData = (PackageData)iter.next(); if (packageData.getName().equals(packageName)) subPackages.add(packageData); } retu... |
Collection subPackages = new HashSet(); | SortedSet subPackages = new TreeSet(); | public Collection getSubPackages(String packageName) { Collection subPackages = new HashSet(); Iterator iter = this.children.values().iterator(); while (iter.hasNext()) { PackageData packageData = (PackageData)iter.next(); if (packageData.getName().equals(packageName)) subPackages.add(packageData); } retu... |
if (packageData.getName().equals(packageName)) | if (packageData.getName().startsWith(packageName)) | public Collection getSubPackages(String packageName) { Collection subPackages = new HashSet(); Iterator iter = this.children.values().iterator(); while (iter.hasNext()) { PackageData packageData = (PackageData)iter.next(); if (packageData.getName().equals(packageName)) subPackages.add(packageData); } retu... |
item.setCacheEnabled(false); | private UIComponent getPreviewPanel() { String ref = ARTICLE_ITEM_BEAN_ID + "."; WFComponentSelector cs = new WFComponentSelector(); cs.setId(COMPONENT_SELECTOR_ID); HtmlPanelGrid p = WFPanelUtil.getPlainFormPanel(1); p.setId(NO_ARTICLE_ID); p.getChildren().add(WFResourceUtil.getResourceUtilArticle().getHeader... | |
String headline = WFUtil.getStringValue(ARTICLE_ITEM_BEAN_ID, "headline"); | ArticleItemBean articleBean = (ArticleItemBean) WFUtil.getBeanInstance(ARTICLE_ITEM_BEAN_ID); String headline = articleBean.getHeadline(); | private void selectComponent() { WFComponentSelector cs = (WFComponentSelector) findComponent(COMPONENT_SELECTOR_ID); String headline = WFUtil.getStringValue(ARTICLE_ITEM_BEAN_ID, "headline"); if (cs != null) { if (headline == null || headline.length() == 0) { cs.setSelectedId(NO_ARTICLE_ID, true); cs.setS... |
fw.reset(out); | if (fw != null) { fw.reset(out); return fw; } | public static FastWriter getInstance(OutputStream out, String encoding) throws UnsupportedEncodingException { FastWriter fw = null; SimpleStack ss = (SimpleStack) _writerCache.get(encoding); if (ss != null) { fw = (FastWriter) ss.pop(); fw.reset(out); } if (fw == null... |
if (fw == null) { fw = new FastWriter(out,encoding); } return fw; | return new FastWriter(out,encoding); | public static FastWriter getInstance(OutputStream out, String encoding) throws UnsupportedEncodingException { FastWriter fw = null; SimpleStack ss = (SimpleStack) _writerCache.get(encoding); if (ss != null) { fw = (FastWriter) ss.pop(); fw.reset(out); } if (fw == null... |
LogSystem.removeInstance(_ls); | public synchronized void stopClient() { if ( --_count == 0 ) { shutdown(); } } | |
_servletContext.log(e, _mf.format(_args)); | _servletContext.log(_mf.format(_args),e); | public void log(Date date, String name, String level, String message, Exception e) { synchronized(_args) { _args[0] = date; _args[1] = name; _args[2] = level; _args[3] = message; if (e == null) _servletContext.log(_mf.format(_args)); else _... |
HtmlInputText sourceArea = WFUtil.getInputText(AUTHOR_ID, ref + "source"); | HtmlInputText sourceArea = WFUtil.getInputText(SOURCE_ID, ref + "source"); | public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle(); String ref = ARTICLE_ITEM_BEAN_ID + ".";// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_E... |
searchContacts(""); | SparkManager.getUserManager().searchContacts("", SparkManager.getWorkspace().getContactList()); | public ContactList() { // Load Local Preferences localPreferences = SettingsManager.getLocalPreferences(); offlineGroup = new ContactGroup("Offline Group"); JToolBar toolbar = new JToolBar(); toolbar.setFloatable(false); addContactMenu = new JMenuItem(Res.getString("menuite... |
searchContacts(""); | SparkManager.getUserManager().searchContacts("", SparkManager.getWorkspace().getContactList()); | public void actionPerformed(ActionEvent evt) { searchContacts(""); } |
activateChat(activeItem.getContactJID(), activeItem.getNickname()); | SparkManager.getChatManager().activateChat(activeItem.getContactJID(), activeItem.getNickname()); | public void actionPerformed(ActionEvent e) { if (e.getSource() == addingGroupButton) { new RosterDialog().showRosterDialog(); } else if (e.getSource() == chatMenu) { if (activeItem != null) { activateChat(activeItem.getContactJID(), activeItem.getNickname())... |
new RosterDialog().showRosterDialog(); | String groupName = JOptionPane.showInputDialog(getGUI(), Res.getString("message.name.of.group") + ":", Res.getString("title.add.new.group"), JOptionPane.QUESTION_MESSAGE); if (ModelUtil.hasLength(groupName)) { ContactGroup contactGroup = getContactGroup(groupName); if (contactGroup == null) { contactGroup = addContactG... | public void actionPerformed(ActionEvent e) { new RosterDialog().showRosterDialog(); } |
String groupName = JOptionPane.showInputDialog(getGUI(), Res.getString("message.name.of.group") + ":", Res.getString("title.add.new.group"), JOptionPane.QUESTION_MESSAGE); if (ModelUtil.hasLength(groupName)) { ContactGroup contactGroup = getContactGroup(groupName); if (contactGroup == null) { contactGroup = addContactG... | showEmptyGroups(showHideMenu.isSelected()); | public void actionPerformed(ActionEvent e) { String groupName = JOptionPane.showInputDialog(getGUI(), Res.getString("message.name.of.group") + ":", Res.getString("title.add.new.group"), JOptionPane.QUESTION_MESSAGE); if (ModelUtil.hasLength(groupName)) { Cont... |
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.getF... | 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 { ... | |
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 { ... | |
Roster roster = SparkManager.getConnection().getRoster(); RosterEntry entry = roster.getEntry(presence.getFrom()); if (entry != null) { try { removeContactItem(presence.getFrom()); roster.removeEntry(entry); | SwingUtilities.invokeLater(new Runnable() { public void run() { final Iterator users = new ArrayList(initialPresences).iterator(); while (users.hasNext()) { Presence userToUpdate = (Presence)users.next(); initialPresences.remove(userToUpdate); updateUserPresence(userToUpdate); } | public void run() { Roster roster = SparkManager.getConnection().getRoster(); RosterEntry entry = roster.getEntry(presence.getFrom()); if (entry != null) { try { ... |
catch (XMPPException e) { 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 { ... |
SwingUtilities.invokeLater(new Runnable() { public void run() { | public void run() { SwingUtilities.invokeLater(new Runnable() { public void run() { final Iterator users = new ArrayList(initialPresences).iterator(); while (users.hasN... | |
}); } | public void run() { SwingUtilities.invokeLater(new Runnable() { public void run() { final Iterator users = new ArrayList(initialPresences).iterator(); while (users.hasN... | |
int ok = JOptionPane.showConfirmDialog(group, Res.getString("message.delete.confirmation", group.getGroupName()), Res.getString("title.confirmation"), JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE); if (ok == JOptionPane.YES_OPTION) { String groupName = group.getGroupName(); Roster roster = SparkManager.getCo... | String newName = JOptionPane.showInputDialog(group, Res.getString("label.rename.to") + ":", Res.getString("title.rename.roster.group"), 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, Res.getString("message.delete.confirmation", group.getGroupName()), Res.getString("title.confirmation"), JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE); if (ok == JOptionPane.YE... |
RosterGroup rosterGroup = roster.getGroup(groupName); if (rosterGroup != null) { for (RosterEntry entry : rosterGroup.getEntries()) { 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, Res.getString("message.delete.confirmation", group.getGroupName()), Res.getString("title.confirmation"), JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE); if (ok == JOptionPane.YE... |
invalidate(); repaint(); | rosterGroup.setName(newName); | public void actionPerformed(ActionEvent e) { int ok = JOptionPane.showConfirmDialog(group, Res.getString("message.delete.confirmation", group.getGroupName()), Res.getString("title.confirmation"), JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE); if (ok == JOptionPane.YE... |
public void actionPerformed(ActionEvent e) { String newName = JOptionPane.showInputDialog(group, Res.getString("label.rename.to") + ":", Res.getString("title.rename.roster.group"), JOptionPane.QUESTION_MESSAGE); if (!ModelUtil.hasLength(newName)) { return; } String groupName = group.getGroupName(); Roster roster = Spar... | public void actionPerformed(ActionEvent actionEvent) { SparkManager.getTransferManager().sendFileTo(item); | public void actionPerformed(ActionEvent e) { String newName = JOptionPane.showInputDialog(group, Res.getString("label.rename.to") + ":", Res.getString("title.rename.roster.group"), JOptionPane.QUESTION_MESSAGE); if (!ModelUtil.hasLength(newName)) { return; ... |
activateChat(item.getContactJID(), item.getNickname()); | chatManager.activateChat(item.getContactJID(), item.getNickname()); | public void contactItemDoubleClicked(ContactItem item) { activeItem = item; ChatManager chatManager = SparkManager.getChatManager(); boolean handled = chatManager.fireContactItemDoubleClicked(item); if (!handled) { activateChat(item.getContactJID(), item.getNickname()); ... |
public void actionPerformed(ActionEvent actionEvent) { SparkManager.getTransferManager().sendFileTo(item); | public void actionPerformed(ActionEvent e) { removeContactFromRoster(item); | public void actionPerformed(ActionEvent actionEvent) { SparkManager.getTransferManager().sendFileTo(item); } |
removeContactFromRoster(item); | VCardManager vcardSupport = SparkManager.getVCardManager(); String jid = item.getFullJID(); vcardSupport.viewProfile(jid, SparkManager.getWorkspace()); | public void actionPerformed(ActionEvent e) { removeContactFromRoster(item); } |
public void actionPerformed(ActionEvent e) { VCardManager vcardSupport = SparkManager.getVCardManager(); String jid = item.getFullJID(); vcardSupport.viewProfile(jid, SparkManager.getWorkspace()); | public void actionPerformed(ActionEvent actionEvent) { try { LastActivity activity = LastActivity.getLastActivity(SparkManager.getConnection(), item.getFullJID()); long idleTime = (activity.getIdleTime() * 1000); String time = ModelUtil.getTimeFromLong(idleTime); JOptionPane.showMessageDialog(getGUI(), Res.getString("m... | public void actionPerformed(ActionEvent e) { VCardManager vcardSupport = SparkManager.getVCardManager(); String jid = item.getFullJID(); vcardSupport.viewProfile(jid, SparkManager.getWorkspace()); } |
public void actionPerformed(ActionEvent actionEvent) { try { LastActivity activity = LastActivity.getLastActivity(SparkManager.getConnection(), item.getFullJID()); long idleTime = (activity.getIdleTime() * 1000); String time = ModelUtil.getTimeFromLong(idleTime); JOptionPane.showMessageDialog(getGUI(), Res.getString("m... | public void actionPerformed(ActionEvent e) { String jid = item.getFullJID(); Presence response = new Presence(Presence.Type.subscribe); response.setTo(jid); | public void actionPerformed(ActionEvent actionEvent) { try { LastActivity activity = LastActivity.getLastActivity(SparkManager.getConnection(), item.getFullJID()); long idleTime = (activity.getIdleTime() * 1000); String time = ModelUtil... |
SparkManager.getConnection().sendPacket(response); | public void actionPerformed(ActionEvent actionEvent) { try { LastActivity activity = LastActivity.getLastActivity(SparkManager.getConnection(), item.getFullJID()); long idleTime = (activity.getIdleTime() * 1000); String time = ModelUtil... | |
String jid = item.getFullJID(); Presence response = new Presence(Presence.Type.subscribe); response.setTo(jid); SparkManager.getConnection().sendPacket(response); | sendMessages(items); | public void actionPerformed(ActionEvent e) { String jid = item.getFullJID(); Presence response = new Presence(Presence.Type.subscribe); response.setTo(jid); SparkManager.getConnection().sendPacket(response); } |
Presence response = new Presence(Presence.Type.subscribed); | Presence response = new Presence(Presence.Type.unsubscribe); | public void actionPerformed(ActionEvent e) { SparkManager.getWorkspace().removeAlert(layoutPanel); Presence response = new Presence(Presence.Type.subscribed); response.setTo(jid); SparkManager.getConnection().sendPacket(response); in... |
int ok = JOptionPane.showConfirmDialog(getGUI(), Res.getString("message.add.user"), Res.getString("message.add.to.roster"), JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE); if (ok == JOptionPane.OK_OPTION) { RosterDialog rosterDialog = new RosterDialog(); rosterDialog.setDefaultJID(UserManager.unescapeJID(jid)... | public void actionPerformed(ActionEvent e) { SparkManager.getWorkspace().removeAlert(layoutPanel); Presence response = new Presence(Presence.Type.subscribed); response.setTo(jid); SparkManager.getConnection().sendPacket(response); in... | |
SparkManager.getWorkspace().removeAlert(layoutPanel); Presence response = new Presence(Presence.Type.unsubscribe); response.setTo(jid); SparkManager.getConnection().sendPacket(response); | SparkManager.getVCardManager().viewProfile(jid, getGUI()); | public void actionPerformed(ActionEvent e) { SparkManager.getWorkspace().removeAlert(layoutPanel); // Send subscribed Presence response = new Presence(Presence.Type.unsubscribe); response.setTo(jid); SparkManager.getConnection().send... |
logger.debug("Putting instrumeted entry: " | logger.debug("Putting instrumented entry: " | private void addInstrumentationToArchive(ZipInputStream archive, ZipOutputStream output) throws Exception { ZipEntry entry; while ((entry = archive.getNextEntry()) != null) { try { ZipEntry outputEntry = new ZipEntry(entry.getName()); output.putNextEntry(outputEntry); // Read current entry byte[] ... |
} catch (Exception e) { _log.error("Template: Unable to read template: " + this, e); out.write("<!--\n Template failed to read. Reason: "); | } catch (TemplateException e) { _log.error("Template: Unable to parse template: " + this, e); out.write("<!--\n Template failed to parse. Reason: "); | public final void write(FastWriter out, Context data) throws IOException { try { if (_content == null) { parse(); } } catch (Exception e) { _log.error("Template: Unable to read template: " + this, e); out.write("<!--\n Template failed to read. Reason: "... |
"Template: Missing data in Map passed to template " + this; | "Template: Missing data in Context passed to template " + this; | public final void write(FastWriter out, Context data) throws IOException { try { if (_content == null) { parse(); } } catch (Exception e) { _log.error("Template: Unable to read template: " + this, e); out.write("<!--\n Template failed to read. Reason: "... |
String message = "Would you like to end this session?"; if (true) { room.closeChatRoom(); return; } else { if (!room.isActive()) { | if (isGroupChat) { String message = "Would you like to end this session?"; final int ok = JOptionPane.showConfirmDialog(chatFrame, message, "Confirmation", JOptionPane.YES_NO_OPTION); if (ok == JOptionPane.OK_OPTION) { | public void closeActiveRoom() { ChatRoom room = null; try { room = getActiveChatRoom(); } catch (ChatRoomNotFoundException e1) { // AgentLog.logError("Chat room not found", e1); } // Confirm end session boolean isGroupChat = room.getChatType() =... |
final int ok = JOptionPane.showConfirmDialog(SparkManager.getMainWindow(), message, "Confirmation", JOptionPane.YES_NO_OPTION); if (ok == JOptionPane.OK_OPTION) { | else { | public void closeActiveRoom() { ChatRoom room = null; try { room = getActiveChatRoom(); } catch (ChatRoomNotFoundException e1) { // AgentLog.logError("Chat room not found", e1); } // Confirm end session boolean isGroupChat = room.getChatType() =... |
if(arg0.getOldValue()==null) { return; } | public void processValueChange(ValueChangeEvent arg0) throws AbortProcessingException { System.out.println("Language value has changed from "+arg0.getOldValue()+" to "+arg0.getNewValue()); String articlePath = (String)WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "getArticlePath"); String language = (String)WFUtil.invoke(A... | |
public void addClassData(ClassData classData) | public synchronized void addClassData(ClassData classData) | public void addClassData(ClassData classData) { if (children.containsKey(classData.getBaseName())) throw new IllegalArgumentException("Source file " + this.name + " already contains a class with the name " + classData.getBaseName()); // Each key is a class basename, stored as an String object. // Each val... |
return uri.replaceAll(": | return createDiscoveryPathName(uri) + "/" + localName; | protected String createDiscoveryPathName(String uri, String localName) { if (uri == null || uri.length() == 0) { return localName; } // TODO proper encoding required // lets replace any dodgy characters return uri.replaceAll("://", "/").replace(':', '/').replace(' ', '_... |
String uri = "META-INF/services/org/xbean/spring/" + createDiscoveryPathName(namespaceURI, localName); | String uri = META_INF_PREFIX + createDiscoveryPathName(namespaceURI, localName); InputStream in = loadResource(uri); if (in == null) { in = loadResource(META_INF_PREFIX + createDiscoveryPathName(namespaceURI)); } | protected MappingMetaData findNamespaceProperties(String namespaceURI, String localName) { // lets look for the magic prefix if (namespaceURI != null && namespaceURI.startsWith(JAVA_PACKAGE_PREFIX)) { String packageName = namespaceURI.substring(JAVA_PACKAGE_PREFIX.length()); retu... |
InputStream in = Thread.currentThread().getContextClassLoader().getResourceAsStream(uri); if (in == null) { in = getClass().getClassLoader().getResourceAsStream(uri); if (in == null) { logger.warn("Could not find resource: " + uri); return null; | if (in != null) { try { Properties properties = new Properties(); properties.load(in); return new MappingMetaData(properties); } catch (IOException e) { log.warn("Failed to load resource from uri: " + uri, e); | protected MappingMetaData findNamespaceProperties(String namespaceURI, String localName) { // lets look for the magic prefix if (namespaceURI != null && namespaceURI.startsWith(JAVA_PACKAGE_PREFIX)) { String packageName = namespaceURI.substring(JAVA_PACKAGE_PREFIX.length()); retu... |
try { Properties properties = new Properties(); properties.load(in); return new MappingMetaData(properties); } catch (IOException e) { log.warn("Failed to load resource from uri: " + uri, e); return null; } | return null; | protected MappingMetaData findNamespaceProperties(String namespaceURI, String localName) { // lets look for the magic prefix if (namespaceURI != null && namespaceURI.startsWith(JAVA_PACKAGE_PREFIX)) { String packageName = namespaceURI.substring(JAVA_PACKAGE_PREFIX.length()); retu... |
BeanDefinitionReaderUtils.registerBeanDefinition(bdHolder, getBeanDefinitionReader().getBeanFactory()); | protected int parseBeanDefinitions(Element root) throws BeanDefinitionStoreException { NodeList nl = root.getChildNodes(); int beanDefinitionCount = 0; for (int i = 0; i < nl.getLength(); i++) { Node node = nl.item(i); if (node instanceof Element) { Element ... | |
continue; | break; | public void run() { int period = now(); while( !isInterrupted()) { try { sleep(_duration); } catch (InterruptedException e) { continue; } int newPeriod = now(); while (period != newPeriod) { if (++period >= _periods) period = 0; ... |
File sourceDirectory) throws IOException | FileFinder finder) throws IOException | public XMLReport(ProjectData projectData, File destinationDir, File sourceDirectory) throws IOException { this.sourceDirectory = sourceDirectory; pw = new PrintWriter(new FileWriter(new File(destinationDir, "coverage.xml"))); try { println("<?xml version=\"1.0\"?>"); println("<!DOCTYPE coverage SYSTEM \"h... |
this.sourceDirectory = sourceDirectory; | this.finder = finder; | public XMLReport(ProjectData projectData, File destinationDir, File sourceDirectory) throws IOException { this.sourceDirectory = sourceDirectory; pw = new PrintWriter(new FileWriter(new File(destinationDir, "coverage.xml"))); try { println("<?xml version=\"1.0\"?>"); println("<!DOCTYPE coverage SYSTEM \"h... |
dumpSources(sourceDirectory); | dumpSources(); | public XMLReport(ProjectData projectData, File destinationDir, File sourceDirectory) throws IOException { this.sourceDirectory = sourceDirectory; pw = new PrintWriter(new FileWriter(new File(destinationDir, "coverage.xml"))); try { println("<?xml version=\"1.0\"?>"); println("<!DOCTYPE coverage SYSTEM \"h... |
double ccn = Util.getCCN(new File(sourceDirectory, classData | double ccn = Util.getCCN(finder.findFile(classData | private void dumpClass(ClassData classData) { logger.debug("Dumping class " + classData.getName()); double ccn = Util.getCCN(new File(sourceDirectory, classData .getSourceFileName()), false); println("<class name=\"" + classData.getName() + "\" filename=\"" + classData.getSourceFileName() + "\" line-rate=\"" ... |
double ccn = Util.getCCN(new File(sourceDirectory, packageData .getSourceFileName()), false); | double ccn = Util.getCCN(finder.findFile(packageData.getSourceFileName()), false); | private void dumpPackage(PackageData packageData) { logger.debug("Dumping package " + packageData.getName()); double ccn = Util.getCCN(new File(sourceDirectory, packageData .getSourceFileName()), false); println("<package name=\"" + packageData.getName() + "\" line-rate=\"" + packageData.getLineCoverageRate()... |
private void dumpSources(File sourceDirectory) | private void dumpSources() | private void dumpSources(File sourceDirectory) { if (sourceDirectory == null) return; println("<sources>"); increaseIndentation(); dumpSource(sourceDirectory); decreaseIndentation(); println("</sources>"); } |
if (sourceDirectory == null) return; | private void dumpSources(File sourceDirectory) { if (sourceDirectory == null) return; println("<sources>"); increaseIndentation(); dumpSource(sourceDirectory); decreaseIndentation(); println("</sources>"); } | |
dumpSource(sourceDirectory); | for (Iterator it = finder.getBaseDirectories().iterator(); it.hasNext(); ) { File dir = (File) it.next(); dumpSource(dir); } | private void dumpSources(File sourceDirectory) { if (sourceDirectory == null) return; println("<sources>"); increaseIndentation(); dumpSource(sourceDirectory); decreaseIndentation(); println("</sources>"); } |
FastWriter fw = new FastWriter(os, "UTF8"); | FastWriter fw = new FastWriter(os, context.getEncoding()); | public Object evaluate(Context context) throws ContextException { try { ByteArrayOutputStream os = new ByteArrayOutputStream(256); FastWriter fw = new FastWriter(os, "UTF8"); write(fw,context); fw.flush(); return os.toString("UTF8"); } catch (IOException e) { ... |
return os.toString("UTF8"); | return os.toString(context.getEncoding()); | public Object evaluate(Context context) throws ContextException { try { ByteArrayOutputStream os = new ByteArrayOutputStream(256); FastWriter fw = new FastWriter(os, "UTF8"); write(fw,context); fw.flush(); return os.toString("UTF8"); } catch (IOException e) { ... |
f.p(value.getName().replace('$', '.')); f.p(".class"); } | f.t(owner.ref(value.getDeclaringClass())).p('.').p(value.name()); } | public void generate(JFormatter f) { f.p(value.getName().replace('$', '.')); f.p(".class"); } |
return PropertyOperator.setProperty(this,_bean,names,value); | return PropertyOperator.setProperty(this,_bean,names,value) || setTool(names, value); | final public boolean setProperty(final Object[] names, final Object value) throws PropertyException, ContextException { if (names.length == 0) { return false; } else if (_bean == null) { return setLocal(names, value) || setTool(names, value); } else { return PropertyOpe... |
LOGGER.debug("ProjectData.addClassData: " + classData.getName()); | public void addClassData(ClassData classData) { LOGGER.debug("ProjectData.addClassData: " + classData.getName()); String packageName = classData.getPackageName(); PackageData packageData = (PackageData)children.get(packageName); if (packageData == null) { packageData = new PackageData(packageName); // Each... | |
this.classes.put(classData.getName(), classData); | public void addClassData(ClassData classData) { LOGGER.debug("ProjectData.addClassData: " + classData.getName()); String packageName = classData.getPackageName(); PackageData packageData = (PackageData)children.get(packageName); if (packageData == null) { packageData = new PackageData(packageName); // Each... | |
for (Iterator it = children.values().iterator(); it.hasNext(); ) { PackageData packageData = (PackageData) it.next(); ClassData classData = packageData.getClassData(name); if (classData != null) { return classData; } } return null; | return (ClassData)this.classes.get(name); | public ClassData getClassData(String name) { for (Iterator it = children.values().iterator(); it.hasNext(); ) { PackageData packageData = (PackageData) it.next(); ClassData classData = packageData.getClassData(name); if (classData != null) { return classData; } } re... |
String offline = preferences.getOfflineSound(); File offlineFile = new File(offline); SparkManager.getSoundManager().playClip(offlineFile); | Roster roster = SparkManager.getConnection().getRoster(); final String bareJID = StringUtils.parseBareAddress(presence.getFrom()); presence = roster.getPresence(bareJID); if (presence == null) { String offline = preferences.getOfflineSound(); File offlineFile = new File(offline); SparkManager.getSoundManager().playClip... | public void initialize() { soundPreference = new SoundPreference(); SparkManager.getPreferenceManager().addPreference(soundPreference); SparkManager.getChatManager().addChatRoomListener(this); SparkManager.getConnection().addPacketListener(new PacketListener() { public void pr... |
String offline = preferences.getOfflineSound(); File offlineFile = new File(offline); SparkManager.getSoundManager().playClip(offlineFile); | Roster roster = SparkManager.getConnection().getRoster(); final String bareJID = StringUtils.parseBareAddress(presence.getFrom()); presence = roster.getPresence(bareJID); if (presence == null) { String offline = preferences.getOfflineSound(); File offlineFile = new File(offline); SparkManager.getSoundManager().playClip... | public void processPacket(Packet packet) { Presence presence = (Presence)packet; if (presence != null && presence.getType() == Presence.Type.unavailable) { SoundPreferences preferences = soundPreference.getPreferences(); if (preferences != ... |
BookmarkUI bookmarkUI = new BookmarkUI(); | final Iterator bookmarkLinks = bookmarkedLinks.iterator(); while (bookmarkLinks.hasNext()) { final BookmarkedURL link = (BookmarkedURL)bookmarkLinks.next(); | public void initialize() { final SwingWorker bookmarkThreadWorker = new SwingWorker() { public Object construct() { // Register own provider for simpler implementation. PrivateDataManager.addPrivateDataProvider("storage", "storage:bookmarks", new Bookmarks.Provider())... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.