rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
Color color = MetalLookAndFeel.getControlDarkShadow(); if (c instanceof JInternalFrame) { JInternalFrame f = (JInternalFrame) c; if (f.isSelected()) color = MetalLookAndFeel.getPrimaryControlShadow(); } g.setColor(color);
Color savedColor = g.getColor(); AbstractButton b = (AbstractButton) c; if (b.getModel().isPressed()) g.setColor(MetalLookAndFeel.getPrimaryControlShadow()); else g.setColor(MetalLookAndFeel.getPrimaryControl()); g.fillRect(x + 2, y + 6, 7, 7); if (b.getModel().isPressed()) g.setColor(MetalLookAndFeel.getBlack()); else g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow());
public void paintIcon(Component c, Graphics g, int x, int y) { Color color = MetalLookAndFeel.getControlDarkShadow(); if (c instanceof JInternalFrame) { JInternalFrame f = (JInternalFrame) c; if (f.isSelected()) color = MetalLookAndFeel.getPrimaryControlShadow(); } g.setColor(color); g.drawLine(x + 9, y + 1, x + 10, y + 1); g.fillRect(x + 11, y + 1, 3, 3); g.fillRect(x + 12, y + 4, 2, 2); g.drawLine(x + 10, y + 3, x + 10, y + 3); g.drawLine(x + 9, y + 4, x + 10, y + 4); g.drawLine(x + 1, y + 5, x + 9, y + 5); g.drawLine(x + 1, y + 6, x + 1, y + 12); g.drawLine(x + 9, y + 6, x + 9, y + 12); g.drawLine(x + 1, y + 13, x + 9, y + 13); // fill g.drawLine(x + 7, y + 6, x + 8, y + 6); g.drawLine(x + 6, y + 7, x + 8, y + 7); g.drawLine(x + 5, y + 8, x + 6, y + 8); g.drawLine(x + 4, y + 9, x + 5, y + 9); g.drawLine(x + 3, y + 10, x + 4, y + 10); g.drawLine(x + 2, y + 11, x + 3, y + 11); g.drawLine(x + 2, y + 12, x + 4, y + 12); g.drawLine(x + 8, y + 8, x + 8, y + 8); // draw black g.setColor(MetalLookAndFeel.getBlack()); g.drawLine(x + 8, y, x + 13, y); g.drawLine(x + 8, y + 1, x + 8, y + 1); g.drawLine(x + 10, y + 2, x + 9, y + 3); g.drawLine(x, y + 4, x + 8, y + 4); g.drawLine(x, y + 5, x, y + 13); g.drawLine(x + 2, y + 10, x + 6, y + 6); g.drawLine(x + 8, y + 9, x + 8, y + 11); g.drawLine(x + 5, y + 12, x + 8, y + 12); // draw white g.setColor(MetalLookAndFeel.getWhite()); g.drawLine(x + 2, y + 6, x + 5, y + 6); g.drawLine(x + 2, y + 7, x + 2, y + 9); g.drawLine(x + 4, y + 11, x + 7, y + 8); g.drawLine(x + 1, y + 14, x + 10, y + 14); g.drawLine(x + 10, y + 5, x + 10, y + 13); g.drawLine(x + 9, y + 2, x + 9, y + 2); g.drawLine(x + 11, y + 4, x + 11, y + 5); g.drawLine(x + 13, y + 6, x + 14, y + 6); g.drawLine(x + 14, y + 1, x + 14, y + 5); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/MetalIconFactory.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalIconFactory.java
g.drawLine(x + 2, y + 6, x + 5, y + 6); g.drawLine(x + 2, y + 7, x + 2, y + 9); g.drawLine(x + 4, y + 11, x + 7, y + 8);
if (!b.getModel().isPressed()) { g.drawLine(x + 2, y + 6, x + 5, y + 6); g.drawLine(x + 2, y + 7, x + 2, y + 9); g.drawLine(x + 4, y + 11, x + 7, y + 8); }
public void paintIcon(Component c, Graphics g, int x, int y) { Color color = MetalLookAndFeel.getControlDarkShadow(); if (c instanceof JInternalFrame) { JInternalFrame f = (JInternalFrame) c; if (f.isSelected()) color = MetalLookAndFeel.getPrimaryControlShadow(); } g.setColor(color); g.drawLine(x + 9, y + 1, x + 10, y + 1); g.fillRect(x + 11, y + 1, 3, 3); g.fillRect(x + 12, y + 4, 2, 2); g.drawLine(x + 10, y + 3, x + 10, y + 3); g.drawLine(x + 9, y + 4, x + 10, y + 4); g.drawLine(x + 1, y + 5, x + 9, y + 5); g.drawLine(x + 1, y + 6, x + 1, y + 12); g.drawLine(x + 9, y + 6, x + 9, y + 12); g.drawLine(x + 1, y + 13, x + 9, y + 13); // fill g.drawLine(x + 7, y + 6, x + 8, y + 6); g.drawLine(x + 6, y + 7, x + 8, y + 7); g.drawLine(x + 5, y + 8, x + 6, y + 8); g.drawLine(x + 4, y + 9, x + 5, y + 9); g.drawLine(x + 3, y + 10, x + 4, y + 10); g.drawLine(x + 2, y + 11, x + 3, y + 11); g.drawLine(x + 2, y + 12, x + 4, y + 12); g.drawLine(x + 8, y + 8, x + 8, y + 8); // draw black g.setColor(MetalLookAndFeel.getBlack()); g.drawLine(x + 8, y, x + 13, y); g.drawLine(x + 8, y + 1, x + 8, y + 1); g.drawLine(x + 10, y + 2, x + 9, y + 3); g.drawLine(x, y + 4, x + 8, y + 4); g.drawLine(x, y + 5, x, y + 13); g.drawLine(x + 2, y + 10, x + 6, y + 6); g.drawLine(x + 8, y + 9, x + 8, y + 11); g.drawLine(x + 5, y + 12, x + 8, y + 12); // draw white g.setColor(MetalLookAndFeel.getWhite()); g.drawLine(x + 2, y + 6, x + 5, y + 6); g.drawLine(x + 2, y + 7, x + 2, y + 9); g.drawLine(x + 4, y + 11, x + 7, y + 8); g.drawLine(x + 1, y + 14, x + 10, y + 14); g.drawLine(x + 10, y + 5, x + 10, y + 13); g.drawLine(x + 9, y + 2, x + 9, y + 2); g.drawLine(x + 11, y + 4, x + 11, y + 5); g.drawLine(x + 13, y + 6, x + 14, y + 6); g.drawLine(x + 14, y + 1, x + 14, y + 5); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/MetalIconFactory.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalIconFactory.java
g.setColor(savedColor);
public void paintIcon(Component c, Graphics g, int x, int y) { Color color = MetalLookAndFeel.getControlDarkShadow(); if (c instanceof JInternalFrame) { JInternalFrame f = (JInternalFrame) c; if (f.isSelected()) color = MetalLookAndFeel.getPrimaryControlShadow(); } g.setColor(color); g.drawLine(x + 9, y + 1, x + 10, y + 1); g.fillRect(x + 11, y + 1, 3, 3); g.fillRect(x + 12, y + 4, 2, 2); g.drawLine(x + 10, y + 3, x + 10, y + 3); g.drawLine(x + 9, y + 4, x + 10, y + 4); g.drawLine(x + 1, y + 5, x + 9, y + 5); g.drawLine(x + 1, y + 6, x + 1, y + 12); g.drawLine(x + 9, y + 6, x + 9, y + 12); g.drawLine(x + 1, y + 13, x + 9, y + 13); // fill g.drawLine(x + 7, y + 6, x + 8, y + 6); g.drawLine(x + 6, y + 7, x + 8, y + 7); g.drawLine(x + 5, y + 8, x + 6, y + 8); g.drawLine(x + 4, y + 9, x + 5, y + 9); g.drawLine(x + 3, y + 10, x + 4, y + 10); g.drawLine(x + 2, y + 11, x + 3, y + 11); g.drawLine(x + 2, y + 12, x + 4, y + 12); g.drawLine(x + 8, y + 8, x + 8, y + 8); // draw black g.setColor(MetalLookAndFeel.getBlack()); g.drawLine(x + 8, y, x + 13, y); g.drawLine(x + 8, y + 1, x + 8, y + 1); g.drawLine(x + 10, y + 2, x + 9, y + 3); g.drawLine(x, y + 4, x + 8, y + 4); g.drawLine(x, y + 5, x, y + 13); g.drawLine(x + 2, y + 10, x + 6, y + 6); g.drawLine(x + 8, y + 9, x + 8, y + 11); g.drawLine(x + 5, y + 12, x + 8, y + 12); // draw white g.setColor(MetalLookAndFeel.getWhite()); g.drawLine(x + 2, y + 6, x + 5, y + 6); g.drawLine(x + 2, y + 7, x + 2, y + 9); g.drawLine(x + 4, y + 11, x + 7, y + 8); g.drawLine(x + 1, y + 14, x + 10, y + 14); g.drawLine(x + 10, y + 5, x + 10, y + 13); g.drawLine(x + 9, y + 2, x + 9, y + 2); g.drawLine(x + 11, y + 4, x + 11, y + 5); g.drawLine(x + 13, y + 6, x + 14, y + 6); g.drawLine(x + 14, y + 1, x + 14, y + 5); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/MetalIconFactory.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalIconFactory.java
Color color = MetalLookAndFeel.getControlDarkShadow(); if (c instanceof JInternalFrame) { JInternalFrame f = (JInternalFrame) c; if (f.isSelected()) color = MetalLookAndFeel.getPrimaryControlShadow(); } g.setColor(color);
Color savedColor = g.getColor(); AbstractButton b = (AbstractButton) c; if (b.getModel().isPressed()) g.setColor(MetalLookAndFeel.getBlack()); else g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow());
public void paintIcon(Component c, Graphics g, int x, int y) { Color color = MetalLookAndFeel.getControlDarkShadow(); if (c instanceof JInternalFrame) { JInternalFrame f = (JInternalFrame) c; if (f.isSelected()) color = MetalLookAndFeel.getPrimaryControlShadow(); } g.setColor(color); g.drawLine(x + 12, y + 1, x + 13, y + 1); g.drawLine(x + 11, y + 2, x + 12, y + 2); g.drawLine(x + 10, y + 3, x + 11, y + 3); g.drawLine(x + 8, y + 2, x + 8, y + 3); g.fillRect(x + 8, y + 4, 3, 3); g.drawLine(x + 11, y + 6, x + 12, y + 6); g.drawLine(x + 1, y + 8, x + 6, y + 8); g.drawLine(x + 1, y + 9, x + 1, y + 12); g.drawLine(x + 6, y + 9, x + 6, y + 12); g.drawLine(x + 1, y + 13, x + 6, y + 13); g.drawLine(x + 5, y + 9, x + 5, y + 9); g.drawLine(x + 2, y + 12, x + 2, y + 12); g.setColor(MetalLookAndFeel.getBlack()); g.drawLine(x + 12, y, x + 9, y + 3); g.drawLine(x + 7, y + 1, x + 8, y + 1); g.drawLine(x + 7, y + 2, x + 7, y + 6); g.drawLine(x, y + 7, x + 6, y + 7); g.drawLine(x, y + 8, x, y + 13); g.drawLine(x + 3, y + 12, x + 5, y + 12); g.drawLine(x + 5, y + 10, x + 5, y + 11); g.drawLine(x + 11, y + 5, x + 12, y + 5); g.setColor(MetalLookAndFeel.getWhite()); g.drawLine(x + 9, y + 2, x + 9, y + 2); g.drawLine(x + 11, y + 4, x + 13, y + 2); g.drawLine(x + 13, y + 6, x + 13, y + 6); g.drawLine(x + 8, y + 7, x + 13, y + 7); g.drawLine(x + 2, y + 9, x + 4, y + 9); g.drawLine(x + 2, y + 10, x + 2, y + 11); g.drawLine(x + 7, y + 9, x + 7, y + 13); g.drawLine(x + 1, y + 14, x + 7, y + 14); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/MetalIconFactory.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalIconFactory.java
g.drawLine(x + 2, y + 9, x + 4, y + 9); g.drawLine(x + 2, y + 10, x + 2, y + 11);
public void paintIcon(Component c, Graphics g, int x, int y) { Color color = MetalLookAndFeel.getControlDarkShadow(); if (c instanceof JInternalFrame) { JInternalFrame f = (JInternalFrame) c; if (f.isSelected()) color = MetalLookAndFeel.getPrimaryControlShadow(); } g.setColor(color); g.drawLine(x + 12, y + 1, x + 13, y + 1); g.drawLine(x + 11, y + 2, x + 12, y + 2); g.drawLine(x + 10, y + 3, x + 11, y + 3); g.drawLine(x + 8, y + 2, x + 8, y + 3); g.fillRect(x + 8, y + 4, 3, 3); g.drawLine(x + 11, y + 6, x + 12, y + 6); g.drawLine(x + 1, y + 8, x + 6, y + 8); g.drawLine(x + 1, y + 9, x + 1, y + 12); g.drawLine(x + 6, y + 9, x + 6, y + 12); g.drawLine(x + 1, y + 13, x + 6, y + 13); g.drawLine(x + 5, y + 9, x + 5, y + 9); g.drawLine(x + 2, y + 12, x + 2, y + 12); g.setColor(MetalLookAndFeel.getBlack()); g.drawLine(x + 12, y, x + 9, y + 3); g.drawLine(x + 7, y + 1, x + 8, y + 1); g.drawLine(x + 7, y + 2, x + 7, y + 6); g.drawLine(x, y + 7, x + 6, y + 7); g.drawLine(x, y + 8, x, y + 13); g.drawLine(x + 3, y + 12, x + 5, y + 12); g.drawLine(x + 5, y + 10, x + 5, y + 11); g.drawLine(x + 11, y + 5, x + 12, y + 5); g.setColor(MetalLookAndFeel.getWhite()); g.drawLine(x + 9, y + 2, x + 9, y + 2); g.drawLine(x + 11, y + 4, x + 13, y + 2); g.drawLine(x + 13, y + 6, x + 13, y + 6); g.drawLine(x + 8, y + 7, x + 13, y + 7); g.drawLine(x + 2, y + 9, x + 4, y + 9); g.drawLine(x + 2, y + 10, x + 2, y + 11); g.drawLine(x + 7, y + 9, x + 7, y + 13); g.drawLine(x + 1, y + 14, x + 7, y + 14); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/MetalIconFactory.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalIconFactory.java
if (b.getModel().isPressed()) { g.setColor(MetalLookAndFeel.getPrimaryControlShadow()); g.fillRect(x + 2, y + 9, 3, 3); } else { g.drawLine(x + 2, y + 9, x + 4, y + 9); g.drawLine(x + 2, y + 10, x + 2, y + 11); } g.setColor(savedColor);
public void paintIcon(Component c, Graphics g, int x, int y) { Color color = MetalLookAndFeel.getControlDarkShadow(); if (c instanceof JInternalFrame) { JInternalFrame f = (JInternalFrame) c; if (f.isSelected()) color = MetalLookAndFeel.getPrimaryControlShadow(); } g.setColor(color); g.drawLine(x + 12, y + 1, x + 13, y + 1); g.drawLine(x + 11, y + 2, x + 12, y + 2); g.drawLine(x + 10, y + 3, x + 11, y + 3); g.drawLine(x + 8, y + 2, x + 8, y + 3); g.fillRect(x + 8, y + 4, 3, 3); g.drawLine(x + 11, y + 6, x + 12, y + 6); g.drawLine(x + 1, y + 8, x + 6, y + 8); g.drawLine(x + 1, y + 9, x + 1, y + 12); g.drawLine(x + 6, y + 9, x + 6, y + 12); g.drawLine(x + 1, y + 13, x + 6, y + 13); g.drawLine(x + 5, y + 9, x + 5, y + 9); g.drawLine(x + 2, y + 12, x + 2, y + 12); g.setColor(MetalLookAndFeel.getBlack()); g.drawLine(x + 12, y, x + 9, y + 3); g.drawLine(x + 7, y + 1, x + 8, y + 1); g.drawLine(x + 7, y + 2, x + 7, y + 6); g.drawLine(x, y + 7, x + 6, y + 7); g.drawLine(x, y + 8, x, y + 13); g.drawLine(x + 3, y + 12, x + 5, y + 12); g.drawLine(x + 5, y + 10, x + 5, y + 11); g.drawLine(x + 11, y + 5, x + 12, y + 5); g.setColor(MetalLookAndFeel.getWhite()); g.drawLine(x + 9, y + 2, x + 9, y + 2); g.drawLine(x + 11, y + 4, x + 13, y + 2); g.drawLine(x + 13, y + 6, x + 13, y + 6); g.drawLine(x + 8, y + 7, x + 13, y + 7); g.drawLine(x + 2, y + 9, x + 4, y + 9); g.drawLine(x + 2, y + 10, x + 2, y + 11); g.drawLine(x + 7, y + 9, x + 7, y + 13); g.drawLine(x + 1, y + 14, x + 7, y + 14); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/MetalIconFactory.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalIconFactory.java
public void paintIcon(Component c, Graphics g, int x, int y)
public void paintIcon(Component c, Graphics g, int x, int y)
public void paintIcon(Component c, Graphics g, int x, int y) { Color savedColor = g.getColor(); JRadioButton b = (JRadioButton) c; // draw outer circle if (b.isEnabled()) g.setColor(MetalLookAndFeel.getControlDarkShadow()); else g.setColor(MetalLookAndFeel.getControlDisabled()); g.drawLine(x + 2, y + 1, x + 3, y + 1); g.drawLine(x + 4, y, x + 7, y); g.drawLine(x + 8, y + 1, x + 9, y + 1); g.drawLine(x + 10, y + 2, x + 10, y + 3); g.drawLine(x + 11, y + 4, x + 11, y + 7); g.drawLine(x + 10, y + 8, x + 10, y + 9); g.drawLine(x + 8, y + 10, x + 9, y + 10); g.drawLine(x + 4, y + 11, x + 7, y + 11); g.drawLine(x + 2, y + 10, x + 3, y + 10); g.drawLine(x + 1, y + 9, x + 1, y + 8); g.drawLine(x, y + 7, x, y + 4); g.drawLine(x + 1, y + 2, x + 1, y + 3); if (b.getModel().isArmed()) { g.setColor(MetalLookAndFeel.getControlShadow()); g.drawLine(x + 4, y + 1, x + 7, y + 1); g.drawLine(x + 4, y + 10, x + 7, y + 10); g.drawLine(x + 1, y + 4, x + 1, y + 7); g.drawLine(x + 10, y + 4, x + 10, y + 7); g.fillRect(x + 2, y + 2, 8, 8); } else { // only draw inner highlight if not filled if (b.isEnabled()) { g.setColor(MetalLookAndFeel.getWhite()); g.drawLine(x + 2, y + 8, x + 2, y + 9); g.drawLine(x + 1, y + 4, x + 1, y + 7); g.drawLine(x + 2, y + 2, x + 2, y + 3); g.drawLine(x + 3, y + 2, x + 3, y + 2); g.drawLine(x + 4, y + 1, x + 7, y + 1); g.drawLine(x + 8, y + 2, x + 9, y + 2); } } // draw outer highlight if (b.isEnabled()) { g.setColor(MetalLookAndFeel.getWhite()); // outer g.drawLine(x + 10, y + 1, x + 10, y + 1); g.drawLine(x + 11, y + 2, x + 11, y + 3); g.drawLine(x + 12, y + 4, x + 12, y + 7); g.drawLine(x + 11, y + 8, x + 11, y + 9); g.drawLine(x + 10, y + 10, x + 10, y + 10); g.drawLine(x + 8, y + 11, x + 9, y + 11); g.drawLine(x + 4, y + 12, x + 7, y + 12); g.drawLine(x + 2, y + 11, x + 3, y + 11); } if (b.isSelected()) { g.setColor(MetalLookAndFeel.getBlack()); g.drawLine(x + 4, y + 3, x + 7, y + 3); g.fillRect(x + 3, y + 4, 6, 4); g.drawLine(x + 4, y + 8, x + 7, y + 8); } g.setColor(savedColor); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/MetalIconFactory.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalIconFactory.java
public void paintIcon(Component c, Graphics g, int x, int y) { Color savedColor = g.getColor(); JRadioButton b = (JRadioButton) c; // draw outer circle if (b.isEnabled()) g.setColor(MetalLookAndFeel.getControlDarkShadow()); else g.setColor(MetalLookAndFeel.getControlDisabled()); g.drawLine(x + 2, y + 1, x + 3, y + 1); g.drawLine(x + 4, y, x + 7, y); g.drawLine(x + 8, y + 1, x + 9, y + 1); g.drawLine(x + 10, y + 2, x + 10, y + 3); g.drawLine(x + 11, y + 4, x + 11, y + 7); g.drawLine(x + 10, y + 8, x + 10, y + 9); g.drawLine(x + 8, y + 10, x + 9, y + 10); g.drawLine(x + 4, y + 11, x + 7, y + 11); g.drawLine(x + 2, y + 10, x + 3, y + 10); g.drawLine(x + 1, y + 9, x + 1, y + 8); g.drawLine(x, y + 7, x, y + 4); g.drawLine(x + 1, y + 2, x + 1, y + 3); if (b.getModel().isArmed()) { g.setColor(MetalLookAndFeel.getControlShadow()); g.drawLine(x + 4, y + 1, x + 7, y + 1); g.drawLine(x + 4, y + 10, x + 7, y + 10); g.drawLine(x + 1, y + 4, x + 1, y + 7); g.drawLine(x + 10, y + 4, x + 10, y + 7); g.fillRect(x + 2, y + 2, 8, 8); } else { // only draw inner highlight if not filled if (b.isEnabled()) { g.setColor(MetalLookAndFeel.getWhite()); g.drawLine(x + 2, y + 8, x + 2, y + 9); g.drawLine(x + 1, y + 4, x + 1, y + 7); g.drawLine(x + 2, y + 2, x + 2, y + 3); g.drawLine(x + 3, y + 2, x + 3, y + 2); g.drawLine(x + 4, y + 1, x + 7, y + 1); g.drawLine(x + 8, y + 2, x + 9, y + 2); } } // draw outer highlight if (b.isEnabled()) { g.setColor(MetalLookAndFeel.getWhite()); // outer g.drawLine(x + 10, y + 1, x + 10, y + 1); g.drawLine(x + 11, y + 2, x + 11, y + 3); g.drawLine(x + 12, y + 4, x + 12, y + 7); g.drawLine(x + 11, y + 8, x + 11, y + 9); g.drawLine(x + 10, y + 10, x + 10, y + 10); g.drawLine(x + 8, y + 11, x + 9, y + 11); g.drawLine(x + 4, y + 12, x + 7, y + 12); g.drawLine(x + 2, y + 11, x + 3, y + 11); } if (b.isSelected()) { g.setColor(MetalLookAndFeel.getBlack()); g.drawLine(x + 4, y + 3, x + 7, y + 3); g.fillRect(x + 3, y + 4, 6, 4); g.drawLine(x + 4, y + 8, x + 7, y + 8); } g.setColor(savedColor); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/MetalIconFactory.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalIconFactory.java
g.setColor(MetalLookAndFeel.getBlack());
if (b.isEnabled()) g.setColor(MetalLookAndFeel.getBlack()); else g.setColor(MetalLookAndFeel.getControlDisabled());
public void paintIcon(Component c, Graphics g, int x, int y) { Color savedColor = g.getColor(); JRadioButton b = (JRadioButton) c; // draw outer circle if (b.isEnabled()) g.setColor(MetalLookAndFeel.getControlDarkShadow()); else g.setColor(MetalLookAndFeel.getControlDisabled()); g.drawLine(x + 2, y + 1, x + 3, y + 1); g.drawLine(x + 4, y, x + 7, y); g.drawLine(x + 8, y + 1, x + 9, y + 1); g.drawLine(x + 10, y + 2, x + 10, y + 3); g.drawLine(x + 11, y + 4, x + 11, y + 7); g.drawLine(x + 10, y + 8, x + 10, y + 9); g.drawLine(x + 8, y + 10, x + 9, y + 10); g.drawLine(x + 4, y + 11, x + 7, y + 11); g.drawLine(x + 2, y + 10, x + 3, y + 10); g.drawLine(x + 1, y + 9, x + 1, y + 8); g.drawLine(x, y + 7, x, y + 4); g.drawLine(x + 1, y + 2, x + 1, y + 3); if (b.getModel().isArmed()) { g.setColor(MetalLookAndFeel.getControlShadow()); g.drawLine(x + 4, y + 1, x + 7, y + 1); g.drawLine(x + 4, y + 10, x + 7, y + 10); g.drawLine(x + 1, y + 4, x + 1, y + 7); g.drawLine(x + 10, y + 4, x + 10, y + 7); g.fillRect(x + 2, y + 2, 8, 8); } else { // only draw inner highlight if not filled if (b.isEnabled()) { g.setColor(MetalLookAndFeel.getWhite()); g.drawLine(x + 2, y + 8, x + 2, y + 9); g.drawLine(x + 1, y + 4, x + 1, y + 7); g.drawLine(x + 2, y + 2, x + 2, y + 3); g.drawLine(x + 3, y + 2, x + 3, y + 2); g.drawLine(x + 4, y + 1, x + 7, y + 1); g.drawLine(x + 8, y + 2, x + 9, y + 2); } } // draw outer highlight if (b.isEnabled()) { g.setColor(MetalLookAndFeel.getWhite()); // outer g.drawLine(x + 10, y + 1, x + 10, y + 1); g.drawLine(x + 11, y + 2, x + 11, y + 3); g.drawLine(x + 12, y + 4, x + 12, y + 7); g.drawLine(x + 11, y + 8, x + 11, y + 9); g.drawLine(x + 10, y + 10, x + 10, y + 10); g.drawLine(x + 8, y + 11, x + 9, y + 11); g.drawLine(x + 4, y + 12, x + 7, y + 12); g.drawLine(x + 2, y + 11, x + 3, y + 11); } if (b.isSelected()) { g.setColor(MetalLookAndFeel.getBlack()); g.drawLine(x + 4, y + 3, x + 7, y + 3); g.fillRect(x + 3, y + 4, 6, 4); g.drawLine(x + 4, y + 8, x + 7, y + 8); } g.setColor(savedColor); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/MetalIconFactory.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalIconFactory.java
if (c != null)
if (c != null)
public void paintIcon(Component c, Graphics g, int x, int y) { boolean enabled = false; boolean focus = false; if (c != null) { enabled = c.isEnabled(); focus = c.hasFocus(); } // draw the outline if (enabled) g.setColor(MetalLookAndFeel.getBlack()); else g.setColor(MetalLookAndFeel.getControlDarkShadow()); g.drawLine(x + 1, y, x + 7, y); g.drawLine(x + 8, y, x + 15, y + 7); g.drawLine(x + 14, y + 8, x + 8, y + 14); g.drawLine(x + 8, y + 14, x + 1, y + 14); g.drawLine(x, y + 13, x, y + 1); // fill the icon if (focus) g.setColor(MetalLookAndFeel.getPrimaryControlShadow()); else g.setColor(MetalLookAndFeel.getControl()); g.fillRect(x + 2, y + 1, 7, 13); g.drawLine(x + 9, y + 2, x + 9, y + 12); g.drawLine(x + 10, y + 3, x + 10, y + 11); g.drawLine(x + 11, y + 4, x + 11, y + 10); g.drawLine(x + 12, y + 5, x + 12, y + 9); g.drawLine(x + 13, y + 6, x + 13, y + 8); g.drawLine(x + 14, y + 7, x + 14, y + 7); // if the slider is enabled, draw dots and highlights if (enabled) { if (focus) g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow()); else g.setColor(MetalLookAndFeel.getBlack()); g.drawLine(x + 3, y + 3, x + 3, y + 3); g.drawLine(x + 3, y + 7, x + 3, y + 7); g.drawLine(x + 3, y + 11, x + 3, y + 11); g.drawLine(x + 5, y + 5, x + 5, y + 5); g.drawLine(x + 5, y + 9, x + 5, y + 9); g.drawLine(x + 7, y + 3, x + 7, y + 3); g.drawLine(x + 7, y + 7, x + 7, y + 7); g.drawLine(x + 7, y + 11, x + 7, y + 11); // draw highlights if (focus) g.setColor(MetalLookAndFeel.getPrimaryControl()); else g.setColor(MetalLookAndFeel.getWhite()); g.drawLine(x + 1, y + 1, x + 8, y + 1); g.drawLine(x + 1, y + 2, x + 1, y + 13); g.drawLine(x + 2, y + 2, x + 2, y + 2); g.drawLine(x + 2, y + 6, x + 2, y + 6); g.drawLine(x + 2, y + 10, x + 2, y + 10); g.drawLine(x + 4, y + 4, x + 4, y + 4); g.drawLine(x + 4, y + 8, x + 4, y + 8); g.drawLine(x + 6, y + 2, x + 6, y + 2); g.drawLine(x + 6, y + 6, x + 6, y + 6); g.drawLine(x + 6, y + 10, x + 6, y + 10); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/MetalIconFactory.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalIconFactory.java
focus = c.hasFocus();
focus = c.hasFocus();
public void paintIcon(Component c, Graphics g, int x, int y) { boolean enabled = false; boolean focus = false; if (c != null) { enabled = c.isEnabled(); focus = c.hasFocus(); } // draw the outline if (enabled) g.setColor(MetalLookAndFeel.getBlack()); else g.setColor(MetalLookAndFeel.getControlDarkShadow()); g.drawLine(x + 1, y, x + 7, y); g.drawLine(x + 8, y, x + 15, y + 7); g.drawLine(x + 14, y + 8, x + 8, y + 14); g.drawLine(x + 8, y + 14, x + 1, y + 14); g.drawLine(x, y + 13, x, y + 1); // fill the icon if (focus) g.setColor(MetalLookAndFeel.getPrimaryControlShadow()); else g.setColor(MetalLookAndFeel.getControl()); g.fillRect(x + 2, y + 1, 7, 13); g.drawLine(x + 9, y + 2, x + 9, y + 12); g.drawLine(x + 10, y + 3, x + 10, y + 11); g.drawLine(x + 11, y + 4, x + 11, y + 10); g.drawLine(x + 12, y + 5, x + 12, y + 9); g.drawLine(x + 13, y + 6, x + 13, y + 8); g.drawLine(x + 14, y + 7, x + 14, y + 7); // if the slider is enabled, draw dots and highlights if (enabled) { if (focus) g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow()); else g.setColor(MetalLookAndFeel.getBlack()); g.drawLine(x + 3, y + 3, x + 3, y + 3); g.drawLine(x + 3, y + 7, x + 3, y + 7); g.drawLine(x + 3, y + 11, x + 3, y + 11); g.drawLine(x + 5, y + 5, x + 5, y + 5); g.drawLine(x + 5, y + 9, x + 5, y + 9); g.drawLine(x + 7, y + 3, x + 7, y + 3); g.drawLine(x + 7, y + 7, x + 7, y + 7); g.drawLine(x + 7, y + 11, x + 7, y + 11); // draw highlights if (focus) g.setColor(MetalLookAndFeel.getPrimaryControl()); else g.setColor(MetalLookAndFeel.getWhite()); g.drawLine(x + 1, y + 1, x + 8, y + 1); g.drawLine(x + 1, y + 2, x + 1, y + 13); g.drawLine(x + 2, y + 2, x + 2, y + 2); g.drawLine(x + 2, y + 6, x + 2, y + 6); g.drawLine(x + 2, y + 10, x + 2, y + 10); g.drawLine(x + 4, y + 4, x + 4, y + 4); g.drawLine(x + 4, y + 8, x + 4, y + 8); g.drawLine(x + 6, y + 2, x + 6, y + 2); g.drawLine(x + 6, y + 6, x + 6, y + 6); g.drawLine(x + 6, y + 10, x + 6, y + 10); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/MetalIconFactory.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalIconFactory.java
public void paintIcon(Component c, Graphics g, int x, int y) { boolean enabled = false; boolean focus = false; if (c != null) { enabled = c.isEnabled(); focus = c.hasFocus(); } // draw the outline if (enabled) g.setColor(MetalLookAndFeel.getBlack()); else g.setColor(MetalLookAndFeel.getControlDarkShadow()); g.drawLine(x + 1, y, x + 7, y); g.drawLine(x + 8, y, x + 15, y + 7); g.drawLine(x + 14, y + 8, x + 8, y + 14); g.drawLine(x + 8, y + 14, x + 1, y + 14); g.drawLine(x, y + 13, x, y + 1); // fill the icon if (focus) g.setColor(MetalLookAndFeel.getPrimaryControlShadow()); else g.setColor(MetalLookAndFeel.getControl()); g.fillRect(x + 2, y + 1, 7, 13); g.drawLine(x + 9, y + 2, x + 9, y + 12); g.drawLine(x + 10, y + 3, x + 10, y + 11); g.drawLine(x + 11, y + 4, x + 11, y + 10); g.drawLine(x + 12, y + 5, x + 12, y + 9); g.drawLine(x + 13, y + 6, x + 13, y + 8); g.drawLine(x + 14, y + 7, x + 14, y + 7); // if the slider is enabled, draw dots and highlights if (enabled) { if (focus) g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow()); else g.setColor(MetalLookAndFeel.getBlack()); g.drawLine(x + 3, y + 3, x + 3, y + 3); g.drawLine(x + 3, y + 7, x + 3, y + 7); g.drawLine(x + 3, y + 11, x + 3, y + 11); g.drawLine(x + 5, y + 5, x + 5, y + 5); g.drawLine(x + 5, y + 9, x + 5, y + 9); g.drawLine(x + 7, y + 3, x + 7, y + 3); g.drawLine(x + 7, y + 7, x + 7, y + 7); g.drawLine(x + 7, y + 11, x + 7, y + 11); // draw highlights if (focus) g.setColor(MetalLookAndFeel.getPrimaryControl()); else g.setColor(MetalLookAndFeel.getWhite()); g.drawLine(x + 1, y + 1, x + 8, y + 1); g.drawLine(x + 1, y + 2, x + 1, y + 13); g.drawLine(x + 2, y + 2, x + 2, y + 2); g.drawLine(x + 2, y + 6, x + 2, y + 6); g.drawLine(x + 2, y + 10, x + 2, y + 10); g.drawLine(x + 4, y + 4, x + 4, y + 4); g.drawLine(x + 4, y + 8, x + 4, y + 8); g.drawLine(x + 6, y + 2, x + 6, y + 2); g.drawLine(x + 6, y + 6, x + 6, y + 6); g.drawLine(x + 6, y + 10, x + 6, y + 10); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/MetalIconFactory.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalIconFactory.java
g.drawLine(x + 1, y + 1, x + 8, y + 1); g.drawLine(x + 1, y + 2, x + 1, y + 13); g.drawLine(x + 2, y + 2, x + 2, y + 2); g.drawLine(x + 2, y + 6, x + 2, y + 6); g.drawLine(x + 2, y + 10, x + 2, y + 10);
g.drawLine(x + 1, y + 1, x + 8, y + 1); g.drawLine(x + 1, y + 2, x + 1, y + 13); g.drawLine(x + 2, y + 2, x + 2, y + 2); g.drawLine(x + 2, y + 6, x + 2, y + 6); g.drawLine(x + 2, y + 10, x + 2, y + 10);
public void paintIcon(Component c, Graphics g, int x, int y) { boolean enabled = false; boolean focus = false; if (c != null) { enabled = c.isEnabled(); focus = c.hasFocus(); } // draw the outline if (enabled) g.setColor(MetalLookAndFeel.getBlack()); else g.setColor(MetalLookAndFeel.getControlDarkShadow()); g.drawLine(x + 1, y, x + 7, y); g.drawLine(x + 8, y, x + 15, y + 7); g.drawLine(x + 14, y + 8, x + 8, y + 14); g.drawLine(x + 8, y + 14, x + 1, y + 14); g.drawLine(x, y + 13, x, y + 1); // fill the icon if (focus) g.setColor(MetalLookAndFeel.getPrimaryControlShadow()); else g.setColor(MetalLookAndFeel.getControl()); g.fillRect(x + 2, y + 1, 7, 13); g.drawLine(x + 9, y + 2, x + 9, y + 12); g.drawLine(x + 10, y + 3, x + 10, y + 11); g.drawLine(x + 11, y + 4, x + 11, y + 10); g.drawLine(x + 12, y + 5, x + 12, y + 9); g.drawLine(x + 13, y + 6, x + 13, y + 8); g.drawLine(x + 14, y + 7, x + 14, y + 7); // if the slider is enabled, draw dots and highlights if (enabled) { if (focus) g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow()); else g.setColor(MetalLookAndFeel.getBlack()); g.drawLine(x + 3, y + 3, x + 3, y + 3); g.drawLine(x + 3, y + 7, x + 3, y + 7); g.drawLine(x + 3, y + 11, x + 3, y + 11); g.drawLine(x + 5, y + 5, x + 5, y + 5); g.drawLine(x + 5, y + 9, x + 5, y + 9); g.drawLine(x + 7, y + 3, x + 7, y + 3); g.drawLine(x + 7, y + 7, x + 7, y + 7); g.drawLine(x + 7, y + 11, x + 7, y + 11); // draw highlights if (focus) g.setColor(MetalLookAndFeel.getPrimaryControl()); else g.setColor(MetalLookAndFeel.getWhite()); g.drawLine(x + 1, y + 1, x + 8, y + 1); g.drawLine(x + 1, y + 2, x + 1, y + 13); g.drawLine(x + 2, y + 2, x + 2, y + 2); g.drawLine(x + 2, y + 6, x + 2, y + 6); g.drawLine(x + 2, y + 10, x + 2, y + 10); g.drawLine(x + 4, y + 4, x + 4, y + 4); g.drawLine(x + 4, y + 8, x + 4, y + 8); g.drawLine(x + 6, y + 2, x + 6, y + 2); g.drawLine(x + 6, y + 6, x + 6, y + 6); g.drawLine(x + 6, y + 10, x + 6, y + 10); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/MetalIconFactory.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalIconFactory.java
g.drawLine(x + 4, y + 4, x + 4, y + 4); g.drawLine(x + 4, y + 8, x + 4, y + 8);
g.drawLine(x + 4, y + 4, x + 4, y + 4); g.drawLine(x + 4, y + 8, x + 4, y + 8);
public void paintIcon(Component c, Graphics g, int x, int y) { boolean enabled = false; boolean focus = false; if (c != null) { enabled = c.isEnabled(); focus = c.hasFocus(); } // draw the outline if (enabled) g.setColor(MetalLookAndFeel.getBlack()); else g.setColor(MetalLookAndFeel.getControlDarkShadow()); g.drawLine(x + 1, y, x + 7, y); g.drawLine(x + 8, y, x + 15, y + 7); g.drawLine(x + 14, y + 8, x + 8, y + 14); g.drawLine(x + 8, y + 14, x + 1, y + 14); g.drawLine(x, y + 13, x, y + 1); // fill the icon if (focus) g.setColor(MetalLookAndFeel.getPrimaryControlShadow()); else g.setColor(MetalLookAndFeel.getControl()); g.fillRect(x + 2, y + 1, 7, 13); g.drawLine(x + 9, y + 2, x + 9, y + 12); g.drawLine(x + 10, y + 3, x + 10, y + 11); g.drawLine(x + 11, y + 4, x + 11, y + 10); g.drawLine(x + 12, y + 5, x + 12, y + 9); g.drawLine(x + 13, y + 6, x + 13, y + 8); g.drawLine(x + 14, y + 7, x + 14, y + 7); // if the slider is enabled, draw dots and highlights if (enabled) { if (focus) g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow()); else g.setColor(MetalLookAndFeel.getBlack()); g.drawLine(x + 3, y + 3, x + 3, y + 3); g.drawLine(x + 3, y + 7, x + 3, y + 7); g.drawLine(x + 3, y + 11, x + 3, y + 11); g.drawLine(x + 5, y + 5, x + 5, y + 5); g.drawLine(x + 5, y + 9, x + 5, y + 9); g.drawLine(x + 7, y + 3, x + 7, y + 3); g.drawLine(x + 7, y + 7, x + 7, y + 7); g.drawLine(x + 7, y + 11, x + 7, y + 11); // draw highlights if (focus) g.setColor(MetalLookAndFeel.getPrimaryControl()); else g.setColor(MetalLookAndFeel.getWhite()); g.drawLine(x + 1, y + 1, x + 8, y + 1); g.drawLine(x + 1, y + 2, x + 1, y + 13); g.drawLine(x + 2, y + 2, x + 2, y + 2); g.drawLine(x + 2, y + 6, x + 2, y + 6); g.drawLine(x + 2, y + 10, x + 2, y + 10); g.drawLine(x + 4, y + 4, x + 4, y + 4); g.drawLine(x + 4, y + 8, x + 4, y + 8); g.drawLine(x + 6, y + 2, x + 6, y + 2); g.drawLine(x + 6, y + 6, x + 6, y + 6); g.drawLine(x + 6, y + 10, x + 6, y + 10); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/MetalIconFactory.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalIconFactory.java
g.drawLine(x + 6, y + 2, x + 6, y + 2); g.drawLine(x + 6, y + 6, x + 6, y + 6); g.drawLine(x + 6, y + 10, x + 6, y + 10);
g.drawLine(x + 6, y + 2, x + 6, y + 2); g.drawLine(x + 6, y + 6, x + 6, y + 6); g.drawLine(x + 6, y + 10, x + 6, y + 10);
public void paintIcon(Component c, Graphics g, int x, int y) { boolean enabled = false; boolean focus = false; if (c != null) { enabled = c.isEnabled(); focus = c.hasFocus(); } // draw the outline if (enabled) g.setColor(MetalLookAndFeel.getBlack()); else g.setColor(MetalLookAndFeel.getControlDarkShadow()); g.drawLine(x + 1, y, x + 7, y); g.drawLine(x + 8, y, x + 15, y + 7); g.drawLine(x + 14, y + 8, x + 8, y + 14); g.drawLine(x + 8, y + 14, x + 1, y + 14); g.drawLine(x, y + 13, x, y + 1); // fill the icon if (focus) g.setColor(MetalLookAndFeel.getPrimaryControlShadow()); else g.setColor(MetalLookAndFeel.getControl()); g.fillRect(x + 2, y + 1, 7, 13); g.drawLine(x + 9, y + 2, x + 9, y + 12); g.drawLine(x + 10, y + 3, x + 10, y + 11); g.drawLine(x + 11, y + 4, x + 11, y + 10); g.drawLine(x + 12, y + 5, x + 12, y + 9); g.drawLine(x + 13, y + 6, x + 13, y + 8); g.drawLine(x + 14, y + 7, x + 14, y + 7); // if the slider is enabled, draw dots and highlights if (enabled) { if (focus) g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow()); else g.setColor(MetalLookAndFeel.getBlack()); g.drawLine(x + 3, y + 3, x + 3, y + 3); g.drawLine(x + 3, y + 7, x + 3, y + 7); g.drawLine(x + 3, y + 11, x + 3, y + 11); g.drawLine(x + 5, y + 5, x + 5, y + 5); g.drawLine(x + 5, y + 9, x + 5, y + 9); g.drawLine(x + 7, y + 3, x + 7, y + 3); g.drawLine(x + 7, y + 7, x + 7, y + 7); g.drawLine(x + 7, y + 11, x + 7, y + 11); // draw highlights if (focus) g.setColor(MetalLookAndFeel.getPrimaryControl()); else g.setColor(MetalLookAndFeel.getWhite()); g.drawLine(x + 1, y + 1, x + 8, y + 1); g.drawLine(x + 1, y + 2, x + 1, y + 13); g.drawLine(x + 2, y + 2, x + 2, y + 2); g.drawLine(x + 2, y + 6, x + 2, y + 6); g.drawLine(x + 2, y + 10, x + 2, y + 10); g.drawLine(x + 4, y + 4, x + 4, y + 4); g.drawLine(x + 4, y + 8, x + 4, y + 8); g.drawLine(x + 6, y + 2, x + 6, y + 2); g.drawLine(x + 6, y + 6, x + 6, y + 6); g.drawLine(x + 6, y + 10, x + 6, y + 10); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/MetalIconFactory.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalIconFactory.java
toUse = SwingUtilities.getOwnerFrame();
toUse = (Frame) SwingUtilities.getOwnerFrame(null);
protected JDialog createDialog(Component parent) throws HeadlessException { Frame toUse = (Frame) SwingUtilities.getAncestorOfClass(Frame.class, parent); if (toUse == null) toUse = SwingUtilities.getOwnerFrame(); JDialog dialog = new JDialog(toUse); setSelectedFile(null); dialog.getContentPane().add(this); dialog.setModal(true); dialog.invalidate(); dialog.repaint(); return dialog; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd7e81b5c6d5963539719dfde9d197c68890c201/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
Insets i = d.getInsets(); d.setSize(500 + i.top + i.bottom, d.getPreferredSize().height);
d.pack();
public int showDialog(Component parent, String approveButtonText) throws HeadlessException { JDialog d = createDialog(parent); setApproveButtonText(approveButtonText); setDialogType(CUSTOM_DIALOG); retval = ERROR_OPTION; Insets i = d.getInsets(); d.setSize(500 + i.top + i.bottom, d.getPreferredSize().height); d.show(); return retval; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd7e81b5c6d5963539719dfde9d197c68890c201/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
Insets i = d.getInsets(); d.setSize(500 + i.top + i.bottom, d.getPreferredSize().height);
d.pack();
public int showOpenDialog(Component parent) throws HeadlessException { JDialog d = createDialog(parent); // FIXME: Remove when we get ancestor property d.setTitle("Open"); setDialogType(OPEN_DIALOG); retval = ERROR_OPTION; Insets i = d.getInsets(); d.setSize(500 + i.top + i.bottom, d.getPreferredSize().height); d.show(); return retval; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd7e81b5c6d5963539719dfde9d197c68890c201/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
Insets i = d.getInsets(); d.setSize(500 + i.top + i.bottom, d.getPreferredSize().height);
d.pack();
public int showSaveDialog(Component parent) throws HeadlessException { JDialog d = createDialog(parent); setDialogType(SAVE_DIALOG); retval = ERROR_OPTION; Insets i = d.getInsets(); d.setSize(500 + i.top + i.bottom, d.getPreferredSize().height); d.show(); return retval; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd7e81b5c6d5963539719dfde9d197c68890c201/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
return "GIOP " + version + ", " + (isBigEndian() ? "Big" : "Little") + " endian, " + getTypeString(message_type) + ", " + message_size + " bytes. ";
return "GIOP " + version + ", " + (isBigEndian() ? "Big" : "Little") + " endian, " + getTypeString(message_type) + ", " + message_size + " bytes. ";
public String toString() { return "GIOP " + version + ", " + (isBigEndian() ? "Big" : "Little") + " endian, " + getTypeString(message_type) + ", " + message_size + " bytes. "; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/44e3ea509d80974dab547c4d1cf8c070d32bac86/MessageHeader.java/buggy/core/src/classpath/gnu/gnu/CORBA/GIOP/MessageHeader.java
Rectangle repaintRec = rec0.union(rec1);
Rectangle repaintRec = SwingUtilities.computeUnion(rec0.x, rec0.y, rec0.width, rec0.height, rec1);
protected void damageLineRange (int line0, int line1, Shape a, Component host) { if (a == null) return; Rectangle rec0 = lineToRect(a, line0); Rectangle rec1 = lineToRect(a, line1); if (rec0 == null || rec1 == null) // something went wrong, repaint the entire host to be safe host.repaint(); else { Rectangle repaintRec = rec0.union(rec1); host.repaint(repaintRec.x, repaintRec.y, repaintRec.width, repaintRec.height); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/PlainView.java/buggy/core/src/classpath/javax/javax/swing/text/PlainView.java
paintComponent(g);
void paintSimple(Graphics g) { Point pos = getViewPosition(); Component view = getView(); boolean translated = false; try { g.translate(-pos.x, -pos.y); translated = true; view.paint(g); } finally { if (translated) g.translate (pos.x, pos.y); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a78ab2f492456918e4f5c52be600854882e139fc/JViewport.java/buggy/core/src/classpath/javax/javax/swing/JViewport.java
public SplitPaneUI() { }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/SplitPaneUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/SplitPaneUI.java
return ch.getPlainSocketImpl().getNativeFD();
try { return ch.getVMChannel().getState().getNativeFD(); } catch (IOException ioe) { return 0; }
public int getNativeFD() { return ch.getPlainSocketImpl().getNativeFD(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7202d16ccc1adec85971720b757bc983cbd72c10/SocketChannelSelectionKeyImpl.java/clean/core/src/classpath/gnu/gnu/java/nio/SocketChannelSelectionKeyImpl.java
} catch (ThreadDeath death) { throw death;
public String get(String key, String defaultVal) { if (key.length() > MAX_KEY_LENGTH) throw new IllegalArgumentException(key); synchronized(lock) { if (isRemoved()) throw new IllegalStateException("Node removed"); String value; try { value = getSpi(key); } catch (Throwable t) { value = null; } if (value != null) { return value; } else { return defaultVal; } } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/cdb624bf4a3742cc4374523f5c6856a06dcd8f92/AbstractPreferences.java/buggy/core/src/classpath/java/java/util/prefs/AbstractPreferences.java
/*log.debug("devOffset =" + devOffset); log.debug("length =" + length); log.debug("ofsMisAlign=" + ofsMisAlign); log.debug("lenMisAlign=" + lenMisAlign);*/
public void read(long devOffset, byte[] dest, int destOffset, int length) throws IOException { if (length == 0) { return; } final int ofsMisAlign = (int)(devOffset % alignment); final int lenMisAlign = (length % alignment); /*log.debug("devOffset =" + devOffset); log.debug("length =" + length); log.debug("ofsMisAlign=" + ofsMisAlign); log.debug("lenMisAlign=" + lenMisAlign);*/ if ((ofsMisAlign != 0) || (lenMisAlign != 0)) { final byte[] buf = new byte[length + ofsMisAlign + (alignment - lenMisAlign)]; parentApi.read(devOffset - ofsMisAlign, buf, 0, buf.length); if (ofsMisAlign != 0) { System.arraycopy(buf, alignment - ofsMisAlign, dest, destOffset, length); } else { System.arraycopy(buf, 0, dest, destOffset, length); } } else { // Aligned call, pass on parentApi.read(devOffset, dest, destOffset, length); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a70fcfbf0362929145f88bf5ac025611c83ec96e/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
final byte[] buf = new byte[length + ofsMisAlign + (alignment - lenMisAlign)];
final byte[] buf = new byte[(length / alignment) + alignment];
public void read(long devOffset, byte[] dest, int destOffset, int length) throws IOException { if (length == 0) { return; } final int ofsMisAlign = (int)(devOffset % alignment); final int lenMisAlign = (length % alignment); /*log.debug("devOffset =" + devOffset); log.debug("length =" + length); log.debug("ofsMisAlign=" + ofsMisAlign); log.debug("lenMisAlign=" + lenMisAlign);*/ if ((ofsMisAlign != 0) || (lenMisAlign != 0)) { final byte[] buf = new byte[length + ofsMisAlign + (alignment - lenMisAlign)]; parentApi.read(devOffset - ofsMisAlign, buf, 0, buf.length); if (ofsMisAlign != 0) { System.arraycopy(buf, alignment - ofsMisAlign, dest, destOffset, length); } else { System.arraycopy(buf, 0, dest, destOffset, length); } } else { // Aligned call, pass on parentApi.read(devOffset, dest, destOffset, length); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a70fcfbf0362929145f88bf5ac025611c83ec96e/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
System.arraycopy(buf, alignment - ofsMisAlign, dest, destOffset, length);
System.arraycopy(buf, alignment - ofsMisAlign, dest, destOffset, length);
public void read(long devOffset, byte[] dest, int destOffset, int length) throws IOException { if (length == 0) { return; } final int ofsMisAlign = (int)(devOffset % alignment); final int lenMisAlign = (length % alignment); /*log.debug("devOffset =" + devOffset); log.debug("length =" + length); log.debug("ofsMisAlign=" + ofsMisAlign); log.debug("lenMisAlign=" + lenMisAlign);*/ if ((ofsMisAlign != 0) || (lenMisAlign != 0)) { final byte[] buf = new byte[length + ofsMisAlign + (alignment - lenMisAlign)]; parentApi.read(devOffset - ofsMisAlign, buf, 0, buf.length); if (ofsMisAlign != 0) { System.arraycopy(buf, alignment - ofsMisAlign, dest, destOffset, length); } else { System.arraycopy(buf, 0, dest, destOffset, length); } } else { // Aligned call, pass on parentApi.read(devOffset, dest, destOffset, length); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a70fcfbf0362929145f88bf5ac025611c83ec96e/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
public void read(long devOffset, byte[] dest, int destOffset, int length) throws IOException { if (length == 0) { return; } final int ofsMisAlign = (int)(devOffset % alignment); final int lenMisAlign = (length % alignment); /*log.debug("devOffset =" + devOffset); log.debug("length =" + length); log.debug("ofsMisAlign=" + ofsMisAlign); log.debug("lenMisAlign=" + lenMisAlign);*/ if ((ofsMisAlign != 0) || (lenMisAlign != 0)) { final byte[] buf = new byte[length + ofsMisAlign + (alignment - lenMisAlign)]; parentApi.read(devOffset - ofsMisAlign, buf, 0, buf.length); if (ofsMisAlign != 0) { System.arraycopy(buf, alignment - ofsMisAlign, dest, destOffset, length); } else { System.arraycopy(buf, 0, dest, destOffset, length); } } else { // Aligned call, pass on parentApi.read(devOffset, dest, destOffset, length); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a70fcfbf0362929145f88bf5ac025611c83ec96e/BlockAlignmentSupport.java/buggy/fs/src/driver/org/jnode/driver/block/BlockAlignmentSupport.java
return (String) getAttribute(NameAttribute);
return (String) getAttribute(StyleConstants.NameAttribute);
public String getName() { return (String) getAttribute(NameAttribute); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a78ab2f492456918e4f5c52be600854882e139fc/HTMLDocument.java/clean/core/src/classpath/javax/javax/swing/text/html/HTMLDocument.java
ElementSpec element = new ElementSpec(null, ElementSpec.EndTagType);
DefaultStyledDocument.ElementSpec element; element = new DefaultStyledDocument.ElementSpec(null, DefaultStyledDocument.ElementSpec.EndTagType);
protected void blockClose(HTML.Tag t) { printBuffer(); ElementSpec element = new ElementSpec(null, ElementSpec.EndTagType); parseBuffer.addElement(element); printBuffer(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a78ab2f492456918e4f5c52be600854882e139fc/HTMLDocument.java/clean/core/src/classpath/javax/javax/swing/text/html/HTMLDocument.java
ElementSpec element = new ElementSpec(attr.copyAttributes(), ElementSpec.StartTagType);
DefaultStyledDocument.ElementSpec element; element = new DefaultStyledDocument.ElementSpec(attr.copyAttributes(), DefaultStyledDocument.ElementSpec.StartTagType);
protected void blockOpen(HTML.Tag t, MutableAttributeSet attr) { printBuffer(); ElementSpec element = new ElementSpec(attr.copyAttributes(), ElementSpec.StartTagType); parseBuffer.addElement(element); printBuffer(); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a78ab2f492456918e4f5c52be600854882e139fc/HTMLDocument.java/clean/core/src/classpath/javax/javax/swing/text/html/HTMLDocument.java
ElementSpec[] elements = new ElementSpec[parseBuffer.size()];
DefaultStyledDocument.ElementSpec[] elements; elements = new DefaultStyledDocument.ElementSpec[parseBuffer.size()];
public void flush() throws BadLocationException { ElementSpec[] elements = new ElementSpec[parseBuffer.size()]; parseBuffer.copyInto(elements); parseBuffer.removeAllElements(); insert(offset, elements); offset += HTMLDocument.this.getLength() - offset; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a78ab2f492456918e4f5c52be600854882e139fc/HTMLDocument.java/clean/core/src/classpath/javax/javax/swing/text/html/HTMLDocument.java
return (String) getAttribute(NameAttribute);
return (String) getAttribute(StyleConstants.NameAttribute);
public String getName() { return (String) getAttribute(NameAttribute); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a78ab2f492456918e4f5c52be600854882e139fc/HTMLDocument.java/clean/core/src/classpath/javax/javax/swing/text/html/HTMLDocument.java
return getElement(child, attribute, value);
Element grandChild = getElement(child, attribute, value); if (grandChild != null) return grandChild;
public Element getElement(Element e, Object attribute, Object value) { if (e != null) { if (e.getAttributes().containsAttribute(attribute, value)) return e; int count = e.getElementCount(); for (int j = 0; j < count; j++) { Element child = e.getElement(j); if (child.getAttributes().containsAttribute(attribute, value)) return child; return getElement(child, attribute, value); } } return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/a78ab2f492456918e4f5c52be600854882e139fc/HTMLDocument.java/clean/core/src/classpath/javax/javax/swing/text/html/HTMLDocument.java
public JFileChooser() { }
public JFileChooser() { setup(null); setCurrentDirectory(null); }
public JFileChooser() { // TODO } // JFileChooser()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public boolean accept(File file) { return false; }
public boolean accept(File f) { if (f == null) return false; return getFileFilter().accept(f); }
public boolean accept(File file) { return false; // TODO } // accept()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public void addActionListener(ActionListener listener)
public void addActionListener(ActionListener l)
public void addActionListener(ActionListener listener) { listenerList.add (ActionListener.class, listener); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
listenerList.add (ActionListener.class, listener);
listenerList.add(ActionListener.class, l);
public void addActionListener(ActionListener listener) { listenerList.add (ActionListener.class, listener); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public void addChoosableFileFilter(FileFilter filter) { }
public void addChoosableFileFilter(FileFilter filter) { FileFilter[] old = getChoosableFileFilters(); choosableFilters.add(filter); FileFilter[] newFilters = getChoosableFileFilters(); firePropertyChange(CHOOSABLE_FILE_FILTER_CHANGED_PROPERTY, old, newFilters); }
public void addChoosableFileFilter(FileFilter filter) { // TODO } // addChoosableFileFilter()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public void approveSelection() { }
public void approveSelection() { retval = APPROVE_OPTION; fireActionPerformed(APPROVE_SELECTION); }
public void approveSelection() { // TODO } // approveSelection()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public void cancelSelection() { }
public void cancelSelection() { retval = CANCEL_OPTION; fireActionPerformed(CANCEL_SELECTION); }
public void cancelSelection() { // TODO } // cancelSelection()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public void changeToParentDirectory() { }
public void changeToParentDirectory() { setCurrentDirectory(fsv.getParentDirectory(currentDir)); }
public void changeToParentDirectory() { // TODO } // changeToParentDirectory()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public void ensureFileIsVisible(File file) { }
public void ensureFileIsVisible(File f) { getUI().ensureFileIsVisible(this, f); }
public void ensureFileIsVisible(File file) { // TODO } // ensureFileIsVisible()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
protected void fireActionPerformed(String command) { }
protected void fireActionPerformed(String command) { ActionListener[] list = getActionListeners(); ActionEvent event = new ActionEvent(this, ActionEvent.ACTION_PERFORMED, command); for (int i = 0; i < list.length; i++) list[i].actionPerformed(event); }
protected void fireActionPerformed(String command) { // TODO } // fireActionPerformed()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public FileFilter getAcceptAllFileFilter() { return null; }
public FileFilter getAcceptAllFileFilter() { return getUI().getAcceptAllFileFilter(this); }
public FileFilter getAcceptAllFileFilter() { return null; // TODO } // getAcceptAllFileFilter()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
if (accessibleContext == null) accessibleContext = new AccessibleJFileChooser(); return accessibleContext;
return null;
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleJFileChooser(); return accessibleContext; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public JComponent getAccessory() { return null; }
public JComponent getAccessory() { return accessory; }
public JComponent getAccessory() { return null; // TODO } // getAccessory()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
return (ActionListener[]) listenerList.getListeners (ActionListener.class);
return (ActionListener[]) getListeners(ActionListener.class);
public ActionListener[] getActionListeners() { return (ActionListener[]) listenerList.getListeners (ActionListener.class); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public int getApproveButtonMnemonic() { return 0; }
public int getApproveButtonMnemonic() { return approveButtonMnemonic; }
public int getApproveButtonMnemonic() { return 0; // TODO } // getApproveButtonMnemonic()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public String getApproveButtonText() { return null; }
public String getApproveButtonText() { return approveButtonText; }
public String getApproveButtonText() { return null; // TODO } // getApproveButtonText()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public String getApproveButtonToolTipText() { return null; }
public String getApproveButtonToolTipText() { return approveButtonToolTipText; }
public String getApproveButtonToolTipText() { return null; // TODO } // getApproveButtonToolTipText()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public FileFilter[] getChoosableFileFilters() { return null; }
public FileFilter[] getChoosableFileFilters() { return (FileFilter[]) choosableFilters.toArray(new FileFilter[0]); }
public FileFilter[] getChoosableFileFilters() { return null; // TODO } // getChoosableFileFilters()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public boolean getControlButtonsAreShown() { return false; }
public boolean getControlButtonsAreShown() { return controlButtonsShown; }
public boolean getControlButtonsAreShown() { return false; // TODO } // getControlButtonsAreShown()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public File getCurrentDirectory() { return null; }
public File getCurrentDirectory() { return currentDir; }
public File getCurrentDirectory() { return null; // TODO } // getCurrentDirectory()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public String getDescription(File file) { return null; }
public String getDescription(File f) { return getInternalFileView().getDescription(f); }
public String getDescription(File file) { return null; // TODO } // getDescription()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public String getDialogTitle() { return null; }
public String getDialogTitle() { return dialogTitle; }
public String getDialogTitle() { return null; // TODO } // getDialogTitle()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public int getDialogType() { return 0; }
public int getDialogType() { return dialogType; }
public int getDialogType() { return 0; // TODO } // getDialogType()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public FileFilter getFileFilter() { return null; }
public FileFilter getFileFilter() { return currentFilter; }
public FileFilter getFileFilter() { return null; // TODO } // getFileFilter()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public int getFileSelectionMode() { return 0; }
public int getFileSelectionMode() { return fileSelectionMode; }
public int getFileSelectionMode() { return 0; // TODO } // getFileSelectionMode()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public FileSystemView getFileSystemView() { return null; }
public FileSystemView getFileSystemView() { return fsv; }
public FileSystemView getFileSystemView() { return null; // TODO } // getFileSystemView()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public FileView getFileView() { return null; }
public FileView getFileView() { return fv; }
public FileView getFileView() { return null; // TODO } // getFileView()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public Icon getIcon(File file) { return null; }
public Icon getIcon(File f) { return getInternalFileView().getIcon(f); }
public Icon getIcon(File file) { return null; // TODO } // getIcon()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public String getName(File file) { return null; }
public String getName(File f) { return getInternalFileView().getName(f); }
public String getName(File file) { return null; // TODO } // getName()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public File getSelectedFile() { return null; }
public File getSelectedFile() { return selectedFile; }
public File getSelectedFile() { return null; // TODO } // getSelectedFile()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public File[] getSelectedFiles() { return null; }
public File[] getSelectedFiles() { return selectedFiles; }
public File[] getSelectedFiles() { return null; // TODO } // getSelectedFiles()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public String getTypeDescription(File file) { return null; }
public String getTypeDescription(File f) { return getInternalFileView().getTypeDescription(f); }
public String getTypeDescription(File file) { return null; // TODO } // getTypeDescription()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public FileChooserUI getUI() {
public FileChooserUI getUI() {
public FileChooserUI getUI() { return (FileChooserUI) ui; } // getUI()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
}
}
public FileChooserUI getUI() { return (FileChooserUI) ui; } // getUI()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public String getUIClassID() { return uiClassID; }
public String getUIClassID() { return "FileChooserUI"; }
public String getUIClassID() { return uiClassID; } // getUIClassID()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public boolean isAcceptAllFileFilterUsed() { return false; }
public boolean isAcceptAllFileFilterUsed() { return isAcceptAll; }
public boolean isAcceptAllFileFilterUsed() { return false; // TODO } // isAcceptAllFileFilterUsed()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public boolean isDirectorySelectionEnabled() { return false; }
public boolean isDirectorySelectionEnabled() { return (fileSelectionMode == DIRECTORIES_ONLY || fileSelectionMode == FILES_AND_DIRECTORIES); }
public boolean isDirectorySelectionEnabled() { return false; // TODO } // isDirectorySelectionEnabled()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public boolean isFileHidingEnabled() { return false; }
public boolean isFileHidingEnabled() { return fileHiding; }
public boolean isFileHidingEnabled() { return false; // TODO } // isFileHidingEnabled()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public boolean isFileSelectionEnabled() { return false; }
public boolean isFileSelectionEnabled() { return (fileSelectionMode == FILES_ONLY || fileSelectionMode == FILES_AND_DIRECTORIES); }
public boolean isFileSelectionEnabled() { return false; // TODO } // isFileSelectionEnabled()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public boolean isMultiSelectionEnabled() { return false; }
public boolean isMultiSelectionEnabled() { return multiSelection; }
public boolean isMultiSelectionEnabled() { return false; // TODO } // isMultiSelectionEnabled()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public boolean isTraversable(File file) { return false; }
public boolean isTraversable(File f) { return getFileSystemView().isTraversable(f).booleanValue(); }
public boolean isTraversable(File file) { return false; // TODO } // isTraversable()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
protected String paramString() { return null; }
protected String paramString() { return "JFileChooser"; }
protected String paramString() { return null; // TODO } // paramString()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public void removeActionListener(ActionListener listener)
public void removeActionListener(ActionListener l) { try { listenerList.remove(ActionListener.class, l); } catch (IllegalArgumentException e)
public void removeActionListener(ActionListener listener) { listenerList.remove (ActionListener.class, listener); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
listenerList.remove (ActionListener.class, listener);
e.printStackTrace(); }
public void removeActionListener(ActionListener listener) { listenerList.remove (ActionListener.class, listener); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public boolean removeChoosableFileFilter(FileFilter filter) { return false; }
public boolean removeChoosableFileFilter(FileFilter f) { FileFilter[] old = getChoosableFileFilters(); if (! choosableFilters.remove(f)) return false; FileFilter[] newFilters = getChoosableFileFilters(); firePropertyChange(CHOOSABLE_FILE_FILTER_CHANGED_PROPERTY, old, newFilters); return true; }
public boolean removeChoosableFileFilter(FileFilter filter) { return false; // TODO } // removeChoosableFileFilter()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public void rescanCurrentDirectory() { }
public void rescanCurrentDirectory() { getUI().rescanCurrentDirectory(this); }
public void rescanCurrentDirectory() { // TODO } // rescanCurrentDirectory()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public void resetChoosableFileFilters() { }
public void resetChoosableFileFilters() { choosableFilters.clear(); choosableFilters.add(getUI().getAcceptAllFileFilter(this)); setFileFilter((FileFilter) choosableFilters.get(0)); }
public void resetChoosableFileFilters() { // TODO } // resetChoosableFileFilters()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public void setAcceptAllFileFilterUsed(boolean value) { }
public void setAcceptAllFileFilterUsed(boolean b) { if (isAcceptAll != b) { isAcceptAll = b; firePropertyChange(ACCEPT_ALL_FILE_FILTER_USED_CHANGED_PROPERTY, ! isAcceptAll, isAcceptAll); } }
public void setAcceptAllFileFilterUsed(boolean value) { // TODO } // setAcceptAllFileFilterUsed()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public void setAccessory(JComponent accessory) { }
public void setAccessory(JComponent newAccessory) { if (accessory != newAccessory) { JComponent old = accessory; accessory = newAccessory; firePropertyChange(ACCESSORY_CHANGED_PROPERTY, old, accessory); } }
public void setAccessory(JComponent accessory) { // TODO } // setAccessory()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public void setApproveButtonMnemonic(int mnemonic) { }
public void setApproveButtonMnemonic(int mnemonic) { if (approveButtonMnemonic != mnemonic) { int oldMnemonic = approveButtonMnemonic; approveButtonMnemonic = mnemonic; firePropertyChange(APPROVE_BUTTON_MNEMONIC_CHANGED_PROPERTY, oldMnemonic, approveButtonMnemonic); } }
public void setApproveButtonMnemonic(int mnemonic) { // TODO } // setApproveButtonMnemonic()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public void setApproveButtonText(String text) { }
public void setApproveButtonText(String approveButtonText) { if (this.approveButtonText != approveButtonText) { String oldText = this.approveButtonText; this.approveButtonText = approveButtonText; firePropertyChange(APPROVE_BUTTON_TEXT_CHANGED_PROPERTY, oldText, this.approveButtonText); } }
public void setApproveButtonText(String text) { // TODO } // setApproveButtonText()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public void setApproveButtonToolTipText(String text) { }
public void setApproveButtonToolTipText(String toolTipText) { if (approveButtonToolTipText != toolTipText) { String oldText = approveButtonToolTipText; approveButtonToolTipText = toolTipText; firePropertyChange(APPROVE_BUTTON_TOOL_TIP_TEXT_CHANGED_PROPERTY, oldText, approveButtonToolTipText); } }
public void setApproveButtonToolTipText(String text) { // TODO } // setApproveButtonToolTipText()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public void setControlButtonsAreShown(boolean value) { }
public void setControlButtonsAreShown(boolean b) { if (controlButtonsShown != b) { controlButtonsShown = b; firePropertyChange(CONTROL_BUTTONS_ARE_SHOWN_CHANGED_PROPERTY, ! controlButtonsShown, controlButtonsShown); } }
public void setControlButtonsAreShown(boolean value) { // TODO } // setControlButtonsAreShown()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public void setCurrentDirectory(File directory) { }
public void setCurrentDirectory(File dir) { if (currentDir != dir || dir == null) { if (dir == null) dir = fsv.getDefaultDirectory(); File old = currentDir; currentDir = dir; firePropertyChange(DIRECTORY_CHANGED_PROPERTY, old, currentDir); } }
public void setCurrentDirectory(File directory) { // TODO } // setCurrentDirectory()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public void setDialogTitle(String title) { }
public void setDialogTitle(String dialogTitle) { if (this.dialogTitle != dialogTitle) { String old = this.dialogTitle; this.dialogTitle = dialogTitle; firePropertyChange(DIALOG_TITLE_CHANGED_PROPERTY, old, this.dialogTitle); } }
public void setDialogTitle(String title) { // TODO } // setDialogTitle()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public void setDialogType(int type) { }
public void setDialogType(int dialogType) { if (dialogType != OPEN_DIALOG && dialogType != SAVE_DIALOG && dialogType != CUSTOM_DIALOG) throw new IllegalArgumentException("Choose allowable dialogType."); if (this.dialogType != dialogType) { int old = this.dialogType; this.dialogType = dialogType; firePropertyChange(DIALOG_TYPE_CHANGED_PROPERTY, old, this.dialogType); } }
public void setDialogType(int type) { // TODO } // setDialogType()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public void setFileFilter(FileFilter filter) { }
public void setFileFilter(FileFilter filter) { if (currentFilter != filter) { FileFilter old = currentFilter; currentFilter = filter; firePropertyChange(FILE_FILTER_CHANGED_PROPERTY, old, currentFilter); } }
public void setFileFilter(FileFilter filter) { // TODO } // setFileFilter()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public void setFileHidingEnabled(boolean enabled) { }
public void setFileHidingEnabled(boolean b) { if (fileHiding != b) { fileHiding = b; firePropertyChange(FILE_HIDING_CHANGED_PROPERTY, ! fileHiding, fileHiding); } }
public void setFileHidingEnabled(boolean enabled) { // TODO } // setFileHidingEnabled()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public void setFileSelectionMode(int mode) { }
public void setFileSelectionMode(int mode) { if (mode != FILES_ONLY && mode != DIRECTORIES_ONLY && mode != FILES_AND_DIRECTORIES) throw new IllegalArgumentException("Choose a correct file selection mode."); if (fileSelectionMode != mode) { int old = fileSelectionMode; fileSelectionMode = mode; firePropertyChange(FILE_SELECTION_MODE_CHANGED_PROPERTY, old, fileSelectionMode); } }
public void setFileSelectionMode(int mode) { // TODO } // setFileSelectionMode()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public void setFileSystemView(FileSystemView fsv) { }
public void setFileSystemView(FileSystemView fsv) { if (this.fsv != fsv) { FileSystemView old = this.fsv; this.fsv = fsv; firePropertyChange(FILE_SYSTEM_VIEW_CHANGED_PROPERTY, old, this.fsv); } }
public void setFileSystemView(FileSystemView fsv) { // TODO } // setFileSystemView()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public void setFileView(FileView view) { }
public void setFileView(FileView fileView) { if (fv != fileView) { FileView old = fv; fv = fileView; firePropertyChange(FILE_VIEW_CHANGED_PROPERTY, old, fv); } }
public void setFileView(FileView view) { // TODO } // setFileView()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public void setMultiSelectionEnabled(boolean enabled) { }
public void setMultiSelectionEnabled(boolean b) { if (multiSelection != b) { multiSelection = b; firePropertyChange(MULTI_SELECTION_ENABLED_CHANGED_PROPERTY, ! multiSelection, multiSelection); } }
public void setMultiSelectionEnabled(boolean enabled) { // TODO } // setMultiSelectionEnabled()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public void setSelectedFile(File file) { }
public void setSelectedFile(File file) { if (selectedFile != file) { File old = selectedFile; selectedFile = file; firePropertyChange(SELECTED_FILE_CHANGED_PROPERTY, old, selectedFile); } }
public void setSelectedFile(File file) { // TODO } // setSelectedFile()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
public void setSelectedFiles(File[] files) { }
public void setSelectedFiles(File[] selectedFiles) { if (this.selectedFiles != selectedFiles) { File[] old = this.selectedFiles; this.selectedFiles = selectedFiles; firePropertyChange(SELECTED_FILES_CHANGED_PROPERTY, old, selectedFiles); } if (selectedFiles != null) setSelectedFile(selectedFiles[0]); }
public void setSelectedFiles(File[] files) { // TODO } // setSelectedFiles()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java
protected void setup(FileSystemView view) { }
protected void setup(FileSystemView view) { if (view == null) view = FileSystemView.getFileSystemView(); setFileSystemView(view); updateUI(); }
protected void setup(FileSystemView view) { // TODO } // setup()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java