bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public void paint(Graphics g, Shape s) { // Ensure metrics are up-to-date. updateMetrics(); JTextComponent textComponent = (JTextComponent) getContainer(); g.setFont(textComponent.getFont()); selectedColor = textComponent.getSelectedTextColor(); unselectedColor = textComponent.getForeground... | public void paint(Graphics g, Shape s) { // Ensure metrics are up-to-date. updateMetrics(); JTextComponent textComponent = (JTextComponent) getContainer(); selectedColor = textComponent.getSelectedTextColor(); unselectedColor = textComponent.getForeground(); disabledColor = textComponen... | 27,455 |
public DelegateSupport(int objectID) { this.id = objectID; } | public DelegateSupport(int id) { this.id = objectID; } | 27,456 |
public DelegateSupport(int objectID) { this.id = objectID; } | public DelegateSupport(int objectID) { this.id = id; this.state = null; } | 27,457 |
public void run() { //Small pause so as not to miss any messages in a topic try { Thread.sleep(1000); } catch (InterruptedException e) { } try { int iterations = numMessages / commitSize; for (int outerCount = 0; ... | public void run() { //Small pause so as not to miss any messages in a topic try { Thread.sleep(1000); } catch (InterruptedException e) { } try { int iterations = numMessages / commitSize; for (int outerCount = 0; ... | 27,459 |
public void run() { //Small pause so as not to miss any messages in a topic try { Thread.sleep(1000); } catch (InterruptedException e) { } try { int iterations = numMessages / commitSize; for (int outerCount = 0; ... | public void run() { //Small pause so as not to miss any messages in a topic try { Thread.sleep(1000); } catch (InterruptedException e) { } try { int iterations = numMessages / commitSize; for (int outerCount = 0; ... | 27,461 |
public void actionPerformed(ActionEvent evt) { try { String url_text = root.panel.url.getText(); root.panel.loadPage(url_text); root.panel.view.repaint(); } catch (Exception ex) { Uu.p(ex); ... | public void actionPerformed(ActionEvent evt) { try { String url_text = root.panel.url.getText(); root.panel.loadPage(url_text); root.panel.view.repaint(); } catch (Exception ex) { Uu.p(ex); ... | 27,463 |
static void checkNCName(String name, boolean xml11) { checkName(name, xml11); int len = name.length(); int index = name.indexOf(':'); if (index != -1) { if (index == 0 || name.lastIndexOf(':') != index) { throw new DomDOMException(DOMException.NAMESPACE_ERR, ... | static void checkNCName(String name, boolean xml11) { checkName(name, xml11); int len = name.length(); int index = name.indexOf(':'); if (index != -1) { if (index == 0 || index == (len - 1) || name.lastIndexOf(':') != index) { throw new DomDOMException(DOMException.NAMESPA... | 27,464 |
public Element getElementById(String id) { if (id == null || id.length() == 0) { return null; } DomDoctype doctype = (DomDoctype) getDoctype(); if (doctype != null && !doctype.hasIds()) { doctype = null; } // yes, this is linear in size of document. // it'd be eas... | public Element getElementById(String id) { if (id == null || id.length() == 0) { return null; } DomDoctype doctype = (DomDoctype) getDoctype(); if (doctype != null && !doctype.hasIds()) { doctype = null; } // yes, this is linear in size of document. // it'd be eas... | 27,465 |
public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.info("Got message " + tm.getText() + " count=" + count); if (count == 1) { ... | public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.trace("Got message " + tm.getText() + " count=" + count); if (count == 1) { ... | 27,468 |
public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.info("Got message " + tm.getText() + " count=" + count); if (count == 1) { ... | public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.info("Got message " + tm.getText() + " count=" + count); if (count == 1) { ... | 27,469 |
public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.info("Got message " + tm.getText() + " count=" + count); if (count == 1) { ... | public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.info("Got message " + tm.getText() + " count=" + count); if (count == 1) { ... | 27,470 |
public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.info("Got message " + tm.getText() + " count=" + count); if (count == 1) { ... | public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.info("Got message " + tm.getText() + " count=" + count); if (count == 1) { ... | 27,471 |
public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.info("Got message " + tm.getText() + " count=" + count); if (count == 1) { ... | public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.info("Got message " + tm.getText() + " count=" + count); if (count == 1) { ... | 27,472 |
public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.info("Got message " + tm.getText() + " count=" + count); if (count == 1) { ... | public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.info("Got message " + tm.getText() + " count=" + count); if (count == 1) { ... | 27,473 |
public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.info("Got message " + tm.getText() + " count=" + count); if (count == 1) { ... | public synchronized void onMessage(Message message) { try { count++; TextMessage tm = (TextMessage)message; log.info("Got message " + tm.getText() + " count=" + count); if (count == 1) { ... | 27,474 |
public void close() throws javax.jms.JMSException { if (trace) { log.trace("close " + this); } closed = true; if (trace) { log.trace("Closed message handler"); } internalThread.interrupt(); try { internalThread.join(3000); if (internalThread... | public void close() throws JMSException { if (trace) { log.trace("close " + this); } closed = true; if (trace) { log.trace("Closed message handler"); } internalThread.interrupt(); try { internalThread.join(3000); if (internalThread.isAlive()... | 27,475 |
public void close() throws javax.jms.JMSException { if (trace) { log.trace("close " + this); } closed = true; if (trace) { log.trace("Closed message handler"); } internalThread.interrupt(); try { internalThread.join(3000); if (internalThread... | public void close() throws javax.jms.JMSException { if (trace) { log.trace("close " + this); } doClose(); if (trace) { log.trace("Closed message handler"); } internalThread.interrupt(); try { internalThread.join(3000); if (internalThread.isA... | 27,476 |
public void close() throws javax.jms.JMSException { if (trace) { log.trace("close " + this); } closed = true; if (trace) { log.trace("Closed message handler"); } internalThread.interrupt(); try { internalThread.join(3000); if (internalThread... | public void close() throws javax.jms.JMSException { if (trace) { log.trace("close " + this); } closed = true; if (trace) { log.trace(this + " Waiting for internal thread to complete"); } internalThread.interrupt(); try { internalThread.join(3000); ... | 27,477 |
public void close() throws javax.jms.JMSException { if (trace) { log.trace("close " + this); } closed = true; if (trace) { log.trace("Closed message handler"); } internalThread.interrupt(); try { internalThread.join(3000); if (internalThread... | public void close() throws javax.jms.JMSException { if (trace) { log.trace("close " + this); } closed = true; if (trace) { log.trace("Closed message handler"); } try { internalThread.join(3000); if (internalThread.isAlive()) { ... | 27,478 |
public void close() throws javax.jms.JMSException { if (trace) { log.trace("close " + this); } closed = true; if (trace) { log.trace("Closed message handler"); } internalThread.interrupt(); try { internalThread.join(3000); if (internalThread... | public void close() throws javax.jms.JMSException { if (trace) { log.trace("close " + this); } closed = true; if (trace) { log.trace("Closed message handler"); } internalThread.interrupt(); try { internalThread.join(TIMEOUT); if (internalThr... | 27,479 |
public void close() throws javax.jms.JMSException { if (trace) { log.trace("close " + this); } closed = true; if (trace) { log.trace("Closed message handler"); } internalThread.interrupt(); try { internalThread.join(3000); if (internalThread... | public void close() throws javax.jms.JMSException { if (trace) { log.trace("close " + this); } closed = true; if (trace) { log.trace("Closed message handler"); } internalThread.interrupt(); try { internalThread.join(3000); if (internalThread... | 27,480 |
public void close() throws javax.jms.JMSException { if (trace) { log.trace("close " + this); } closed = true; if (trace) { log.trace("Closed message handler"); } internalThread.interrupt(); try { internalThread.join(3000); if (internalThread... | public void close() throws javax.jms.JMSException { if (trace) { log.trace("close " + this); } closed = true; if (trace) { log.trace("Closed message handler"); } internalThread.interrupt(); try { internalThread.join(3000); if (internalThread... | 27,481 |
public void close() throws javax.jms.JMSException { if (trace) { log.trace("close " + this); } closed = true; if (trace) { log.trace("Closed message handler"); } internalThread.interrupt(); try { internalThread.join(3000); if (internalThread... | public void close() throws javax.jms.JMSException { if (trace) { log.trace("close " + this); } closed = true; if (trace) { log.trace("Closed message handler"); } internalThread.interrupt(); try { internalThread.join(3000); if (internalThread... | 27,482 |
public BaseThroughputJob(String serverURL, String destinationName, int numConnections, int numSessions, boolean transacted, int transactionSize, int numMessages) { super(serverURL, destinationName); this.numConnections = numConnections; this.numSessions = numSessions; this.transacted = ... | public BaseThroughputJob(String slaveURL, String serverURL, String destinationName, int numConnections, int numSessions, boolean transacted, int transactionSize, int numMessages) { super(serverURL, destinationName); this.numConnections = numConnections; this.numSessions = numSessions; t... | 27,484 |
public BaseThroughputJob(String serverURL, String destinationName, int numConnections, int numSessions, boolean transacted, int transactionSize, int numMessages) { super(serverURL, destinationName); this.numConnections = numConnections; this.numSessions = numSessions; this.transacted = ... | public BaseThroughputJob(String serverURL, String destinationName, int numConnections, int numSessions, boolean transacted, int transactionSize, int numMessages) { super(slaveURL, serverURL, destinationName); this.numConnections = numConnections; this.numSessions = numSessions; this.tra... | 27,485 |
protected void logInfo() { super.logInfo(); log.info("Number of connections: " + numConnections); log.info("Numbe of concurrent sessions: " + numSessions); log.info("Transacted?: " + transacted); log.info("Transaction size: " + transactionSize); log.info("Num messages:" + numMes... | protected void logInfo() { super.logInfo(); log.info("Number of connections: " + numConnections); log.info("Numbe of concurrent sessions: " + numSessions); log.info("Transacted?: " + transacted); log.info("Transaction size: " + transactionSize); log.info("Num messages:" + numMes... | 27,486 |
public void run() { try { startTime = System.currentTimeMillis(); log.info("==============Running job:"); setup(); logInfo(); runTest(); tearDown(); log.info("================Finished running job"); } catch (Exception e) ... | public void run() { try { startTime = System.currentTimeMillis(); log.info("==============Running job:" + this); setup(); logInfo(); runTest(); tearDown(); log.info("================Finished running job"); } catch (Except... | 27,487 |
select(int selectionStart, int selectionEnd){ if (selectionStart < 0) selectionStart = 0; if (selectionStart > getText().length()) selectionStart = text.length(); if (selectionEnd > text.length()) selectionEnd = text.length(); if (selectionStart > getSelectionEnd()) selectionStart = selectionEnd; this.sele... | select(int selectionStart, int selectionEnd){ if (selectionStart < 0) selectionStart = 0; if (selectionStart > getText().length()) selectionStart = text.length(); if (selectionEnd > text.length()) selectionEnd = text.length(); if (selectionStart > selectionEnd) selectionStart = selectionEnd; this.selection... | 27,489 |
public Properties getClusteredPostOfficeSQLProperties() throws Exception { String databaseType = getDatabaseType(); String persistenceConfigFile; if (databaseType.equals("hsqldb")) { persistenceConfigFile = "server/default/deploy/" + databaseType + "-persistence-service.xml";... | public Properties getClusteredPostOfficeSQLProperties() throws Exception { String databaseType = getDatabaseType(); String persistenceConfigFile; if (databaseType.equals("hsqldb")) { persistenceConfigFile = "server/default/deploy/" + databaseType + "-persistence-service.xml";... | 27,490 |
public Properties getPostOfficeSQLProperties() throws Exception { String databaseType = getDatabaseType(); String persistenceConfigFile = "server/default/deploy/" + databaseType + "-persistence-service.xml"; log.info("********* Using config file: " + persistenceConfigFile); URL persiste... | public Properties getPostOfficeSQLProperties() throws Exception { String databaseType = getDatabaseType(); String persistenceConfigFile = "server/default/deploy/" + databaseType + "-persistence-service.xml"; log.info("********* Using config file: " + persistenceConfigFile); URL persiste... | 27,491 |
public void afterCommit() { for(Iterator i = refs.iterator(); i.hasNext(); ) { MessageReference ref = (MessageReference)i.next(); if (log.isTraceEnabled()) { log.trace(this + ": adding " + ref + " to non-recoverable state"); } boolean first = messageRefs.addLa... | public void afterCommit() { for(Iterator i = refs.iterator(); i.hasNext(); ) { MessageReference ref = (MessageReference)i.next(); if (trace) { log.trace(this + ": adding " + ref + " to non-recoverable state"); } boolean first = messageRefs.addLast(ref, ref.get... | 27,492 |
public void afterRollback() { for(Iterator i = refs.iterator(); i.hasNext(); ) { MessageReference ref = (MessageReference)i.next(); if (log.isTraceEnabled()) { log.trace(this + " releasing reference for " + ref + " after rollback"); } ref.release(); } ... | public void afterRollback() { for(Iterator i = refs.iterator(); i.hasNext(); ) { MessageReference ref = (MessageReference)i.next(); if (trace) { log.trace(this + " releasing reference for " + ref + " after rollback"); } ref.release(); } txToAdd... | 27,493 |
public void afterCommit() { for(Iterator i = dels.iterator(); i.hasNext(); ) { Delivery d = (Delivery)i.next(); if (log.isTraceEnabled()) { log.trace(this + " removing " + d + " after commit"); } deliveries.remove(d); d.getReference().release(); ... | public void afterCommit() { for(Iterator i = dels.iterator(); i.hasNext(); ) { Delivery d = (Delivery)i.next(); if (trace) { log.trace(this + " removing " + d + " after commit"); } deliveries.remove(d); d.getReference().release(); if (log... | 27,494 |
public void afterCommit() { for(Iterator i = dels.iterator(); i.hasNext(); ) { Delivery d = (Delivery)i.next(); if (log.isTraceEnabled()) { log.trace(this + " removing " + d + " after commit"); } deliveries.remove(d); d.getReference().release(); ... | public void afterCommit() { for(Iterator i = dels.iterator(); i.hasNext(); ) { Delivery d = (Delivery)i.next(); if (log.isTraceEnabled()) { log.trace(this + " removing " + d + " after commit"); } deliveries.remove(d); d.getReference().release(); ... | 27,495 |
public void acknowledge(Delivery d, Transaction tx) throws Throwable { // Transactional so add a post commit callback to remove after tx commit RemoveDeliveryCallback callback = addRemoveDeliveryCallback(tx); callback.addDelivery(d); if (log.isTraceEnabled()) { log.trace(this + " ad... | public void acknowledge(Delivery d, Transaction tx) throws Throwable { // Transactional so add a post commit callback to remove after tx commit RemoveDeliveryCallback callback = addRemoveDeliveryCallback(tx); callback.addDelivery(d); if (trace) { log.trace(this + " added " + d + " t... | 27,496 |
public void addDelivery(Delivery d) throws Throwable { deliveries.add(d); if (log.isTraceEnabled()) { log.trace(this + " added " + d + " to memory"); } } | public void addDelivery(Delivery d) throws Throwable { deliveries.add(d); if (trace) { log.trace(this + " added " + d + " to memory"); } } | 27,497 |
public void addReference(MessageReference ref, Transaction tx) throws Throwable { if (log.isTraceEnabled()) { log.trace(this + " adding " + ref + "transactionally in transaction: " + tx); } if (ref.isReliable() && !acceptReliableMessages) { // this transaction has no chance to succeed, since... | public void addReference(MessageReference ref, Transaction tx) throws Throwable { if (trace) { log.trace(this + " adding " + ref + "transactionally in transaction: " + tx); } if (ref.isReliable() && !acceptReliableMessages) { // this transaction has no chance to succeed, since a reliable mes... | 27,498 |
public void addReference(MessageReference ref, Transaction tx) throws Throwable { if (log.isTraceEnabled()) { log.trace(this + " adding " + ref + "transactionally in transaction: " + tx); } if (ref.isReliable() && !acceptReliableMessages) { // this transaction has no chance to succeed, since... | public void addReference(MessageReference ref, Transaction tx) throws Throwable { if (log.isTraceEnabled()) { log.trace(this + " adding " + ref + "transactionally in transaction: " + tx); } if (ref.isReliable() && !acceptReliableMessages) { // this transaction has no chance to succeed, since... | 27,499 |
public void addReference(MessageReference ref, Transaction tx) throws Throwable { if (log.isTraceEnabled()) { log.trace(this + " adding " + ref + "transactionally in transaction: " + tx); } if (ref.isReliable() && !acceptReliableMessages) { // this transaction has no chance to succeed, since... | public void addReference(MessageReference ref, Transaction tx) throws Throwable { if (log.isTraceEnabled()) { log.trace(this + " adding " + ref + "transactionally in transaction: " + tx); } if (ref.isReliable() && !acceptReliableMessages) { // this transaction has no chance to succeed, since... | 27,500 |
public void cancelDelivery(Delivery del) throws Throwable { if (log.isTraceEnabled()) { log.trace(this + " cancelling " + del + " in memory"); } boolean removed = deliveries.remove(del); if (!removed) { //This is ok //This can happen if the message is cancelled befor... | public void cancelDelivery(Delivery del) throws Throwable { if (trace) { log.trace(this + " cancelling " + del + " in memory"); } boolean removed = deliveries.remove(del); if (!removed) { //This is ok //This can happen if the message is cancelled before the result of... | 27,501 |
public void cancelDelivery(Delivery del) throws Throwable { if (log.isTraceEnabled()) { log.trace(this + " cancelling " + del + " in memory"); } boolean removed = deliveries.remove(del); if (!removed) { //This is ok //This can happen if the message is cancelled befor... | public void cancelDelivery(Delivery del) throws Throwable { if (log.isTraceEnabled()) { log.trace(this + " cancelling " + del + " in memory"); } boolean removed = deliveries.remove(del); if (!removed) { //This is ok //This can happen if the message is cancelled befor... | 27,502 |
public void cancelDelivery(Delivery del) throws Throwable { if (log.isTraceEnabled()) { log.trace(this + " cancelling " + del + " in memory"); } boolean removed = deliveries.remove(del); if (!removed) { //This is ok //This can happen if the message is cancelled befor... | public void cancelDelivery(Delivery del) throws Throwable { if (log.isTraceEnabled()) { log.trace(this + " cancelling " + del + " in memory"); } boolean removed = deliveries.remove(del); if (!removed) { //This is ok //This can happen if the message is cancelled befor... | 27,503 |
public List delivering(Filter filter) { List delivering = new ArrayList(); synchronized (deliveries) { for(Iterator i = deliveries.iterator(); i.hasNext(); ) { Delivery d = (Delivery)i.next(); MessageReference r = d.getReference(); // TODO: I need to ... | public List delivering(Filter filter) { List delivering = new ArrayList(); synchronized (deliveries) { for(Iterator i = deliveries.iterator(); i.hasNext(); ) { Delivery d = (Delivery)i.next(); MessageReference r = d.getReference(); // TODO: I need to ... | 27,504 |
public MessageReference peekFirst() { MessageReference result = (MessageReference)messageRefs.peekFirst(); if (log.isTraceEnabled()) { log.trace(this + " peeking the oldest message in memory returns " + result); } return result; } | public MessageReference peekFirst() { MessageReference result = (MessageReference)messageRefs.peekFirst(); if (trace) { log.trace(this + " peeking the oldest message in memory returns " + result); } return result; } | 27,505 |
public MessageReference removeFirst() { MessageReference result = (MessageReference)messageRefs.removeFirst(); if (log.isTraceEnabled()) { log.trace(this + " removing the oldest message in memory returns " + result); } return result; } | public MessageReference removeFirst() { MessageReference result = (MessageReference)messageRefs.removeFirst(); if (trace) { log.trace(this + " removing the oldest message in memory returns " + result); } return result; } | 27,506 |
public List undelivered(Filter filter) { List undelivered = new ArrayList(); synchronized(messageRefs) { Iterator iter = messageRefs.getAll().iterator(); while (iter.hasNext()) { MessageReference r = (MessageReference)iter.next(); // TODO: I need to dere... | public List undelivered(Filter filter) { List undelivered = new ArrayList(); synchronized(messageRefs) { Iterator iter = messageRefs.getAll().iterator(); while (iter.hasNext()) { MessageReference r = (MessageReference)iter.next(); // TODO: I need to dere... | 27,507 |
public List undelivered(Filter filter) { List undelivered = new ArrayList(); synchronized(messageRefs) { Iterator iter = messageRefs.getAll().iterator(); while (iter.hasNext()) { MessageReference r = (MessageReference)iter.next(); // TODO: I need to dere... | public List undelivered(Filter filter) { List undelivered = new ArrayList(); synchronized(messageRefs) { Iterator iter = messageRefs.getAll().iterator(); while (iter.hasNext()) { MessageReference r = (MessageReference)iter.next(); // TODO: I need to dere... | 27,508 |
public void paintImmediately(Rectangle r) { /// Paint the specified region now. paintImmediately((int)r.getX(), (int)r.getY(), (int)r.getWidth(), (int)r.getHeight()); } | public void paintImmediately(Rectangle r) { /// Paint the specified region now. paintImmediately((int)r.getX(), (int)r.getY(), (int)r.getWidth(), (int)r.getHeight()); } | 27,509 |
protected Document createDefaultModel() { return new PlainDocument(); } | protected Document createDefaultModel() { return new PlainDocument() { public void insertString(int offset, String str, AttributeSet a) throws BadLocationException { if (str.indexOf('\n') == -1) super.insertString(offset, str, a); } }; } | 27,510 |
public void insertString(int offset, String text, AttributeSet attributes) throws BadLocationException { // Just return when no text to insert was given. if (text == null || text.length() == 0) return; DefaultDocumentEvent event = new DefaultDocumentEvent(offset, text.length(), Documen... | public void insertString(int offset, String text, AttributeSet attributes) throws BadLocationException { // Just return when no text to insert was given. if (text == null || text.length() == 0) return; DefaultDocumentEvent event = new DefaultDocumentEvent(offset, text.length(), Documen... | 27,511 |
public void insertString(int offset, String text, AttributeSet attributes) throws BadLocationException { // Just return when no text to insert was given. if (text == null || text.length() == 0) return; DefaultDocumentEvent event = new DefaultDocumentEvent(offset, text.length(), Documen... | public void insertString(int offset, String text, AttributeSet attributes) throws BadLocationException { // Just return when no text to insert was given. if (text == null || text.length() == 0) return; DefaultDocumentEvent event = new DefaultDocumentEvent(offset, text.length(), Documen... | 27,512 |
public int[] getRowsForPaths(TreePath[] paths) throws NotImplementedException { return null; // TODO } | public int[] getRowsForPaths(TreePath[] paths) { return null; // TODO } | 27,513 |
public int[] getRowsForPaths(TreePath[] paths) throws NotImplementedException { return null; // TODO } | public int[] getRowsForPaths(TreePath[] paths) throws NotImplementedException { int[] rows = new int[paths.length]; for (int i = 0; i < rows.length; i++) rows[i] = getRowForPath(paths[i]); return rows; // TODO } | 27,514 |
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createConnectionDelegate".equals(methodName)) { if (lo... | 27,515 |
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | 27,516 |
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | 27,517 |
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | 27,518 |
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | 27,519 |
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | 27,520 |
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | 27,521 |
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | 27,522 |
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | 27,523 |
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | 27,524 |
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | 27,525 |
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | 27,526 |
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | 27,527 |
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | 27,528 |
public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | public Object invoke(Invocation invocation) throws Throwable { if (invocation instanceof MethodInvocation) { MethodInvocation mi = (MethodInvocation)invocation; String methodName = mi.getMethod().getName(); if ("createSessionDelegate".equals(methodName)) { ... | 27,529 |
public Class getCategory() { return MultipleDocumentHandling.class; } | public final Class getCategory() { return MultipleDocumentHandling.class; } | 27,530 |
public String getName() { return "multiple-document-handling"; } | public final String getName() { return "multiple-document-handling"; } | 27,531 |
public boolean passesCondition(Map transientVars, Map args, PropertySet ps) throws StoreException { int stepId = TextUtils.parseInt((String) args.get("stepId")); WorkflowContext context = (WorkflowContext) transientVars.get("context"); WorkflowEntry entry = (WorkflowEntry) transientVars.get("en... | public boolean passesCondition(Map transientVars, Map args, PropertySet ps) throws StoreException { int stepId = TextUtils.parseInt((String) args.get("stepId")); WorkflowContext context = (WorkflowContext) transientVars.get("context"); WorkflowEntry entry = (WorkflowEntry) transientVars.get("en... | 27,532 |
public boolean passesCondition(Map transientVars, Map args, PropertySet ps) throws StoreException { int stepId = TextUtils.parseInt((String) args.get("stepId")); WorkflowContext context = (WorkflowContext) transientVars.get("context"); WorkflowEntry entry = (WorkflowEntry) transientVars.get("en... | public boolean passesCondition(Map transientVars, Map args, PropertySet ps) throws StoreException { int stepId = TextUtils.parseInt((String) args.get("stepId")); WorkflowContext context = (WorkflowContext) transientVars.get("context"); WorkflowEntry entry = (WorkflowEntry) transientVars.get("en... | 27,533 |
public static List stripInlineContent(Context c, List inlineContent) { LinkedList stripped = new LinkedList(); LinkedList pendingStylePushes = new LinkedList(); boolean collapse = false; //boolean allWhitespace = true; for (Iterator i = inlineContent.iterator(); i.hasNext();) { ... | public static List stripInlineContent(Context c, List inlineContent) { LinkedList stripped = new LinkedList(); LinkedList pendingStylePushes = new LinkedList(); boolean collapse = false; //boolean allWhitespace = true; for (Iterator i = inlineContent.iterator(); i.hasNext();) { ... | 27,535 |
public void valueChanged(TreeSelectionEvent ev) { TreeSelectionEvent rewritten = (TreeSelectionEvent) ev.cloneWithSource(JTree.this); fireValueChanged(rewritten); JTree.this.repaint(); } | public void valueChanged(TreeSelectionEvent ev) { TreeSelectionEvent rewritten = (TreeSelectionEvent) ev.cloneWithSource(JTree.this); fireValueChanged(rewritten); TreePath[] changed = ev.getPaths(); for (int i = 0; i < changed.length; i++) { repaint(getPathBounds(changed[i])); } } | 27,539 |
public void expandPath(TreePath path) { // Don't expand if path is null if (path == null) return; try { fireTreeWillExpand(path); } catch (ExpandVetoException ev) { // We do nothing if attempt has been vetoed. } setExpandedState(path, true); fireTreeExpanded(p... | public void expandPath(TreePath path) { // Don't expand if path is null if (path == null || isExpanded(path)) return; try { fireTreeWillExpand(path); } catch (ExpandVetoException ev) { // We do nothing if attempt has been vetoed. } setExpandedState(path, true); ... | 27,540 |
public TreePath getLeadSelectionPath() { return leadSelectionPath; } | public TreePath getLeadSelectionPath() { if (selectionModel == null) return null; else return selectionModel.getLeadSelectionPath(); } | 27,541 |
public void scrollPathToVisible(TreePath path) { if (path == null) return; Object[] oPath = path.getPath(); TreePath temp = new TreePath(oPath[0]); boolean stop = false; int i = 1; while (!stop) { while (isVisible(temp)) if (i < oPath.length) temp = temp.pathByA... | public void scrollPathToVisible(TreePath path) { if (path == null) return; Object[] oPath = path.getPath(); TreePath temp = new TreePath(oPath[0]); boolean stop = false; int i = 1; while (!stop) { while (isVisible(temp)) if (i < oPath.length) temp = temp.pathByA... | 27,542 |
public void scrollPathToVisible(TreePath path) { if (path == null) return; Object[] oPath = path.getPath(); TreePath temp = new TreePath(oPath[0]); boolean stop = false; int i = 1; while (!stop) { while (isVisible(temp)) if (i < oPath.length) temp = temp.pathByA... | public void scrollPathToVisible(TreePath path) { if (path == null) return; Object[] oPath = path.getPath(); TreePath temp = new TreePath(oPath[0]); boolean stop = false; int i = 1; while (!stop) { while (isVisible(temp)) if (i < oPath.length) temp = temp.pathByA... | 27,543 |
public void setLeadSelectionPath(TreePath path) { if (leadSelectionPath == path) return; TreePath oldValue = leadSelectionPath; leadSelectionPath = path; firePropertyChange(LEAD_SELECTION_PATH_PROPERTY, oldValue, path); } | public void setLeadSelectionPath(TreePath path) { if (selectionModel != null) { TreePath oldValue = selectionModel.getLeadSelectionPath(); if (path.equals(oldValue)) return; TreePath oldValue = leadSelectionPath; leadSelectionPath = path; firePropertyChange(LEAD_SELECTION_PATH_PROPERTY, oldValue... | 27,544 |
public void setLeadSelectionPath(TreePath path) { if (leadSelectionPath == path) return; TreePath oldValue = leadSelectionPath; leadSelectionPath = path; firePropertyChange(LEAD_SELECTION_PATH_PROPERTY, oldValue, path); } | public void setLeadSelectionPath(TreePath path) { if (leadSelectionPath == path) return; TreePath oldValue = leadSelectionPath; leadSelectionPath = path; firePropertyChange(LEAD_SELECTION_PATH_PROPERTY, oldValue, path); } | 27,545 |
public void valueChanged(TreeSelectionEvent event); | void valueChanged(TreeSelectionEvent event); | 27,547 |
public void treeCollapsed(TreeExpansionEvent event); | void treeCollapsed(TreeExpansionEvent event); | 27,549 |
public void treeExpanded(TreeExpansionEvent event); | void treeExpanded(TreeExpansionEvent event); | 27,550 |
public TreePath(Object element) { path = new Object[1]; path[0] = element; } | public TreePath(Object[] path) { path = new Object[1]; path[0] = element; } | 27,551 |
public TreePath(Object element) { path = new Object[1]; path[0] = element; } | public TreePath(Object element) { path = new Object[1]; path[0] = element; } | 27,552 |
public void keyPressed(KeyEvent e) { TreeModel mod = BasicTreeUI.this.tree.getModel(); TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); Object last = null; if (start != null) last = start.getLastPathComponent(); if (last != null) { // DOWN, KP... | public void keyPressed(KeyEvent e) TreeModel mod = BasicTreeUI.this.tree.getModel(); TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); Object last = null; if (start != null) last = start.getLastPathComponent(); if (last != null) // DOWN, KP_D... | 27,555 |
public void keyPressed(KeyEvent e) { TreeModel mod = BasicTreeUI.this.tree.getModel(); TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); Object last = null; if (start != null) last = start.getLastPathComponent(); if (last != null) { // DOWN, KP... | public void keyPressed(KeyEvent e) { TreeModel mod = BasicTreeUI.this.tree.getModel(); TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); Object last = null; if (start != null) last = start.getLastPathComponent(); if (last != null) { // DOWN, KP... | 27,556 |
public void keyPressed(KeyEvent e) { TreeModel mod = BasicTreeUI.this.tree.getModel(); TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); Object last = null; if (start != null) last = start.getLastPathComponent(); if (last != null) { // DOWN, KP... | public void keyPressed(KeyEvent e) { TreeModel mod = BasicTreeUI.this.tree.getModel(); TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); Object last = null; if (start != null) last = start.getLastPathComponent(); if (last != null) { // DOWN, KP... | 27,557 |
public void keyPressed(KeyEvent e) { TreeModel mod = BasicTreeUI.this.tree.getModel(); TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); Object last = null; if (start != null) last = start.getLastPathComponent(); if (last != null) { // DOWN, KP... | public void keyPressed(KeyEvent e) { TreeModel mod = BasicTreeUI.this.tree.getModel(); TreePath start = BasicTreeUI.this.tree.getLeadSelectionPath(); Object last = null; if (start != null) last = start.getLastPathComponent(); if (last != null) { // DOWN, KP... | 27,558 |
public void mouseClicked(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path != ... | public void mouseClicked(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path != ... | 27,559 |
public void mousePressed(MouseEvent e) { } | public void mousePressed(MouseEvent e) { Point click = e.getPoint(); int row = Math.round(click.y / BasicTreeUI.this.getRowHeight()); TreePath path = BasicTreeUI.this.getClosestPathForLocation(tree, click.x, click.y); if (path != null) { boolean inBounds = false; boolean cntlClick = false; Rectangle bounds = BasicT... | 27,560 |
public BasicTreeUI() { drawingCache = new Hashtable(); cellEditor = createDefaultCellEditor(); currentCellRenderer = createDefaultCellRenderer(); nodeDimensions = createNodeDimensions(); rendererPane = createCellRendererPane(); configureLayoutCache(); propertyChangeListener = createPropertyChangeListener(); fo... | public BasicTreeUI() { drawingCache = new Hashtable(); cellEditor = createDefaultCellEditor(); currentCellRenderer = createDefaultCellRenderer(); nodeDimensions = createNodeDimensions(); rendererPane = createCellRendererPane(); configureLayoutCache(); propertyChangeListener = createPropertyChangeListener(); fo... | 27,562 |
public BasicTreeUI() { drawingCache = new Hashtable(); cellEditor = createDefaultCellEditor(); currentCellRenderer = createDefaultCellRenderer(); nodeDimensions = createNodeDimensions(); rendererPane = createCellRendererPane(); configureLayoutCache(); propertyChangeListener = createPropertyChangeListener(); fo... | public BasicTreeUI() { drawingCache = new Hashtable(); cellEditor = createDefaultCellEditor(); currentCellRenderer = createDefaultCellRenderer(); nodeDimensions = createNodeDimensions(); configureLayoutCache(); propertyChangeListener = createPropertyChangeListener(); focusListener = createFocusListener(); tr... | 27,563 |
public BasicTreeUI() { drawingCache = new Hashtable(); cellEditor = createDefaultCellEditor(); currentCellRenderer = createDefaultCellRenderer(); nodeDimensions = createNodeDimensions(); rendererPane = createCellRendererPane(); configureLayoutCache(); propertyChangeListener = createPropertyChangeListener(); fo... | public BasicTreeUI() { drawingCache = new Hashtable(); cellEditor = createDefaultCellEditor(); currentCellRenderer = createDefaultCellRenderer(); nodeDimensions = createNodeDimensions(); rendererPane = createCellRendererPane(); configureLayoutCache(); propertyChangeListener = createPropertyChangeListener(); fo... | 27,564 |
protected TreeCellEditor createDefaultCellEditor() { return new DefaultTreeCellEditor( tree, (DefaultTreeCellRenderer) createDefaultCellRenderer(), cellEditor); } | protected TreeCellEditor createDefaultCellEditor() { return new DefaultTreeCellEditor( tree, (DefaultTreeCellRenderer) createDefaultCellRenderer(), cellEditor); } | 27,567 |
private Object findNode(Object root, Object node) { TreeModel mod = tree.getModel(); for (int i = 0; i < mod.getChildCount(root); i++) { if (mod.getIndexOfChild(root, node) != -1) return root; Object n = findNode(mod.getChild(root, i), node); if (n != null) return n;... | private Object findNode(Object root, Object node) { TreeModel mod = tree.getModel(); int size = 0; if (!mod.isLeaf(root)) size = mod.getChildCount(root); for (int i = 0; i < size; i++) { if (mod.getIndexOfChild(root, node) != -1) return root; Object n = findNode(mod.getChild(root, i... | 27,568 |
Rectangle getCellBounds(int x, int y, Object cell) { if (cell != null) { String s = cell.toString(); Font f = tree.getFont(); FontMetrics fm = tree.getToolkit().getFontMetrics(tree.getFont()); if (s != null) return new Rectangle(x, y, SwingUtilities.compute... | Rectangle getCellBounds(int x, int y, Object cell) { if (cell != null) { String s = cell.toString(); Font f = tree.getFont(); FontMetrics fm = tree.getToolkit().getFontMetrics(f); if (s != null) return new Rectangle(x, y, SwingUtilities.computeStringWidth(f... | 27,569 |
Point getCellLocation(int x, int y, JTree tree, TreeModel mod, Object node, Object startNode) { int rowHeight = getRowHeight(); if (startNode == null || startNode.equals(node)) { if (!tree.isRootVisible() && tree.isExpanded(new TreePath(mod.getRoot()))) re... | Point getCellLocation(int x, int y, JTree tree, TreeModel mod, Object node, Object startNode) { int rowHeight = getRowHeight(); if (startNode == null || startNode.equals(node)) { if (!tree.isRootVisible() && tree.isExpanded(new TreePath(mod.getRoot()))) re... | 27,570 |
public TreePath getEditingPath(JTree tree) { // FIXME: not implemented return null; } | public TreePath getEditingPath(JTree tree) { // FIXME: not implemented return editingPath; } | 27,571 |
Object getNextNode(Object curr) { TreeModel mod = tree.getModel(); if (mod.getChildCount(curr) > 0) return mod.getChild(curr, 0); Object node = curr; Object sibling = null; do { sibling = getNextSibling(node); node = getParent(mod.getRoot(), node); } while (sibling ... | Object getNextNode(Object curr) { TreeModel mod = tree.getModel(); if (!mod.isLeaf(curr) && mod.getChildCount(curr) > 0) return mod.getChild(curr, 0); Object node = curr; Object sibling = null; do { sibling = getNextSibling(node); node = getParent(mod.getRoot(), node); ... | 27,572 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.