bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { ButtonModel bmodel = null; if (c instanceof AbstractButton) bmodel = ((AbstractButton) c).getModel(); Color darkShadow = MetalLookAndFeel.getControlDarkShadow(); Color shadow... | public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { ButtonModel bmodel = null; if (c instanceof AbstractButton) bmodel = ((AbstractButton) c).getModel(); Color darkShadow = MetalLookAndFeel.getControlDarkShadow(); Color shadow... | 50,819 |
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { ButtonModel bmodel = null; if (c instanceof AbstractButton) bmodel = ((AbstractButton) c).getModel(); Color darkShadow = MetalLookAndFeel.getControlDarkShadow(); Color shadow... | public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { ButtonModel bmodel = null; if (c instanceof AbstractButton) bmodel = ((AbstractButton) c).getModel(); Color darkShadow = MetalLookAndFeel.getControlDarkShadow(); Color shadow... | 50,820 |
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { JInternalFrame f = (JInternalFrame) c; g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow()); if (f.getContentPane() instanceof JOptionPane) { JOptionPane pane = (JOptionPane) f.getC... | public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { JInternalFrame f = (JInternalFrame) c; g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow()); if (f.getContentPane() instanceof JOptionPane) { JOptionPane pane = (JOptionPane) f.getC... | 50,822 |
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { JInternalFrame f = (JInternalFrame) c; g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow()); if (f.getContentPane() instanceof JOptionPane) { JOptionPane pane = (JOptionPane) f.getC... | public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { JInternalFrame f = (JInternalFrame) c; g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow()); if (f.getContentPane() instanceof JOptionPane) { JOptionPane pane = (JOptionPane) f.getC... | 50,823 |
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { JInternalFrame f = (JInternalFrame) c; g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow()); if (f.getContentPane() instanceof JOptionPane) { JOptionPane pane = (JOptionPane) f.getC... | public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { JInternalFrame f = (JInternalFrame) c; g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow()); if (f.getContentPane() instanceof JOptionPane) { JOptionPane pane = (JOptionPane) f.getC... | 50,824 |
public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { JInternalFrame f = (JInternalFrame) c; g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow()); if (f.getContentPane() instanceof JOptionPane) { JOptionPane pane = (JOptionPane) f.getC... | public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) { JInternalFrame f = (JInternalFrame) c; g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow()); if (f.getContentPane() instanceof JOptionPane) { JOptionPane pane = (JOptionPane) f.getC... | 50,825 |
public LinkException() { super(); } | public LinkException() { super(); } | 50,826 |
public String getLinkExplanation() { return linkExplanation; } | public String getLinkExplanation() { return linkExplanation; } | 50,827 |
public Name getLinkRemainingName() { return linkRemainingName; } | public Name getLinkRemainingName() { return linkRemainingName; } | 50,828 |
public Name getLinkResolvedName() { return linkResolvedName; } | public Name getLinkResolvedName() { return linkResolvedName; } | 50,829 |
public Object getLinkResolvedObj() { return linkResolvedObj; } | public Object getLinkResolvedObj() { return linkResolvedObj; } | 50,830 |
public void setLinkExplanation(String msg) { linkExplanation = msg; } | public void setLinkExplanation(String msg) { linkExplanation = msg; } | 50,831 |
public void setLinkRemainingName(Name name) { linkRemainingName = (Name) name.clone(); } | public void setLinkRemainingName(Name name) { linkRemainingName = (Name) name.clone(); } | 50,832 |
public void setLinkResolvedName(Name name) { linkResolvedName = (Name) name.clone(); } | public void setLinkResolvedName(Name name) { linkResolvedName = (Name) name.clone(); } | 50,833 |
public void setLinkResolvedObj(Object obj) { linkResolvedObj = obj; } | public void setLinkResolvedObj(Object obj) { linkResolvedObj = obj; } | 50,834 |
public String toString() { return super.toString() + "; " + linkRemainingName.toString(); } | public String toString() { return super.toString() + "; " + linkRemainingName.toString(); } | 50,835 |
public String toString() { return toString(false); } | public String toString(boolean objectInfo) { return toString(false); } | 50,836 |
public String toString() { return toString(false); } | public String toString() { StringBuffer sb = new StringBuffer(super.toString()); Throwable cause = getRootCause(); if (cause != null) { sb.append(" caused by "); sb.append(cause); } Name remaining = getRemainingName(); if (remaining != null) { sb.append(" [remainingName: "); sb.append(remaining); } Object resolve... | 50,837 |
public Transaction createTransaction(Xid xid) throws TransactionException { if (globalToLocalMap.containsKey(xid)) { throw new TransactionException("There is already a local tx for global tx " + xid); } Transaction tx = new Transaction(xid, transactionLog); if (log.isTraceEna... | public Transaction createTransaction(Xid xid) throws TransactionException { if (globalToLocalMap.containsKey(xid)) { throw new TransactionException("There is already a local tx for global tx " + xid); } Transaction tx = new Transaction(xid, transactionLog); if (trace) { log.t... | 50,838 |
protected void installStrings(JFileChooser fc) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); acceptAllFileFilterText = defaults.getString("FileChooser.acceptAllFileFilterText"); cancelButtonMnemonic = defaults.getInt("FileChooser.cancelButtonMnemonic"); cancelButtonText = defaults.getString... | protected void installStrings(JFileChooser fc) { acceptAllFileFilterText = UIManager.getString("FileChooser.acceptAllFileFilterText"); cancelButtonMnemonic = UIManager.getInt("FileChooser.cancelButtonMnemonic"); cancelButtonText = UIManager.getString("FileChooser.cancelButtonText"); cancelButtonToolTipText = UIMa... | 50,839 |
protected void installStrings(JFileChooser fc) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); acceptAllFileFilterText = defaults.getString("FileChooser.acceptAllFileFilterText"); cancelButtonMnemonic = defaults.getInt("FileChooser.cancelButtonMnemonic"); cancelButtonText = defaults.getString... | protected void installStrings(JFileChooser fc) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); acceptAllFileFilterText = defaults.getString("FileChooser.acceptAllFileFilterText"); cancelButtonMnemonic = defaults.getInt("FileChooser.cancelButtonMnemonic"); cancelButtonText = defaults.getString... | 50,840 |
protected void installStrings(JFileChooser fc) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); acceptAllFileFilterText = defaults.getString("FileChooser.acceptAllFileFilterText"); cancelButtonMnemonic = defaults.getInt("FileChooser.cancelButtonMnemonic"); cancelButtonText = defaults.getString... | protected void installStrings(JFileChooser fc) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); acceptAllFileFilterText = defaults.getString("FileChooser.acceptAllFileFilterText"); cancelButtonMnemonic = defaults.getInt("FileChooser.cancelButtonMnemonic"); cancelButtonText = defaults.getString... | 50,841 |
protected void installStrings(JFileChooser fc) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); acceptAllFileFilterText = defaults.getString("FileChooser.acceptAllFileFilterText"); cancelButtonMnemonic = defaults.getInt("FileChooser.cancelButtonMnemonic"); cancelButtonText = defaults.getString... | protected void installStrings(JFileChooser fc) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); acceptAllFileFilterText = defaults.getString("FileChooser.acceptAllFileFilterText"); cancelButtonMnemonic = defaults.getInt("FileChooser.cancelButtonMnemonic"); cancelButtonText = defaults.getString... | 50,842 |
protected void installStrings(JFileChooser fc) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); acceptAllFileFilterText = defaults.getString("FileChooser.acceptAllFileFilterText"); cancelButtonMnemonic = defaults.getInt("FileChooser.cancelButtonMnemonic"); cancelButtonText = defaults.getString... | protected void installStrings(JFileChooser fc) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); acceptAllFileFilterText = defaults.getString("FileChooser.acceptAllFileFilterText"); cancelButtonMnemonic = defaults.getInt("FileChooser.cancelButtonMnemonic"); cancelButtonText = defaults.getString... | 50,843 |
public byte[] getEncodedValue(); | public byte[] getEncodedValue(); | 50,844 |
public String getID(); | public String getID(); | 50,845 |
protected boolean addReferenceInMemory(MessageReference ref) throws Throwable { if (trace) { log.trace(this + " adding " + ref + " non-transactionally"); } if (ref.isReliable() && !acceptReliableMessages) { throw new IllegalStateException("Reliable reference " + ref + ... | protected boolean addReferenceInMemory(MessageReference ref) throws Throwable { if (ref.isReliable() && !acceptReliableMessages) { throw new IllegalStateException("Reliable reference " + ref + " cannot be added to non-recoverable state"); } if... | 50,846 |
protected boolean addReferenceInMemory(MessageReference ref) throws Throwable { if (trace) { log.trace(this + " adding " + ref + " non-transactionally"); } if (ref.isReliable() && !acceptReliableMessages) { throw new IllegalStateException("Reliable reference " + ref + ... | protected boolean addReferenceInMemory(MessageReference ref) throws Throwable { if (trace) { log.trace(this + " adding " + ref + " non-transactionally"); } if (ref.isReliable() && !acceptReliableMessages) { throw new IllegalStateException("Reliable reference " + ref + ... | 50,847 |
protected boolean addReferenceInMemory(MessageReference ref) throws Throwable { if (trace) { log.trace(this + " adding " + ref + " non-transactionally"); } if (ref.isReliable() && !acceptReliableMessages) { throw new IllegalStateException("Reliable reference " + ref + ... | if (trace) { log.trace(this + " added " + ref + " non-transactionally in memory"); } if (trace) { log.trace(this + " added " + ref + " non-transactionally in memory"); } if (trace) { log.trace(this + " added " + ref + " non-transactionally in memory"); } protected if (trace) { log.trace(this + " added " + ref + "... | 50,848 |
protected boolean addReferenceInMemory(MessageReference ref) throws Throwable { if (trace) { log.trace(this + " adding " + ref + " non-transactionally"); } if (ref.isReliable() && !acceptReliableMessages) { throw new IllegalStateException("Reliable reference " + ref + ... | if (trace) { log.trace(this + " going into paging mode"); } if (trace) { log.trace(this + " going into paging mode"); } if (trace) { log.trace(this + " going into paging mode"); } protected if (trace) { log.trace(this + " going into paging mode"); } boolean if (trace) { log.trace(this + " going into paging mode... | 50,849 |
protected void addToDownCache(MessageReference ref) throws Exception { //Non reliable refs can be cached in a down cache and then flushed to storage //in blocks downCache.add(ref); if (downCache.size() == downCacheSize) { flushDownCache(); } } | protected void addToDownCache(MessageReference ref) throws Exception { //Non reliable refs can be cached in a down cache and then flushed to storage //in blocks downCache.add(ref); if (downCache.size() == downCacheSize) { flushDownCache(); } } | 50,850 |
public MessageReference peekFirst() throws Throwable { synchronized (refLock) { MessageReference result = (MessageReference)messageRefs.peekFirst(); return result; } } | public MessageReference peekFirst() throws Throwable { synchronized (refLock) { MessageReference result = (MessageReference)messageRefs.peekFirst(); return result; } } | 50,853 |
public void actionPerformed (ActionEvent e) { DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); ... | public void actionPerformed (ActionEvent e) { DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); ... | 50,854 |
public void actionPerformed (ActionEvent e) { DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); ... | public void actionPerformed (ActionEvent e) { DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); ... | 50,855 |
public void actionPerformed (ActionEvent e) { DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); ... | public void actionPerformed (ActionEvent e) { DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); ... | 50,856 |
public void actionPerformed (ActionEvent e) { DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); ... | public void actionPerformed (ActionEvent e) { DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); ... | 50,857 |
public void actionPerformed (ActionEvent e) { DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); ... | public void actionPerformed (ActionEvent e) { DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); ... | 50,858 |
public void actionPerformed (ActionEvent e) { DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); ... | public void actionPerformed (ActionEvent e) { DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); ... | 50,859 |
public void actionPerformed (ActionEvent e) { DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); ... | public void actionPerformed (ActionEvent e) { DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); ... | 50,860 |
public void actionPerformed (ActionEvent e) { DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); ... | public void actionPerformed (ActionEvent e) { DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); ... | 50,861 |
public void actionPerformed (ActionEvent e) { DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); ... | public void actionPerformed (ActionEvent e) { DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); ... | 50,862 |
public void actionPerformed (ActionEvent e) { DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); ... | public void actionPerformed (ActionEvent e) { DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); ... | 50,863 |
public void actionPerformed (ActionEvent e) { DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); ... | public void actionPerformed (ActionEvent e) { DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); ... | 50,864 |
public void actionPerformed (ActionEvent e) { DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); ... | public void actionPerformed (ActionEvent e) { DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); ... | 50,865 |
public void actionPerformed (ActionEvent e) { DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); ... | public void actionPerformed (ActionEvent e) { DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); ... | 50,866 |
public void actionPerformed (ActionEvent e) { DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); ... | public void actionPerformed (ActionEvent e) { DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); ... | 50,867 |
public void actionPerformed (ActionEvent e) { DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); ... | public void actionPerformed (ActionEvent e) { DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); ... | 50,868 |
public void actionPerformed (ActionEvent e) { DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); ... | public void actionPerformed (ActionEvent e) { DefaultListSelectionModel rowModel = (DefaultListSelectionModel) table.getSelectionModel(); DefaultListSelectionModel colModel = (DefaultListSelectionModel) table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); ... | 50,869 |
public void setDot(int dot, Bias bias) { DefaultCaret.this.setDot(dot); } | public void setDot(int dot, Bias bias) { DefaultCaret.this.setDotImpl(dot); } | 50,870 |
public void actionPerformed(ActionEvent e) { if(currentWorkspace.getLocation() == null) { JOptionPane.showMessageDialog((Component)e.getSource(), ResourceManager.getString("error.save.unsavedspace"), ResourceManager.getString("title.warning"), JOptionPane.WARNING_MESSAGE); return; } ImportWorkf... | publicvoidactionPerformed(ActionEvente){if(currentWorkspace.getLocation()==null){JOptionPane.showMessageDialog((Component)e.getSource(),ResourceManager.getString("error.save.unsavedspace"),ResourceManager.getString("title.warning"),JOptionPane.WARNING_MESSAGE);return;}ImportWorkflowDialogdialog=newImportWorkflowDialog(... | 50,871 |
public java.io.Reader getDefaultStylesheet() { java.io.Reader reader = null; try { //TODO: weakness: if no configuration found, it bombs out. Should we be so reliable on correct config? Maybe a warning will do? String defaultStyleSheetLocation = Configuration.valueFor("xr.css.use... | public java.io.Reader getDefaultStylesheet() { java.io.Reader reader = null; try { //TODO: weakness: if no configuration found, it bombs out. Should we be so reliable on correct config? Maybe a warning will do? String defaultStyleSheetLocation = Configuration.valueFor("xr.css.use... | 50,873 |
public java.io.Reader getDefaultStylesheet() { java.io.Reader reader = null; try { //TODO: weakness: if no configuration found, it bombs out. Should we be so reliable on correct config? Maybe a warning will do? String defaultStyleSheetLocation = Configuration.valueFor("xr.css.use... | public java.io.Reader getDefaultStylesheet() { java.io.Reader reader = null; try { //TODO: weakness: if no configuration found, it bombs out. Should we be so reliable on correct config? Maybe a warning will do? String defaultStyleSheetLocation = Configuration.valueFor("xr.css.use... | 50,874 |
public java.io.Reader getDefaultStylesheet() { java.io.Reader reader = null; try { //TODO: weakness: if no configuration found, it bombs out. Should we be so reliable on correct config? Maybe a warning will do? String defaultStyleSheetLocation = Configuration.valueFor("xr.css.use... | public java.io.Reader getDefaultStylesheet() { java.io.Reader reader = null; try { //TODO: weakness: if no configuration found, it bombs out. Should we be so reliable on correct config? Maybe a warning will do? String defaultStyleSheetLocation = Configuration.valueFor("xr.css.use... | 50,875 |
public void reloadPage() throws Exception { logger.info("Reloading Page: "); if (manager.getBaseURL() != null) { loadPage(manager.getBaseURL()); } } | public void reloadPage() throws Exception { logger.info("Reloading Page: "); if (manager.getBaseURL() != null) { loadPage(manager.getBaseURL()); } } | 50,876 |
public static void callOnMessage(ConsumerDelegate cons, SessionDelegate sess, MessageListener listener, String receiverID, boolean isConnectionConsumer, ... | public static void callOnMessage(ConsumerDelegate cons, SessionDelegate sess, MessageListener listener, String receiverID, boolean isConnectionConsumer, ... | 50,877 |
public static void callOnMessage(ConsumerDelegate cons, SessionDelegate sess, MessageListener listener, String receiverID, boolean isConnectionConsumer, ... | public static void callOnMessage(ConsumerDelegate cons, SessionDelegate sess, MessageListener listener, String receiverID, boolean isConnectionConsumer, ... | 50,878 |
protected void cancelMessage(Message m) { try { consumerDelegate.cancelMessage(m.getJMSMessageID()); } catch (Exception e) { //It may be ok that we cannot cancel the message - e.g. //if the corresponding server consumer delegate is already closed //in which ... | protected void cancelMessage(Message m) { try { consumerDelegate.cancelMessage(m.getJMSMessageID()); } catch (Exception e) { //It may be ok that we cannot cancel the message - e.g. //if the corresponding server consumer delegate is already closed //in which ... | 50,879 |
public void handleCallback(Callback callback) throws HandleCallbackException { if (log.isTraceEnabled()) { log.trace("receiving message " + callback.getParameter() + " from the remoting layer"); } synchronized (closedLock) { Message m = (Message)callback.getParameter(); ... | public void handleCallback(Callback callback) throws HandleCallbackException { if (log.isTraceEnabled()) { log.trace("receiving message " + callback.getParameter() + " from the remoting layer"); } synchronized (closedLock) { Message m = (Message)callback.getParameter(); ... | 50,880 |
public void run() { if (log.isTraceEnabled()) { log.trace("listener thread started"); } try { while(true) { if (log.isTraceEnabled()) { log.trace("blocking to take a message"); } if (!stopping) { ... | public void run() { if (log.isTraceEnabled()) { log.trace("listener thread started"); } try { while(true) { if (log.isTraceEnabled()) { log.trace("blocking to take a message"); } if (!stopping) { ... | 50,881 |
public JComponent createComponent(Element elem) { u.p("created a button"); JButton comp = new JButton(); String label = elem.getAttribute("value"); comp.setText(label); return comp; } | public JComponent createComponent(Element elem) { JButton comp = new JButton(); String label = elem.getAttribute("value"); comp.setText(label); return comp; } | 50,882 |
public BlockAlignmentSupport(BlockDeviceAPI parentApi, int alignment) { this.parentApi = parentApi; this.alignment = alignment; if (alignment < 0) { throw new IllegalArgumentException("alignment < 0"); } } | public BlockAlignmentSupport(BlockDeviceAPI parentApi, int alignment) { this.parentApi = parentApi; this.alignment = alignment; if (alignment < 0) { throw new IllegalArgumentException("alignment < 0"); } } | 50,883 |
public void flush() throws IOException { parentApi.flush(); } | public void flush() throws IOException { parentApi.flush(); } | 50,884 |
public int getAlignment() { return alignment; } | public int getAlignment() { return alignment; } | 50,885 |
public long getLength() throws IOException { return parentApi.getLength(); } | public long getLength() throws IOException { return parentApi.getLength(); } | 50,886 |
public void read(long devOffset, ByteBuffer dest) throws IOException { //log.info("Original: devOffset="+ devOffset + " destOffset=" + destOffset + " length=" + length); //log.info("Original: alignment=" + alignment); if (dest.remaining() == 0) { return; } final int ofsMisAlign = (int)(devOffset % ali... | public void read(long devOffset, ByteBuffer dest) throws IOException { //log.info("Original: devOffset="+ devOffset + " destOffset=" + destOffset + " length=" + length); //log.info("Original: alignment=" + alignment); if (dest.remaining() == 0) { return; } final int ofsMisAlign = (int)(devOffset % ali... | 50,887 |
public void setAlignment(int i) { alignment = i; } | public void setAlignment(int i) { alignment = i; } | 50,888 |
public void write(long devOffset, ByteBuffer src) throws IOException { if (src.remaining() == 0) { return; } final int ofsMisAlign = (int)(devOffset % alignment); final int lenMisAlign = (src.remaining() % alignment); if ((ofsMisAlign != 0) || (lenMisAlign != 0)) { log.warn("Very expensive misaligned wr... | public void write(long devOffset, ByteBuffer src) throws IOException { if (src.remaining() == 0) { return; } final int ofsMisAlign = (int)(devOffset % alignment); final int lenMisAlign = (src.remaining() % alignment); if ((ofsMisAlign != 0) || (lenMisAlign != 0)) { log.warn("Very expensive misaligned wr... | 50,889 |
public void write(long devOffset, ByteBuffer src) throws IOException { if (src.remaining() == 0) { return; } final int ofsMisAlign = (int)(devOffset % alignment); final int lenMisAlign = (src.remaining() % alignment); if ((ofsMisAlign != 0) || (lenMisAlign != 0)) { log.warn("Very expensive misaligned wr... | public void write(long devOffset, ByteBuffer src) throws IOException { if (src.remaining() == 0) { return; } final int ofsMisAlign = (int)(devOffset % alignment); final int lenMisAlign = (src.remaining() % alignment); if ((ofsMisAlign != 0) || (lenMisAlign != 0)) { log.warn("Very expensive misaligned wr... | 50,890 |
protected void checkImplicitFinish(ActionDescriptor action, long id) throws WorkflowException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); WorkflowDescriptor wf = getConfiguration().getWorkflow(entry.getWorkflowName()); Collection currentSteps = st... | protected void checkImplicitFinish(ActionDescriptor action, long id) throws WorkflowException { WorkflowStore store = getPersistence(); WorkflowEntry entry = store.findEntry(id); WorkflowDescriptor wf = getConfiguration().getWorkflow(entry.getWorkflowName()); Collection currentSteps = st... | 50,891 |
static String collapseWhitespace(IdentValue whitespace, String text, boolean collapseLeading) { // do step 1 if (whitespace == IdentValue.NORMAL || whitespace == IdentValue.NOWRAP) { text = linefeed_space_collapse.matcher(text).replaceAll(EOL); } else if (whitespace == IdentValue.PRE... | static String collapseWhitespace(IdentValue whitespace, String text, boolean collapseLeading) { // do step 1 if (whitespace == IdentValue.NORMAL || whitespace == IdentValue.NOWRAP) { text = linefeed_space_collapse.matcher(text).replaceAll(EOL); } else if (whitespace == IdentValue.PRE... | 50,892 |
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); SimpleMetaData invocationMetaData = invocation.getMetaData(); if (... | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); SimpleMetaData invocationMetaData = invocation.getMetaData(); if (... | 50,893 |
public BlockContent( Element e, CascadedStyle style ) { _elem = e; _style = style; } | public BlockContent(Element e, CascadedStyle style) { _elem = e; _style = style; } | 50,894 |
public static void paintNormal(Context c, Box block, boolean restyle) { paintBackground(c, block); c.translateInsets(block); if (block instanceof TableBox) { TableRendering.paintTable(c, (TableBox) block, restyle); } else if (isInlineLayedOut(block)) { InlineRenderi... | public static void paintNormal(Context c, Box block, boolean restyle) { paintBackground(c, block); c.translateInsets(block); if (block instanceof TableBox) { TableRendering.paintTable(c, (TableBox) block, restyle); } else if (isInlineLayedOut(block)) { InlineRenderi... | 50,895 |
private void run(String args[]) { buildFrame(); directory = args[0]; SwingUtilities.invokeLater(new Runnable() { public void run() { try { html.getRenderingContext().setFontMapping("Ahem", Font.createFont(Font.TRUETYPE_FONT... | private void run(String args[]) { buildFrame(); directory = args[0]; SwingUtilities.invokeLater(new Runnable() { public void run() { try { html.getRenderingContext().setFontMapping("Ahem", Font.createFont(Font.TRUETYPE_FONT... | 50,896 |
public void run() { try { html.getRenderingContext().setFontMapping("Ahem", Font.createFont(Font.TRUETYPE_FONT, new URL("file://" + directory + "/support/AHEM____.TTF").openStream())); } catch (FontFormatException e) { ... | public void run() { try { html.getRenderingContext().setFontMapping("Ahem", Font.createFont(Font.TRUETYPE_FONT, new URL("file://" + directory + "/support/AHEM____.TTF").openStream())); } catch (FontFormatException e) { ... | 50,897 |
public List listMessagesDurableSub(String name, String clientID, String selector) throws JMSException { if (!started) { log.warn("Topic is stopped."); return new ArrayList(); } JBossTopic jbt = new JBossTopic(this.name); ManageableTopic t = (ManageableTopic)cm.getCoreD... | public List listMessagesDurableSub(String name, String clientID, String selector) throws JMSException { if (!started) { log.warn("Topic is stopped."); return new ArrayList(); } JBossTopic jbt = new JBossTopic(this.name); ManageableTopic t = (ManageableTopic)cm.getCoreD... | 50,899 |
public List listMessagesNonDurableSub(long channelID, String selector) throws JMSException { if (!started) { log.warn("Topic is stopped."); return new ArrayList(); } JBossTopic jbt = new JBossTopic(this.name); ManageableTopic t = (ManageableTopic)cm.getCoreDestin... | public List listMessagesNonDurableSub(long channelID, String selector) throws JMSException { if (!started) { log.warn("Topic is stopped."); return new ArrayList(); } JBossTopic jbt = new JBossTopic(this.name); ManageableTopic t = (ManageableTopic)cm.getCoreDestin... | 50,900 |
public String listSubscriptionsAsText() throws JMSException { if (!started) { log.warn("Topic is stopped."); return ""; } JBossTopic jbt = new JBossTopic(name); ManageableTopic t = (ManageableTopic)cm.getCoreDestination(jbt); return t.getSubscriptionsAsText(true) + t.g... | public String listSubscriptionsAsText() throws JMSException { if (!started) { log.warn("Topic is stopped."); return ""; } JBossTopic jbt = new JBossTopic(name); ManageableTopic t = (ManageableTopic)cm.getCoreDestination(jbt); return t.getSubscriptionsAsText(true) + t.g... | 50,901 |
public void removeAllMessages() throws JMSException { if (!started) { log.warn("Topic is stopped."); return; } JBossTopic jbt = new JBossTopic(name); ManageableTopic t = (ManageableTopic)cm.getCoreDestination(jbt); t.removeAllMessages(); } | public void removeAllMessages() throws JMSException { if (!started) { log.warn("Topic is stopped."); return; } JBossTopic jbt = new JBossTopic(name); ManageableTopic t = (ManageableTopic)cm.getCoreDestination(jbt); t.removeAllMessages(); } | 50,902 |
public int subscriptionCount() throws JMSException { if (!started) { log.warn("Topic is stopped."); return 0; } JBossTopic jbt = new JBossTopic(name); ManageableTopic t = (ManageableTopic)cm.getCoreDestination(jbt); return t.subscriptionCount(); } | public int subscriptionCount() throws JMSException { if (!started) { log.warn("Topic is stopped."); return 0; } JBossTopic jbt = new JBossTopic(name); ManageableTopic t = (ManageableTopic)cm.getCoreDestination(jbt); return t.subscriptionCount(); } | 50,903 |
public int hashCode() { return attributeMap.hashCode() + interfaceName.hashCode(); } | public int hashCode() { int hashcode = 0; Iterator it = attributeMap.values().iterator(); while (it.hasNext()) hashcode = hashcode + it.next().hashCode(); return hashcode; } | 50,905 |
public Attribute[] toArray() { int index = 0; Iterator it = attributeMap.entrySet().iterator(); Attribute[] array = new Attribute[size()]; while (it.hasNext()) { array[index] = (Attribute) it.next(); index++; } return array; } | public Attribute[] toArray() { int index = 0; Iterator it = attributeMap.values().iterator(); Attribute[] array = new Attribute[size()]; while (it.hasNext()) { array[index] = (Attribute) it.next(); index++; } return array; } | 50,906 |
public Rectangle getCellRect(int row, int column, boolean includeSpacing) { // moveToCellBeingEdited expects the cached value and clones it. // If the caching would be removed later, uplate moveToCellBeingEdited // as well. int height = getRowHe... | public Rectangle getCellRect(int row, int column, boolean includeSpacing) { // moveToCellBeingEdited expects the cached value and clones it. // If the caching would be removed later, uplate moveToCellBeingEdited // as well. int height = getRowHeight(row); int width = columnModel.getColumn(column).getWidth(); int x_g... | 50,907 |
public Rectangle getCellRect(int row, int column, boolean includeSpacing) { // moveToCellBeingEdited expects the cached value and clones it. // If the caching would be removed later, uplate moveToCellBeingEdited // as well. int height = getRowHe... | public Rectangle getCellRect(int row, int column, boolean includeSpacing) { // moveToCellBeingEdited expects the cached value and clones it. // If the caching would be removed later, uplate moveToCellBeingEdited // as well. int height = getRowHe... | 50,908 |
public Rectangle getCellRect(int row, int column, boolean includeSpacing) { // moveToCellBeingEdited expects the cached value and clones it. // If the caching would be removed later, uplate moveToCellBeingEdited // as well. int height = getRowHe... | public Rectangle getCellRect(int row, int column, boolean includeSpacing) { // moveToCellBeingEdited expects the cached value and clones it. // If the caching would be removed later, uplate moveToCellBeingEdited // as well. int height = getRowHe... | 50,909 |
private void moveToCellBeingEdited(Component component) { Rectangle r = getCellRect(editingRow, editingColumn, true); // Clone rectangle as getCellRect returns the cached value. component.setBounds(new Rectangle(r)); } | private void moveToCellBeingEdited(Component component) { Rectangle r = getCellRect(editingRow, editingColumn, true); // Clone rectangle as getCellRect returns the cached value. component.setBounds(r); } | 50,910 |
public TableModelEvent(TableModel source) { this(source, 0, source.getRowCount(), ALL_COLUMNS, UPDATE); } // TableModelEvent() | public TableModelEvent(TableModel source) { this(source, 0, source.getRowCount(), ALL_COLUMNS, UPDATE); } // TableModelEvent() | 50,911 |
public int getColumn() { return column; } // getColumn() | public int getColumn() { return column; } // getColumn() | 50,912 |
public int getLastRow() { return lastRow; } // getLastRow() | public int getLastRow() { return lastRow; } // getLastRow() | 50,913 |
public void run() { try { //log.info("in run(), numr=" + numRecoveries + " numMesages:" +numMessages); Message lastMessage = null; for (int j = 0; j < numRecoveries; j++) { for (int i = 0; i < numMessages; i++) ... | publicvoidrun(){try{//log.info("inrun(),numr="+numRecoveries+"numMesages:"+numMessages);MessagelastMessage=null;for(intj=0;j<numRecoveries;j++){for(inti=0;i<numMessages;i++){TextMessagetm=(TextMessage)cons.receive();lastMessage=tm;//log.info("Actual:"+tm.getIntProperty("JMSXDeliveryCount")+"expected:"+j);if(tm==null){f... | 50,914 |
public void run() { try { //log.info("in run(), numr=" + numRecoveries + " numMesages:" +numMessages); Message lastMessage = null; for (int j = 0; j < numRecoveries; j++) { for (int i = 0; i < numMessages; i++) ... | public void run(){ try {//log.info("in run(), numr=" + numRecoveries + " numMesages:" +numMessages);Message lastMessage = null;for (int j = 0; j < numRecoveries; j++){for (int i = 0; i < numMessages; i++) {TextMessage tm = (TextMessage)cons.receive();lastMessage = tm;//log.info("Actual: " + tm.getIntProperty("JMSXDeliv... | 50,915 |
public void run() { try { //log.info("in run(), numr=" + numRecoveries + " numMesages:" +numMessages); Message lastMessage = null; for (int j = 0; j < numRecoveries; j++) { for (int i = 0; i < numMessages; i++) ... | public void run() { try { //log.info("in run(), numr=" + numRecoveries + " numMesages:" +numMessages); Message lastMessage = null; for (int j = 0; j < numRecoveries; j++) { for (int i = 0; i < numMessages; i++) { TextMessage tm = (TextMessage)cons.receive(); lastMessage =... | 50,916 |
public void run() { try { //log.info("in run(), numr=" + numRecoveries + " numMesages:" +numMessages); Message lastMessage = null; for (int j = 0; j < numRecoveries; j++) { for (int i = 0; i < numMessages; i++) ... | public void run() { try { //log.info("in run(), numr=" + numRecoveries + " numMesages:" +numMessages); Message lastMessage = null; for (int j = 0; j < numRecoveries; j++) { for (int i = 0; i < numMessages; i++) ... | 50,917 |
public void run() { try { //log.info("in run(), numr=" + numRecoveries + " numMesages:" +numMessages); Message lastMessage = null; for (int j = 0; j < numRecoveries; j++) { for (int i = 0; i < numMessages; i++) ... | publicvoidrun(){try{//log.info("inrun(),numr="+numRecoveries+"numMesages:"+numMessages);MessagelastMessage=null;for(intj=0;j<numRecoveries;j++){for(inti=0;i<numMessages;i++){TextMessagetm=(TextMessage)cons.receive();lastMessage=tm;//log.info("Actual:"+tm.getIntProperty("JMSXDeliveryCount")+"expected:"+j);if(tm==null){f... | 50,918 |
public void testRedeliveryOnQueue() throws Exception { Connection conn = cf.createConnection(); Session sess1 = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer prod = sess1.createProducer(queue); prod.setDeliveryMode(DeliveryMode.NON_PERSISTENT); ... | public void testRedeliveryOnQueue() throws Exception { Connection conn = cf.createConnection(); Session sess1 = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer prod = sess1.createProducer(queue); prod.setDeliveryMode(DeliveryMode.NON_PERSISTENT); ... | 50,919 |
public void testRedeliveryOnQueue() throws Exception { Connection conn = cf.createConnection(); Session sess1 = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer prod = sess1.createProducer(queue); prod.setDeliveryMode(DeliveryMode.NON_PERSISTENT); ... | public void testRedeliveryOnQueue() throws Exception { Connection conn = cf.createConnection(); Session sess1 = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); MessageProducer prod = sess1.createProducer(queue); prod.setDeliveryMode(DeliveryMode.NON_PERSISTENT); ... | 50,920 |
public void testRedeliveryOnTopic() throws Exception { Connection conn = cf.createConnection(); conn.setClientID("myclientid"); Session sess1 = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageConsumer cons1 = sess1.createConsumer(topic); Session sess2 = conn... | public void testRedeliveryOnTopic() throws Exception { Connection conn = cf.createConnection(); conn.setClientID("myclientid"); Session sess1 = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageConsumer cons1 = sess1.createConsumer(topic); Session sess2 = conn... | 50,921 |
public static void layoutContent(final LayoutContext c, final BlockBox block, List contentList) { Boxing.StyleSetListener styleSetListener = new Boxing.StyleSetListener() { public void onStyleSet(BlockBox child) { boolean moved = false; if (child.getStyle(... | public static void layoutContent(final LayoutContext c, final BlockBox block, List contentList) { Boxing.StyleSetListener styleSetListener = new Boxing.StyleSetListener() { public void onStyleSet(BlockBox child) { boolean moved = false; if (child.getStyle(... | 50,922 |
private static void relayoutOnNewPage( LayoutContext c, List contentList, BlockBox block, StyleSetListener styleSetListener, RelayoutDataList relayoutDataList, int start, int end) { block.height = relayoutDataList.get(start).getInitialParentHeight(); block.expandToPa... | private static void relayoutOnNewPage( LayoutContext c, List contentList, BlockBox block, StyleSetListener styleSetListener, RelayoutDataList relayoutDataList, int start, int end) { block.height = relayoutDataList.get(start).getInitialParentHeight(); block.expandToPa... | 50,923 |
public Dimension getPreferredSize(JComponent c) { AbstractButton b = (AbstractButton)c; Dimension d = BasicGraphicsUtils.getPreferredSize(b, gap, b.getText(), b.getIcon(), b.getVerticalAlignment(), b.getHorizontalAlignment(), b.getHorizontalTextPosition(), ... | public Dimension getPreferredSize(JComponent c) { AbstractButton b = (AbstractButton)c; Dimension d = BasicGraphicsUtils.getPreferredSize(b, gap, b.getText(), b.getIcon(), b.getVerticalAlignment(), b.getHorizontalAlignment(), b.getHorizontalTextPosition(), ... | 50,924 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.