bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public void paint(Graphics value0) { // TODO }
public void paint(Graphics g) { // TODO }
52,598
public void paint(Graphics value0) { // TODO }
int textIconGap = 4; Rectangle vr = new Rectangle(); Rectangle ir = new Rectangle(); Rectangle tr = new Rectangle(); FontMetrics fm = editingComponent.getToolkit().getFontMetrics(getFont()); SwingUtilities.layoutCompoundLabel(((JComponent) editingComponent), fm, ((JTextField) editingComponent).getText(), editingIcon, ...
52,599
public DefaultTreeCellEditor(JTree value0, DefaultTreeCellRenderer value1) { // TODO }
public DefaultTreeCellEditor(JTree tree, DefaultTreeCellRenderer renderer) { // TODO }
52,600
public DefaultTreeCellEditor(JTree value0, DefaultTreeCellRenderer value1) { // TODO }
this(tree, renderer, null); this(tree, renderer, null); publicthis(tree, renderer, null); DefaultTreeCellEditor(JTreethis(tree, renderer, null); value0,this(tree, renderer, null); DefaultTreeCellRendererthis(tree, renderer, null); value1)this(tree, renderer, null); this(tree, renderer, null); { //this(tree, renderer, ...
52,601
public void actionPerformed(ActionEvent value0) { // TODO }
public void actionPerformed(ActionEvent e) { // TODO }
52,602
public void actionPerformed(ActionEvent value0) { // TODO }
if (tree != null && lastPath != null) tree.startEditingAtPath(lastPath); if (tree != null && lastPath != null) tree.startEditingAtPath(lastPath); publicif (tree != null && lastPath != null) tree.startEditingAtPath(lastPath); voidif (tree != null && lastPath != null) tree.startEditingAtPath(lastPath); actionPerformed(Ac...
52,603
protected boolean canEditImmediately(EventObject value0) { return false; // TODO }
protected boolean canEditImmediately(EventObject event) { return false; // TODO }
52,604
protected boolean canEditImmediately(EventObject value0) { return false; // TODO }
protected boolean canEditImmediately(EventObject value0) { if (event == null || (!(event instanceof MouseEvent) && (((MouseEvent) event). getClickCount() > 2 || inHitRegion(((MouseEvent) event).getX(), ((MouseEvent) event).getY())))) return true; else if (shouldStartEditingTimer(event)) startEditingTimer(); return ...
52,605
public void cancelCellEditing() { // TODO }
if (editingComponent == null) configureEditingComponent(tree, renderer, realEditor); timer.stop(); realEditor.cancelCellEditing(); tree.setCellEditor(null); if (editingComponent == null) configureEditingComponent(tree, renderer, realEditor); timer.stop(); realEditor.cancelCellEditing(); tree.setCellEditor(null); publ...
52,606
protected Container createContainer() { return null; // TODO }
protected Container createContainer() { return new DefaultTreeCellEditor.EditorContainer(); // TODO }
52,607
protected TreeCellEditor createTreeCellEditor() { return null; // TODO }
protected TreeCellEditor createTreeCellEditor() { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); realEditor = new DefaultCellEditor(new DefaultTreeCellEditor.DefaultTextField( defaults.getBorder("Tree.selectionBorder"))); canEdit = true; return realEditor; // TODO }
52,608
protected void determineOffset(JTree value0, Object value1, boolean value2, boolean value3, boolean value4, int value5) { // TODO }
protected void determineOffset(JTree value0, Object value1, boolean value2, boolean value3, boolean value4, int value5) { // TODO }
52,609
protected void determineOffset(JTree value0, Object value1, boolean value2, boolean value3, boolean value4, int value5) { // TODO }
renderer.getTreeCellRendererComponent(tree, value, isSelected, expanded, leaf, row, true); Icon c = renderer.getIcon(); if (c != null) offset = renderer.getIconTextGap() + c.getIconWidth(); else offset = 0; renderer.getTreeCellRendererComponent(tree, value, isSelected, expanded, leaf, row, true); Icon c = renderer.getI...
52,610
public Color getBorderSelectionColor() { return null; // TODO }
public Color getBorderSelectionColor() { return borderSelectionColor; // TODO }
52,611
public Object getCellEditorValue() { return null; // TODO }
public Object getCellEditorValue() { return editingComponent; // TODO }
52,612
public Font getFont() { return null; // TODO }
public Font getFont() { return font; // TODO }
52,613
public Component getTreeCellEditorComponent(JTree value0, Object value1, boolean value2, boolean value3, boolean value4, int value5) { return null; // TODO }
public Component getTreeCellEditorComponent(JTree value0, Object value1, boolean value2, boolean value3, boolean value4, int value5) { return null; // TODO }
52,614
public Component getTreeCellEditorComponent(JTree value0, Object value1, boolean value2, boolean value3, boolean value4, int value5) { return null; // TODO }
public Component getTreeCellEditorComponent(JTree value0, Object value1, boolean value2, boolean value3, boolean value4, int value5) { if (realEditor == null) createTreeCellEditor(); Component c = realEditor.getTreeCellEditor...
52,615
protected boolean inHitRegion(int value0, int value1) { return false; // TODO }
protected boolean inHitRegion(int x, int y) { return false; // TODO }
52,616
protected boolean inHitRegion(int value0, int value1) { return false; // TODO }
protected boolean inHitRegion(int value0, int value1) { Dimension d = editingContainer.getPreferredSize(); int textX = offset; if (editingIcon != null) textX += editingIcon.getIconWidth() + 4; if ((d.width > textX && x >= textX && x <= d.width) && (y >= 0 && y <= d.height)) return true; return false; // TODO }
52,617
public boolean isCellEditable(EventObject value0) { return false; // TODO }
public boolean isCellEditable(EventObject event) { if (editingComponent == null) configureEditingComponent(tree, renderer, realEditor); if (realEditor.isCellEditable(event)) { return false; // TODO }
52,618
public boolean isCellEditable(EventObject value0) { return false; // TODO }
public boolean isCellEditable(EventObject value0) { prepareForEditing(); return true; } return false; // TODO }
52,619
protected void prepareForEditing() { // TODO }
editingContainer.add(editingComponent); editingContainer.add(editingComponent); protectededitingContainer.add(editingComponent); voideditingContainer.add(editingComponent); prepareForEditing()editingContainer.add(editingComponent); editingContainer.add(editingComponent); { //editingContainer.add(editingComponent); TOD...
52,620
public void setBorderSelectionColor(Color value0) { // TODO }
public void setBorderSelectionColor(Color newColor) { // TODO }
52,621
public void setBorderSelectionColor(Color value0) { // TODO }
this.borderSelectionColor = newColor; this.borderSelectionColor = newColor; publicthis.borderSelectionColor = newColor; voidthis.borderSelectionColor = newColor; setBorderSelectionColor(Colorthis.borderSelectionColor = newColor; value0)this.borderSelectionColor = newColor; this.borderSelectionColor = newColor; { //thi...
52,622
public void setFont(Font value0) { // TODO }
public void setFont(Font font) { // TODO }
52,623
public void setFont(Font value0) { // TODO }
if (font != null) this.font = font; else this.font = renderer.getFont(); if (font != null) this.font = font; else this.font = renderer.getFont(); publicif (font != null) this.font = font; else this.font = renderer.getFont(); voidif (font != null) this.font = font; else this.font = renderer.getFont(); setFont(Fontif (fo...
52,624
protected void setTree(JTree value0) { // TODO }
protected void setTree(JTree newTree) { // TODO }
52,625
protected void setTree(JTree value0) { // TODO }
tree = newTree; tree = newTree; protectedtree = newTree; voidtree = newTree; setTree(JTreetree = newTree; value0)tree = newTree; tree = newTree; { //tree = newTree; TODOtree = newTree; tree = newTree; }
52,626
public boolean shouldSelectCell(EventObject value0) { return false; // TODO }
public boolean shouldSelectCell(EventObject event) { return false; // TODO }
52,627
public boolean shouldSelectCell(EventObject value0) { return false; // TODO }
public boolean shouldSelectCell(EventObject value0) { return true; // TODO }
52,628
protected boolean shouldStartEditingTimer(EventObject value0) { return false; // TODO }
protected boolean shouldStartEditingTimer(EventObject event) { return false; // TODO }
52,629
protected boolean shouldStartEditingTimer(EventObject value0) { return false; // TODO }
protected boolean shouldStartEditingTimer(EventObject value0) { if (!(event instanceof MouseEvent) && inHitRegion(((MouseEvent) event).getX(), ((MouseEvent) event).getY()) && ((MouseEvent) event). getClickCount() == 1) return true; return false; // TODO }
52,630
protected void startEditingTimer() { // TODO }
if (timer == null) timer = new javax.swing.Timer(1200, this); timer.start(); if (timer == null) timer = new javax.swing.Timer(1200, this); timer.start(); protectedif (timer == null) timer = new javax.swing.Timer(1200, this); timer.start(); voidif (timer == null) timer = new javax.swing.Timer(1200, this); timer.start();...
52,631
public boolean stopCellEditing() { return false; // TODO }
public boolean stopCellEditing() { if (editingComponent == null) configureEditingComponent(tree, renderer, realEditor); if (realEditor.stopCellEditing()) { timer.stop(); tree.setCellEditor(null); return true; } return false; // TODO }
52,632
public void valueChanged(TreeSelectionEvent value0) { // TODO }
public void valueChanged(TreeSelectionEvent e) { // TODO }
52,633
public void valueChanged(TreeSelectionEvent value0) { // TODO }
lastPath = e.getNewLeadSelectionPath(); lastRow = tree.getRowForPath(lastPath); TreeSelectionListener[] listeners = tree.getTreeSelectionListeners(); for (int index = 0; index < listeners.length; ++index) listeners[index].valueChanged(e); lastPath = e.getNewLeadSelectionPath(); lastRow = tree.getRowForPath(lastPath); ...
52,634
public String complete(CommandLine partial) throws CompletionException { //System.out.println("completing \"" + partial + "\""); String max = ""; for (int i = 0; i < syntaxes.length; i++) { try { final String s = syntaxes[ i].complete(partial ...
public String complete(CommandLine partial) throws CompletionException { //System.out.println("completing \"" + partial + "\""); String max = ""; for (int i = 0; i < syntaxes.length; i++) { try { final String s = syntaxes[ i].complete(partial ...
52,635
public void deployCoreDestination(boolean isQueue, String destName, MessageStore ms, PersistenceManager pm) throws JMSException { deployCoreDestination(isQueue, destName, ms, pm, 100, 20, 10); }
public void deployCoreDestination(boolean isQueue, String destName, MessageStore ms, PersistenceManager pm) throws JMSException { deployCoreDestination(isQueue, destName, ms, pm, 100, 20, 10); }
52,636
public void deployCoreDestination(boolean isQueue, String destName, MessageStore ms, PersistenceManager pm) throws JMSException { deployCoreDestination(isQueue, destName, ms, pm, 100, 20, 10); }
public void deployCoreDestination(boolean isQueue, String destName, MessageStore ms, PersistenceManager pm) throws JMSException { try { if (log.isTraceEnabled()) { log.trace("creating core destination for " + destName); } CoreDestination cd = getCoreDestinationInternal(isQ...
52,637
public void addAsfMessage(MessageProxy m, int consumerID, long channelId, int maxDeliveries) { throw new IllegalStateException("This invocation should not be handled here!"); }
public void addAsfMessage(MessageProxy m, int consumerID, long channelId, int maxDeliveries, SessionDelegate connectionConsumerSession) { throw new IllegalStateException("This invocation should not be handled here!"); }
52,638
public void cancelDeliveries(List ackInfos) { throw new IllegalStateException("This invocation should not be handled here!"); }
public void cancelDeliveries(List cancels) { throw new IllegalStateException("This invocation should not be handled here!"); }
52,639
public static Box layout(LayoutContext c, Box block, Content content) { // copy the extents Rectangle oe = c.getExtents(); // save height incase fixed height int original_height = block.height; // do children's layout c.setExtents(new Rectangle(c.getExtents())); List...
public static BlockBox layout(LayoutContext c, BlockBox block, Content content) { // copy the extents Rectangle oe = c.getExtents(); // save height incase fixed height int original_height = block.height; // do children's layout c.setExtents(new Rectangle(c.getExtents())); ...
52,640
public InlineBox createInline(Context c, Node node, String text, InlineBox prev, InlineBox prev_align, int avail, int max, Font font) { InlineBox inline = new InlineBox(); inline.setNode(node); inline.whitespace = getWhitespace(c, node); // prepare a new inline with a substring t...
public InlineBox createInline(Context c, Node node, String text, InlineBox prev, InlineBox prev_align, int avail, int max, Font font) { InlineBox inline = new InlineBox(); inline.setNode(node); CalculatedStyle style = c.css.getStyle(node); inline.whitespace = getWhitespace(style); ...
52,647
public InlineBox createInline(Context c, Node node, String text, InlineBox prev, InlineBox prev_align, int avail, int max, Font font) { InlineBox inline = new InlineBox(); inline.setNode(node); inline.whitespace = getWhitespace(c, node); // prepare a new inline with a substring t...
public InlineBox createInline(Context c, Node node, String text, InlineBox prev, InlineBox prev_align, int avail, int max, Font font) { InlineBox inline = new InlineBox(); inline.setNode(node); inline.whitespace = getWhitespace(c, node); // prepare a new inline with a substring t...
52,648
public String getWhitespace(Context c, Node node) { Element e = null; if (node instanceof Element) { e = (Element) node; } else { e = (Element) node.getParentNode(); } String whitespace = c.css.getStyle(e).getStringProperty("white-space"); if (whitespa...
public String getWhitespace(Context c, Node node) { Element e = null; if (node instanceof Element) { e = (Element) node; } else { e = (Element) node.getParentNode(); } String whitespace = c.css.getStyle(e).getStringProperty("white-space"); if (whitespa...
52,649
public String stripWhitespace(Context c, Node node, InlineBox prev, String text) { String whitespace = getWhitespace(c, node); //u.p("stripWhitespace: text = -" + text + "-"); //u.p("whitespace = " + whitespace); // do step 1 if (whitespace.equals("normal") || ...
public String stripWhitespace(CalculatedStyle style, InlineBox prev, String text) { String whitespace = getWhitespace(c, node); //u.p("stripWhitespace: text = -" + text + "-"); //u.p("whitespace = " + whitespace); // do step 1 if (whitespace.equals("normal") || ...
52,650
public String stripWhitespace(Context c, Node node, InlineBox prev, String text) { String whitespace = getWhitespace(c, node); //u.p("stripWhitespace: text = -" + text + "-"); //u.p("whitespace = " + whitespace); // do step 1 if (whitespace.equals("normal") || ...
public String stripWhitespace(Context c, Node node, InlineBox prev, String text) { String whitespace = getWhitespace(style); //u.p("stripWhitespace: text = -" + text + "-"); //u.p("whitespace = " + whitespace); // do step 1 if (whitespace.equals("normal") || ...
52,651
protected void chartExecution(XYSeriesCollection dataset, Execution execution, ProviderToSeriesIndexMapper providerToSeries, GraphInfo graphInfo) throws Exception { log.info("Charting " + execution); String providerName = execution.getProvid...
protected void chartExecution(XYSeriesCollection dataset, Execution execution, ProviderToSeriesIndexMapper providerToSeries, GraphInfo graphInfo) throws Exception { log.info("Charting " + execution); String providerName = execution.getProvid...
52,653
protected void chartExecution(XYSeriesCollection dataset, Execution execution, ProviderToSeriesIndexMapper providerToSeries, GraphInfo graphInfo) throws Exception { log.info("Charting " + execution); String providerName = execution.getProvid...
protected void chartExecution(XYSeriesCollection dataset, Execution execution, ProviderToSeriesIndexMapper providerToSeries, GraphInfo graphInfo) throws Exception { log.info("Charting " + execution); String providerName = execution.getProvid...
52,654
protected void chartExecution(XYSeriesCollection dataset, Execution execution, ProviderToSeriesIndexMapper providerToSeries, GraphInfo graphInfo) throws Exception { log.info("Charting " + execution); String providerName = execution.getProvid...
protected void chartExecution(XYSeriesCollection dataset, Execution execution, ProviderToSeriesIndexMapper providerToSeries, GraphInfo graphInfo) throws Exception { log.info("Charting " + execution); String providerName = execution.getProvid...
52,655
protected void chartExecution(XYSeriesCollection dataset, Execution execution, ProviderToSeriesIndexMapper providerToSeries, GraphInfo graphInfo) throws Exception { log.info("Charting " + execution); String providerName = execution.getProvid...
protected void chartExecution(XYSeriesCollection dataset, Execution execution, ProviderToSeriesIndexMapper providerToSeries, GraphInfo graphInfo) throws Exception { log.info("Charting " + execution); String providerName = execution.getProvid...
52,656
public String getTestString() { StringBuffer sb = new StringBuffer(); // type if ( this instanceof LineBox ) { sb.append( "line:" ); } else if ( this instanceof InlineBox ) { sb.append( "inline:" ); } else { sb.append( "box:" ); } // ...
sb.append("\n"); sb.append(" margin = " + this.margin +"\n"); sb.append(" border = " + this.border +"\n"); sb.append(" padding = " + this.padding +"\n"); sb.append("\n"); sb.append(" margin = " + this.margin +"\n"); sb.append(" border = " + this.border +"\n"); sb.append(" padding = " + this.padding +"\n"); sb...
52,658
public FlowView(Element element) { super(element); }
public FlowView(Element element, int axis) { super(element); }
52,659
public FlowView(Element element) { super(element); }
public FlowView(Element element) { super(element, axis); strategy = sharedStrategy; }
52,660
public int compare(Object o, Object o1) { return ((CSSName)o).toString().compareTo(((CSSName)o1).toString()); //To change body of implemented methods use File | Settings | File Templates. }
public int compare(Object o, Object o1) { return ((CSSName)o).toString().compareTo(((CSSName)o1).toString()); //To change body of implemented methods use File | Settings | File Templates. }
52,661
private CSSName(String propName) { try { this.propName = propName; this.assignedID = maxAssigned++; } catch ( Exception ex ) { ex.printStackTrace(); } }
private CSSName( String propName ) { try { this.propName = propName; this.assignedID = maxAssigned++; } catch ( Exception ex ) { ex.printStackTrace(); } }
52,662
private CSSName(String propName) { try { this.propName = propName; this.assignedID = maxAssigned++; } catch ( Exception ex ) { ex.printStackTrace(); } }
private CSSName(String propName) { try { this.propName = propName; this.assignedID = CSSName.maxAssigned++; } catch ( Exception ex ) { ex.printStackTrace(); } }
52,663
private static synchronized final CSSName addProperty(String propName) { if ( ALL_PROPERTY_NAMES == null ) { ALL_PROPERTY_NAMES = new TreeMap(); } CSSName cssName = new CSSName(propName); ALL_PROPERTY_NAMES.put(propName, cssName); return cssName; }
private final static synchronized CSSName addProperty( String propName ) { if ( ALL_PROPERTY_NAMES == null ) { ALL_PROPERTY_NAMES = new TreeMap(); } CSSName cssName = new CSSName(propName); ALL_PROPERTY_NAMES.put(propName, cssName); return cssName; }
52,664
private static synchronized final CSSName addProperty(String propName) { if ( ALL_PROPERTY_NAMES == null ) { ALL_PROPERTY_NAMES = new TreeMap(); } CSSName cssName = new CSSName(propName); ALL_PROPERTY_NAMES.put(propName, cssName); return cssName; }
private static synchronized final CSSName addProperty(String propName) { if ( ALL_PROPERTY_NAMES == null ) { ALL_PROPERTY_NAMES = new TreeMap(); } CSSName cssName = new CSSName(propName); ALL_PROPERTY_NAMES.put(propName, cssName); return cssName; }
52,665
public static final int countCSSNames() { return maxAssigned; }
public static final int countCSSNames() { return maxAssigned; }
52,666
public static CSSName getByPropertyName(String propName) { CSSName cssName = (CSSName) ALL_PROPERTY_NAMES.get(propName); if ( cssName == null ) { throw new XRRuntimeException("Property name " + propName + " has no CSSName instance assigned to it."); } return cssName; }
public static CSSName getByPropertyName(String propName) { CSSName cssName = (CSSName) ALL_PROPERTY_NAMES.get(propName); if ( cssName == null ) { throw new XRRuntimeException("Property name " + propName + " has no CSSName instance assigned to it."); } return cssName; }
52,667
public static CSSName getByPropertyName(String propName) { CSSName cssName = (CSSName) ALL_PROPERTY_NAMES.get(propName); if ( cssName == null ) { throw new XRRuntimeException("Property name " + propName + " has no CSSName instance assigned to it."); } return cssName; }
public static CSSName getByPropertyName(String propName) { CSSName cssName = (CSSName) ALL_PROPERTY_NAMES.get(propName); if ( cssName == null ) { throw new XRRuntimeException( "Property name " + propName + " has no CSSName instance assigned to it." ); } return cssName; }
52,668
public void tearDown() throws Exception { ServerManagement.undeployQueue("Queue"); ServerManagement.deInit(); super.tearDown(); }
public void tearDown() throws Exception { ServerManagement.undeployQueue("Queue"); super.tearDown(); }
52,669
public void actionPerformed(ActionEvent e) { CellFactory.createJoin(workflow, model, location); }
public void actionPerformed(ActionEvent e) { CellFactory.createJoin(workflow, model, location); }
52,670
protected void doRender(Context c) { // paint the normal swing background first // but only if we aren't printing. Graphics g = c.getGraphics(); if (!(g instanceof PrinterGraphics)) { g.setColor(getBackground()); g.fillRect(0, 0, getWidth(), getHeight()); } ...
protected void doRender(Context c) { // paint the normal swing background first // but only if we aren't printing. Graphics g = c.getGraphics(); if (!(g instanceof PrinterGraphics)) { g.setColor(getBackground()); g.fillRect(0, 0, getWidth(), getHeight()); } ...
52,671
public LineMetrics getLineMetrics( Graphics2D graphics, Font font, String string ) { return font.getLineMetrics( string, graphics.getFontRenderContext() ); }
public LineMetrics getLineMetrics( Graphics2D graphics, Font font, String string ) { return new ScaledLineMetrics(font, font.getLineMetrics( string, graphics.getFontRenderContext() )); }
52,672
void redeliver(Receiver receiver);
void redeliver(Receiver receiver);
52,673
public PointerEvent buildEvent(byte[] data) { int buttons = data[0] & 7; // left, middle, right int x = data[1] & 0xff; if ((data[0] & 0x10) != 0) { x = x - 256; } int y = data[2] & 0xff; if ((data[0] & 0x20) != 0) { y = y - 256; } return new PointerEvent(buttons, x, y, PointerEvent.RELATIVE); }
public PointerEvent buildEvent(byte[] data) { int buttons = data[0] & 7; // left, middle, right int x = data[1] & 0xff; if ((data[0] & 0x10) != 0) { x = x - 256; } int y = data[2] & 0xff; if ((data[0] & 0x20) != 0) { y = y - 256; } return new PointerEvent(buttons, x, y, PointerEvent.RELATIVE); }
52,674
public PointerEvent buildEvent(byte[] data) { int buttons = data[0] & 7; // left, middle, right int x = data[1] & 0xff; if ((data[0] & 0x10) != 0) { x = x - 256; } int y = data[2] & 0xff; if ((data[0] & 0x20) != 0) { y = y - 256; } return new PointerEvent(buttons, x, y, PointerEvent.RELATIVE); }
public PointerEvent buildEvent(byte[] data) { int buttons = data[0] & 7; // left, middle, right int x = data[1] & 0xff; if ((data[0] & 0x10) != 0) { x = x - 256; } int y = data[2] & 0xff; if ((data[0] & 0x20) != 0) { y = y - 256; } return new PointerEvent(buttons, x, y, PointerEvent.RELATIVE); }
52,675
public PointerEvent buildEvent(byte[] data) { int buttons = data[0] & 7; // left, middle, right int x = data[1] & 0xff; if ((data[0] & 0x10) != 0) { x = x - 256; } int y = data[2] & 0xff; if ((data[0] & 0x20) != 0) { y = y - 256; } return new PointerEvent(buttons, x, y, PointerEvent.RELATIVE); }
public PointerEvent buildEvent(byte[] data) { int buttons = data[0] & 7; // left, middle, right int x = data[1] & 0xff; if ((data[0] & 0x10) != 0) { x = x - 256; } int y = data[2] & 0xff; if ((data[0] & 0x20) != 0) { y = y - 256; } return new PointerEvent(buttons, x, y, PointerEvent.RELATIVE); }
52,676
public abstract DSAParams getParams();
public abstract DSAParams getParams();
52,677
public boolean add(Receiver r) { if (log.isTraceEnabled()) { log.trace("Attempting to add receiver to channel"); } boolean added = router.add(r); if (added) { deliver(); } return added; }
public boolean add(Receiver r) { if (log.isTraceEnabled()) { log.trace("Attempting to add receiver to channel"); } boolean added = router.add(r); if (added) { deliver(); } return added; }
52,680
public void redeliver(Delivery old, Receiver r) throws Throwable { if (log.isTraceEnabled()) { log.trace(this + " redelivery request for delivery " + old + " by receiver " + r); } // TODO must be done atomically if (state.remove(old)) { if (log.isTraceEnabled()) { log.trace(this + "old ...
public void redeliver(Delivery old, Receiver r) throws Throwable { if (log.isTraceEnabled()) { log.trace(this + " redelivery request for delivery " + old + " by receiver " + r); } // TODO must be done atomically if (state.remove(old)) { if (log.isTraceEnabled()) { log.trace(this + "old ...
52,682
public void redeliver(Delivery old, Receiver r) throws Throwable { if (log.isTraceEnabled()) { log.trace(this + " redelivery request for delivery " + old + " by receiver " + r); } // TODO must be done atomically if (state.remove(old)) { if (log.isTraceEnabled()) { log.trace(this + "old ...
public void redeliver(Delivery old, Receiver r) throws Throwable { if (log.isTraceEnabled()) { log.trace(this + " redelivery request for delivery " + old + " by receiver " + r); } // TODO must be done atomically if (state.remove(old)) { if (log.isTraceEnabled()) { log.trace(this + "old ...
52,683
public Set handle(DeliveryObserver observer, Routable routable, Transaction tx) { Set deliveries = new HashSet(); // TODO synchronizing this is going to produce a bottleneck, do we really need to? synchronized(receivers) { for(Iterator i = receivers.iterator(); i.hasNext(); ) { ...
public Set handle(DeliveryObserver observer, Routable routable, Transaction tx) { Set deliveries = new HashSet(); // TODO synchronizing this is going to produce a bottleneck, do we really need to? synchronized(receivers) { for(Iterator i = receivers.iterator(); i.hasNext(); ) { ...
52,685
protected ResolveResult() { resolvedObj = null; remainingName = null; }
protected ResolveResult() { resolvedObj = null; remainingName = null; }
52,686
public void appendRemainingComponent(String name) { try { remainingName.add(name); } catch (InvalidNameException _) { } }
public void appendRemainingComponent(String name) { try { remainingName.add(name); } catch (InvalidNameException _) { } }
52,687
public void appendRemainingName(Name name) { try { remainingName.addAll(name); } catch (InvalidNameException _) { } }
public void appendRemainingName(Name name) { try { remainingName.addAll(name); } catch (InvalidNameException _) { } }
52,688
public Name getRemainingName() { return remainingName; }
public Name getRemainingName() { return remainingName; }
52,689
public Object getResolvedObj() { return resolvedObj; }
public Object getResolvedObj() { return resolvedObj; }
52,690
public void setRemainingName(Name name) { remainingName = (Name) name.clone(); }
public void setRemainingName(Name name) { remainingName = (Name) name.clone(); }
52,691
public void setResolvedObj(Object obj) { resolvedObj = obj; }
public void setResolvedObj(Object obj) { resolvedObj = obj; }
52,692
public void addColumn(TableColumn col) { if (col == null) throw new IllegalArgumentException("Null 'col' argument."); tableColumns.add(col); invalidateWidthCache(); fireColumnAdded(new TableColumnModelEvent(this, 0, tableColumns.size() - 1)); }
public void addColumn(TableColumn column) { if (col == null) throw new IllegalArgumentException("Null 'col' argument."); tableColumns.add(col); invalidateWidthCache(); fireColumnAdded(new TableColumnModelEvent(this, 0, tableColumns.size() - 1)); }
52,693
public void addColumn(TableColumn col) { if (col == null) throw new IllegalArgumentException("Null 'col' argument."); tableColumns.add(col); invalidateWidthCache(); fireColumnAdded(new TableColumnModelEvent(this, 0, tableColumns.size() - 1)); }
public void addColumn(TableColumn col) { if (column == null) throw new IllegalArgumentException("Null 'col' argument."); tableColumns.add(col); invalidateWidthCache(); fireColumnAdded(new TableColumnModelEvent(this, 0, tableColumns.size() - 1)); }
52,694
public void addColumn(TableColumn col) { if (col == null) throw new IllegalArgumentException("Null 'col' argument."); tableColumns.add(col); invalidateWidthCache(); fireColumnAdded(new TableColumnModelEvent(this, 0, tableColumns.size() - 1)); }
public void addColumn(TableColumn col) { if (col == null) throw new IllegalArgumentException("Null 'col' argument."); tableColumns.add(column); column.addPropertyChangeListener(this); invalidateWidthCache(); fireColumnAdded(new TableColumnModelEvent(this, 0, tableColumns.size() - 1)); }
52,695
public void addColumn(TableColumn col) { if (col == null) throw new IllegalArgumentException("Null 'col' argument."); tableColumns.add(col); invalidateWidthCache(); fireColumnAdded(new TableColumnModelEvent(this, 0, tableColumns.size() - 1)); }
public void addColumn(TableColumn col) { if (col == null) throw new IllegalArgumentException("Null 'col' argument."); tableColumns.add(col); invalidateWidthCache(); fireColumnAdded(new TableColumnModelEvent(this, 0, tableColumns.size() - 1)); }
52,696
protected void fireColumnAdded(TableColumnModelEvent e) { TableColumnModelListener[] listeners = getColumnModelListeners(); for (int i=0; i< listeners.length; i++) listeners[i].columnAdded(e); }
protected void fireColumnAdded(TableColumnModelEvent e) { TableColumnModelListener[] listeners = getColumnModelListeners(); for (int i = 0; i < listeners.length; i++) listeners[i].columnAdded(e); }
52,697
protected void fireColumnMarginChanged() { EventListener [] listeners = getListeners(TableColumnModelListener.class); for (int i = 0; i < listeners.length; ++i) ((TableColumnModelListener)listeners[i]).columnMarginChanged(changeEvent); }
protected void fireColumnMarginChanged() { EventListener [] listeners = getListeners(TableColumnModelListener.class); for (int i = 0; i < listeners.length; ++i) ((TableColumnModelListener) listeners[i]).columnMarginChanged(changeEvent); }
52,698
protected void fireColumnMoved(TableColumnModelEvent e) { TableColumnModelListener[] listeners = getColumnModelListeners(); for (int i=0; i< listeners.length; i++) listeners[i].columnMoved(e); }
protected void fireColumnMoved(TableColumnModelEvent e) { TableColumnModelListener[] listeners = getColumnModelListeners(); for (int i = 0; i < listeners.length; i++) listeners[i].columnMoved(e); }
52,699
protected void fireColumnRemoved(TableColumnModelEvent e) { TableColumnModelListener[] listeners = getColumnModelListeners(); for (int i=0; i< listeners.length; i++) listeners[i].columnRemoved(e); }
protected void fireColumnRemoved(TableColumnModelEvent e) { TableColumnModelListener[] listeners = getColumnModelListeners(); for (int i = 0; i < listeners.length; i++) listeners[i].columnRemoved(e); }
52,700
protected void fireColumnSelectionChanged(ListSelectionEvent evt) { EventListener [] listeners = getListeners(TableColumnModelListener.class); for (int i = 0; i < listeners.length; ++i) ((TableColumnModelListener)listeners[i]).columnSelectionChanged(evt); }
protected void fireColumnSelectionChanged(ListSelectionEvent e) { EventListener [] listeners = getListeners(TableColumnModelListener.class); for (int i = 0; i < listeners.length; ++i) ((TableColumnModelListener)listeners[i]).columnSelectionChanged(evt); }
52,701
protected void fireColumnSelectionChanged(ListSelectionEvent evt) { EventListener [] listeners = getListeners(TableColumnModelListener.class); for (int i = 0; i < listeners.length; ++i) ((TableColumnModelListener)listeners[i]).columnSelectionChanged(evt); }
protected void fireColumnSelectionChanged(ListSelectionEvent evt) { EventListener [] listeners = getListeners(TableColumnModelListener.class); for (int i = 0; i < listeners.length; ++i) ((TableColumnModelListener) listeners[i]).columnSelectionChanged(e); }
52,702
public TableColumn getColumn(int i) { return (TableColumn) tableColumns.get(i); }
public TableColumn getColumn(int columnIndex) { return (TableColumn) tableColumns.get(i); }
52,703
public TableColumn getColumn(int i) { return (TableColumn) tableColumns.get(i); }
public TableColumn getColumn(int i) { return (TableColumn) tableColumns.get(columnIndex); }
52,704
public int getColumnIndexAtX(int x) { for (int i = 0; i < tableColumns.size(); ++i) { int w = ((TableColumn)tableColumns.get(i)).getWidth(); if (0 <= x && x < w) return i; else x -= w; } return -1; }
public int getColumnIndexAtX(int x) { for (int i = 0; i < tableColumns.size(); ++i) { int w = ((TableColumn) tableColumns.get(i)).getWidth(); if (0 <= x && x < w) return i; else x -= w; } return -1; }
52,705
public void moveColumn(int i, int j) { int columnCount = getColumnCount(); if (i < 0 || i >= columnCount) throw new IllegalArgumentException("Index 'i' out of range."); if (j < 0 || j >= columnCount) throw new IllegalArgumentException("Index 'j' out of range."); Object column = tableColumns.rem...
public void moveColumn(int i, int j) { int columnCount = getColumnCount(); if (i < 0 || i >= columnCount) throw new IllegalArgumentException("Index 'i' out of range."); if (j < 0 || j >= columnCount) throw new IllegalArgumentException("Index 'j' out of range."); Object column = tableColumns.rem...
52,706
public void propertyChange(PropertyChangeEvent evt) { if (evt.getPropertyName().equals(TableColumn.COLUMN_WIDTH_PROPERTY)) invalidateWidthCache(); }
public void propertyChange(PropertyChangeEvent event) { if (evt.getPropertyName().equals(TableColumn.COLUMN_WIDTH_PROPERTY)) invalidateWidthCache(); }
52,707
public void propertyChange(PropertyChangeEvent evt) { if (evt.getPropertyName().equals(TableColumn.COLUMN_WIDTH_PROPERTY)) invalidateWidthCache(); }
public void propertyChange(PropertyChangeEvent evt) { if (evt.getPropertyName().equals(TableColumn.COLUMN_WIDTH_PROPERTY)) invalidateWidthCache(); }
52,708
protected void recalcWidthCache() { if (totalColumnWidth == -1) { totalColumnWidth = 0; for (int i = 0; i < tableColumns.size(); ++i) { totalColumnWidth += ((TableColumn)tableColumns.get(i)).getWidth(); } } }
protected void recalcWidthCache() { if (totalColumnWidth == -1) { totalColumnWidth = 0; for (int i = 0; i < tableColumns.size(); ++i) { totalColumnWidth += ((TableColumn) tableColumns.get(i)).getWidth(); } } }
52,709