bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public int write (ByteBuffer src) { int n = src.remaining (); for (int i=0; i<n; i++) writeSingle (src.get ()); return n; }
public int write (ByteBuffer src) { int n = src.remaining (); for (int i=0; i<n; i++) writeSingle (src.get ()); return n; }
27,337
public void writeSingle(int value) { // FIXME: busy waiting for the transmitter buffer to be empty while ((port.inPortByte(basePort + 5) & 32) == 0); port.outPortByte(basePort, value); }
public void writeSingle(int value) { // FIXME: busy waiting for the transmitter buffer to be empty while ((port.inPortByte(basePort + 5) & 32) == 0); port.outPortByte(basePort, value); }
27,338
public void from_any(Any an_any) throws TypeMismatch, InvalidValue { checkType(official_type, an_any.type()); try { if (!an_any.type().content_type().equal(content)) throw new InvalidValue(CONTENT); } catch (BadKind e) { TypeMismatch t = new TypeMismatch(...
public void from_any(Any an_any) throws TypeMismatch, InvalidValue { checkType(official_type, an_any.type()); try { if (!an_any.type().content_type().equal(content)) throw new InvalidValue(CONTENT); } catch (BadKind e) { TypeMismatch t = new TypeMismatch(...
27,339
protected BitmapGraphics(MemoryResource mem, int width, int height, int offset, int bytesPerLine) { this.mem = mem; this.offset = offset; this.bytesPerLine = bytesPerLine; this.width = width; this.height = height; }
protected BitmapGraphics(MemoryResource mem, int width, int height, int offset, int bytesPerLine) { this.mem = mem; this.offset = offset; this.bytesPerLine = bytesPerLine; this.width = width; this.height = height; }
27,340
protected abstract void doCopyArea(int x, int y, int width, int height, int dx, int dy);
protected abstract void doCopyArea(int x, int y, int width, int height, int dx, int dy);
27,341
protected abstract void doDrawImage(Raster src, int srcX, int srcY, int dstX, int dstY, int width, int height);
protected abstract void doDrawImage(Raster src, int srcX, int srcY, int dstX, int dstY, int width, int height);
27,342
public Object getDataElements(int x, int y, int w, int h, Object outData) { return sampleModel.getDataElements(x-sampleModelTranslateX, y-sampleModelTranslateY, w, h, outData, dataBuffer); }
public Object getDataElements(int x, int y, int w, int h, Object outData) { return sampleModel.getDataElements(x-sampleModelTranslateX, y-sampleModelTranslateY, w, h, outData, dataBuffer); }
27,343
public Object getDataElements(int x, int y, int w, int h, Object outData) { return sampleModel.getDataElements(x-sampleModelTranslateX, y-sampleModelTranslateY, w, h, outData, dataBuffer); }
public Object getDataElements(int x, int y, int w, int h, Object outData) { return sampleModel.getDataElements(x-sampleModelTranslateX, y-sampleModelTranslateY, w, h, outData, dataBuffer); }
27,344
protected abstract void doDrawPixels(int x, int y, int count, int color, int mode);
protected abstract void doDrawPixels(int x, int y, int count, int color, int mode);
27,345
public void writeCData(String data) throws XMLStreamException { try { endStartElement(); if (data.indexOf("]]") != -1) throw new IllegalArgumentException(data); writer.write("<![CDATA["); writer.write(data); writer.write("]]>"); } catch (IOException e) ...
public void writeCData(String data) throws XMLStreamException { try { endStartElement(); if (data.indexOf("]]") != -1) throw new IllegalArgumentException(data); writer.write("<![CDATA["); writer.write(data); writer.write("]]>"); } catch (IOException e) ...
27,349
public void writeCharacters(String text) throws XMLStreamException { try { endStartElement(); if (text != null) writeEncoded(text, false); } catch (IOException e) { XMLStreamException e2 = new XMLStreamException(e); e2.initCause(e); throw e2; }...
public void writeCharacters(String text) throws XMLStreamException { try { endStartElement(); if (hasXML11RestrictedChars) writeEncodedWithRestrictedChars(text, false); else writeEncoded(text, false); } catch (IOException e) { XMLStreamException e2 = new XMLStrea...
27,350
public void writeComment(String data) throws XMLStreamException { try { endStartElement(); if (data != null && data.indexOf("--") != -1) throw new IllegalArgumentException(data); writer.write("<!--"); if (data != null) writer.write(data); ...
public void writeComment(String data) throws XMLStreamException { try { endStartElement(); if (data != null && data.indexOf("--") != -1) throw new IllegalArgumentException(data); writer.write("<!--"); if (data != null) writer.write(data); ...
27,351
public void writeComment(String data) throws XMLStreamException { try { endStartElement(); if (data != null && data.indexOf("--") != -1) throw new IllegalArgumentException(data); writer.write("<!--"); if (data != null) writer.write(data); ...
public void writeComment(String data) throws XMLStreamException { try { endStartElement(); if (data != null && data.indexOf("--") != -1) throw new IllegalArgumentException(data); writer.write("<!--"); if (hasXML11RestrictedChars) { int[] seq = UnicodeRe...
27,352
public void writeDefaultNamespace(String namespaceURI) throws XMLStreamException { writeNamespace(XMLConstants.DEFAULT_NS_PREFIX, namespaceURI); }
public void writeDefaultNamespace(String namespaceURI) throws XMLStreamException { if (!inStartElement) throw new IllegalStateException(); if (!isURI(namespaceURI)) throw new IllegalArgumentException("illegal URI: " + namespaceURI); writeNamespaceImpl(XMLConstants.DEFAULT_NS_PREFIX, namespaceURI); }
27,354
public void writeNamespace(String prefix, String namespaceURI) throws XMLStreamException { if (!inStartElement) throw new IllegalStateException(); try { if (prefix == null) prefix = XMLConstants.DEFAULT_NS_PREFIX; setPrefix(prefix, namespaceURI); writer.write(...
public void writeNamespace(String prefix, String namespaceURI) throws XMLStreamException { if (!inStartElement) throw new IllegalStateException(); try { if (prefix == null) prefix = XMLConstants.DEFAULT_NS_PREFIX; setPrefix(prefix, namespaceURI); writer.write(...
27,356
public final Class getCategory() { return JobOriginatingUserName.class; }
public Class getCategory() { return JobOriginatingUserName.class; }
27,359
public final String getName() { return "job-originating-user-name"; }
public String getName() { return "job-originating-user-name"; }
27,360
public String getName() { return (String) getAttribute(StyleConstants.NameAttribute); }
public String getName() { Object tag = getAttribute(StyleConstants.NameAttribute); String name = null; if (tag != null) name = tag.toString(); return name; }
27,361
public void end(HTML.Tag t) { // FIXME: Implement. print ("ParagraphAction.end not implemented"); }
public void end(HTML.Tag t) { // FIXME: Implement. blockClose(t); }
27,362
public void start(HTML.Tag t, MutableAttributeSet a) { // FIXME: Implement. print ("ParagraphAction.start not implemented"); }
public void start(HTML.Tag t, MutableAttributeSet a) { // FIXME: Implement. blockOpen(t, a); }
27,363
protected void blockOpen(HTML.Tag t, MutableAttributeSet attr) { printBuffer(); DefaultStyledDocument.ElementSpec element; element = new DefaultStyledDocument.ElementSpec(attr.copyAttributes(), DefaultStyledDocument.ElementSpec.StartTagType); parseBuffer.addElement(element); printBuffe...
protected void blockOpen(HTML.Tag t, MutableAttributeSet attr) { printBuffer(); DefaultStyledDocument.ElementSpec element; element = new DefaultStyledDocument.ElementSpec(attr.copyAttributes(), DefaultStyledDocument.ElementSpec.StartTagType); parseBuffer.addElement(element); printBuffe...
27,364
public String getName() { return (String) getAttribute(StyleConstants.NameAttribute); }
public String getName() { Object tag = getAttribute(StyleConstants.NameAttribute); String name = null; if (tag != null) name = tag.toString(); return name; }
27,366
protected void create(DefaultStyledDocument.ElementSpec[] data) { // FIXME: Not implemented System.out.println("create not implemented"); super.create(data); }
protected void create(ElementSpec[] data) { // FIXME: Not implemented System.out.println("create not implemented"); super.create(data); }
27,367
protected void create(DefaultStyledDocument.ElementSpec[] data) { // FIXME: Not implemented System.out.println("create not implemented"); super.create(data); }
protected void create(DefaultStyledDocument.ElementSpec[] data) { // FIXME: Not implemented super.create(data); }
27,368
protected Element createBranchElement(Element parent, AttributeSet a) { // FIXME: Not implemented System.out.println("createBranchElement not implemented"); return super.createBranchElement(parent, a); }
protected Element createBranchElement(Element parent, AttributeSet a) { // FIXME: Not implemented System.out.println("createBranchElement not implemented"); return super.createBranchElement(parent, a); }
27,369
protected AbstractDocument.AbstractElement createDefaultRoot() { // FIXME: Not implemented System.out.println("createDefaultRoot not implemented"); return super.createDefaultRoot(); }
protected AbstractElement createDefaultRoot() { // FIXME: Not implemented System.out.println("createDefaultRoot not implemented"); return super.createDefaultRoot(); }
27,370
protected AbstractDocument.AbstractElement createDefaultRoot() { // FIXME: Not implemented System.out.println("createDefaultRoot not implemented"); return super.createDefaultRoot(); }
protected AbstractDocument.AbstractElement createDefaultRoot() { // FIXME: Not implemented System.out.println("createDefaultRoot not implemented"); return super.createDefaultRoot(); }
27,371
protected Element createLeafElement(Element parent, AttributeSet a, int p0, int p1) { // FIXME: Not implemented System.out.println("createLeafElement not implemented"); return super.createLeafElement(parent, a, p0, p1); }
protected Element createLeafElement(Element parent, AttributeSet a, int p0, int p1) { // FIXME: Not implemented System.out.println("createLeafElement not implemented"); return super.createLeafElement(parent, a, p0, p1); }
27,372
public ElementIterator(Document document) { this.root = document.getDefaultRootElement(); this.currentElement = root; this.state = new int[5]; }
public ElementIterator(Document document) { this.root = document.getDefaultRootElement(); this.currentElement = root; this.state = new int[5]; }
27,373
public Element current() { return currentElement; }
public Element current() { Element current; if (stack == null) current = first(); else { current = null; if (! stack.isEmpty()) { ElementRef ref = (ElementRef) stack.peek(); Element el = ref.element; int index = ref.index; if (index == -1) current = el; else current = el.getElement(index); } } return current; }
27,374
public Element next() { previousItem = currentElement; if (currentElement == null) return null; if (! currentElement.isLeaf()) { ++currentDepth; if (currentDepth > state.length) { int[] newState = new int[state.length * 2]; System.arraycopy(state, 0, newState, 0, state.length); state...
public Element next() { previousItem = currentElement; if (currentElement == null) return null; if (! currentElement.isLeaf()) { ++currentDepth; if (currentDepth > state.length) { int[] newState = new int[state.length * 2]; System.arraycopy(state, 0, newState, 0, state.length); state...
27,375
public Element next() { previousItem = currentElement; if (currentElement == null) return null; if (! currentElement.isLeaf()) { ++currentDepth; if (currentDepth > state.length) { int[] newState = new int[state.length * 2]; System.arraycopy(state, 0, newState, 0, state.length); state...
public Element next() { previousItem = currentElement; if (currentElement == null) return null; if (! currentElement.isLeaf()) { ++currentDepth; if (currentDepth > state.length) { int[] newState = new int[state.length * 2]; System.arraycopy(state, 0, newState, 0, state.length); state...
27,376
public Element next() { previousItem = currentElement; if (currentElement == null) return null; if (! currentElement.isLeaf()) { ++currentDepth; if (currentDepth > state.length) { int[] newState = new int[state.length * 2]; System.arraycopy(state, 0, newState, 0, state.length); state...
public Element next() { previousItem = currentElement; if (currentElement == null) return null; if (! currentElement.isLeaf()) { ++currentDepth; if (currentDepth > state.length) { int[] newState = new int[state.length * 2]; System.arraycopy(state, 0, newState, 0, state.length); state...
27,377
public Element next() { previousItem = currentElement; if (currentElement == null) return null; if (! currentElement.isLeaf()) { ++currentDepth; if (currentDepth > state.length) { int[] newState = new int[state.length * 2]; System.arraycopy(state, 0, newState, 0, state.length); state...
public Element next() { previousItem = currentElement; if (currentElement == null) return null; if (! currentElement.isLeaf()) { ++currentDepth; if (currentDepth > state.length) { int[] newState = new int[state.length * 2]; System.arraycopy(state, 0, newState, 0, state.length); state...
27,378
public Element next() { previousItem = currentElement; if (currentElement == null) return null; if (! currentElement.isLeaf()) { ++currentDepth; if (currentDepth > state.length) { int[] newState = new int[state.length * 2]; System.arraycopy(state, 0, newState, 0, state.length); state...
public Element next() { previousItem = currentElement; if (currentElement == null) return null; if (! currentElement.isLeaf()) { ++currentDepth; if (currentDepth > state.length) { int[] newState = new int[state.length * 2]; System.arraycopy(state, 0, newState, 0, state.length); state...
27,379
public Element next() { previousItem = currentElement; if (currentElement == null) return null; if (! currentElement.isLeaf()) { ++currentDepth; if (currentDepth > state.length) { int[] newState = new int[state.length * 2]; System.arraycopy(state, 0, newState, 0, state.length); state...
public Element next() { previousItem = currentElement; if (currentElement == null) return null; if (! currentElement.isLeaf()) { ++currentDepth; if (currentDepth > state.length) { int[] newState = new int[state.length * 2]; System.arraycopy(state, 0, newState, 0, state.length); state...
27,380
public Element next() { previousItem = currentElement; if (currentElement == null) return null; if (! currentElement.isLeaf()) { ++currentDepth; if (currentDepth > state.length) { int[] newState = new int[state.length * 2]; System.arraycopy(state, 0, newState, 0, state.length); state...
public Element next() { previousItem = currentElement; if (currentElement == null) return null; if (! currentElement.isLeaf()) { ++currentDepth; if (currentDepth > state.length) { int[] newState = new int[state.length * 2]; System.arraycopy(state, 0, newState, 0, state.length); state...
27,381
public void updateUI() { ScrollPaneUI b = (ScrollPaneUI)UIManager.getUI(this); setUI(b); }
public void updateUI() { ScrollPaneUI b = (ScrollPaneUI)UIManager.getUI(this); setUI(b); }
27,382
public final Class getCategory() { return JobHoldUntil.class; }
public Class getCategory() { return JobHoldUntil.class; }
27,383
public final String getName() { return "job-hold-until"; }
public String getName() { return "job-hold-until"; }
27,384
public void addActionListener(ActionListener l) { actions.addElement(l); }
public void addActionListener(ActionListener l) { actions.addElement(l); }
27,385
public void cancelCellEditing() { fireEditingCanceled(); } // cancelCellEditing()
public void cancelCellEditing() { fireEditingCanceled(); } // cancelCellEditing()
27,386
public void cancelCellEditing() { fireEditingCanceled(); } // cancelCellEditing()
public void cancelCellEditing() { fireEditingCanceled(); } // cancelCellEditing()
27,387
public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row);
public Component getTreeCellEditorComponent(JTree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row);
27,388
public boolean isCellEditable(EventObject event) { return true; } // isCellEditable()
public boolean isCellEditable(EventObject event) { return true; } // isCellEditable()
27,389
public boolean isCellEditable(EventObject event) { return true; } // isCellEditable()
public boolean isCellEditable(EventObject event) { return true; } // isCellEditable()
27,390
public boolean shouldSelectCell(EventObject event) { return true; } // shouldSelectCell()
public boolean shouldSelectCell(EventObject event) { return true; } // shouldSelectCell()
27,391
public boolean shouldSelectCell(EventObject event) { return true; } // shouldSelectCell()
public boolean shouldSelectCell(EventObject event) { return true; } // shouldSelectCell()
27,392
public boolean stopCellEditing() { fireEditingStopped(); return true; } // stopCellEditing()
public boolean stopCellEditing() { fireEditingStopped(); return true; } // stopCellEditing()
27,393
public boolean stopCellEditing() { fireEditingStopped(); return true; } // stopCellEditing()
public boolean stopCellEditing() { fireEditingStopped(); return true; } // stopCellEditing()
27,394
AbstractButton FindButton(ButtonModel m) { for (int i=0;i<v.size();i++) { AbstractButton a = (AbstractButton) v.get(i); if (a.getModel()== m) { return a; } } return null; }
AbstractButton FindButton(ButtonModel m) { for (int i=0;i<v.size();i++) { AbstractButton a = (AbstractButton) v.get(i); if (a.getModel()== m) { return a; } } return null; }
27,396
AbstractButton FindButton(ButtonModel m) { for (int i=0;i<v.size();i++) { AbstractButton a = (AbstractButton) v.get(i); if (a.getModel()== m) { return a; } } return null; }
AbstractButton FindButton(ButtonModel m) { for (int i=0;i<v.size();i++) { AbstractButton a = (AbstractButton) v.get(i); if (a.getModel()== m) { return a; } } return null; }
27,397
AbstractButton FindButton(ButtonModel m) { for (int i=0;i<v.size();i++) { AbstractButton a = (AbstractButton) v.get(i); if (a.getModel()== m) { return a; } } return null; }
AbstractButton FindButton(ButtonModel m) { for (int i=0;i<v.size();i++) { AbstractButton a = (AbstractButton) v.get(i); if (a.getModel()== m) { return a; } } return null; }
27,398
public int getButtonCount() { return v.size(); }
public int getButtonCount() { return buttons.size(); }
27,399
public Enumeration getElements() { return v.elements(); }
public Enumeration getElements() { return v.elements(); }
27,400
public ButtonModel getSelection() { return sel; }
public ButtonModel getSelection() { return sel; }
27,401
public boolean isSelected(ButtonModel m) { return (m == sel); }
public boolean isSelected(ButtonModel m) { return m == sel; }
27,402
public void remove(AbstractButton b) { b.getModel().setGroup(null); v.removeElement(b); }
public void remove(AbstractButton b) { b.getModel().setGroup(null); buttons.removeElement(b); }
27,403
public void setSelected(ButtonModel m, boolean b) { if ((m == sel) && (b == true)) { // clicked on sam item twice. System.out.println("PRESSED TWICE:" + m + ", sel="+sel); return; } if (sel != null) { System.out.println("DESELECTING: " + sel); sel.setSelected(!b); AbstractButton but = Fin...
public void setSelected(ButtonModel m, boolean b) { if ((m == sel) && (b == true)) { // clicked on sam item twice. System.out.println("PRESSED TWICE:" + m + ", sel="+sel); return; } if (sel != null) { System.out.println("DESELECTING: " + sel); sel.setSelected(!b); AbstractButton but = Fin...
27,404
public void setSelected(ButtonModel m, boolean b) { if ((m == sel) && (b == true)) { // clicked on sam item twice. System.out.println("PRESSED TWICE:" + m + ", sel="+sel); return; } if (sel != null) { System.out.println("DESELECTING: " + sel); sel.setSelected(!b); AbstractButton but = Fin...
public void setSelected(ButtonModel m, boolean b) { if ((m == sel) && (b == true)) { // clicked on sam item twice. System.out.println("PRESSED TWICE:" + m + ", sel="+sel); return; } if (sel != null) { System.out.println("DESELECTING: " + sel); sel.setSelected(!b); AbstractButton but = Fin...
27,405
public void setSelected(ButtonModel m, boolean b) { if ((m == sel) && (b == true)) { // clicked on sam item twice. System.out.println("PRESSED TWICE:" + m + ", sel="+sel); return; } if (sel != null) { System.out.println("DESELECTING: " + sel); sel.setSelected(!b); AbstractButton but = Fin...
publicvoidsetSelected(ButtonModelm,booleanb){ if((m==sel)&& (b==true)) { //clickedonsamitemtwice. System.out.println("PRESSEDTWICE:"+m+",sel="+sel); return; } if(sel!=null) { System.out.println("DESELECTING:"+sel); sel.setSelected(!b); AbstractButtonbut=FindButton(sel); if(but!=null) { System.out.println("R...
27,406
public void setSelected(ButtonModel m, boolean b) { if ((m == sel) && (b == true)) { // clicked on sam item twice. System.out.println("PRESSED TWICE:" + m + ", sel="+sel); return; } if (sel != null) { System.out.println("DESELECTING: " + sel); sel.setSelected(!b); AbstractButton but = Fin...
public void setSelected(ButtonModel m, boolean b) { if ((m == sel) && (b == true)) { // clicked on sam item twice. System.out.println("PRESSED TWICE:" + m + ", sel="+sel); return; } if (sel != null) { System.out.println("DESELECTING: " + sel); sel.setSelected(!b); AbstractButton but = Fin...
27,407
public void setSelected(ButtonModel m, boolean b) { if ((m == sel) && (b == true)) { // clicked on sam item twice. System.out.println("PRESSED TWICE:" + m + ", sel="+sel); return; } if (sel != null) { System.out.println("DESELECTING: " + sel); sel.setSelected(!b); AbstractButton but = Fin...
public void setSelected(ButtonModel m, boolean b) { if ((m == sel) && (b == true)) { // clicked on sam item twice. System.out.println("PRESSED TWICE:" + m + ", sel="+sel); return; } if (sel != null) { System.out.println("DESELECTING: " + sel); sel.setSelected(!b); AbstractButton but = Fin...
27,408
public void setSelected(ButtonModel m, boolean b) { if ((m == sel) && (b == true)) { // clicked on sam item twice. System.out.println("PRESSED TWICE:" + m + ", sel="+sel); return; } if (sel != null) { System.out.println("DESELECTING: " + sel); sel.setSelected(!b); AbstractButton but = Fin...
public void setSelected(ButtonModel m, boolean b) { if ((m == sel) && (b == true)) { // clicked on sam item twice. System.out.println("PRESSED TWICE:" + m + ", sel="+sel); return; } if (sel != null) { System.out.println("DESELECTING: " + sel); sel.setSelected(!b); AbstractButton but = Fin...
27,409
public void setSelected(ButtonModel m, boolean b) { if ((m == sel) && (b == true)) { // clicked on sam item twice. System.out.println("PRESSED TWICE:" + m + ", sel="+sel); return; } if (sel != null) { System.out.println("DESELECTING: " + sel); sel.setSelected(!b); AbstractButton but = Fin...
public void setSelected(ButtonModel m, boolean b) { if ((m == sel) && (b == true)) { // clicked on sam item twice. System.out.println("PRESSED TWICE:" + m + ", sel="+sel); return; } if (sel != null) { System.out.println("DESELECTING: " + sel); sel.setSelected(!b); AbstractButton but = Fin...
27,410
protected final Address getTSIAddress() { if (tsiAddress == null) { tsiAddress = ObjectReference.fromObject(this).toAddress(); } return tsiAddress; }
protected final Address getTSIAddress() { if (tsiAddress.isZero()) { tsiAddress = ObjectReference.fromObject(this).toAddress(); } return tsiAddress; }
27,411
final void lock(ProcessorLock otherLock) { if (otherLock == null) { queueLock.lock(); } else { ProcessorLock.lock(queueLock, otherLock); } }
final void lock(ProcessorLock otherLock) { if (otherLock == null) { queueLock.lock(); } else { ProcessorLock.lock(queueLock, otherLock); } }
27,412
final void unlock(ProcessorLock otherLock) { if (otherLock != null) { otherLock.unlock(); } queueLock.unlock(); }
final void unlock(ProcessorLock otherLock) { if (otherLock != null) { otherLock.unlock(); } queueLock.unlock(); }
27,413
final void addToReadyQueue(VmThread thread, boolean ignorePriority) { try { // Get access to queues queueLock.lock(); if (thread.isRunning() || thread.isYielding()) { readyQueue.enqueue(thread, ignorePriority); } else { Unsafe ...
final void addToReadyQueue(VmThread thread, boolean ignorePriority, String caller) { try { // Get access to queues queueLock.lock(); if (thread.isRunning() || thread.isYielding()) { readyQueue.enqueue(thread, ignorePriority); } else { ...
27,414
final void addToReadyQueue(VmThread thread, boolean ignorePriority) { try { // Get access to queues queueLock.lock(); if (thread.isRunning() || thread.isYielding()) { readyQueue.enqueue(thread, ignorePriority); } else { Unsafe ...
final void addToReadyQueue(VmThread thread, boolean ignorePriority) { try { // Get access to queues queueLock.lock(); if (thread.isRunning() || thread.isYielding()) { sleepQueue.remove(thread); readyQueue.add(thread, ignorePriority, caller); } else {...
27,415
final void dump() { try { // Get access to queues queueLock.lock(); readyQueue.dump(false, null); wakeupQueue.dump(false, null); } finally { // Release access to queues queueLock.unlock(); } }
final void dump() { try { // Get access to queues queueLock.lock(); readyQueue.dump(false, null); sleepQueue.dump(false, null); } finally { // Release access to queues queueLock.unlock(); } }
27,416
final void setYieldingState() { if (threadState == RUNNING) { threadState = YIELDING; } }
final void setYieldingState() throws UninterruptiblePragma { if (threadState == RUNNING) { threadState = YIELDING; } }
27,417
public static char toLowerCase(char ch) { // Signedness doesn't matter, as result is cast back to char. return (char) (ch + lower[readChar(ch) >> 7]); }
public static char toLowerCase(char ch) { // Signedness doesn't matter, as result is cast back to char. return (char) (lower[0][readCodePoint((int)ch) >>> 7] + ch); }
27,418
public void mousePressed(MouseEvent e) { if (comboBox.isEnabled()) togglePopup(); }
public void mousePressed(MouseEvent e) { if (comboBox.isEnabled()) togglePopup(); }
27,419
public void mouseReleased(MouseEvent e) { // Get component over which mouse was released Component src = (Component) e.getSource(); int x = e.getX(); int y = e.getY(); Component releasedComponent = SwingUtilities.getDeepestComponentAt(src, ...
public void mouseReleased(MouseEvent e) { // Get component over which mouse was released Component src = (Component) e.getSource(); int x = e.getX(); int y = e.getY(); Component releasedComponent = SwingUtilities.getDeepestComponentAt(src, ...
27,421
public void mouseReleased(MouseEvent e) { // Get component over which mouse was released Component src = (Component) e.getSource(); int x = e.getX(); int y = e.getY(); Component releasedComponent = SwingUtilities.getDeepestComponentAt(src, ...
public void mouseReleased(MouseEvent e) { // Get component over which mouse was released Component src = (Component) e.getSource(); int x = e.getX(); int y = e.getY(); Component releasedComponent = SwingUtilities.getDeepestComponentAt(src, ...
27,422
public void mouseReleased(MouseEvent e) { // Get component over which mouse was released Component src = (Component) e.getSource(); int x = e.getX(); int y = e.getY(); Component releasedComponent = SwingUtilities.getDeepestComponentAt(src, ...
MouseEvent convEvent = convertMouseEvent(e); Point point = convEvent.getPoint(); Rectangle visRect = new Rectangle(); list.computeVisibleRect(visRect); if (visRect.contains(point)) { updateListBoxSelectionForEvent(convEvent, false); public void mouseReleased(MouseEvent e)MouseEvent convEvent = convertMouseEvent(e); Poi...
27,423
public void mouseReleased(MouseEvent e) { // Get component over which mouse was released Component src = (Component) e.getSource(); int x = e.getX(); int y = e.getY(); Component releasedComponent = SwingUtilities.getDeepestComponentAt(src, ...
public void mouseReleased(MouseEvent e) { // Get component over which mouse was released Component src = (Component) e.getSource(); int x = e.getX(); int y = e.getY(); Component releasedComponent = SwingUtilities.getDeepestComponentAt(src, ...
27,424
public void mouseDragged(MouseEvent e) { // convert point of the drag event relative to combo box list component // figure out over which list cell the mouse is currently being dragged // and highlight the cell. The list model is changed but the change has // no effect on combo box's data mo...
public void mouseDragged(MouseEvent e) { // convert point of the drag event relative to combo box list component // figure out over which list cell the mouse is currently being dragged // and highlight the cell. The list model is changed but the change has // no effect on combo box's data mo...
27,426
public void mouseDragged(MouseEvent e) { // convert point of the drag event relative to combo box list component // figure out over which list cell the mouse is currently being dragged // and highlight the cell. The list model is changed but the change has // no effect on combo box's data mo...
public void mouseDragged(MouseEvent e) { // convert point of the drag event relative to combo box list component // figure out over which list cell the mouse is currently being dragged // and highlight the cell. The list model is changed but the change has // no effect on combo box's data mo...
27,427
public void mouseDragged(MouseEvent e) { // convert point of the drag event relative to combo box list component // figure out over which list cell the mouse is currently being dragged // and highlight the cell. The list model is changed but the change has // no effect on combo box's data mo...
public void mouseDragged(MouseEvent e) { // convert point of the drag event relative to combo box list component // figure out over which list cell the mouse is currently being dragged // and highlight the cell. The list model is changed but the change has // no effect on combo box's data mo...
27,428
public void mouseDragged(MouseEvent e) { // convert point of the drag event relative to combo box list component // figure out over which list cell the mouse is currently being dragged // and highlight the cell. The list model is changed but the change has // no effect on combo box's data mo...
public void mouseDragged(MouseEvent e) { // convert point of the drag event relative to combo box list component // figure out over which list cell the mouse is currently being dragged // and highlight the cell. The list model is changed but the change has // no effect on combo box's data mo...
27,429
public void mouseDragged(MouseEvent e) { // convert point of the drag event relative to combo box list component // figure out over which list cell the mouse is currently being dragged // and highlight the cell. The list model is changed but the change has // no effect on combo box's data mo...
public void mouseDragged(MouseEvent e) { // convert point of the drag event relative to combo box list component // figure out over which list cell the mouse is currently being dragged // and highlight the cell. The list model is changed but the change has // no effect on combo box's data mo...
27,430
public void itemStateChanged(ItemEvent e) { // TODO: What should be done here? }
if (e.getStateChange() == ItemEvent.SELECTED && ! valueIsAdjusting) { valueIsAdjusting = true; syncListSelection(); valueIsAdjusting = false; list.ensureIndexIsVisible(comboBox.getSelectedIndex()); } if (e.getStateChange() == ItemEvent.SELECTED && ! valueIsAdjusting) { valueIsAdjusting = true; syncListSelection(); valu...
27,432
public void mousePressed(MouseEvent e) { // TODO: What should be do here? }
public void mousePressed(MouseEvent e) { // TODO: What should be do here? }
27,433
public void mouseReleased(MouseEvent anEvent) { int index = list.locationToIndex(anEvent.getPoint()); // Check for valid index. if (index >= 0) comboBox.setSelectedIndex(index); hide(); }
public void mouseReleased(MouseEvent anEvent) { int index = list.locationToIndex(anEvent.getPoint()); // Check for valid index. if (index >= 0) comboBox.setSelectedIndex(index); hide(); }
27,434
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("renderer")) { list.setCellRenderer((ListCellRenderer) e.getNewValue()); revalidate(); repaint(); } if (e.getPropertyName().equals("dataModel")) { list.setModel((ComboBoxModel) e.getNewValue(...
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("renderer")) { list.setCellRenderer((ListCellRenderer) e.getNewValue()); revalidate(); repaint(); } if (e.getPropertyName().equals("dataModel")) { list.setModel((ComboBoxModel) e.getNewValue(...
27,436
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("renderer")) { list.setCellRenderer((ListCellRenderer) e.getNewValue()); revalidate(); repaint(); } if (e.getPropertyName().equals("dataModel")) { list.setModel((ComboBoxModel) e.getNewValue(...
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("renderer")) { list.setCellRenderer((ListCellRenderer) e.getNewValue()); revalidate(); repaint(); } if (e.getPropertyName().equals("model")) { list.setModel((ComboBoxModel) e.getNewValue()); ...
27,437
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("renderer")) { list.setCellRenderer((ListCellRenderer) e.getNewValue()); revalidate(); repaint(); } if (e.getPropertyName().equals("dataModel")) { list.setModel((ComboBoxModel) e.getNewValue(...
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("renderer")) { list.setCellRenderer((ListCellRenderer) e.getNewValue()); revalidate(); repaint(); } if (e.getPropertyName().equals("dataModel")) { list.setModel((ComboBoxModel) e.getNewValue(...
27,438
public BasicComboPopup(JComboBox comboBox) { this.comboBox = comboBox; installComboBoxListeners(); configurePopup(); setLightWeightPopupEnabled(comboBox.isLightWeightPopupEnabled()); }
public BasicComboPopup(JComboBox comboBox) { this.comboBox = comboBox; installComboBoxListeners(); configurePopup(); setLightWeightPopupEnabled(comboBox.isLightWeightPopupEnabled()); }
27,439
protected void configureList() { list.setModel(comboBox.getModel()); list.setVisibleRowCount(comboBox.getMaximumRowCount()); list.setFocusable(false); installListListeners(); }
protected void configureList() { list.setModel(comboBox.getModel()); list.setVisibleRowCount(comboBox.getMaximumRowCount()); list.setFocusable(false); installListListeners(); }
27,440
protected void configurePopup() { setBorder(BorderFactory.createLineBorder(Color.BLACK)); // initialize list that will be used to display combo box's items this.list = createList(); ((JLabel) list.getCellRenderer()).setHorizontalAlignment(SwingConstants.LEFT); configureList(); // initialize scrolle...
protected void configurePopup() { setBorder(BorderFactory.createLineBorder(Color.BLACK)); // initialize list that will be used to display combo box's items this.list = createList(); ((JLabel) list.getCellRenderer()).setHorizontalAlignment(SwingConstants.LEFT); configureList(); // initialize scrolle...
27,442
protected void configureScroller() { scroller.setBorder(null); scroller.getViewport().setView(list); scroller.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); }
protected void configureScroller() { scroller.setBorder(null); scroller.getViewport().setView(list); scroller.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); }
27,443
protected MouseEvent convertMouseEvent(MouseEvent e) { return null; }
protected MouseEvent convertMouseEvent(MouseEvent e) { Point point = SwingUtilities.convertPoint((Component) e.getSource(), e.getPoint(), list); MouseEvent newEvent= new MouseEvent((Component) e.getSource(), e.getID(), e.getWhen(), e.getModifiers(), point.x, point.y, e.getModifiers(), e.isPopupTrigger()); return ...
27,444
protected JList createList() { JList l = new JList(comboBox.getModel()); l.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION); return l; }
protected JList createList() { JList l = new JList(comboBox.getModel()); return l; }
27,445
protected JScrollPane createScroller() { return new JScrollPane(); }
protected JScrollPane createScroller() { return new JScrollPane(list, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER); }
27,446
protected void delegateFocus(MouseEvent e) { // FIXME: Need to implement }
if (comboBox.isEditable()) comboBox.getEditor().getEditorComponent().requestFocus(); else comboBox.requestFocus(); if (comboBox.isEditable()) comboBox.getEditor().getEditorComponent().requestFocus(); else comboBox.requestFocus(); protectedif (comboBox.isEditable()) comboBox.getEditor().getEditorComponent().requestFocus...
27,447
protected int getPopupHeightForRowCount(int maxRowCount) { int totalHeight = 0; ListCellRenderer rend = list.getCellRenderer(); if (comboBox.getItemCount() < maxRowCount) maxRowCount = comboBox.getItemCount(); for (int i = 0; i < maxRowCount; i++) { Component comp = rend.getListCellRendererComp...
protected int getPopupHeightForRowCount(int maxRowCount) { int totalHeight = 0; ListCellRenderer rend = list.getCellRenderer(); if (comboBox.getItemCount() < maxRowCount) maxRowCount = comboBox.getItemCount(); for (int i = 0; i < maxRowCount; i++) { Component comp = rend.getListCellRendererComp...
27,448
public void hide() { super.setVisible(false); }
public void hide() { MenuSelectionManager menuSelectionManager = MenuSelectionManager.defaultManager(); javax.swing.MenuElement[] menuElements = menuSelectionManager.getSelectedPath(); for (int i = 0; i < menuElements.length; i++) { if (menuElements[i] == this) { menuSelectionManager.clearSelectedPath(); break; }...
27,449
protected void installComboBoxListeners() { // mouse listener that listens to mouse event in combo box mouseListener = createMouseListener(); comboBox.addMouseListener(mouseListener); // mouse listener that listens to mouse dragging events in the combo box mouseMotionListener = createMouseMotionListen...
protected void installComboBoxListeners() { // mouse listener that listens to mouse event in combo box mouseListener = createMouseListener(); comboBox.addMouseListener(mouseListener); // mouse listener that listens to mouse dragging events in the combo box mouseMotionListener = createMouseMotionListen...
27,450