bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
protected void paintDeterminate(Graphics g, JComponent c) { Color saved = g.getColor(); int space = getCellSpacing(); int len = getCellLength(); int max = progressBar.getMaximum(); int min = progressBar.getMinimum(); int value = progressBar.getValue(); Rectangle vr = new Rectangle(); SwingUti...
protected void paintDeterminate(Graphics g, JComponent c) { Color saved = g.getColor(); int space = getCellSpacing(); int len = getCellLength(); int max = progressBar.getMaximum(); int min = progressBar.getMinimum(); int value = progressBar.getValue(); Rectangle vr = new Rectangle(); SwingUti...
57,529
protected void paintIndeterminate(Graphics g, JComponent c) { //need to paint the box at it's current position. no text is painted since //all we're doing is bouncing back and forth Color saved = g.getColor(); Insets insets = c.getInsets(); Rectangle or = c.getBounds(); Rectangle vr = new Rectangle...
protected void paintIndeterminate(Graphics g, JComponent c) { //need to paint the box at it's current position. no text is painted since //all we're doing is bouncing back and forth Color saved = g.getColor(); Insets insets = c.getInsets(); Rectangle or = c.getBounds(); Rectangle vr = new Rectangle...
57,530
protected void paintIndeterminate(Graphics g, JComponent c) { //need to paint the box at it's current position. no text is painted since //all we're doing is bouncing back and forth Color saved = g.getColor(); Insets insets = c.getInsets(); Rectangle or = c.getBounds(); Rectangle vr = new Rectangle...
protected void paintIndeterminate(Graphics g, JComponent c) { //need to paint the box at it's current position. no text is painted since //all we're doing is bouncing back and forth Color saved = g.getColor(); Insets insets = c.getInsets(); Rectangle or = c.getBounds(); Rectangle vr = new Rectangle...
57,531
protected void paintIndeterminate(Graphics g, JComponent c) { //need to paint the box at it's current position. no text is painted since //all we're doing is bouncing back and forth Color saved = g.getColor(); Insets insets = c.getInsets(); Rectangle or = c.getBounds(); Rectangle vr = new Rectangle...
protected void paintIndeterminate(Graphics g, JComponent c) { //need to paint the box at it's current position. no text is painted since //all we're doing is bouncing back and forth Color saved = g.getColor(); Insets insets = c.getInsets(); Rectangle or = c.getBounds(); Rectangle vr = new Rectangle...
57,532
protected void paintString(Graphics g, int x, int y, int width, int height, int amountFull, Insets b) { // We want to place in the exact center of the bar. Point placement = getStringPlacement(g, progressBar.getString(), x + b.left, y + b.top,...
protected void paintString(Graphics g, int x, int y, int width, int height, int amountFull, Insets b) { // We want to place in the exact center of the bar. Point placement = getStringPlacement(g, progressBar.getString(), x + b.left, y + b.top,...
57,533
protected void paintString(Graphics g, int x, int y, int width, int height, int amountFull, Insets b) { // We want to place in the exact center of the bar. Point placement = getStringPlacement(g, progressBar.getString(), x + b.left, y + b.top,...
protected void paintString(Graphics g, int x, int y, int width, int height, int amountFull, Insets b) { // We want to place in the exact center of the bar. Point placement = getStringPlacement(g, progressBar.getString(), x + b.left, y + b.top,...
57,534
protected void paintString(Graphics g, int x, int y, int width, int height, int amountFull, Insets b) { // We want to place in the exact center of the bar. Point placement = getStringPlacement(g, progressBar.getString(), x + b.left, y + b.top,...
protected void paintString(Graphics g, int x, int y, int width, int height, int amountFull, Insets b) { // We want to place in the exact center of the bar. Point placement = getStringPlacement(g, progressBar.getString(), x + b.left, y + b.top,...
57,535
ResourceManager() { }
protected ResourceManager() { }
57,537
public void commit(Xid xid, boolean onePhase, ConnectionDelegate connection) throws XAException { if (trace) { log.trace("commiting xid " + xid + ", onePhase=" + onePhase); } TxState tx = removeTx(xid); if (onePhase) { //Invalid xid if (tx == null) { ...
public void commit(Xid xid, boolean onePhase, ConnectionDelegate connection) throws XAException { if (trace) { log.trace("commiting xid " + xid + ", onePhase=" + onePhase); } TxState tx = removeTx(xid); if (onePhase) { //Invalid xid if (tx == null) { ...
57,540
public void commit(Xid xid, boolean onePhase, ConnectionDelegate connection) throws XAException { if (trace) { log.trace("commiting xid " + xid + ", onePhase=" + onePhase); } TxState tx = removeTx(xid); if (onePhase) { //Invalid xid if (tx == null) { ...
public void commit(Xid xid, boolean onePhase, ConnectionDelegate connection) throws XAException { if (trace) { log.trace("commiting xid " + xid + ", onePhase=" + onePhase); } TxState tx = removeTx(xid); if (onePhase) { //Invalid xid if (tx == null) { ...
57,541
public void commitLocal(LocalTxXid xid, ConnectionDelegate connection) throws JMSException { if (trace) { log.trace("commiting local xid " + xid); } TxState tx = removeTx(xid); //Invalid xid if (tx == null) { final String msg = "Cannot find transaction with xid:"; ...
public void commitLocal(LocalTx xid, ConnectionDelegate connection) throws JMSException { if (trace) { log.trace("commiting local xid " + xid); } TxState tx = removeTx(xid); //Invalid xid if (tx == null) { final String msg = "Cannot find transaction with xid:"; ...
57,543
public void commitLocal(LocalTxXid xid, ConnectionDelegate connection) throws JMSException { if (trace) { log.trace("commiting local xid " + xid); } TxState tx = removeTx(xid); //Invalid xid if (tx == null) { final String msg = "Cannot find transaction with xid:"; ...
public void commitLocal(LocalTxXid xid, ConnectionDelegate connection) throws JMSException { if (trace) { log.trace("commiting local xid " + xid); } TxState tx = removeTx(xid); //Invalid xid if (tx == null) { final String msg = "Cannot find transaction with xid:"; ...
57,544
public Xid convertTx(LocalTxXid anonXid, Xid xid) throws XAException { if (trace) { log.trace("converting " + anonXid + " to " + xid); } TxState state = getTx(anonXid); if (state == null) { log.error("Cannot find transaction with xid:" + anonXid); throw new XAException(...
protected Xid convertTx(LocalTx anonXid, Xid xid) throws XAException { if (trace) { log.trace("converting " + anonXid + " to " + xid); } TxState state = getTx(anonXid); if (state == null) { log.error("Cannot find transaction with xid:" + anonXid); throw new XAException(...
57,546
public Xid convertTx(LocalTxXid anonXid, Xid xid) throws XAException { if (trace) { log.trace("converting " + anonXid + " to " + xid); } TxState state = getTx(anonXid); if (state == null) { log.error("Cannot find transaction with xid:" + anonXid); throw new XAException(...
public Xid convertTx(LocalTxXid anonXid, Xid xid) throws XAException { if (trace) { log.trace("converting " + anonXid + " to " + xid); } TxState state = getTx(anonXid); if (state == null) { log.error("Cannot find transaction with xid:" + anonXid); throw new XAException(...
57,547
public Xid convertTx(LocalTxXid anonXid, Xid xid) throws XAException { if (trace) { log.trace("converting " + anonXid + " to " + xid); } TxState state = getTx(anonXid); if (state == null) { log.error("Cannot find transaction with xid:" + anonXid); throw new XAException(...
public Xid convertTx(LocalTxXid anonXid, Xid xid) throws XAException { if (trace) { log.trace("converting " + anonXid + " to " + xid); } TxState state = getTx(anonXid); if (state == null) { log.error("Cannot find transaction with xid:" + anonXid); throw new XAException(...
57,548
public LocalTxXid createLocalTx() { TxState tx = new TxState(); LocalTxXid xid = getNextTxId(); transactions.put(xid, tx); return xid; }
public LocalTx createLocalTx() { TxState tx = new TxState(); LocalTxXid xid = getNextTxId(); transactions.put(xid, tx); return xid; }
57,550
public LocalTxXid createLocalTx() { TxState tx = new TxState(); LocalTxXid xid = getNextTxId(); transactions.put(xid, tx); return xid; }
public LocalTxXid createLocalTx() { TxState tx = new TxState(); LocalTx xid = getNextTxId(); transactions.put(xid, tx); return xid; }
57,551
public void endTx(Xid xid, boolean success) throws XAException { if (trace) { log.trace("ending " + xid + ", success=" + success); } TxState state = getTx(xid); if (state == null) { log.error("Cannot find transaction with xid:" + xid); throw new XAException(XAExce...
protected void endTx(Xid xid, boolean success) throws XAException { if (trace) { log.trace("ending " + xid + ", success=" + success); } TxState state = getTx(xid); if (state == null) { log.error("Cannot find transaction with xid:" + xid); throw new XAException(XAE...
57,553
public void endTx(Xid xid, boolean success) throws XAException { if (trace) { log.trace("ending " + xid + ", success=" + success); } TxState state = getTx(xid); if (state == null) { log.error("Cannot find transaction with xid:" + xid); throw new XAException(XAExce...
public void endTx(Xid xid, boolean success) throws XAException { if (trace) { log.trace("ending " + xid + ", success=" + success); } TxState state = getTx(xid); if (state == null) { log.error("Cannot find transaction with xid:" + xid); throw new XAException(XAExce...
57,554
private synchronized LocalTxXid getNextTxId() { return new LocalTxXid(); }
private synchronized LocalTx getNextTxId() { return new LocalTxXid(); }
57,555
private synchronized LocalTxXid getNextTxId() { return new LocalTxXid(); }
private synchronized LocalTxXid getNextTxId() { return new LocalTx(); }
57,556
public Xid joinTx(Xid xid) throws XAException { if (trace) { log.trace("joining " + xid); } TxState state = getTx(xid); if (state == null) { log.error("Cannot find transaction with xid:" + xid); throw new XAException(XAException.XAER_NOTA); } return xi...
protected Xid joinTx(Xid xid) throws XAException { if (trace) { log.trace("joining " + xid); } TxState state = getTx(xid); if (state == null) { log.error("Cannot find transaction with xid:" + xid); throw new XAException(XAException.XAER_NOTA); } return...
57,558
public Xid joinTx(Xid xid) throws XAException { if (trace) { log.trace("joining " + xid); } TxState state = getTx(xid); if (state == null) { log.error("Cannot find transaction with xid:" + xid); throw new XAException(XAException.XAER_NOTA); } return xi...
public Xid joinTx(Xid xid) throws XAException { if (trace) { log.trace("joining " + xid); } TxState state = getTx(xid); if (state == null) { log.error("Cannot find transaction with xid:" + xid); throw new XAException(XAException.XAER_NOTA); } return xi...
57,559
public int prepare(Xid xid, ConnectionDelegate connection) throws XAException { if (trace) { log.trace("preparing " + xid); } TxState state = getTx(xid); if (state == null) { log.error("Cannot find transaction with xid:" + xid); throw new XAException(XAException.X...
protected int prepare(Xid xid, ConnectionDelegate connection) throws XAException { if (trace) { log.trace("preparing " + xid); } TxState state = getTx(xid); if (state == null) { log.error("Cannot find transaction with xid:" + xid); throw new XAException(XAExceptio...
57,561
public int prepare(Xid xid, ConnectionDelegate connection) throws XAException { if (trace) { log.trace("preparing " + xid); } TxState state = getTx(xid); if (state == null) { log.error("Cannot find transaction with xid:" + xid); throw new XAException(XAException.X...
public int prepare(Xid xid, ConnectionDelegate connection) throws XAException { if (trace) { log.trace("preparing " + xid); } TxState state = getTx(xid); if (state == null) { log.error("Cannot find transaction with xid:" + xid); throw new XAException(XAException.X...
57,562
public Xid[] recover(int flags, ConnectionDelegate conn) throws XAException { if (trace) { log.trace("calling recover with flags: " + flags); } if (flags == XAResource.TMSTARTRSCAN) { return conn.getPreparedTransactions(); } else { return new Xid[0]; } }
protected Xid[] recover(int flags, ConnectionDelegate conn) throws XAException { if (trace) { log.trace("calling recover with flags: " + flags); } if (flags == XAResource.TMSTARTRSCAN) { return conn.getPreparedTransactions(); } else { return new Xid[0]; } ...
57,564
public Xid resumeTx(Xid xid) throws XAException { if (trace) { log.trace("resuming " + xid); } TxState state = getTx(xid); if (state == null) { log.error("Cannot find transaction with xid:" + xid); throw new XAException(XAException.XAER_NOTA); } return x...
protected Xid resumeTx(Xid xid) throws XAException { if (trace) { log.trace("resuming " + xid); } TxState state = getTx(xid); if (state == null) { log.error("Cannot find transaction with xid:" + xid); throw new XAException(XAException.XAER_NOTA); } retur...
57,565
public Xid resumeTx(Xid xid) throws XAException { if (trace) { log.trace("resuming " + xid); } TxState state = getTx(xid); if (state == null) { log.error("Cannot find transaction with xid:" + xid); throw new XAException(XAException.XAER_NOTA); } return x...
public Xid resumeTx(Xid xid) throws XAException { if (trace) { log.trace("resuming " + xid); } TxState state = getTx(xid); if (state == null) { log.error("Cannot find transaction with xid:" + xid); throw new XAException(XAException.XAER_NOTA); } return x...
57,566
public void rollback(Xid xid, ConnectionDelegate connection) throws XAException { if (trace) { log.trace("Rolling back xid: " + xid); } TxState tx = removeTx(xid); log.trace("Rolling back xid: " + xid); TransactionRequest request = null; //We don't need to sen...
public void rollback(Xid xid, ConnectionDelegate connection) throws XAException { if (trace) { log.trace("Rolling back xid: " + xid); } TxState tx = removeTx(xid); TransactionRequest request = null; //We don't need to send the messages to the server on a rollba...
57,568
public void rollback(Xid xid, ConnectionDelegate connection) throws XAException { if (trace) { log.trace("Rolling back xid: " + xid); } TxState tx = removeTx(xid); log.trace("Rolling back xid: " + xid); TransactionRequest request = null; //We don't need to sen...
public void rollback(Xid xid, ConnectionDelegate connection) throws XAException { if (trace) { log.trace("Rolling back xid: " + xid); } TxState tx = removeTx(xid); log.trace("Rolling back xid: " + xid); TransactionRequest request = null; //We don't need to sen...
57,569
public void rollbackLocal(LocalTxXid xid, ConnectionDelegate connection) throws JMSException { if (trace) { log.trace("rolling back local xid " + xid); } TxState tx = removeTx(xid); if (tx == null) { final String msg = "Cannot find transaction with xid:" + xid; log.error(msg); ...
public void rollbackLocal(LocalTx xid, ConnectionDelegate connection) throws JMSException { if (trace) { log.trace("rolling back local xid " + xid); } TxState tx = removeTx(xid); if (tx == null) { final String msg = "Cannot find transaction with xid:" + xid; log.error(msg); ...
57,571
public void rollbackLocal(LocalTxXid xid, ConnectionDelegate connection) throws JMSException { if (trace) { log.trace("rolling back local xid " + xid); } TxState tx = removeTx(xid); if (tx == null) { final String msg = "Cannot find transaction with xid:" + xid; log.error(msg); ...
public void rollbackLocal(LocalTxXid xid, ConnectionDelegate connection) throws JMSException { if (trace) { log.trace("rolling back local xid " + xid); } TxState tx = removeTx(xid); if (tx == null) { final String msg = "Cannot find transaction with xid:" + xid; log.error(msg); ...
57,572
private void sendTransactionXA(TransactionRequest request, ConnectionDelegate connection) throws XAException { try { connection.sendTransaction(request); } catch (TransactionRolledBackException e) { log.error("An error occurred in sending transaction and the transactio...
private void sendTransactionXA(TransactionRequest request, ConnectionDelegate connection) throws XAException { try { connection.sendTransaction(request); } catch (TransactionRolledBackException e) { log.error("An error occurred in sending transaction and the transactio...
57,574
private void sendTransactionXA(TransactionRequest request, ConnectionDelegate connection) throws XAException { try { connection.sendTransaction(request); } catch (TransactionRolledBackException e) { log.error("An error occurred in sending transaction and the transactio...
private void sendTransactionXA(TransactionRequest request, ConnectionDelegate connection) throws XAException { try { connection.sendTransaction(request); } catch (TransactionRolledBackException e) { log.error("An error occurred in sending transaction and the transactio...
57,575
public Xid startTx(Xid xid) throws XAException { if (trace) { log.trace("starting " + xid); } TxState state = getTx(xid); if (state != null) { log.error("Transaction already exists with xid " + xid); throw new XAException(XAException.XAER_DUPID); } transactions.put(xid...
protected Xid startTx(Xid xid) throws XAException { if (trace) { log.trace("starting " + xid); } TxState state = getTx(xid); if (state != null) { log.error("Transaction already exists with xid " + xid); throw new XAException(XAException.XAER_DUPID); } transactions.put(...
57,576
public Xid startTx(Xid xid) throws XAException { if (trace) { log.trace("starting " + xid); } TxState state = getTx(xid); if (state != null) { log.error("Transaction already exists with xid " + xid); throw new XAException(XAException.XAER_DUPID); } transactions.put(xid...
public Xid startTx(Xid xid) throws XAException { if (trace) { log.trace("starting " + xid); } TxState state = getTx(xid); if (state != null) { log.error("Transaction already exists with xid " + xid); throw new XAException(XAException.XAER_DUPID); } transactions.put(xid...
57,577
public Xid suspendTx(Xid xid) throws XAException { if (trace) { log.trace("suppending " + xid); } TxState state = getTx(xid); if (state == null) { log.error("Cannot find transaction with xid:" + xid); throw new XAException(XAException.XAER_NOTA); } return xid;...
protected Xid suspendTx(Xid xid) throws XAException { if (trace) { log.trace("suppending " + xid); } TxState state = getTx(xid); if (state == null) { log.error("Cannot find transaction with xid:" + xid); throw new XAException(XAException.XAER_NOTA); } return x...
57,579
public Xid suspendTx(Xid xid) throws XAException { if (trace) { log.trace("suppending " + xid); } TxState state = getTx(xid); if (state == null) { log.error("Cannot find transaction with xid:" + xid); throw new XAException(XAException.XAER_NOTA); } return xid;...
public Xid suspendTx(Xid xid) throws XAException { if (trace) { log.trace("suspending " + xid); } TxState state = getTx(xid); if (state == null) { log.error("Cannot find transaction with xid:" + xid); throw new XAException(XAException.XAER_NOTA); } return xid;...
57,580
public Xid suspendTx(Xid xid) throws XAException { if (trace) { log.trace("suppending " + xid); } TxState state = getTx(xid); if (state == null) { log.error("Cannot find transaction with xid:" + xid); throw new XAException(XAException.XAER_NOTA); } return xid;...
public Xid suspendTx(Xid xid) throws XAException { if (trace) { log.trace("suppending " + xid); } TxState state = getTx(xid); if (state == null) { log.error("Cannot find transaction with xid:" + xid); throw new XAException(XAException.XAER_NOTA); } return xid;...
57,581
public void close() throws JMSException { try { closeLock.writeLock().acquire(); } catch (InterruptedException e) { // Ignore } try { if (trace) { log.trace("close()"); } if (closed) { log.warn("Connection is alread...
public void close() throws JMSException { try { closeLock.writeLock().acquire(); } catch (InterruptedException e) { // Ignore } try { if (trace) { log.trace("close()"); } if (closed) { log.warn("Connection is alread...
57,583
void addAsfMessage(Message m, String receiverID) { sessionDelegate.addAsfMessage(m, receiverID); }
void addAsfMessage(Message m, String receiverID, ConsumerDelegate cons) { sessionDelegate.addAsfMessage(m, receiverID); }
57,584
void addAsfMessage(Message m, String receiverID) { sessionDelegate.addAsfMessage(m, receiverID); }
void addAsfMessage(Message m, String receiverID) { sessionDelegate.addAsfMessage(m, receiverID, cons); }
57,585
public void paintTrack(Graphics g) { Color shadowColor = MetalLookAndFeel.getControlShadow(); if (slider.getOrientation() == JSlider.HORIZONTAL) { int trackX = trackRect.x; int trackY = trackRect.y + (trackRect.height - getTrackWidth()) / 2; int trackW = trackRect.width - 1; int ...
public void paintTrack(Graphics g) { Color shadowColor = MetalLookAndFeel.getControlShadow(); if (slider.getOrientation() == JSlider.HORIZONTAL) { int trackX = trackRect.x; int trackY = trackRect.y + (trackRect.height - getTrackWidth()) / 2; int trackW = trackRect.width; int trac...
57,586
public void paintTrack(Graphics g) { Color shadowColor = MetalLookAndFeel.getControlShadow(); if (slider.getOrientation() == JSlider.HORIZONTAL) { int trackX = trackRect.x; int trackY = trackRect.y + (trackRect.height - getTrackWidth()) / 2; int trackW = trackRect.width - 1; int ...
public void paintTrack(Graphics g) { Color shadowColor = MetalLookAndFeel.getControlShadow(); if (slider.getOrientation() == JSlider.HORIZONTAL) { int trackX = trackRect.x; int trackY = trackRect.y + (trackRect.height - getTrackWidth()) / 2; int trackW = trackRect.width - 1; int ...
57,587
ServerConsumerEndpoint(String id, Channel channel, InvokerCallbackHandler callbackHandler, ServerSessionEndpoint sessionEndpoint, String selector, boolean noLocal) throws InvalidSelectorException { log.debug("creating ConsumerEndpoint[" + Util.guidToString(id) + "]"); ...
ServerConsumerEndpoint(String id, Channel channel, InvokerCallbackHandler callbackHandler, ServerSessionEndpoint sessionEndpoint, String selector, boolean noLocal) throws InvalidSelectorException { log.debug("creating ConsumerEndpoint[" + Util.guidToString(id) + "]"); ...
57,588
ServerConsumerEndpoint(String id, Channel channel, InvokerCallbackHandler callbackHandler, ServerSessionEndpoint sessionEndpoint, String selector, boolean noLocal) throws InvalidSelectorException { log.debug("creating ConsumerEndpoint[" + Util.guidToString(id) + "]"); ...
ServerConsumerEndpoint(String id, Channel channel, InvokerCallbackHandler callbackHandler, ServerSessionEndpoint sessionEndpoint, String selector, boolean noLocal) throws InvalidSelectorException { log.debug("creating ConsumerEndpoint[" + id + "]"); this.id = id; ...
57,589
ServerConsumerEndpoint(String id, Channel channel, InvokerCallbackHandler callbackHandler, ServerSessionEndpoint sessionEndpoint, String selector, boolean noLocal) throws InvalidSelectorException { log.debug("creating ConsumerEndpoint[" + Util.guidToString(id) + "]"); ...
ServerConsumerEndpoint(String id, Channel channel, InvokerCallbackHandler callbackHandler, ServerSessionEndpoint sessionEndpoint, String selector, boolean noLocal) throws InvalidSelectorException { log.debug("creating ConsumerEndpoint[" + Util.guidToString(id) + "]"); ...
57,590
ServerConsumerEndpoint(String id, Channel channel, InvokerCallbackHandler callbackHandler, ServerSessionEndpoint sessionEndpoint, String selector, boolean noLocal) throws InvalidSelectorException { log.debug("creating ConsumerEndpoint[" + Util.guidToString(id) + "]"); ...
ServerConsumerEndpoint(String id, Channel channel, InvokerCallbackHandler callbackHandler, ServerSessionEndpoint sessionEndpoint, String selector, boolean noLocal) throws InvalidSelectorException { log.debug("creating ConsumerEndpoint[" + Util.guidToString(id) + "]"); ...
57,591
ServerConsumerEndpoint(String id, Channel channel, InvokerCallbackHandler callbackHandler, ServerSessionEndpoint sessionEndpoint, String selector, boolean noLocal) throws InvalidSelectorException { log.debug("creating ConsumerEndpoint[" + Util.guidToString(id) + "]"); ...
ServerConsumerEndpoint(String id, Channel channel, InvokerCallbackHandler callbackHandler, ServerSessionEndpoint sessionEndpoint, String selector, boolean noLocal) throws InvalidSelectorException { log.debug("creating ConsumerEndpoint[" + Util.guidToString(id) + "]"); ...
57,592
public boolean accept(Routable r) { boolean accept = true; if (messageSelector != null) { accept = messageSelector.accept(r); if (log.isTraceEnabled()) { log.trace("message selector " + (accept ? "accepts " : "DOES NOT accept ") + "the message"); } } if (acc...
public boolean accept(Routable r) { boolean accept = true; if (messageSelector != null) { accept = messageSelector.accept(r); if (trace) { log.trace("message selector " + (accept ? "accepts " : "DOES NOT accept ") + "the message"); } } if (accept) { ...
57,593
public boolean accept(Routable r) { boolean accept = true; if (messageSelector != null) { accept = messageSelector.accept(r); if (log.isTraceEnabled()) { log.trace("message selector " + (accept ? "accepts " : "DOES NOT accept ") + "the message"); } } if (acc...
public boolean accept(Routable r) { boolean accept = true; if (messageSelector != null) { accept = messageSelector.accept(r); if (log.isTraceEnabled()) { log.trace("message selector " + (accept ? "accepts " : "DOES NOT accept ") + "the message"); } } if (acc...
57,594
void acknowledge(String messageID, Transaction tx) throws JMSException { if (log.isTraceEnabled()) { log.trace("acknowledging " + messageID); } SingleReceiverDelivery d = null; if (tx == null) { //No transaction so we remove the delivery now d = (SingleReceiverDelive...
void acknowledge(String messageID, Transaction tx) throws JMSException { if (trace) { log.trace("acknowledging " + messageID); } SingleReceiverDelivery d = null; if (tx == null) { //No transaction so we remove the delivery now d = (SingleReceiverDelivery)deliveries.r...
57,595
public void activate() throws JMSException { synchronized (channel) { if (closed) { //Do nothing return; } active = true; if (log.isTraceEnabled()) { log.trace(this + " just activated"); } promptDelivery(); } }
public void activate() throws JMSException { synchronized (channel) { if (closed) { //Do nothing return; } active = true; if (trace) { log.trace(this + " just activated"); } promptDelivery(); } }
57,596
void cancelAllDeliveries() throws JMSException { if (log.isTraceEnabled()) { log.trace(this + " cancels deliveries"); } //Need to cancel starting at the end of the list and working to the front //in order that the messages end up back in the correct order in the channel List t...
void cancelAllDeliveries() throws JMSException { if (trace) { log.trace(this + " cancels deliveries"); } //Need to cancel starting at the end of the list and working to the front //in order that the messages end up back in the correct order in the channel List toCancel = new A...
57,597
void cancelAllDeliveries() throws JMSException { if (log.isTraceEnabled()) { log.trace(this + " cancels deliveries"); } //Need to cancel starting at the end of the list and working to the front //in order that the messages end up back in the correct order in the channel List t...
void cancelAllDeliveries() throws JMSException { if (log.isTraceEnabled()) { log.trace(this + " cancels deliveries"); } //Need to cancel starting at the end of the list and working to the front //in order that the messages end up back in the correct order in the channel List t...
57,598
public void close() throws JMSException { if (closed) { throw new IllegalStateException("Consumer is already closed"); } if (log.isTraceEnabled()) { log.trace(this + " close"); } closed = true; // On close we only disconnect the consumer from the Channel we d...
public void close() throws JMSException { if (closed) { throw new IllegalStateException("Consumer is already closed"); } if (trace) { log.trace(this + " close"); } closed = true; // On close we only disconnect the consumer from the Channel we don't actually r...
57,599
public void close() throws JMSException { if (closed) { throw new IllegalStateException("Consumer is already closed"); } if (log.isTraceEnabled()) { log.trace(this + " close"); } closed = true; // On close we only disconnect the consumer from the Channel we d...
public void close() throws JMSException { if (closed) { throw new IllegalStateException("Consumer is already closed"); } if (log.isTraceEnabled()) { log.trace(this + " close"); } closed = true; // On close we only disconnect the consumer from the Channel we d...
57,600
public void closing() throws JMSException { if (log.isTraceEnabled()) { log.trace(this + " closing"); } }
public void closing() throws JMSException { if (trace) { log.trace(this + " closing"); } }
57,601
public void deactivate() throws JMSException { synchronized (channel) { active = false; if (log.isTraceEnabled()) { log.trace(this + " deactivated"); } } }
public void deactivate() throws JMSException { synchronized (channel) { active = false; if (trace) { log.trace(this + " deactivated"); } } }
57,602
protected void disconnect() { boolean removed = channel.remove(this); if (removed) { disconnected = true; if (log.isTraceEnabled()) { log.trace(this + " disconnected from the channel"); } } }
protected void disconnect() { boolean removed = channel.remove(this); if (removed) { disconnected = true; if (trace) { log.trace(this + " disconnected from the channel"); } } }
57,603
public javax.jms.Message getMessageNow() throws JMSException { synchronized (channel) { try { grabbing = true; //This will always deliver a message (if there is one) on the same thread promptDelivery(); ...
public javax.jms.Message getMessageNow(boolean wait) throws JMSException { synchronized (channel) { try { grabbing = true; //This will always deliver a message (if there is one) on the same thread promptDelivery(); ...
57,604
public Delivery handle(DeliveryObserver observer, Routable reference, Transaction tx) { if (log.isTraceEnabled()) { log.trace(this + " receives reference " + Util.guidToString(reference.getMessageID()) + " for delivery"); } if (!isReady()) { if (log.isTraceEnabled()) { log.trace(this + " rej...
public Delivery handle(DeliveryObserver observer, Routable reference, Transaction tx) { if (trace) { log.trace(this + " receives reference " + Util.guidToString(reference.getMessageID()) + " for delivery"); } if (!isReady()) { if (log.isTraceEnabled()) { log.trace(this + " rejects " + Util.g...
57,606
public Delivery handle(DeliveryObserver observer, Routable reference, Transaction tx) { if (log.isTraceEnabled()) { log.trace(this + " receives reference " + Util.guidToString(reference.getMessageID()) + " for delivery"); } if (!isReady()) { if (log.isTraceEnabled()) { log.trace(this + " rej...
public Delivery handle(DeliveryObserver observer, Routable reference, Transaction tx) { if (log.isTraceEnabled()) { log.trace(this + " receives reference " + Util.guidToString(reference.getMessageID()) + " for delivery"); } if (!isReady()) { if (trace) { log.trace(this + " rejects " + Util.g...
57,607
public Delivery handle(DeliveryObserver observer, Routable reference, Transaction tx) { if (log.isTraceEnabled()) { log.trace(this + " receives reference " + Util.guidToString(reference.getMessageID()) + " for delivery"); } if (!isReady()) { if (log.isTraceEnabled()) { log.trace(this + " rej...
public Delivery handle(DeliveryObserver observer, Routable reference, Transaction tx) { if (log.isTraceEnabled()) { log.trace(this + " receives reference " + Util.guidToString(reference.getMessageID()) + " for delivery"); } if (!isReady()) { if (log.isTraceEnabled()) { log.trace(this + " rej...
57,608
public Delivery handle(DeliveryObserver observer, Routable reference, Transaction tx) { if (log.isTraceEnabled()) { log.trace(this + " receives reference " + Util.guidToString(reference.getMessageID()) + " for delivery"); } if (!isReady()) { if (log.isTraceEnabled()) { log.trace(this + " rej...
public Delivery handle(DeliveryObserver observer, Routable reference, Transaction tx) { if (log.isTraceEnabled()) { log.trace(this + " receives reference " + Util.guidToString(reference.getMessageID()) + " for delivery"); } if (!isReady()) { if (log.isTraceEnabled()) { log.trace(this + " rej...
57,609
protected boolean isReady() { // If the client side consumer is not ready to accept a message and have it sent to it // or we're not grabbing a message for receiveNoWait we return null to refuse the message if (!active && !grabbing) { if (log.isTraceEnabled()) { log.trace(this + " not r...
protected boolean isReady() { // If the client side consumer is not ready to accept a message and have it sent to it // or we're not grabbing a message for receiveNoWait we return null to refuse the message if (!active && !grabbing) { if (trace) { log.trace(this + " not ready"); } ...
57,610
protected boolean isReady() { // If the client side consumer is not ready to accept a message and have it sent to it // or we're not grabbing a message for receiveNoWait we return null to refuse the message if (!active && !grabbing) { if (log.isTraceEnabled()) { log.trace(this + " not r...
protected boolean isReady() { // If the client side consumer is not ready to accept a message and have it sent to it // or we're not grabbing a message for receiveNoWait we return null to refuse the message if (!active && !grabbing) { if (log.isTraceEnabled()) { log.trace(this + " not r...
57,611
protected void promptDelivery() { if (active || grabbing) { if (log.isTraceEnabled()) { log.trace(this + " prompts delivery"); } channel.deliver(this); } }
protected void promptDelivery() { if (active || grabbing) { if (trace) { log.trace(this + " prompts delivery"); } channel.deliver(this); } }
57,612
void remove() throws JMSException { if (log.isTraceEnabled()) log.trace("attempting to remove receiver " + this + " from destination " + channel); for(Iterator i = deliveries.values().iterator(); i.hasNext(); ) { SingleReceiverDelivery d = (SingleReceiverDelivery)i.next(); try ...
void remove() throws JMSException { if (trace) log.trace("attempting to remove receiver " + this + " from destination " + channel); for(Iterator i = deliveries.values().iterator(); i.hasNext(); ) { SingleReceiverDelivery d = (SingleReceiverDelivery)i.next(); try { ...
57,613
void remove() throws JMSException { if (log.isTraceEnabled()) log.trace("attempting to remove receiver " + this + " from destination " + channel); for(Iterator i = deliveries.values().iterator(); i.hasNext(); ) { SingleReceiverDelivery d = (SingleReceiverDelivery)i.next(); try ...
void remove() throws JMSException { if (log.isTraceEnabled()) log.trace("attempting to remove receiver " + this + " from destination " + channel); for(Iterator i = deliveries.values().iterator(); i.hasNext(); ) { SingleReceiverDelivery d = (SingleReceiverDelivery)i.next(); try ...
57,614
void remove() throws JMSException { if (log.isTraceEnabled()) log.trace("attempting to remove receiver " + this + " from destination " + channel); for(Iterator i = deliveries.values().iterator(); i.hasNext(); ) { SingleReceiverDelivery d = (SingleReceiverDelivery)i.next(); try ...
void remove() throws JMSException { if (log.isTraceEnabled()) log.trace("attempting to remove receiver " + this + " from destination " + channel); for(Iterator i = deliveries.values().iterator(); i.hasNext(); ) { SingleReceiverDelivery d = (SingleReceiverDelivery)i.next(); try ...
57,615
void setStarted(boolean started) { if (log.isTraceEnabled()) { log.trace(this + (started ? " started" : " stopped")); } this.started = started; if (started) { //need to prompt delivery promptDelivery(); } }
void setStarted(boolean started) { if (trace) { log.trace(this + (started ? " started" : " stopped")); } this.started = started; if (started) { //need to prompt delivery promptDelivery(); } }
57,616
public String toString() { return "ConsumerEndpoint[" + Util.guidToString(id) + "]" + (active ? "(active)" : ""); }
public String toString() { return "ConsumerEndpoint[" + id + "]" + (active ? "(active)" : ""); }
57,617
private void doExpandParents(TreePath path, boolean state) { TreePath parent = path.getParentPath(); if (isExpanded(parent)) { nodeStates.put(path, state ? EXPANDED : COLLAPSED); return; } if (parent != null) doExpandParents(parent, false); nodeStates.put(path, state ? EXPANDED : COLLAP...
private void doExpandParents(TreePath path, boolean state) { TreePath parent = path.getParentPath(); if (isExpanded(parent)) { nodeStates.put(path, state ? EXPANDED : COLLAPSED); return; } if (parent != null) doExpandParents(parent, false); nodeStates.put(path, state ? EXPANDED : COLLAP...
57,619
private void doExpandParents(TreePath path, boolean state) { TreePath parent = path.getParentPath(); if (isExpanded(parent)) { nodeStates.put(path, state ? EXPANDED : COLLAPSED); return; } if (parent != null) doExpandParents(parent, false); nodeStates.put(path, state ? EXPANDED : COLLAP...
private void doExpandParents(TreePath path, boolean state) { TreePath parent = path.getParentPath(); if (isExpanded(parent)) { nodeStates.put(path, state ? EXPANDED : COLLAPSED); return; } if (!isExpanded(parent) && parent != null) doExpandParents(parent, false); nodeStates.put(path, st...
57,620
protected void setExpandedState(TreePath path, boolean state) { if (path == null) return; TreePath parent = path.getParentPath(); doExpandParents(path, state); }
protectedvoidsetExpandedState(TreePathpath,booleanstate){if(path==null)return;TreePathparent=path.getParentPath();doExpandParents(path,state);}
57,622
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o =...
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o =...
57,623
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o =...
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o =...
57,624
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o =...
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o =...
57,625
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o =...
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o =...
57,626
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o =...
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o =...
57,627
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o =...
public static void layoutContent(Context c, Box box, List contentList, Box block) { // prepare for the list items int old_counter = c.getListCounter(); c.setListCounter(0); Iterator contentIterator = contentList.iterator(); while (contentIterator.hasNext()) { Object o =...
57,628
public boolean containsAttribute(Object name, Object value) { return tab.containsKey(name) && tab.get(name).equals(value); }
public boolean containsAttribute(Object name, Object value) { return tab.containsKey(name) && tab.get(name).equals(value); }
57,629
public boolean isEqual(AttributeSet attr) { return attr != null && attr.containsAttributes(this) && this.containsAttributes(attr); }
public boolean isEqual(AttributeSet attr) { return attr != null && attr.containsAttributes(this) && this.containsAttributes(attr); }
57,630
public void removeAttributes(AttributeSet attributes) { removeAttributes(attributes.getAttributeNames()); }
public void removeAttributes(AttributeSet attributes) { Enumeration e = attributes.getAttributeNames(); while (e.hasMoreElements()) { Object name = e.nextElement(); Object val = attributes.getAttribute(name); if (containsAttributeLocally(name, val)) removeAttribute(name); } }
57,631
private boolean handleConfiguration(boolean loaded, String conf) { String[] confs = getRealConfs(conf); if (_md != null) { for (int i = 0; i < confs.length; i++) { Configuration c = _md.getConfiguration(confs[i]); if (c == null) { _confsToFet...
private boolean handleConfiguration(boolean loaded, String conf, boolean shouldBePublic) { String[] confs = getRealConfs(conf); if (_md != null) { for (int i = 0; i < confs.length; i++) { Configuration c = _md.getConfiguration(confs[i]); if (c == null) { ...
57,632
private boolean handleConfiguration(boolean loaded, String conf) { String[] confs = getRealConfs(conf); if (_md != null) { for (int i = 0; i < confs.length; i++) { Configuration c = _md.getConfiguration(confs[i]); if (c == null) { _confsToFet...
private boolean handleConfiguration(boolean loaded, String conf) { String[] confs = getRealConfs(conf); if (_md != null) { for (int i = 0; i < confs.length; i++) { Configuration c = _md.getConfiguration(confs[i]); if (c == null) { _confsToFet...
57,633
public boolean loadData(String conf) { boolean loaded = false; if (!isEvicted(_rootModuleConf) && (hasConfigurationsToLoad() || !isRootModuleConfLoaded()) && !hasProblem()) { markRootModuleConfLoaded(); if (_md == null) { DependencyResolver resolver = _data.getIvy(...
public boolean loadData(String conf, boolean shouldBePublic) { boolean loaded = false; if (!isEvicted(_rootModuleConf) && (hasConfigurationsToLoad() || !isRootModuleConfLoaded()) && !hasProblem()) { markRootModuleConfLoaded(); if (_md == null) { DependencyResolver ...
57,634
public boolean loadData(String conf) { boolean loaded = false; if (!isEvicted(_rootModuleConf) && (hasConfigurationsToLoad() || !isRootModuleConfLoaded()) && !hasProblem()) { markRootModuleConfLoaded(); if (_md == null) { DependencyResolver resolver = _data.getIvy(...
public boolean loadData(String conf) { boolean loaded = false; if (!isEvicted(_rootModuleConf) && (hasConfigurationsToLoad() || !isRootModuleConfLoaded()) && !hasProblem()) { markRootModuleConfLoaded(); if (_md == null) { DependencyResolver resolver = _data.getIvy(...
57,635
public boolean loadData(String conf) { boolean loaded = false; if (!isEvicted(_rootModuleConf) && (hasConfigurationsToLoad() || !isRootModuleConfLoaded()) && !hasProblem()) { markRootModuleConfLoaded(); if (_md == null) { DependencyResolver resolver = _data.getIvy(...
public boolean loadData(String conf) { boolean loaded = false; if (!isEvicted(_rootModuleConf) && (hasConfigurationsToLoad() || !isRootModuleConfLoaded()) && !hasProblem()) { markRootModuleConfLoaded(); if (_md == null) { DependencyResolver resolver = _data.getIvy(...
57,636
public boolean loadData(String conf) { boolean loaded = false; if (!isEvicted(_rootModuleConf) && (hasConfigurationsToLoad() || !isRootModuleConfLoaded()) && !hasProblem()) { markRootModuleConfLoaded(); if (_md == null) { DependencyResolver resolver = _data.getIvy(...
public boolean loadData(String conf) { boolean loaded = false; if (!isEvicted(_rootModuleConf) && (hasConfigurationsToLoad() || !isRootModuleConfLoaded()) && !hasProblem()) { markRootModuleConfLoaded(); if (_md == null) { DependencyResolver resolver = _data.getIvy(...
57,637
public void testJMSDestination() throws Exception { Message m1 = queueProducerSession.createMessage(); //Test with correlation id containing a message id final String messageID = "ID:812739812378"; m1.setJMSCorrelationID(messageID); queueProducer.send(m1); Message m2 = qu...
public void testJMSDestination() throws Exception { Message m1 = queueProducerSession.createMessage(); //Test with correlation id containing a message id final String messageID = "ID:812739812378"; m1.setJMSCorrelationID(messageID); queueProducer.send(m1); Message m2 = qu...
57,638
protected String paramString() { return "JSeparator"; }
protected String paramString() { String superParamStr = super.paramString(); if (orientation == HORIZONTAL) return superParamStr + ",orientation=HORIZONTAL"; else return superParamStr + ",orientation=VERTICAL"; }
57,639
public boolean isForceMarqueeEvent(MouseEvent e) { // If Right Mouse Button we want to Display the PopupMenu if(SwingUtilities.isRightMouseButton(e) || e.isPopupTrigger()) // Return Immediately return true; // Find and Remember Port port = getSourcePortAt(e.getPoint()); // If Port Found and in...
public boolean isForceMarqueeEvent(MouseEvent e) { // If Right Mouse Button we want to Display the PopupMenu if(SwingUtilities.isRightMouseButton(e) || e.isPopupTrigger()) // Return Immediately return true; // Find and Remember Port port = graph.getPortViewAt(e.getX(), e.getY()); // If Port Fo...
57,641
public boolean isForceMarqueeEvent(MouseEvent e) { // If Right Mouse Button we want to Display the PopupMenu if(SwingUtilities.isRightMouseButton(e) || e.isPopupTrigger()) // Return Immediately return true; // Find and Remember Port port = getSourcePortAt(e.getPoint()); // If Port Found and in...
public boolean isForceMarqueeEvent(MouseEvent e) { // If Right Mouse Button we want to Display the PopupMenu if(SwingUtilities.isRightMouseButton(e) || e.isPopupTrigger()) // Return Immediately { int edgeCount = ((WorkflowPort)port.getCell()).getEdgeCount(); if(edgeCount == 0) return true; } // Fi...
57,642
public void mouseDragged(MouseEvent e) { // If remembered Start Point is Valid if(start != null && !e.isConsumed()) { // ready to connect readyToConnect = true; // Fetch Graphics from Graph Graphics g = graph.getGraphics(); // Xor-Paint the old Connector (Hide old Connector) pa...
public void mouseDragged(MouseEvent e) { // If remembered Start Point is Valid if(start != null && !e.isConsumed()) { // ready to connect readyToConnect = true; // Fetch Graphics from Graph Graphics g = graph.getGraphics(); // Xor-Paint the old Connector (Hide old Connector) pa...
57,643
public void mouseMoved(MouseEvent e) { // Check Mode and Find Port if(e != null && getSourcePortAt(e.getPoint()) != null && !e.isConsumed()) { // Set Cusor on Graph (Automatically Reset) graph.setCursor(new Cursor(Cursor.HAND_CURSOR)); // Consume Event e.consume(); } // Call Superc...
public void mouseMoved(MouseEvent e) { // Check Mode and Find Port PortView portView = graph.getPortViewAt(e.getX(), e.getY()); if(portView != null && !e.isConsumed()) { // Set Cusor on Graph (Automatically Reset) graph.setCursor(new Cursor(Cursor.HAND_CURSOR)); // Consume Event e.consum...
57,644
public void mouseMoved(MouseEvent e) { // Check Mode and Find Port if(e != null && getSourcePortAt(e.getPoint()) != null && !e.isConsumed()) { // Set Cusor on Graph (Automatically Reset) graph.setCursor(new Cursor(Cursor.HAND_CURSOR)); // Consume Event e.consume(); } // Call Superc...
public void mouseMoved(MouseEvent e) { // Check Mode and Find Port if(e != null && getSourcePortAt(e.getPoint()) != null && !e.isConsumed()) { // Set Cusor on Graph (Automatically Reset) graph.setCursor(new Cursor(Cursor.HAND_CURSOR)); // Consume Event e.consume(); } // Call Superc...
57,645
public void mouseReleased(MouseEvent e) { // If Valid Event, Current and First Port // first connect first is OK if(e != null && !e.isConsumed() && port != null && firstPort != null && readyToConnect) { readyToConnect = false; // Then Establish Connection WorkflowCell source = (WorkflowCel...
public void mouseReleased(MouseEvent e) { // If Valid Event, Current and First Port // first connect first is OK if(e != null && !e.isConsumed() && port != null && firstPort != null && readyToConnect) { readyToConnect = false; // Then Establish Connection WorkflowCell source = (WorkflowCel...
57,646
protected void paintPort(Graphics g) { // If Current Port is Valid if(port != null) { // If Not Floating Port... boolean isFloating = (GraphConstants.getOffset(port.getAttributes()) != null); // ...Then use Parent's Bounds Rectangle2D r = isFloating ? port.getBounds() : port.getParentVie...
protected void paintPort(Graphics g) { // If Current Port is Valid if(port != null) { // If Not Floating Port... // ...Then use Parent's Bounds Rectangle2D r = isFloating ? port.getBounds() : port.getParentView().getBounds(); // Scale from Model to Screen r = graph.toScreen(r)...
57,647