bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public void paintPage(Graphics2D g, int pageNo) { Layer root = getRootLayer(); if (root == null) { throw new RuntimeException("Document needs layout"); } if (pageNo < 1 || pageNo > root.getPages().size()) { throw new IllegalArgumentException("Page " + pageNo... | public void paintPage(Graphics2D g, int pageNo) { Layer root = getRootLayer(); if (root == null) { throw new RuntimeException("Document needs layout"); } if (pageNo < 1 || pageNo > root.getPages().size()) { throw new IllegalArgumentException("Page " + pageNo... | 33,910 |
public void paintPage(Graphics2D g, int pageNo) { Layer root = getRootLayer(); if (root == null) { throw new RuntimeException("Document needs layout"); } if (pageNo < 1 || pageNo > root.getPages().size()) { throw new IllegalArgumentException("Page " + pageNo... | public void paintPage(Graphics2D g, int pageNo) { Layer root = getRootLayer(); if (root == null) { throw new RuntimeException("Document needs layout"); } if (pageNo < 1 || pageNo > root.getPages().size()) { throw new IllegalArgumentException("Page " + pageNo... | 33,911 |
public void paintPage(Graphics2D g, int pageNo) { Layer root = getRootLayer(); if (root == null) { throw new RuntimeException("Document needs layout"); } if (pageNo < 1 || pageNo > root.getPages().size()) { throw new IllegalArgumentException("Page " + pageNo... | public void paintPage(Graphics2D g, int pageNo) { Layer root = getRootLayer(); if (root == null) { throw new RuntimeException("Document needs layout"); } if (pageNo < 1 || pageNo > root.getPages().size()) { throw new IllegalArgumentException("Page " + pageNo... | 33,912 |
public void paintPage(Graphics2D g, int pageNo) { Layer root = getRootLayer(); if (root == null) { throw new RuntimeException("Document needs layout"); } if (pageNo < 1 || pageNo > root.getPages().size()) { throw new IllegalArgumentException("Page " + pageNo... | public void paintPage(Graphics2D g, int pageNo) { Layer root = getRootLayer(); if (root == null) { throw new RuntimeException("Document needs layout"); } if (pageNo < 1 || pageNo > root.getPages().size()) { throw new IllegalArgumentException("Page " + pageNo... | 33,913 |
private void paintPagedView(RenderingContext c, Layer root) { if (root.getLastPage() == null) { return; } root.assignPagePaintingPositions(c, PAGE_PAINTING_CLEARANCE); setPreferredSize(new Dimension( root.getMaxPageWidth(c, PAGE_PAINTING_CLEARANCE), ... | private void paintPagedView(RenderingContext c, Layer root) { if (root.getLastPage() == null) { return; } root.assignPagePaintingPositions(c, PAGE_PAINTING_CLEARANCE); setPreferredSize(new Dimension( root.getMaxPageWidth(c, PAGE_PAINTING_CLEARANCE), ... | 33,914 |
private void paintPagedView(RenderingContext c, Layer root) { if (root.getLastPage() == null) { return; } root.assignPagePaintingPositions(c, PAGE_PAINTING_CLEARANCE); setPreferredSize(new Dimension( root.getMaxPageWidth(c, PAGE_PAINTING_CLEARANCE), ... | private void paintPagedView(RenderingContext c, Layer root) { if (root.getLastPage() == null) { return; } root.assignPagePaintingPositions(c, PAGE_PAINTING_CLEARANCE); setPreferredSize(new Dimension( root.getMaxPageWidth(c, PAGE_PAINTING_CLEARANCE), ... | 33,915 |
protected void getNextBigBlock() throws Exception { nextBlock = pm.reserveIDBlock(counterName, bigBlockSize); if (trace) { log.trace("Retrieved nex block of size " + bigBlockSize + " from pm starting at " + nextBlock); } high = nextBlock + bigBlockSize - 1; } | protected void getNextBigBlock() throws Exception { nextBlock = pm.reserveIDBlock(counterName, bigBlockSize); if (trace) { log.trace("Retrieved next block of size " + bigBlockSize + " from pm starting at " + nextBlock); } high = nextBlock + bigBlockSize - 1; } | 33,916 |
private void setupConnectionFactories() throws Exception { ConnectionFactory cf = setupConnectionFactory(null); InitialContext ic = new InitialContext(); //Bind in both VM and global JNDI namespaces ic.rebind(CONNECTION_FACTORY_JNDI_NAME, cf); ic.rebind(XACONNECTION_FACTORY_JND... | private void setupConnectionFactories() throws Exception { ConnectionFactory cf = setupConnectionFactory(null); InitialContext ic = new InitialContext(); //Bind in both VM and global JNDI namespaces ic.rebind(CONNECTION_FACTORY_JNDI_NAME, cf); ic.rebind(XACONNECTION_FACTORY_JND... | 33,917 |
private void setupConnectionFactories() throws Exception { ConnectionFactory cf = setupConnectionFactory(null); InitialContext ic = new InitialContext(); //Bind in both VM and global JNDI namespaces ic.rebind(CONNECTION_FACTORY_JNDI_NAME, cf); ic.rebind(XACONNECTION_FACTORY_JND... | private void setupConnectionFactories() throws Exception { ConnectionFactory cf = setupConnectionFactory(null); InitialContext ic = new InitialContext(); //Bind in both VM and global JNDI namespaces ic.rebind(CONNECTION_FACTORY_JNDI_NAME, cf); ic.rebind(XACONNECTION_FACTORY_JND... | 33,918 |
protected List makeChildContent(Context c) { LinkedList contentList = new LinkedList(); FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; if (_elem != null) { if (ContentUtil.mayHaveFirstLine(_style)) { //put in a marker if there is... | protected List makeChildContent(Context c) { LinkedList contentList = new LinkedList(); FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; if (_elem != null) { c.pushStyle(_style); if (ContentUtil.mayHaveFirstLine(c.getCurrentStyle())) { ... | 33,920 |
protected List makeChildContent(Context c) { LinkedList contentList = new LinkedList(); FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; if (_elem != null) { if (ContentUtil.mayHaveFirstLine(_style)) { //put in a marker if there is... | protected List makeChildContent(Context c) { LinkedList contentList = new LinkedList(); FirstLineStyle firstLineStyle = null; FirstLetterStyle firstLetterStyle = null; if (_elem != null) { if (ContentUtil.mayHaveFirstLine(_style)) { //put in a marker if there is... | 33,921 |
TableRowContent() { _elem = null; _style = null; _children = new LinkedList(); } | TableRowContent() { _elem = null; _style = null; _children = new LinkedList(); } | 33,923 |
private void createContext(String contextName) throws Exception { Object context = null; try { context = initialContext.lookup(contextName); if (!(context instanceof Context)) { throw new JBossJMSException(contextName + " is already bound " + ... | private void createContext(String contextName) throws Exception { Object context = null; try { context = initialContext.lookup(contextName); if (!(context instanceof Context)) { throw new MessagingJMSException(contextName + " is already bound " + ... | 33,925 |
public String registerDestination(boolean isQueue, String name, String jndiName, Element securityConfiguration) throws JMSException { String parentContext; String jndiNameInContext; if (jndiName == null) { parentContext = isQueue ? ... | public String registerDestination(boolean isQueue, String name, String jndiName, Element securityConfiguration) throws JMSException { String parentContext; String jndiNameInContext; if (jndiName == null) { parentContext = isQueue ? ... | 33,926 |
public void unregisterDestination(boolean isQueue, String name) throws JMSException { String jndiName = null; if (isQueue) { jndiName = (String)queueNameToJNDI.remove(name); } else { jndiName = (String)topicNameToJNDI.remove(name); } if (jndiName == null) ... | public void unregisterDestination(boolean isQueue, String name) throws JMSException { String jndiName = null; if (isQueue) { jndiName = (String)queueNameToJNDI.remove(name); } else { jndiName = (String)topicNameToJNDI.remove(name); } if (jndiName == null) ... | 33,927 |
ServerConnectionEndpoint(ServerPeer serverPeer, String clientID, String username, String password) { this.serverPeer = serverPeer; channelMapper = serverPeer.getChannelMapperDelegate(); sm = serverPeer.getSecurityManager(); tr = serverPeer.getTxRepository(); cm =... | ServerConnectionEndpoint(ServerPeer serverPeer, String clientID, String username, String password) { this.serverPeer = serverPeer; channelMapper = serverPeer.getChannelMapperDelegate(); sm = serverPeer.getSecurityManager(); tr = serverPeer.getTxRepository(); cm =... | 33,928 |
protected void acknowledge(long messageID, int consumerID, Transaction tx) throws JMSException { if (trace) { log.trace("acknowledging " + messageID + " from consumer " + consumerID + " transactionally on " + tx); } ServerConsumerEndpoint consumer = (ServerConsumerEndpoint)consumers.get(new Integer(consu... | protected void acknowledge(long messageID, int consumerID, Transaction tx) throws JMSException { if (trace) { log.trace(this + " processing acknowledge for message " + messageID + " from consumer " + consumerID + " transactionally on " + tx); } ServerConsumerEndpoint consumer = (ServerConsumerEndpoint)co... | 33,929 |
protected void acknowledge(long messageID, int consumerID, Transaction tx) throws JMSException { if (trace) { log.trace("acknowledging " + messageID + " from consumer " + consumerID + " transactionally on " + tx); } ServerConsumerEndpoint consumer = (ServerConsumerEndpoint)consumers.get(new Integer(consu... | protected void acknowledge(long messageID, int consumerID, Transaction tx) throws JMSException { if (trace) { log.trace("acknowledging " + messageID + " from consumer " + consumerID + " transactionally on " + tx); } ServerConsumerEndpoint consumer = getConsumerEndpoint(consumerID); if (consumer == n... | 33,930 |
protected void acknowledge(long messageID, int consumerID, Transaction tx) throws JMSException { if (trace) { log.trace("acknowledging " + messageID + " from consumer " + consumerID + " transactionally on " + tx); } ServerConsumerEndpoint consumer = (ServerConsumerEndpoint)consumers.get(new Integer(consu... | protected void acknowledge(long messageID, int consumerID, Transaction tx) throws JMSException { if (trace) { log.trace("acknowledging " + messageID + " from consumer " + consumerID + " transactionally on " + tx); } ServerConsumerEndpoint consumer = (ServerConsumerEndpoint)consumers.get(new Integer(consu... | 33,931 |
protected void cancel(long messageID, int consumerID) throws JMSException { ServerConsumerEndpoint consumer = (ServerConsumerEndpoint)consumers.get(new Integer(consumerID)); if (consumer == null) { throw new IllegalStateException("Cannot find consumer:" + consumerID); } consumer.ca... | protected void cancel(long messageID, int consumerID) throws JMSException { if (trace) { log.trace(this + " processing cancel for message " + messageID + " from consumer " + consumerID); } ServerConsumerEndpoint consumer = getConsumerEndpoint(consumerID); if (consumer == null) { throw new I... | 33,932 |
protected void cancel(long messageID, int consumerID) throws JMSException { ServerConsumerEndpoint consumer = (ServerConsumerEndpoint)consumers.get(new Integer(consumerID)); if (consumer == null) { throw new IllegalStateException("Cannot find consumer:" + consumerID); } consumer.ca... | protected void cancel(long messageID, int consumerID) throws JMSException { ServerConsumerEndpoint consumer = (ServerConsumerEndpoint)consumers.get(new Integer(consumerID)); if (consumer == null) { throw new IllegalStateException("Cannot find consumer " + consumerID); } consumer.ca... | 33,933 |
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 already... | 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 already... | 33,934 |
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 already... | 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 already... | 33,935 |
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 already... | 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 already... | 33,936 |
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 already... | 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 already... | 33,937 |
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 already... | 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 already... | 33,938 |
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo... | public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo... | 33,939 |
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo... | public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo... | 33,940 |
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo... | public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo... | 33,941 |
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo... | public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo... | 33,942 |
public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo... | public void sendTransaction(TransactionRequest request) throws JMSException { try { closeLock.readLock().acquire(); } catch (InterruptedException e) { //Ignore } try { if (closed) { throw new IllegalStateException("Connection is clo... | 33,943 |
public void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); ServerManagement.undeployTopic("Topic"); ServerManagement.undeployQueue("Queue"); ServerManagement.undeployQueue("Queue2"); ServerManagement.deployTopic("Topic"); ServerManagement.dep... | public void setUp() throws Exception { super.setUp(); ServerManagement.start("all"); ServerManagement.undeployTopic("Topic"); ServerManagement.undeployQueue("Queue"); ServerManagement.undeployQueue("Queue2"); ServerManagement.deployTopic("Topic"); ServerManagement.dep... | 33,944 |
public void testRedel7() throws Exception { Connection conn = null; try { conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageProducer prod = sess.createProducer(queue); prod.send(sess... | public void testRedel7() throws Exception { Connection conn = null; try { conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageProducer prod = sess.createProducer(queue); prod.send(sess... | 33,945 |
public void testRedel7() throws Exception { Connection conn = null; try { conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageProducer prod = sess.createProducer(queue); prod.send(sess... | public void testRedel7() throws Exception { Connection conn = null; try { conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageProducer prod = sess.createProducer(queue); prod.send(sess... | 33,946 |
public void testRedel7() throws Exception { Connection conn = null; try { conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageProducer prod = sess.createProducer(queue); prod.send(sess... | public void testRedel7() throws Exception { Connection conn = null; try { conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageProducer prod = sess.createProducer(queue); prod.send(sess... | 33,947 |
public void testRedel7() throws Exception { Connection conn = null; try { conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageProducer prod = sess.createProducer(queue); prod.send(sess... | public void testRedel7() throws Exception { Connection conn = null; try { conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageProducer prod = sess.createProducer(queue); prod.send(sess... | 33,948 |
public void testRedel7() throws Exception { Connection conn = null; try { conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageProducer prod = sess.createProducer(queue); prod.send(sess... | public void testRedel7() throws Exception { Connection conn = null; try { conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageProducer prod = sess.createProducer(queue); prod.send(sess... | 33,949 |
public void testRedel7() throws Exception { Connection conn = null; try { conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageProducer prod = sess.createProducer(queue); prod.send(sess... | public void testRedel7() throws Exception { Connection conn = null; try { conn = cf.createConnection(); conn.start(); Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE); MessageProducer prod = sess.createProducer(queue); prod.send(sess... | 33,950 |
protected void deliverInternal() throws Throwable { try { // The iterator is used to iterate through the refs in the channel in the case that they // don't match the selectors of any receivers. ListIterator iter = null; MessageReference ref = null; while (... | protected void deliverInternal() throws Throwable { try { // The iterator is used to iterate through the refs in the channel in the case that they // don't match the selectors of any receivers. ListIterator iter = null; MessageReference ref = null; while (... | 33,952 |
public String toString() { StringBuffer sb = new StringBuffer("SendTransactionRequest["); for(Iterator i = messageHolders.iterator(); i.hasNext(); ) { sb.append(((MessageHolder)i.next()).getMessage()); if (i.hasNext()) { sb.append(','); } } sb.app... | public String toString() { StringBuffer sb = new StringBuffer("SendTransactionRequest["); if (messageHolders == null) { sb.append(((MessageHolder)i.next()).getMessage()); if (i.hasNext()) { sb.append(','); } } sb.append("]"); return sb.toStri... | 33,953 |
public String toString() { StringBuffer sb = new StringBuffer("SendTransactionRequest["); for(Iterator i = messageHolders.iterator(); i.hasNext(); ) { sb.append(((MessageHolder)i.next()).getMessage()); if (i.hasNext()) { sb.append(','); } } sb.app... | public String toString() { StringBuffer sb = new StringBuffer("SendTransactionRequest["); for(Iterator i = messageHolders.iterator(); i.hasNext(); ) { sb.append(((MessageHolder)i.next()).getMessage()); if (i.hasNext()) { sb.append(','); } } sb.app... | 33,954 |
public String toString() { StringBuffer sb = new StringBuffer("SendTransactionRequest["); for(Iterator i = messageHolders.iterator(); i.hasNext(); ) { sb.append(((MessageHolder)i.next()).getMessage()); if (i.hasNext()) { sb.append(','); } } sb.app... | public String toString() { StringBuffer sb = new StringBuffer("SendTransactionRequest["); for(Iterator i = messageHolders.iterator(); i.hasNext(); ) { sb.append(((MessageHolder)i.next()).getMessage()); if (i.hasNext()) { sb.append(((MessageHolder)i.next()).getMessa... | 33,955 |
public void createLayout() { GridBagLayout gbl = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); setLayout(gbl); c.gridx = 0; c.gridy = 0; c.weightx = c.weighty = 0.0; gbl.setConstraints(backward, c); add(backward); c.gridx++; ... | public void createLayout() { GridBagLayout gbl = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); setLayout(gbl); c.gridx = 0; c.gridy = 0; c.weightx = c.weighty = 0.0; gbl.setConstraints(backward, c); add(backward); c.gridx++; ... | 33,957 |
public void init() { forward = new JButton(); backward = new JButton(); stop = new JButton(); reload = new JButton(); url = new JTextField(); manager = new PanelManager(); view = new XHTMLPanel(manager); scroll = new FSScrollPane(view); print_preview = ... | public void init(String startPage) { forward = new JButton(); backward = new JButton(); stop = new JButton(); reload = new JButton(); url = new JTextField(); manager = new PanelManager(); view = new XHTMLPanel(manager); scroll = new FSScrollPane(view); ... | 33,959 |
public void init() { forward = new JButton(); backward = new JButton(); stop = new JButton(); reload = new JButton(); url = new JTextField(); manager = new PanelManager(); view = new XHTMLPanel(manager); scroll = new FSScrollPane(view); print_preview = ... | public void init() { forward = new JButton(); backward = new JButton(); stop = new JButton(); reload = new JButton(); url = new JTextField(); manager = new PanelManager(); view = new XHTMLPanel(manager); scroll = new FSScrollPane(view); print_preview = ... | 33,960 |
public void loadPage(String url_text) { try { logger.info("Loading Page: " + url_text); view.setCursor(new Cursor(Cursor.WAIT_CURSOR)); view.setDocument(url_text); view.addDocumentListener(this); updateButtons(); setStatus("Successfully loaded... | public void loadPage(final String url_text) { try { logger.info("Loading Page: " + url_text); view.setCursor(new Cursor(Cursor.WAIT_CURSOR)); view.setDocument(url_text); view.addDocumentListener(this); updateButtons(); setStatus("Successfully ... | 33,962 |
public void loadPage(String url_text) { try { logger.info("Loading Page: " + url_text); view.setCursor(new Cursor(Cursor.WAIT_CURSOR)); view.setDocument(url_text); view.addDocumentListener(this); updateButtons(); setStatus("Successfully loaded... | public void loadPage(String url_text) { try { logger.info("Loading Page: " + url_text); view.setCursor(new Cursor(Cursor.WAIT_CURSOR)); view.setDocument(url_text); view.addDocumentListener(BrowserPanel.this); updateButtons(); setStatus("Succes... | 33,963 |
protected Rectangle getContentAreaEdge(int left, int top, CssContext cssCtx) { return new Rectangle(left, top, viewport.width, viewport.height); } | protected Rectangle getContentAreaEdge(int left, int top, CssContext cssCtx) { return new Rectangle(-viewport.x, -viewport.y, viewport.width, viewport.height); } | 33,964 |
public Rectangle getPaddingEdge(int left, int top, CssContext cssCtx) { return new Rectangle(left, top, viewport.width, viewport.height); } | public Rectangle getPaddingEdge(int left, int top, CssContext cssCtx) { return new Rectangle(-viewport.x, -viewport.y, viewport.width, viewport.height); } | 33,965 |
public RemoteContext(int remoteServerIndex) throws Exception { String n = "//localhost:" + RMITestServer.DEFAULT_REGISTRY_PORT + "/" + RMITestServer.NAMING_SERVER_PREFIX + remoteServerIndex; log.info("Using this url for rmi server lookup " + n); namingDelegate = (NamingD... | public RemoteContext(int remoteServerIndex) throws Exception { String n = "//localhost:" + RMITestServer.DEFAULT_REGISTRY_PORT + "/" + RMITestServer.NAMING_SERVER_PREFIX + remoteServerIndex; namingDelegate = (NamingDelegate)Naming.lookup(n); } | 33,967 |
private String buildNested(NestedExpression nestedExpression, StringBuffer sel, List values) { sel.append("SELECT DISTINCT("); // Changed by Anthony on 2 June 2004, to query from OS_CURRENTSTEP instead //sel.append(entryId); sel.append(stepEntryId); sel.append(") FROM "); /... | private String buildNested(NestedExpression nestedExpression, StringBuffer sel, List values) { sel.append("SELECT DISTINCT("); // Changed by Anthony on 2 June 2004, to query from OS_CURRENTSTEP instead //sel.append(entryId); sel.append(stepEntryId); sel.append(") FROM "); /... | 33,969 |
public void moveToHistory(Step step) throws StoreException { Connection conn = null; PreparedStatement stmt = null; try { conn = getConnection(); String sql = "INSERT INTO " + historyTable + " (" + stepId + "," + stepEntryId + ", " + stepStepId + ", " + stepActionId + ", "... | public void moveToHistory(Step step) throws StoreException { Connection conn = null; PreparedStatement stmt = null; try { conn = getConnection(); String sql = "INSERT INTO " + historyTable + " (" + stepId + ',' + stepEntryId + ", " + stepStepId + ", " + stepActionId + ", "... | 33,970 |
public List query(WorkflowExpressionQuery query) throws StoreException { Expression expression = query.getExpression(); StringBuffer sel = new StringBuffer(); List values = new ArrayList(); String columnName = null; if (expression.isNested()) { columnName = buildNested(... | public List query(WorkflowExpressionQuery query) throws StoreException { Expression expression = query.getExpression(); StringBuffer sel = new StringBuffer(); List values = new ArrayList(); String columnName = null; if (expression.isNested()) { columnName = buildNested(... | 33,971 |
public List query(WorkflowExpressionQuery query) throws StoreException { Expression expression = query.getExpression(); StringBuffer sel = new StringBuffer(); List values = new ArrayList(); String columnName = null; if (expression.isNested()) { columnName = buildNested(... | public List query(WorkflowExpressionQuery query) throws StoreException { Expression expression = query.getExpression(); StringBuffer sel = new StringBuffer(); List values = new ArrayList(); String columnName = null; if (expression.isNested()) { columnName = buildNested(... | 33,972 |
public List query(WorkflowExpressionQuery query) throws StoreException { Expression expression = query.getExpression(); StringBuffer sel = new StringBuffer(); List values = new ArrayList(); String columnName = null; if (expression.isNested()) { columnName = buildNested(... | public List query(WorkflowExpressionQuery query) throws StoreException { Expression expression = query.getExpression(); StringBuffer sel = new StringBuffer(); List values = new ArrayList(); String columnName = null; if (expression.isNested()) { NestedExpression nestedEx... | 33,973 |
public List query(WorkflowExpressionQuery query) throws StoreException { Expression expression = query.getExpression(); StringBuffer sel = new StringBuffer(); List values = new ArrayList(); String columnName = null; if (expression.isNested()) { columnName = buildNested(... | public List query(WorkflowExpressionQuery query) throws StoreException { Expression expression = query.getExpression(); StringBuffer sel = new StringBuffer(); List values = new ArrayList(); String columnName = null; if (expression.isNested()) { columnName = buildNested(... | 33,974 |
public List query(WorkflowExpressionQuery query) throws StoreException { Expression expression = query.getExpression(); StringBuffer sel = new StringBuffer(); List values = new ArrayList(); String columnName = null; if (expression.isNested()) { columnName = buildNested(... | public List query(WorkflowExpressionQuery query) throws StoreException { Expression expression = query.getExpression(); StringBuffer sel = new StringBuffer(); List values = new ArrayList(); String columnName = null; if (expression.isNested()) { columnName = buildNested(... | 33,975 |
private String queryComparison(WorkflowQuery query) { Object value = query.getValue(); int operator = query.getOperator(); int field = query.getField(); //int type = query.getType(); String oper; switch (operator) { case WorkflowQuery.EQUALS: oper = " = ";... | private String queryComparison(WorkflowQuery query) { Object value = query.getValue(); int operator = query.getOperator(); int field = query.getField(); //int type = query.getType(); String oper; switch (operator) { case WorkflowQuery.EQUALS: oper = " = ";... | 33,976 |
private String queryWhere(WorkflowQuery query) { if (query.getLeft() == null) { // leaf node return queryComparison(query); } else { int operator = query.getOperator(); WorkflowQuery left = query.getLeft(); WorkflowQuery right = query.getRight(); ... | private String queryWhere(WorkflowQuery query) { if (query.getLeft() == null) { // leaf node return queryComparison(query); } else { int operator = query.getOperator(); WorkflowQuery left = query.getLeft(); WorkflowQuery right = query.getRight(); ... | 33,977 |
private String queryWhere(WorkflowQuery query) { if (query.getLeft() == null) { // leaf node return queryComparison(query); } else { int operator = query.getOperator(); WorkflowQuery left = query.getLeft(); WorkflowQuery right = query.getRight(); ... | private String queryWhere(WorkflowQuery query) { if (query.getLeft() == null) { // leaf node return queryComparison(query); } else { int operator = query.getOperator(); WorkflowQuery left = query.getLeft(); WorkflowQuery right = query.getRight(); ... | 33,978 |
private String queryWhere(WorkflowQuery query) { if (query.getLeft() == null) { // leaf node return queryComparison(query); } else { int operator = query.getOperator(); WorkflowQuery left = query.getLeft(); WorkflowQuery right = query.getRight(); ... | private String queryWhere(WorkflowQuery query) { if (query.getLeft() == null) { // leaf node return queryComparison(query); } else { int operator = query.getOperator(); WorkflowQuery left = query.getLeft(); WorkflowQuery right = query.getRight(); ... | 33,979 |
public void tearDown() throws Exception { ServerManagement.undeployTopic("TestTopic"); ServerManagement.deInit(); super.tearDown(); log.debug("tear down done"); } | public void tearDown() throws Exception { ServerManagement.undeployTopic("TestTopic"); super.tearDown(); log.debug("tear down done"); } | 33,980 |
public static boolean isDecoratable(Box box) { if (!(box.getContent() instanceof ReplacedContent)) { if (!(box.getContent() instanceof FloatedBlockContent)) { return true; } } return false; } | public static boolean isDecoratable(Box box) { if (!(box.getContent() instanceof InlineBlockContent)) { if (!(box.getContent() instanceof FloatedBlockContent)) { return true; } } return false; } | 33,981 |
private void executeFunction(FunctionDescriptor function, Map transientVars, PropertySet ps) throws WorkflowException { if (function != null) { String type = function.getType(); HashMap args = new HashMap(function.getArgs()); for (Iterator iterator = args.entrySet().iterator(... | protected void executeFunction(FunctionDescriptor function, Map transientVars, PropertySet ps) throws WorkflowException { if (function != null) { String type = function.getType(); HashMap args = new HashMap(function.getArgs()); for (Iterator iterator = args.entrySet().iterato... | 33,982 |
private boolean transitionWorkflow(WorkflowEntry entry, List currentSteps, WorkflowStore store, WorkflowDescriptor wf, ActionDescriptor action, Map transientVars, Map inputs, PropertySet ps) throws WorkflowException { Step step = getCurrentStep(wf, action.getId(), currentSteps, transientVars, ps); // ... | protected boolean transitionWorkflow(WorkflowEntry entry, List currentSteps, WorkflowStore store, WorkflowDescriptor wf, ActionDescriptor action, Map transientVars, Map inputs, PropertySet ps) throws WorkflowException { Step step = getCurrentStep(wf, action.getId(), currentSteps, transientVars, ps); /... | 33,983 |
public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);... | public static void layoutContent(Context c, Box box, List contentList) { //Here we should always be inside something that corresponds to a block-level element //for formatting purposes Rectangle bounds = new Rectangle(); bounds.width = c.getExtents().width; validateBounds(bounds);... | 33,984 |
public static boolean canBeSkipped(Context c, Box box) { Shape clip = c.getGraphics().getClip(); if (!box.isChildrenExceedBounds() && Configuration.isTrue("xr.renderer.viewport-repaint", false) && box.getState() != Box.CHILDREN_FLUX && clip != null && !(box... | public static boolean canBeSkipped(Context c, Box box) { Shape clip = c.getGraphics().getClip(); if (!box.isChildrenExceedBounds() && Configuration.isTrue("xr.renderer.viewport-repaint", false) && box.getState() != Box.CHILDREN_FLUX && clip != null && !(box... | 33,990 |
public void receive(org.jgroups.Message jgroupsMessage) { Object o = jgroupsMessage.getObject(); try { if (!(o instanceof Routable)) { if (log.isTraceEnabled()) { log.trace(this + " discarding non-routable (" + o + ")"); } return; ... | public void receive(org.jgroups.Message jgroupsMessage) { Object o = jgroupsMessage.getObject(); try { if (!(o instanceof Routable)) { if (log.isTraceEnabled()) { log.trace(this + " discarding non-routable (" + o + ")"); } return; ... | 33,991 |
public JComponent getCustomComponent(Element e, Context c, int setWidth, int setHeight) { JComponent cc = null; if (e == null) { return null; } if (e.getNodeName().equals("img")) { cc = getImageComponent(e); if (cc != null) { return cc; ... | public JComponent getCustomComponent(Element e, Context c, int setWidth, int setHeight) { JComponent cc = null; if (e == null) { return null; } if (e.getNodeName().equals("img")) { cc = getImageComponent(e); if (cc != null) { return cc; ... | 33,993 |
public AccessibleStateSet getAccessibleStateSet() throws NotImplementedException { return null; // TODO } | public AccessibleStateSet getAccessibleStateSet() throws NotImplementedException { return super.getAccessibleStateSet(); // TODO } | 33,994 |
public static Icon getMenuArrowIcon() { return new Icon() { public int getIconHeight() { return 8; } public int getIconWidth() { return 4; } public void paintIcon(Component c, Graphics g, int x, int y) { Color saved = g.getColor(); g.setColor(... | public static Icon getMenuArrowIcon() { if (menuArrow == null) menuArrow = new Icon() { public int getIconHeight() { return 8; } public int getIconWidth() { return 4; } public void paintIcon(Component c, Graphics g, int x, int y) { Color saved = g.ge... | 33,995 |
public static Icon getMenuItemArrowIcon() { return getMenuArrowIcon(); } | public static Icon getMenuItemArrowIcon() { if (menuItemArrow == null) menuItemArrow = new Icon() { public int getIconHeight() { return 8; } public int getIconWidth() { return 4; } public void paintIcon(Component c, Graphics g, int x, int y) { Color saved = g.getColor(); g.setColor(Color.BLACK); for (int i = 0;... | 33,997 |
public int getIconHeight() { return 13; } | public int getIconHeight() { return 13; } | 33,998 |
public int getIconWidth() { return 13; } | public int getIconWidth() { return 13; } | 33,999 |
public void paintIcon(Component c, Graphics g, int x, int y) { Color saved = g.getColor(); g.setColor(Color.BLACK); g.drawLine(3 + x, 5 + y, 3 + x, 9 + y); g.drawLine(4 + x, 5 + y, 4 + x, 9 + y); g.drawLine(5 + x, 7 + y, 9 + x, 3 + y); g.drawLine(5 + x, 8 + y, 9 + x,... | public void paintIcon(Component c, Graphics g, int x, int y) { Color saved = g.getColor(); g.setColor(Color.BLACK); g.drawLine(3 + x, 5 + y, 3 + x, 9 + y); g.drawLine(4 + x, 5 + y, 4 + x, 9 + y); g.drawLine(5 + x, 7 + y, 9 + x, 3 + y); g.drawLine(5 + x, 8 + y, 9 + x,... | 34,000 |
public static void paint(Context c, Box block) { // don't draw if the backgrounds are turned off if (!Configuration.isTrue("xr.renderer.draw.backgrounds", true)) { return; } int width = block.getWidth(); int height = block.getHeight(); Border border = c.getCurren... | public static void paint(Context c, Box block) { // don't draw if the backgrounds are turned off if (!Configuration.isTrue("xr.renderer.draw.backgrounds", true)) { return; } int width = block.getWidth(); int height = block.getHeight(); Border border = c.getCurren... | 34,001 |
protected Font createFont( Context c, Font root_font, float size, IdentValue weight, IdentValue style, IdentValue variant ) { //Uu.p("creating font: " + root_font + " size = " + size + // " weight = " + weight + " style = " + style + " variant = " + variant); int font_const = Font.PLAIN; ... | protected Font createFont( Context c, Font root_font, float size, IdentValue weight, IdentValue style, IdentValue variant ) { //Uu.p("creating font: " + root_font + " size = " + size + // " weight = " + weight + " style = " + style + " variant = " + variant); int font_const = Font.PLAIN; ... | 34,002 |
public static CertPathValidator getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(algorithm, p[i]); } catch (NoSuchAlgorithmException e) ... | public static CertPathValidator getInstance(String algorithm) throws NoSuchAlgorithmException Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) try return getInstance(algorithm, p[i]); } catch (NoSuchAlgorithmException e) ... | 34,003 |
public static CertPathValidator getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(algorithm, p[i]); } catch (NoSuchAlgorithmException e) ... | public static CertPathValidator getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(algorithm, p[i]); } catch (NoSuchAlgorithmException x) ... | 34,004 |
public static CertPathValidator getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(algorithm, p[i]); } catch (NoSuchAlgorithmException e) ... | public static CertPathValidator getInstance(String algorithm) throws NoSuchAlgorithmException { Provider[] p = Security.getProviders(); for (int i = 0; i < p.length; i++) { try { return getInstance(algorithm, p[i]); lastException = x; catch (NoSuchAlgorithmExc... | 34,005 |
public void load(URL url) throws FactoryException { InputStream is = getInputStream(url); try { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setNamespaceAware(true); DocumentBuilder db = null; try { db = dbf.newDocume... | public void load(URL url) throws FactoryException { InputStream is = getInputStream(url); try { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setNamespaceAware(true); DocumentBuilder db; try { db = dbf.newDocumentBuild... | 34,007 |
public ConnectionDelegate createConnectionDelegate(String username, String password, String clientConnectionId) throws JMSException { log.debug("creating a new connection for user " + username); // authenticate the user serverPeer.getSecurit... | public ConnectionDelegate createConnectionDelegate(String username, String password, String clientConnectionId) throws JMSException { log.debug("creating a new connection for user " + username); // authenticate the user serverPeer.getSecurit... | 34,009 |
public ConnectionDelegate createConnectionDelegate(String username, String password, String clientConnectionId) throws JMSException { log.debug("creating a new connection for user " + username); // authenticate the user serverPeer.getSecurit... | public ConnectionDelegate createConnectionDelegate(String username, String password, String clientConnectionId) throws JMSException { log.debug("creating a new connection for user " + username); // authenticate the user serverPeer.getSecurit... | 34,010 |
public ConnectionDelegate createConnectionDelegate(String username, String password, String clientConnectionId) throws JMSException { log.debug("creating a new connection for user " + username); // authenticate the user serverPeer.getSecurit... | public ConnectionDelegate createConnectionDelegate(String username, String password, String clientConnectionId) throws JMSException { log.debug("creating a new connection for user " + username); // authenticate the user serverPeer.getSecurit... | 34,011 |
public Object invoke(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("handling " + ((MethodInvocation)invocation).getMethod().getName()); } try { return invocation.invokeNext(); } catch(NotYetImplementedException e) { // TODO get rid of ... | public Object invoke(Invocation invocation) throws Throwable { if (log.isTraceEnabled()) { log.trace("handling " + ((MethodInvocation)invocation).getMethod().getName()); } try { return invocation.invokeNext(); } catch(NotYetImplementedException e) { // TODO get rid of ... | 34,012 |
public Class getCategory() { return JobSheets.class; } | public final Class getCategory() { return JobSheets.class; } | 34,013 |
public String getName() { return "job-sheets"; } | public final String getName() { return "job-sheets"; } | 34,014 |
private void startLayoutLoop() throws InterruptedException { while (true) { //Uu.p("waiting for a layout event"); ReflowEvent evt = root.queue.waitForNextLayoutEvent(); if (evt == null) { return; } Uu.p("got a layout event: " + evt); ... | private void startLayoutLoop() throws InterruptedException { while (true) { //Uu.p("waiting for a layout event"); ReflowEvent evt = root.queue.waitForNextLayoutEvent(); if (evt == null) { return; } Uu.p("got a layout event: " + evt); ... | 34,015 |
public GraphicsDevice[] getScreenDevices() { if (devices == null) { final Collection devs = DeviceUtils.getDevicesByAPI(FrameBufferAPI.class); devices = new GraphicsDevice[devs.size()]; int idx = 0; for (Iterator i = devs.iterator(); i.hasNext(); idx++) { devices[idx] = new JNodeFrameBufferDevice((Device) ... | public GraphicsDevice[] getScreenDevices() { if (devices == null) { final Collection devs = DeviceUtils.getDevicesByAPI(FrameBufferAPI.class); devices = new JNodeFrameBufferDevice[devs.size()]; int idx = 0; for (Iterator i = devs.iterator(); i.hasNext(); idx++) { devices[idx] = new JNodeFrameBufferDevice((... | 34,018 |
public static Collection<Device> getDevicesByAPI(Class<? extends DeviceAPI> apiClass) { try { return getDeviceManager().getDevicesByAPI(apiClass); } catch (NameNotFoundException ex) { return Collections.EMPTY_LIST; } } | public static Collection<Device> getDevicesByAPI(Class<? extends DeviceAPI> apiClass) { try { return getDeviceManager().getDevicesByAPI(apiClass); } catch (NameNotFoundException ex) { return Collections.emptyList(); } } | 34,019 |
public void setUp() throws Exception { super.setUp(); wf = new TestWireFormat(); Class sessionDelegate = SessionDelegate.class; Class consumerDelegate = ConsumerDelegate.class; Class connectionDelegate = ConnectionDelegate.class; sendMethod = sessionDeleg... | public void setUp() throws Exception { super.setUp(); wf = new TestWireFormat(); Class sessionDelegate = SessionDelegate.class; Class consumerDelegate = ConsumerDelegate.class; Class connectionDelegate = ConnectionDelegate.class; sendMethod = sessionDeleg... | 34,020 |
public void setUp() throws Exception { super.setUp(); wf = new TestWireFormat(); Class sessionDelegate = SessionDelegate.class; Class consumerDelegate = ConsumerDelegate.class; Class connectionDelegate = ConnectionDelegate.class; sendMethod = sessionDeleg... | public void setUp() throws Exception { super.setUp(); wf = new TestWireFormat(); Class sessionDelegate = SessionDelegate.class; Class consumerDelegate = ConsumerDelegate.class; Class connectionDelegate = ConnectionDelegate.class; sendMethod = sessionDeleg... | 34,021 |
public int getIconHeight() { return 0; } | public int getIconHeight() { return delegate.getIconHeight(); } | 34,022 |
public int getIconWidth() { return 0; } | public int getIconWidth() { return delegate.getIconWidth(); } | 34,023 |
public BigInteger getX(); | BigInteger getX(); | 34,025 |
public WorkflowEntry createEntry(String workflowName) throws StoreException { boolean generatedKeys = GENERATED.equals(entrySequence); Connection conn = null; PreparedStatement stmt = null; try { conn = getConnection(); String sql = "INSERT INTO " + entryTable + " (... | public WorkflowEntry createEntry(String workflowName) throws StoreException { boolean generatedKeys = GENERATED.equals(entrySequence); Connection conn = null; PreparedStatement stmt = null; try { conn = getConnection(); String sql = "INSERT INTO " + entryTable + " (... | 34,026 |
private static PreparedStatement prepareStatementWithKeys(Connection conn, String sql, String pkColumnName) throws SQLException, StoreException { return conn.prepareStatement(sql, new String[] {pkColumnName}); } | private static PreparedStatement prepareStatementWithKeys(Connection conn, String sql, String pkColumnName) throws SQLException { return conn.prepareStatement(sql, new String[] {pkColumnName}); } | 34,027 |
public Dimension getPreferredSize(JComponent c) { JLabel b = (JLabel)c; Dimension d = BasicGraphicsUtils.getPreferredSize(b, gap, b.getText(), b.getIcon(), b.getVerticalAlignment(), b.getHorizontalAlignment(), b.getHorizontalTextPosition(), b.getVerticalT... | public Dimension getPreferredSize(JComponent c) { JLabel b = (JLabel)c; Dimension d = BasicGraphicsUtils.getPreferredSize(b, gap, b.getText(), b.getIcon(), b.getVerticalAlignment(), b.getHorizontalAlignment(), b.getHorizontalTextPosition(), b.getVerticalT... | 34,028 |
public void installUI(final JComponent c) { super.installUI(c); foreground = new Color(0,0,250); } | public void installUI(final JComponent c) { super.installUI(c); foreground = new Color(0,0,250); } | 34,029 |
public void paint(Graphics g, JComponent c) { JLabel b = (JLabel) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); FontMetrics fm = SwingUtilities.getFontMetrics(f); Insets i = c.getInsets(); R... | public void paint(Graphics g, JComponent c) { JLabel b = (JLabel) c; Rectangle tr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle vr = new Rectangle(); Font f = c.getFont(); g.setFont(f); FontMetrics fm = SwingUtilities.getFontMetrics(f); Insets i = c.getInsets(); R... | 34,030 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.