rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
{ } | { } | public void focusGained(FocusEvent event) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/DefaultCaret.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultCaret.java |
{ } | { } | public void focusLost(FocusEvent event) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/DefaultCaret.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultCaret.java |
{ | { | public void install(JTextComponent c) { textComponent = c; textComponent.addFocusListener(this); textComponent.addMouseListener(this); textComponent.addMouseMotionListener(this); repaint(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/DefaultCaret.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultCaret.java |
repaint(); } | repaint(); } | public void install(JTextComponent c) { textComponent = c; textComponent.addFocusListener(this); textComponent.addMouseListener(this); textComponent.addMouseMotionListener(this); repaint(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/DefaultCaret.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultCaret.java |
{ | { | public void mouseClicked(MouseEvent event) { // FIXME: Implement this properly. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/DefaultCaret.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultCaret.java |
} | } | public void mouseClicked(MouseEvent event) { // FIXME: Implement this properly. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/DefaultCaret.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultCaret.java |
{ | { | public void mouseEntered(MouseEvent event) { // Nothing to do here. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/DefaultCaret.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultCaret.java |
} | } | public void mouseEntered(MouseEvent event) { // Nothing to do here. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/DefaultCaret.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultCaret.java |
{ } | { } | public void mouseExited(MouseEvent event) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/DefaultCaret.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultCaret.java |
{ | { | public void mousePressed(MouseEvent event) { // FIXME: Implement this properly. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/DefaultCaret.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultCaret.java |
} | } | public void mousePressed(MouseEvent event) { // FIXME: Implement this properly. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/DefaultCaret.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultCaret.java |
{ | { | public void mouseReleased(MouseEvent event) { // Nothing to do here. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/DefaultCaret.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultCaret.java |
} | } | public void mouseReleased(MouseEvent event) { // Nothing to do here. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/DefaultCaret.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultCaret.java |
{ | { | protected void moveCaret(MouseEvent event) { // FIXME: Implement this properly. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/DefaultCaret.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultCaret.java |
} | } | protected void moveCaret(MouseEvent event) { // FIXME: Implement this properly. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/DefaultCaret.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultCaret.java |
{ | { | public void paint(Graphics g) { if (textComponent == null) return; int dot = getDot(); Rectangle rect = null; try { rect = textComponent.modelToView(dot); } catch (BadLocationException e) { // This should never happen as dot should be always valid. return; } if (rect ==... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/DefaultCaret.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultCaret.java |
} | } | public void paint(Graphics g) { if (textComponent == null) return; int dot = getDot(); Rectangle rect = null; try { rect = textComponent.modelToView(dot); } catch (BadLocationException e) { // This should never happen as dot should be always valid. return; } if (rect ==... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/DefaultCaret.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultCaret.java |
{ | { | protected void positionCaret(MouseEvent event) { // FIXME: Implement this properly. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/DefaultCaret.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultCaret.java |
} | } | protected void positionCaret(MouseEvent event) { // FIXME: Implement this properly. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/DefaultCaret.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultCaret.java |
{ | { | protected final void repaint() { // FIXME: Is this good? This possibly causes alot of the component // hierarchy to be repainted on every caret blink. if (textComponent != null) textComponent.repaint(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/DefaultCaret.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultCaret.java |
} | } | protected final void repaint() { // FIXME: Is this good? This possibly causes alot of the component // hierarchy to be repainted on every caret blink. if (textComponent != null) textComponent.repaint(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/DefaultCaret.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultCaret.java |
{ this.dot = dot; | { this.dot = dot; | public void setDot(int dot) { this.dot = dot; this.mark = dot; handleHighlight(); repaint(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/DefaultCaret.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultCaret.java |
repaint(); } | repaint(); } | public void setDot(int dot) { this.dot = dot; this.mark = dot; handleHighlight(); repaint(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/DefaultCaret.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultCaret.java |
{ | { | public void setVisible(boolean v) { visible = v; repaint(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/DefaultCaret.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultCaret.java |
repaint(); } | repaint(); } | public void setVisible(boolean v) { visible = v; repaint(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/DefaultCaret.java/buggy/core/src/classpath/javax/javax/swing/text/DefaultCaret.java |
log.debug("PointerId == " + id); | log.debug("PointerId 0x" + NumberUtils.hex(id, 2)); | public boolean probe(AbstractPointerDriver d) { try { // reset the mouse if (!d.initPointer()) { log.debug("Reset mouse failed"); return false; } int id = d.getPointerId(); if (id != 0) { // does not seem to be a mouse, more likely a tablet of touch screen log.debug("PointerId == " + id); ret... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0256958683f8a0221aee7dd41454c146be106f0/MouseInterpreter.java/buggy/core/src/driver/org/jnode/driver/input/MouseInterpreter.java |
log.debug("Actual pointerId 0x" + NumberUtils.hex(id, 2)); | public boolean probe(AbstractPointerDriver d) { try { // reset the mouse if (!d.initPointer()) { log.debug("Reset mouse failed"); return false; } int id = d.getPointerId(); if (id != 0) { // does not seem to be a mouse, more likely a tablet of touch screen log.debug("PointerId == " + id); ret... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0256958683f8a0221aee7dd41454c146be106f0/MouseInterpreter.java/buggy/core/src/driver/org/jnode/driver/input/MouseInterpreter.java | |
throw new BAD_OPERATION("Policy[] expected"); | BAD_OPERATION bad = new BAD_OPERATION("Policy[] expected"); bad.minor = Minor.Any; throw bad; | public static Policy[] extract(Any any) { try { PolicyListHolder holds = (PolicyListHolder) any.extract_Streamable(); return holds.value; } catch (ClassCastException ex) { throw new BAD_OPERATION("Policy[] expected"); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/PolicyListHelper.java/buggy/core/src/classpath/org/org/omg/CORBA/PolicyListHelper.java |
protected AccessibleJFileChooser() {} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/JFileChooser.java/clean/core/src/classpath/javax/javax/swing/JFileChooser.java | ||
vt.negotiate(baosin.toByteArray()); | vt.negotiate(rBytes); return null; | public final byte[] readIncoming() throws IOException { boolean done = false; boolean negotiate = false; baosin.reset(); int j = -1; int i = 0; while(!done) { i = bin.read(); // WVL - LDC : 16/07/2003 : TR.000345 // The inStream return -1 when end-of-strea... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d24103f8343c94ad879ae5a703095b1b4c5735d0/DataStreamProducer.java/clean/tn5250j/src/org/tn5250j/DataStreamProducer.java |
if (dumpBytes) { dump(baosin.toByteArray()); } return baosin.toByteArray(); } | else { return rBytes; } } | public final byte[] readIncoming() throws IOException { boolean done = false; boolean negotiate = false; baosin.reset(); int j = -1; int i = 0; while(!done) { i = bin.read(); // WVL - LDC : 16/07/2003 : TR.000345 // The inStream return -1 when end-of-strea... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d24103f8343c94ad879ae5a703095b1b4c5735d0/DataStreamProducer.java/clean/tn5250j/src/org/tn5250j/DataStreamProducer.java |
try { byte[] abyte0 = readIncoming(); if (abyte0.length > 0) { loadStream(abyte0, 0); } else { done = true; vt.disconnect(); } | try { byte[] abyte0 = readIncoming(); if (abyte0 != null) { if (abyte0.length > 0) { loadStream(abyte0, 0); } else { done = true; vt.disconnect(); } } | public final void run() { boolean done = false; me = Thread.currentThread(); // load the first response screen try { loadStream(abyte2, 0); } catch (IOException ioef) { log.warn(" run() " + ioef.getMessage()); } while (!done) { try { byte[] a... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d24103f8343c94ad879ae5a703095b1b4c5735d0/DataStreamProducer.java/clean/tn5250j/src/org/tn5250j/DataStreamProducer.java |
catch (SocketException se) { log.warn(" DataStreamProducer thread interrupted and stopping "); | catch (SocketException se) { log.warn(" DataStreamProducer thread interrupted and stopping " + se.getMessage()); | public final void run() { boolean done = false; me = Thread.currentThread(); // load the first response screen try { loadStream(abyte2, 0); } catch (IOException ioef) { log.warn(" run() " + ioef.getMessage()); } while (!done) { try { byte[] a... | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d24103f8343c94ad879ae5a703095b1b4c5735d0/DataStreamProducer.java/clean/tn5250j/src/org/tn5250j/DataStreamProducer.java |
throws BadLocationException | protected int getNextEastWestVisualPositionFrom(int pos, Position.Bias b, Shape a, int direction, Position.Bias[] biasRet) { // FIXME: Implement this correctly. return pos; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/CompositeView.java/buggy/core/src/classpath/javax/javax/swing/text/CompositeView.java | |
throws BadLocationException | protected int getNextNorthSouthVisualPositionFrom(int pos, Position.Bias b, Shape a, int direction, Position.Bias[] biasRet) { // FIXME: Implement this correctly. return pos; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/CompositeView.java/buggy/core/src/classpath/javax/javax/swing/text/CompositeView.java | |
throws BadLocationException | public int getNextVisualPositionFrom(int pos, Position.Bias b, Shape a, int direction, Position.Bias[] biasRet) { int retVal = -1; switch (direction) { case SwingConstants.WEST: case SwingConstants.EAST: retVal = getNextEastWestVisualPositionFrom(pos,... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/CompositeView.java/buggy/core/src/classpath/javax/javax/swing/text/CompositeView.java | |
throw new BAD_OPERATION(method, 0, CompletionStatus.COMPLETED_MAYBE); | throw new BAD_OPERATION(method, Minor.Method, CompletionStatus.COMPLETED_MAYBE); | public OutputStream _invoke(String method, InputStream in, ResponseHandler rh) { OutputStream out = null; // We suppose that the next_n should be the most popular. if (method.equals("next_n")) { // The next_n has been invoked. int amount = in.read_ulong(); BindingListHolder a_list ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/_BindingIteratorImplBase.java/clean/core/src/classpath/org/org/omg/CosNaming/_BindingIteratorImplBase.java |
boolean niceOutput = sPrettyXDFOutput; | boolean niceOutput = Specification.getInstance().isPrettyXDFOutput(); | public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/1e7f6912855beedfa6f64bcbc5bc675d9beedbae/XMLDataIOStyle.java/clean/src/gov/nasa/gsfc/adc/xdf/XMLDataIOStyle.java |
String moreIndent = myIndent + sPrettyXDFOutputIndentation; | String moreIndent = myIndent + Specification.getInstance().getPrettyXDFOutputIndentation(); | public void toXMLOutputStream ( OutputStream outputstream, Hashtable XMLDeclAttribs, String indent, boolean dontCloseNode, String newNodeNameString,... | 4483 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4483/1e7f6912855beedfa6f64bcbc5bc675d9beedbae/XMLDataIOStyle.java/clean/src/gov/nasa/gsfc/adc/xdf/XMLDataIOStyle.java |
return getComponents().length; | return getMenuComponentCount(); | public int getItemCount() { // returns the number of items on // the menu, including separators. return getComponents().length; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/JMenu.java/buggy/core/src/classpath/javax/javax/swing/JMenu.java |
return uiClassID; | return "MenuUI"; | public String getUIClassID() { return uiClassID; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/JMenu.java/buggy/core/src/classpath/javax/javax/swing/JMenu.java |
if (getParent() instanceof JMenuBar) return true; else return false; | return getParent() instanceof JMenuBar; | public boolean isTopLevelMenu() { if (getParent() instanceof JMenuBar) return true; else return false; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/JMenu.java/buggy/core/src/classpath/javax/javax/swing/JMenu.java |
return "JMenu"; | return super.paramString(); | protected String paramString() { return "JMenu"; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/JMenu.java/buggy/core/src/classpath/javax/javax/swing/JMenu.java |
if (e.getPropertyName().equals(JMenuBar.BORDER_PAINTED_CHANGED_PROPERTY)) | if (e.getPropertyName().equals("borderPainted")) | public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals(JMenuBar.BORDER_PAINTED_CHANGED_PROPERTY)) menuBar.repaint(); if (e.getPropertyName().equals(JMenuBar.MARGIN_CHANGED_PROPERTY)) menuBar.repaint(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/BasicMenuBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicMenuBarUI.java |
if (e.getPropertyName().equals(JMenuBar.MARGIN_CHANGED_PROPERTY)) | if (e.getPropertyName().equals("margin")) | public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals(JMenuBar.BORDER_PAINTED_CHANGED_PROPERTY)) menuBar.repaint(); if (e.getPropertyName().equals(JMenuBar.MARGIN_CHANGED_PROPERTY)) menuBar.repaint(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53b78dd1e4587254262f4618d2aa7551de8e0cbf/BasicMenuBarUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicMenuBarUI.java |
Vm._assert(pool.request(reg, item), "request"); | Vm._assert(ok, "request"); | public void writePUSH(int jvmType, X86Register.GPR reg) { final Item item = ifac.createReg(ec, jvmType, reg); if (Vm.VerifyAssertions) Vm._assert(pool.request(reg, item), "request"); push(item); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6ad6198b74c08d19e793bf52867682597f899f43/VirtualStack.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/VirtualStack.java |
Vm._assert(pool.request(lsbReg, item), "request-lsb"); Vm._assert(pool.request(msbReg, item), "request-msb"); | Vm._assert(lsbOk, "request-lsb"); Vm._assert(msbOk, "request-msb"); | public void writePUSH64(int jvmType, X86Register.GPR lsbReg, X86Register.GPR msbReg) { final Item item = ifac.createReg(ec, jvmType, lsbReg, msbReg); if (Vm.VerifyAssertions) { Vm._assert(pool.request(lsbReg, item), "request-lsb"); Vm._assert(pool.request(msbReg, item), "request-msb"); } push(item); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/6ad6198b74c08d19e793bf52867682597f899f43/VirtualStack.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/VirtualStack.java |
layoutCL(lab, fm, lab.getText(), lab.getIcon(), vr, ir, tr); Rectangle cr = SwingUtilities.computeUnion(tr.x, tr.y, tr.width, tr.height, ir); return new Dimension(insets.left + cr.width + insets.right, insets.top + cr.height + insets.bottom); | ir.x = 0; ir.y = 0; ir.width = 0; ir.height = 0; tr.x = 0; tr.y = 0; tr.width = 0; tr.height = 0; vr.x = 0; vr.y = 0; vr.width = Short.MAX_VALUE; vr.height = Short.MAX_VALUE; layoutCL(lab, fm, text, icon, vr, ir, tr); Rectangle cr = SwingUtilities.computeUnion(tr.x, tr.y, tr.width, tr.height, ir); ret = new Dimension(c... | public Dimension getPreferredSize(JComponent c) { JLabel lab = (JLabel) c; Insets insets = lab.getInsets(); FontMetrics fm = lab.getFontMetrics(lab.getFont()); layoutCL(lab, fm, lab.getText(), lab.getIcon(), vr, ir, tr); Rectangle cr = SwingUtilities.computeUnion(tr.x, tr.y, tr.width, tr.height... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicLabelUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicLabelUI.java |
throws NotImplementedException | protected void installKeyboardActions(JLabel l) throws NotImplementedException { //FIXME: implement. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicLabelUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicLabelUI.java | |
Component c = l.getLabelFor(); if (c != null) { int mnemonic = l.getDisplayedMnemonic(); if (mnemonic > 0) { InputMap keyMap = new InputMap(); keyMap.put(KeyStroke.getKeyStroke(mnemonic, KeyEvent.VK_ALT), "press"); SwingUtilities.replaceUIInputMap(l, JComponent.WHEN_IN_FOCUSED_WINDOW, keyMap); ActionMap map = new Ac... | protected void installKeyboardActions(JLabel l) throws NotImplementedException { //FIXME: implement. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicLabelUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicLabelUI.java | |
vr = SwingUtilities.calculateInnerArea(c, vr); | public void paint(Graphics g, JComponent c) { JLabel b = (JLabel) c; FontMetrics fm = g.getFontMetrics(); vr = SwingUtilities.calculateInnerArea(c, vr); if (vr.width < 0) vr.width = 0; if (vr.height < 0) vr.height = 0; Icon icon = (b.isEnabled()) ? b.getIcon() : b.getDisabledIcon(); St... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicLabelUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicLabelUI.java | |
if (vr.width < 0) vr.width = 0; if (vr.height < 0) vr.height = 0; | Insets i = c.getInsets(); vr.x = i.left; vr.y = i.right; vr.width = c.getWidth() - i.left + i.right; vr.height = c.getHeight() - i.top + i.bottom; ir.x = 0; ir.y = 0; ir.width = 0; ir.height = 0; tr.x = 0; tr.y = 0; tr.width = 0; tr.height = 0; | public void paint(Graphics g, JComponent c) { JLabel b = (JLabel) c; FontMetrics fm = g.getFontMetrics(); vr = SwingUtilities.calculateInnerArea(c, vr); if (vr.width < 0) vr.width = 0; if (vr.height < 0) vr.height = 0; Icon icon = (b.isEnabled()) ? b.getIcon() : b.getDisabledIcon(); St... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicLabelUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicLabelUI.java |
else if (e.getPropertyName().equals("displayedMnemonic")) { JLabel label = (JLabel) e.getSource(); if (label.getLabelFor() != null) { int oldMnemonic = ((Integer) e.getOldValue()).intValue(); int newMnemonic = ((Integer) e.getNewValue()).intValue(); InputMap keyMap = label.getInputMap( JComponent.WHEN_IN_FOCUSED_WINDO... | public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals("text")) { String text = (String) e.getNewValue(); JLabel l = (JLabel) e.getSource(); BasicHTML.updateRenderer(l, text); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicLabelUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicLabelUI.java | |
throws NotImplementedException | protected void uninstallKeyboardActions(JLabel l) throws NotImplementedException { //FIXME: implement. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicLabelUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicLabelUI.java | |
SwingUtilities.replaceUIActionMap(l, null); SwingUtilities.replaceUIInputMap(l, JComponent.WHEN_IN_FOCUSED_WINDOW, null); | protected void uninstallKeyboardActions(JLabel l) throws NotImplementedException { //FIXME: implement. } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicLabelUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicLabelUI.java | |
if (!evt.isShiftDown()) | if (evt.getModifiers() == 0) | public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicTableUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java |
else | else if (evt.getModifiers() == InputEvent.SHIFT_MASK) | public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicTableUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java |
if (!evt.isShiftDown()) | if (evt.getModifiers() == 0) | public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicTableUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java |
else | else if (evt.getModifiers() == InputEvent.SHIFT_MASK) | public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicTableUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java |
if (evt.isShiftDown()) | if (evt.getModifiers() == InputEvent.SHIFT_MASK) | public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicTableUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java |
else | else if (evt.getModifiers() == 0) | public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicTableUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java |
if (evt.isShiftDown()) | if (evt.getModifiers() == InputEvent.SHIFT_MASK) | public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicTableUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java |
else | else if (evt.getModifiers() == 0) | public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicTableUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java |
if (evt.isControlDown() && evt.isShiftDown()) | if (evt.getModifiers() == (InputEvent.SHIFT_MASK | InputEvent.CTRL_MASK)) | public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicTableUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java |
else if (evt.isControlDown()) | else if (evt.getModifiers() == InputEvent.CTRL_MASK) | public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicTableUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java |
else if (evt.isShiftDown()) | else if (evt.getModifiers() == InputEvent.SHIFT_MASK) | public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicTableUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java |
else | else if (evt.getModifiers() == 0) | public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicTableUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java |
if (evt.isControlDown() && evt.isShiftDown()) | if (evt.getModifiers() == (InputEvent.SHIFT_MASK | InputEvent.CTRL_MASK)) | public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicTableUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java |
else if (evt.isControlDown()) | else if (evt.getModifiers() == InputEvent.CTRL_MASK) | public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicTableUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java |
else if (evt.isShiftDown()) | else if (evt.getModifiers() == InputEvent.SHIFT_MASK) | public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicTableUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java |
else | else if (evt.getModifiers() == 0) | public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicTableUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java |
int target; if (!evt.isControlDown()) { if (rowLead == getFirstVisibleRowIndex()) target = Math.max (0, rowLead - (getLastVisibleRowIndex() - getFirstVisibleRowIndex() + 1)); else target = getFirstVisibleRowIndex(); if (evt.getModifiers() == 0) { rowModel.setSelectionInterval(target, target); colModel.setSelectionInte... | public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicTableUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java | |
} else if (evt.getKeyCode() == KeyEvent.VK_TAB) { } else if (evt.getKeyCode() == KeyEvent.VK_ENTER) { | int target; if (!evt.isControlDown()) { if (rowLead == getLastVisibleRowIndex()) target = Math.min (rowMax, rowLead + (getLastVisibleRowIndex() - getFirstVisibleRowIndex() + 1)); else target = getLastVisibleRowIndex(); if (evt.getModifiers() == 0) { rowModel.setSelectionInterval(target, target); colModel.setSelectionI... | public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicTableUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java |
boolean multRowsSelected, multColsSelected; multRowsSelected = (table.getSelectedRowCount() > 1) || (!table.getRowSelectionAllowed() && table.getSelectedColumnCount() > 0); multColsSelected = (table.getSelectedColumnCount() > 1) || (!table.getColumnSelectionAllowed() && table.getSelectedRowCount() > 0); | public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicTableUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java | |
if ((table.getSelectedRowCount() <= 1 && table.getSelectedColumnCount() <= 1) || (table.getRowSelectionAllowed() == false && table.getColumnSelectionAllowed() == false)) { rowModel.setSelectionInterval((rowLead + 1)%(rowMax + 1), (rowLead + 1)%(rowMax + 1)); if (rowLead == rowMax) colModel.setSelectionInterval((colLead... | if (!multColsSelected || !multRowsSelected) { if (evt.getKeyCode() == KeyEvent.VK_TAB) advanceSingleSelection(colModel, colMax, rowModel, rowMax, (evt.getModifiers() == InputEvent.SHIFT_MASK)); else advanceSingleSelection(rowModel, rowMax, colModel, colMax, (evt.getModifiers() == InputEvent.SHIFT_MASK)); | public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicTableUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java |
public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicTableUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java | ||
if (rowLead == rowMaxSelected) { rowModel.addSelectionInterval(rowMinSelected, rowMinSelected); if (colLead == colMaxSelected) colModel.addSelectionInterval(colMinSelected, colMinSelected); else { int[] colsSelected; if (table.getColumnSelectionAllowed()) colsSelected = table.getSelectedColumns(); else { colsSelected... | if (evt.getKeyCode() == KeyEvent.VK_TAB) advanceMultipleSelection(colModel, colMinSelected, colMaxSelected, rowModel, rowMinSelected, rowMaxSelected, (evt.getModifiers() == InputEvent.SHIFT_MASK), true); | public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicTableUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java |
{ int[] rowsSelected; if (table.getRowSelectionAllowed()) rowsSelected = table.getSelectedRows(); else { rowsSelected = new int[table.getModel().getRowCount()]; for (int i = 0; i < table.getModel().getRowCount(); i++) rowsSelected[i] = i; } int rowIndex = 0; while (rowsSelected[rowIndex] <= rowLead) rowIndex++; rowMode... | advanceMultipleSelection(rowModel, rowMinSelected, rowMaxSelected, colModel, colMinSelected, colMaxSelected, (evt.getModifiers() == InputEvent.SHIFT_MASK), false); | public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicTableUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java |
== KeyEvent.VK_SLASH) && evt.isControlDown()) { rowModel.setSelectionInterval(0, rowMax); colModel.setSelectionInterval(0, colMax); rowModel.addSelectionInterval(rowLead, rowLead); colModel.addSelectionInterval(colLead, colLead); | == KeyEvent.VK_SLASH) && (evt.getModifiers() == InputEvent.CTRL_MASK)) { table.selectAll(); | public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicTableUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java |
&& evt.isControlDown()) | && (evt.getModifiers() == InputEvent.CTRL_MASK)) | public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicTableUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java |
else if (evt.getKeyCode() == KeyEvent.VK_SPACE && (evt.getModifiers() == InputEvent.CTRL_MASK)) { table.changeSelection(rowLead, colLead, true, false); } table.scrollRectToVisible (table.getCellRect(rowModel.getLeadSelectionIndex(), colModel.getLeadSelectionIndex(), false)); | public void keyPressed(KeyEvent evt) { ListSelectionModel rowModel = table.getSelectionModel(); ListSelectionModel colModel = table.getColumnModel().getSelectionModel(); int rowLead = rowModel.getLeadSelectionIndex(); int rowMax = table.getModel().getRowCount() - 1; int colLead = colMod... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/72da40e5e4e3a49848a07aeb7fb7c8735af24ae0/BasicTableUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTableUI.java | |
public DynamicUtilTreeNode(Object value, Object children) | public DynamicUtilTreeNode(Object value, Object children) | public DynamicUtilTreeNode(Object value, Object children) { super(value); childValue = children; loadedChildren = false; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/JTree.java/clean/core/src/classpath/javax/javax/swing/JTree.java |
} else if (children instanceof Vector) | } else if (children instanceof Vector) | public static void createChildren(DefaultMutableTreeNode parent, Object children) { if (children instanceof Hashtable) { Hashtable tab = (Hashtable) children; Enumeration e = tab.keys(); while (e.hasMoreElements()) { ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/JTree.java/clean/core/src/classpath/javax/javax/swing/JTree.java |
Iterator i = ((Vector)children).iterator(); | Iterator i = ((Vector) children).iterator(); | public static void createChildren(DefaultMutableTreeNode parent, Object children) { if (children instanceof Hashtable) { Hashtable tab = (Hashtable) children; Enumeration e = tab.keys(); while (e.hasMoreElements()) { ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/JTree.java/clean/core/src/classpath/javax/javax/swing/JTree.java |
parent.add(new DynamicUtilTreeNode(n,n)); | parent.add(new DynamicUtilTreeNode(n, n)); | public static void createChildren(DefaultMutableTreeNode parent, Object children) { if (children instanceof Hashtable) { Hashtable tab = (Hashtable) children; Enumeration e = tab.keys(); while (e.hasMoreElements()) { ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/JTree.java/clean/core/src/classpath/javax/javax/swing/JTree.java |
} else if (children.getClass().isArray()) | } else if (children != null && children.getClass().isArray()) | public static void createChildren(DefaultMutableTreeNode parent, Object children) { if (children instanceof Hashtable) { Hashtable tab = (Hashtable) children; Enumeration e = tab.keys(); while (e.hasMoreElements()) { ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/JTree.java/clean/core/src/classpath/javax/javax/swing/JTree.java |
return (childValue == null || !(childValue instanceof Hashtable || childValue instanceof Vector || childValue.getClass().isArray())); | return (childValue == null || !(childValue instanceof Hashtable || childValue instanceof Vector || childValue.getClass() .isArray())); | public boolean isLeaf() { return (childValue == null || !(childValue instanceof Hashtable || childValue instanceof Vector || childValue.getClass().isArray())); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/JTree.java/clean/core/src/classpath/javax/javax/swing/JTree.java |
TreeSelectionEvent rewritten = (TreeSelectionEvent) ev.cloneWithSource(JTree.this); | TreeSelectionEvent rewritten = (TreeSelectionEvent) ev .cloneWithSource(JTree.this); | public void valueChanged(TreeSelectionEvent ev) { TreeSelectionEvent rewritten = (TreeSelectionEvent) ev.cloneWithSource(JTree.this); fireValueChanged(rewritten); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/JTree.java/clean/core/src/classpath/javax/javax/swing/JTree.java |
JTree.this.repaint(); | public void valueChanged(TreeSelectionEvent ev) { TreeSelectionEvent rewritten = (TreeSelectionEvent) ev.cloneWithSource(JTree.this); fireValueChanged(rewritten); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/JTree.java/clean/core/src/classpath/javax/javax/swing/JTree.java | |
private void checkExpandParents(TreePath path) throws ExpandVetoException | private void checkExpandParents(TreePath path) throws ExpandVetoException | private void checkExpandParents(TreePath path) throws ExpandVetoException { TreePath parent = path.getParentPath(); if (parent != null) checkExpandParents(parent); fireTreeWillExpand(path); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/JTree.java/clean/core/src/classpath/javax/javax/swing/JTree.java |
private void checkExpandParents(TreePath path) throws ExpandVetoException { TreePath parent = path.getParentPath(); if (parent != null) checkExpandParents(parent); fireTreeWillExpand(path); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/JTree.java/clean/core/src/classpath/javax/javax/swing/JTree.java | ||
boolean expanded, boolean leaf, int row, boolean hasFocus) | boolean expanded, boolean leaf, int row, boolean hasFocus) | public String convertValueToText(Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { return value.toString(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/JTree.java/clean/core/src/classpath/javax/javax/swing/JTree.java |
} | private void doExpandParents(TreePath path, boolean state) { TreePath parent = path.getParentPath(); if (isExpanded(parent)) return; if (parent != null) doExpandParents(parent, false); nodeStates.put(path, state ? EXPANDED : COLLAPSED); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/JTree.java/clean/core/src/classpath/javax/javax/swing/JTree.java | |
if ((path == null) || (treeModel.isLeaf(path.getLastPathComponent()))) | if ((path == null) || (treeModel.isLeaf(path.getLastPathComponent()))) | public void expandPath(TreePath path) { // Don't expand if last path component is a leaf node. if ((path == null) || (treeModel.isLeaf(path.getLastPathComponent()))) return; setExpandedState(path, true); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/JTree.java/clean/core/src/classpath/javax/javax/swing/JTree.java |
public void fireTreeWillCollapse(TreePath path) throws ExpandVetoException | public void fireTreeWillCollapse(TreePath path) throws ExpandVetoException | public void fireTreeWillCollapse(TreePath path) throws ExpandVetoException { TreeExpansionEvent event = new TreeExpansionEvent(this, path); TreeWillExpandListener[] listeners = getTreeWillExpandListeners(); for (int index = 0; index < listeners.length; ++index) listeners[index].treeWillCollapse(even... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/JTree.java/clean/core/src/classpath/javax/javax/swing/JTree.java |
public void fireTreeWillExpand(TreePath path) throws ExpandVetoException | public void fireTreeWillExpand(TreePath path) throws ExpandVetoException | public void fireTreeWillExpand(TreePath path) throws ExpandVetoException { TreeExpansionEvent event = new TreeExpansionEvent(this, path); TreeWillExpandListener[] listeners = getTreeWillExpandListeners(); for (int index = 0; index < listeners.length; ++index) listeners[index].treeWillExpand(event); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/JTree.java/clean/core/src/classpath/javax/javax/swing/JTree.java |
public TreeCellEditor getCellEditor() { return cellEditor; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/JTree.java/clean/core/src/classpath/javax/javax/swing/JTree.java | ||
DefaultMutableTreeNode child1 = new DefaultMutableTreeNode("Child node 1"); DefaultMutableTreeNode child11 = new DefaultMutableTreeNode("Child node 1.1"); DefaultMutableTreeNode child12 = new DefaultMutableTreeNode("Child node 1.2"); DefaultMutableTreeNode child13 = new DefaultMutableTreeNode("Child node 1.3"); Default... | DefaultMutableTreeNode child1 = new DefaultMutableTreeNode( "Child node 1"); DefaultMutableTreeNode child11 = new DefaultMutableTreeNode( "Child node 1.1"); DefaultMutableTreeNode child12 = new DefaultMutableTreeNode( "Child node 1.2"); DefaultMutableTreeNode child13 = new DefaultMutableTreeNode( "Child node 1.3"); Def... | protected static TreeModel getDefaultTreeModel() { DefaultMutableTreeNode root = new DefaultMutableTreeNode("Root node"); DefaultMutableTreeNode child1 = new DefaultMutableTreeNode("Child node 1"); DefaultMutableTreeNode child11 = new DefaultMutableTreeNode("Child node 1.1"); DefaultMutableTreeNode ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/JTree.java/clean/core/src/classpath/javax/javax/swing/JTree.java |
DefaultMutableTreeNode child3 = new DefaultMutableTreeNode("Child node 3"); | DefaultMutableTreeNode child3 = new DefaultMutableTreeNode( "Child node 3"); | protected static TreeModel getDefaultTreeModel() { DefaultMutableTreeNode root = new DefaultMutableTreeNode("Root node"); DefaultMutableTreeNode child1 = new DefaultMutableTreeNode("Child node 1"); DefaultMutableTreeNode child11 = new DefaultMutableTreeNode("Child node 1.1"); DefaultMutableTreeNode ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/JTree.java/clean/core/src/classpath/javax/javax/swing/JTree.java |
while(paths.hasMoreElements()) | while (paths.hasMoreElements()) | public Enumeration getExpandedDescendants(TreePath path) { Enumeration paths = nodeStates.keys(); Vector relevantPaths = new Vector(); while(paths.hasMoreElements()) { TreePath nextPath = (TreePath) paths.nextElement(); if(nodeStates.get(nextPath) == EXPANDED && path.isDescend... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50cfc3ee73e2e377b07c91f0e40a2f172b10fd27/JTree.java/clean/core/src/classpath/javax/javax/swing/JTree.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.