rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
layers = new TreeMap (); | public JLayeredPane() { layers = new TreeMap (); componentToLayer = new Hashtable (); setLayout(null); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/JLayeredPane.java/buggy/core/src/classpath/javax/javax/swing/JLayeredPane.java | |
Integer layer; | int layer; | protected void addImpl(Component comp, Object layerConstraint, int index) { Integer layer; if (layerConstraint != null && layerConstraint instanceof Integer) layer = (Integer) layerConstraint; else if (componentToLayer.containsKey (comp)) layer = (Integer) componentToLayer.remove (comp); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/JLayeredPane.java/buggy/core/src/classpath/javax/javax/swing/JLayeredPane.java |
layer = (Integer) layerConstraint; else if (componentToLayer.containsKey (comp)) layer = (Integer) componentToLayer.remove (comp); | layer = ((Integer) layerConstraint).intValue(); | protected void addImpl(Component comp, Object layerConstraint, int index) { Integer layer; if (layerConstraint != null && layerConstraint instanceof Integer) layer = (Integer) layerConstraint; else if (componentToLayer.containsKey (comp)) layer = (Integer) componentToLayer.remove (comp); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/JLayeredPane.java/buggy/core/src/classpath/javax/javax/swing/JLayeredPane.java |
layer = DEFAULT_LAYER; int newIdx = insertIndexForLayer(layer.intValue (), index); componentToLayer.put (comp, layer); incrLayer (layer); | layer = getLayer(comp); | protected void addImpl(Component comp, Object layerConstraint, int index) { Integer layer; if (layerConstraint != null && layerConstraint instanceof Integer) layer = (Integer) layerConstraint; else if (componentToLayer.containsKey (comp)) layer = (Integer) componentToLayer.remove (comp); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/JLayeredPane.java/buggy/core/src/classpath/javax/javax/swing/JLayeredPane.java |
super.addImpl(comp, null, newIdx); | int newIdx = insertIndexForLayer(layer, index); setLayer(comp, layer); super.addImpl(comp, layerConstraint, newIdx); | protected void addImpl(Component comp, Object layerConstraint, int index) { Integer layer; if (layerConstraint != null && layerConstraint instanceof Integer) layer = (Integer) layerConstraint; else if (componentToLayer.containsKey (comp)) layer = (Integer) componentToLayer.remove (comp); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/JLayeredPane.java/buggy/core/src/classpath/javax/javax/swing/JLayeredPane.java |
int[] range = layerToRange (getObjectForLayer (layer)); if (range[0] == range[1]) return 0; else return (range[1] - range[0]); | Component[] components = getComponents(); int count = 0; for (int i = components.length - 1; i >= 0; --i) { if (getLayer(components[i]) == layer) count++; } return count; | public int getComponentCountInLayer(int layer) { int[] range = layerToRange (getObjectForLayer (layer)); if (range[0] == range[1]) return 0; else return (range[1] - range[0]); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/JLayeredPane.java/buggy/core/src/classpath/javax/javax/swing/JLayeredPane.java |
int[] range = layerToRange (getObjectForLayer (layer)); if (range[0] == range[1]) return new Component[0]; else | Component[] inLayer = new Component[getComponentCountInLayer(layer)]; Component[] components = getComponents(); int j = 0; for (int i = 0; i < components.length; ++i) { if (layer == getLayer(components[i])) | public Component[] getComponentsInLayer(int layer) { int[] range = layerToRange (getObjectForLayer (layer)); if (range[0] == range[1]) return new Component[0]; else { Component[] comps = getComponents (); int sz = range[1] - range[0]; Component[] nc = new Component[sz]; f... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/JLayeredPane.java/buggy/core/src/classpath/javax/javax/swing/JLayeredPane.java |
Component[] comps = getComponents (); int sz = range[1] - range[0]; Component[] nc = new Component[sz]; for (int i = 0; i < sz; ++i) nc[i] = comps[range[0] + i]; return nc; | inLayer[j] = components[i]; j++; } | public Component[] getComponentsInLayer(int layer) { int[] range = layerToRange (getObjectForLayer (layer)); if (range[0] == range[1]) return new Component[0]; else { Component[] comps = getComponents (); int sz = range[1] - range[0]; Component[] nc = new Component[sz]; f... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/JLayeredPane.java/buggy/core/src/classpath/javax/javax/swing/JLayeredPane.java |
return inLayer; | public Component[] getComponentsInLayer(int layer) { int[] range = layerToRange (getObjectForLayer (layer)); if (range[0] == range[1]) return new Component[0]; else { Component[] comps = getComponents (); int sz = range[1] - range[0]; Component[] nc = new Component[sz]; f... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/JLayeredPane.java/buggy/core/src/classpath/javax/javax/swing/JLayeredPane.java | |
int layer = getLayer (c); int[] range = layerToRange(new Integer(layer)); Component[] comps = getComponents(); for (int i = range[0]; i < range[1]; ++i) { if (comps[i] == c) return i; } throw new IllegalArgumentException (); | return getComponentZOrder(c); | public int getIndexOf(Component c) { int layer = getLayer (c); int[] range = layerToRange(new Integer(layer)); Component[] comps = getComponents(); for (int i = range[0]; i < range[1]; ++i) { if (comps[i] == c) return i; } // should have found the component during iteration ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/JLayeredPane.java/buggy/core/src/classpath/javax/javax/swing/JLayeredPane.java |
Component myComp = c; while(! componentToLayer.containsKey(myComp)) | Integer layerObj; if (c instanceof JComponent) | public int getLayer(Component c) { Component myComp = c; while(! componentToLayer.containsKey(myComp)) { myComp = myComp.getParent(); if (myComp == null) break; } if (myComp == null) throw new IllegalArgumentException ("component is not in this JLayeredPane"); Integer layerObj = (Integer... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/JLayeredPane.java/buggy/core/src/classpath/javax/javax/swing/JLayeredPane.java |
myComp = myComp.getParent(); if (myComp == null) break; | JComponent jc = (JComponent) c; layerObj = (Integer) jc.getClientProperty(LAYER_PROPERTY); | public int getLayer(Component c) { Component myComp = c; while(! componentToLayer.containsKey(myComp)) { myComp = myComp.getParent(); if (myComp == null) break; } if (myComp == null) throw new IllegalArgumentException ("component is not in this JLayeredPane"); Integer layerObj = (Integer... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/JLayeredPane.java/buggy/core/src/classpath/javax/javax/swing/JLayeredPane.java |
if (myComp == null) throw new IllegalArgumentException ("component is not in this JLayeredPane"); Integer layerObj = (Integer) componentToLayer.get(myComp); | else layerObj = (Integer) componentToLayer.get(c); if (layerObj == null) layerObj = DEFAULT_LAYER; | public int getLayer(Component c) { Component myComp = c; while(! componentToLayer.containsKey(myComp)) { myComp = myComp.getParent(); if (myComp == null) break; } if (myComp == null) throw new IllegalArgumentException ("component is not in this JLayeredPane"); Integer layerObj = (Integer... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/JLayeredPane.java/buggy/core/src/classpath/javax/javax/swing/JLayeredPane.java |
int layer = getLayer (c); int[] range = layerToRange(new Integer(layer)); int top = range[0]; int bot = range[1]; Component[] comps = getComponents (); for (int i = top; i < bot; ++i) | int pos = -1; int index = getIndexOf(c); Component[] components = getComponents(); int layer = getLayer(c); if (index >= 0) | public int getPosition(Component c) { int layer = getLayer (c); int[] range = layerToRange(new Integer(layer)); int top = range[0]; int bot = range[1]; Component[] comps = getComponents (); for (int i = top; i < bot; ++i) { if (comps[i] == c) return i - top; } // should h... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/JLayeredPane.java/buggy/core/src/classpath/javax/javax/swing/JLayeredPane.java |
if (comps[i] == c) return i - top; | for (int i = index; i >= 0; --i) { if (layer == getLayer(components[i])) pos++; else break; } | public int getPosition(Component c) { int layer = getLayer (c); int[] range = layerToRange(new Integer(layer)); int top = range[0]; int bot = range[1]; Component[] comps = getComponents (); for (int i = top; i < bot; ++i) { if (comps[i] == c) return i - top; } // should h... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/JLayeredPane.java/buggy/core/src/classpath/javax/javax/swing/JLayeredPane.java |
throw new IllegalArgumentException (); | return pos; | public int getPosition(Component c) { int layer = getLayer (c); int[] range = layerToRange(new Integer(layer)); int top = range[0]; int bot = range[1]; Component[] comps = getComponents (); for (int i = top; i < bot; ++i) { if (comps[i] == c) return i - top; } // should h... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/JLayeredPane.java/buggy/core/src/classpath/javax/javax/swing/JLayeredPane.java |
if (layers.size() == 0) return 0; return ((Integer)(layers.lastKey ())).intValue (); | Component[] components = getComponents(); int highest; if (components.length == 0) highest = 0; else { highest = Integer.MIN_VALUE; for (int i = 0; i < components.length; i++) highest = Math.max(highest, getLayer(components[i])); } return highest; | public int highestLayer() { if (layers.size() == 0) return 0; return ((Integer)(layers.lastKey ())).intValue (); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/JLayeredPane.java/buggy/core/src/classpath/javax/javax/swing/JLayeredPane.java |
Integer lobj = getObjectForLayer (layer); if (! layers.containsKey(lobj)) layers.put (lobj, new Integer (0)); int[] range = layerToRange (lobj); if (range[0] == range[1]) return range[0]; int top = range[0]; int bot = range[1]; | Component[] components = getComponents(); int index = 0; | protected int insertIndexForLayer(int layer, int position) { Integer lobj = getObjectForLayer (layer); if (! layers.containsKey(lobj)) layers.put (lobj, new Integer (0)); int[] range = layerToRange (lobj); if (range[0] == range[1]) return range[0]; int top = range[0]; int bot = range[1... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/JLayeredPane.java/buggy/core/src/classpath/javax/javax/swing/JLayeredPane.java |
if (position == -1 || position > (bot - top)) return bot; | int p = -1; for (int i = 0; i < components.length; i++) { int l = getLayer(components[i]); if (l > layer) index++; else if (l == layer) { p++; if (p < position) index++; | protected int insertIndexForLayer(int layer, int position) { Integer lobj = getObjectForLayer (layer); if (! layers.containsKey(lobj)) layers.put (lobj, new Integer (0)); int[] range = layerToRange (lobj); if (range[0] == range[1]) return range[0]; int top = range[0]; int bot = range[1... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/JLayeredPane.java/buggy/core/src/classpath/javax/javax/swing/JLayeredPane.java |
return top + position; | break; } else break; } return index; | protected int insertIndexForLayer(int layer, int position) { Integer lobj = getObjectForLayer (layer); if (! layers.containsKey(lobj)) layers.put (lobj, new Integer (0)); int[] range = layerToRange (lobj); if (range[0] == range[1]) return range[0]; int top = range[0]; int bot = range[1... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/JLayeredPane.java/buggy/core/src/classpath/javax/javax/swing/JLayeredPane.java |
return false; | int numChildren = getComponentCount(); boolean result = false; switch (numChildren) { case 0: case 1: result = true; break; case 2: Rectangle r1 = getComponent(0).getBounds(); Rectangle r2 = getComponent(1).getBounds(); result = !r1.intersects(r2); break; default: result = false; } return result; | public boolean isOptimizedDrawingEnabled() { return false; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/JLayeredPane.java/buggy/core/src/classpath/javax/javax/swing/JLayeredPane.java |
if (layers.size() == 0) return 0; return ((Integer)(layers.firstKey ())).intValue (); | Component[] components = getComponents(); int lowest; if (components.length == 0) lowest = 0; else { lowest = Integer.MAX_VALUE; for (int i = 0; i < components.length; i++) lowest = Math.max(lowest, getLayer(components[i])); } return lowest; | public int lowestLayer() { if (layers.size() == 0) return 0; return ((Integer)(layers.firstKey ())).intValue (); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/JLayeredPane.java/buggy/core/src/classpath/javax/javax/swing/JLayeredPane.java |
getLayeredPaneAbove(component).setLayer(component, layer); | component.putClientProperty(LAYER_PROPERTY, new Integer(layer)); | public static void putLayer(JComponent component, int layer) { getLayeredPaneAbove(component).setLayer(component, layer); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/JLayeredPane.java/buggy/core/src/classpath/javax/javax/swing/JLayeredPane.java |
int layer = getLayer(c); decrLayer(new Integer(layer)); | if (! (c instanceof JComponent)) | public void remove(int index) { Component c = getComponent(index); int layer = getLayer(c); decrLayer(new Integer(layer)); componentToLayer.remove(c); super.remove(index); // FIXME: Figure out if this call is correct. revalidate(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/JLayeredPane.java/buggy/core/src/classpath/javax/javax/swing/JLayeredPane.java |
revalidate(); | public void remove(int index) { Component c = getComponent(index); int layer = getLayer(c); decrLayer(new Integer(layer)); componentToLayer.remove(c); super.remove(index); // FIXME: Figure out if this call is correct. revalidate(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/JLayeredPane.java/buggy/core/src/classpath/javax/javax/swing/JLayeredPane.java | |
componentToLayer.put (c, getObjectForLayer (layer)); | setLayer(c, layer, -1); | public void setLayer(Component c, int layer) { componentToLayer.put (c, getObjectForLayer (layer)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/JLayeredPane.java/buggy/core/src/classpath/javax/javax/swing/JLayeredPane.java |
int layer = getLayer (c); int[] range = layerToRange(new Integer(layer)); if (range[0] == range[1]) throw new IllegalArgumentException (); int top = range[0]; int bot = range[1]; if (position == -1) position = (bot - top) - 1; int targ = Math.min(top + position, bot-1); int curr = -1; Component[] comps = getComponent... | int layer = getLayer(c); int index = insertIndexForLayer(layer, position); setComponentZOrder(c, index); | public void setPosition(Component c, int position) { int layer = getLayer (c); int[] range = layerToRange(new Integer(layer)); if (range[0] == range[1]) throw new IllegalArgumentException (); int top = range[0]; int bot = range[1]; if (position == -1) position = (bot - top) - 1; int ta... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8f1176391e1d000d946793693906d6dc8af29e19/JLayeredPane.java/buggy/core/src/classpath/javax/javax/swing/JLayeredPane.java |
if (key.equals(e.key)) | if (e.key.equals(key)) | public synchronized boolean containsKey(Object key) { int idx = hash(key); HashEntry<K, V> e = buckets[idx]; while (e != null) { if (key.equals(e.key)) return true; e = e.next; } return false; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63ff6161906dfae5c6cd8e9ab83aca650e00923d/Hashtable.java/buggy/core/src/classpath/5.0/java/util/Hashtable.java |
if (key.equals(e.key)) | if (e.key.equals(key)) | public synchronized V remove(Object key) { int idx = hash(key); HashEntry<K, V> e = buckets[idx]; HashEntry<K, V> last = null; while (e != null) { if (key.equals(e.key)) { modCount++; if (last == null) buckets[idx] = e.next; else ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/63ff6161906dfae5c6cd8e9ab83aca650e00923d/Hashtable.java/buggy/core/src/classpath/5.0/java/util/Hashtable.java |
public synchronized StringBuffer insert(int offset, char ch) | public synchronized StringBuffer insert(int offset, char[] str, int str_offset, int len) | public synchronized StringBuffer insert(int offset, char ch) { if (offset < 0 || offset > count) throw new StringIndexOutOfBoundsException(offset); ensureCapacity_unsynchronized(count + 1); VMSystem.arraycopy(value, offset, value, offset + 1, count - offset); value[offset] = ch; count++; retur... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/217dae2077114aeb271c90f647f5baacd1bf28b4/StringBuffer.java/buggy/core/src/classpath/java/java/lang/StringBuffer.java |
if (offset < 0 || offset > count) throw new StringIndexOutOfBoundsException(offset); ensureCapacity_unsynchronized(count + 1); VMSystem.arraycopy(value, offset, value, offset + 1, count - offset); value[offset] = ch; count++; | if (offset < 0 || offset > count || len < 0 || str_offset < 0 || str_offset > str.length - len) throw new StringIndexOutOfBoundsException(); ensureCapacity_unsynchronized(count + len); VMSystem.arraycopy(value, offset, value, offset + len, count - offset); VMSystem.arraycopy(str, str_offset, value, offset, len); count ... | public synchronized StringBuffer insert(int offset, char ch) { if (offset < 0 || offset > count) throw new StringIndexOutOfBoundsException(offset); ensureCapacity_unsynchronized(count + 1); VMSystem.arraycopy(value, offset, value, offset + 1, count - offset); value[offset] = ch; count++; retur... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/217dae2077114aeb271c90f647f5baacd1bf28b4/StringBuffer.java/buggy/core/src/classpath/java/java/lang/StringBuffer.java |
char attr = readChar(ch); | char attr = readCodePoint((int)ch); | public static int digit(char ch, int radix) { if (radix < MIN_RADIX || radix > MAX_RADIX) return -1; char attr = readChar(ch); if (((1 << (attr & TYPE_MASK)) & ((1 << UPPERCASE_LETTER) | (1 << LOWERCASE_LETTER) | (1 << DECIMAL_DIGIT_NUMBER))) != 0) { // Signedn... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1b7948b90667ad6e59c157b1700e8034e8813d3a/Character.java/buggy/core/src/classpath/5.0/java/lang/Character.java |
int digit = numValue[attr >> 7]; | int digit = numValue[0][attr >> 7]; | public static int digit(char ch, int radix) { if (radix < MIN_RADIX || radix > MAX_RADIX) return -1; char attr = readChar(ch); if (((1 << (attr & TYPE_MASK)) & ((1 << UPPERCASE_LETTER) | (1 << LOWERCASE_LETTER) | (1 << DECIMAL_DIGIT_NUMBER))) != 0) { // Signedn... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1b7948b90667ad6e59c157b1700e8034e8813d3a/Character.java/buggy/core/src/classpath/5.0/java/lang/Character.java |
return readChar(ch) & TYPE_MASK; | return getType((int)ch); | public static int getType(char ch) { return readChar(ch) & TYPE_MASK; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1b7948b90667ad6e59c157b1700e8034e8813d3a/Character.java/buggy/core/src/classpath/5.0/java/lang/Character.java |
public String toUpperCase() | public String toUpperCase(Locale loc) | public String toUpperCase() { return toUpperCase(Locale.getDefault()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1b7948b90667ad6e59c157b1700e8034e8813d3a/String.java/buggy/core/src/classpath/5.0/java/lang/String.java |
return toUpperCase(Locale.getDefault()); | boolean turkish = "tr".equals(loc.getLanguage()); int expand = 0; boolean unchanged = true; int i = count; int x = i + offset; while (--i >= 0) { char ch = value[--x]; expand += upperCaseExpansion(ch); unchanged = (unchanged && expand == 0 && ! (turkish && ch == '\u0069') && ch == Character.toUpperCase(ch)); } if (un... | public String toUpperCase() { return toUpperCase(Locale.getDefault()); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/1b7948b90667ad6e59c157b1700e8034e8813d3a/String.java/buggy/core/src/classpath/5.0/java/lang/String.java |
public void ancestorMoved(HierarchyEvent e) | public void ancestorMoved(HierarchyEvent event) | public void ancestorMoved(HierarchyEvent e) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/HierarchyBoundsAdapter.java/buggy/core/src/classpath/java/java/awt/event/HierarchyBoundsAdapter.java |
public void ancestorResized(HierarchyEvent e) | public void ancestorResized(HierarchyEvent event) | public void ancestorResized(HierarchyEvent e) { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/099941e739b24ffc71faddc589f984d1cda55549/HierarchyBoundsAdapter.java/buggy/core/src/classpath/java/java/awt/event/HierarchyBoundsAdapter.java |
fileList.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION); | mode = ListSelectionModel.MULTIPLE_INTERVAL_SELECTION; | public void propertyChange(PropertyChangeEvent e) { JFileChooser filechooser = getFileChooser(); String n = e.getPropertyName(); if (n.equals(JFileChooser.MULTI_SELECTION_ENABLED_CHANGED_PROPERTY)) { if (filechooser.isMultiSelectionEnabled()) fileList.setSelectionM... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76fe1616918b9192a8d599c054a35e64237146ed/MetalFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java |
fileList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); | mode = ListSelectionModel.SINGLE_SELECTION; if (listView) fileList.setSelectionMode(mode); else fileTable.setSelectionMode(mode); | public void propertyChange(PropertyChangeEvent e) { JFileChooser filechooser = getFileChooser(); String n = e.getPropertyName(); if (n.equals(JFileChooser.MULTI_SELECTION_ENABLED_CHANGED_PROPERTY)) { if (filechooser.isMultiSelectionEnabled()) fileList.setSelectionM... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76fe1616918b9192a8d599c054a35e64237146ed/MetalFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java |
if (file == null) | if (file != null && filechooser.getDialogType() == JFileChooser.SAVE_DIALOG) { if (file.isDirectory() && filechooser.isTraversable(file)) { filechooser.setApproveButtonText(openButtonText); filechooser.setApproveButtonToolTipText(openButtonToolTipText); } else if (file.isFile()) { filechooser.setApproveButtonText(save... | public void propertyChange(PropertyChangeEvent e) { JFileChooser filechooser = getFileChooser(); String n = e.getPropertyName(); if (n.equals(JFileChooser.MULTI_SELECTION_ENABLED_CHANGED_PROPERTY)) { if (filechooser.isMultiSelectionEnabled()) fileList.setSelectionM... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76fe1616918b9192a8d599c054a35e64237146ed/MetalFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java |
} | public void propertyChange(PropertyChangeEvent e) { JFileChooser filechooser = getFileChooser(); String n = e.getPropertyName(); if (n.equals(JFileChooser.MULTI_SELECTION_ENABLED_CHANGED_PROPERTY)) { if (filechooser.isMultiSelectionEnabled()) fileList.setSelectionM... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76fe1616918b9192a8d599c054a35e64237146ed/MetalFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java | |
startEditing = false; | public SingleClickListener(JList list) { this.list = list; editFile = null; fc = getFileChooser(); lastSelected = null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76fe1616918b9192a8d599c054a35e64237146ed/MetalFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java | |
private void completeEditing() | void completeEditing() | private void completeEditing() { if (editField != null) { String text = editField.getText(); if (text != null && !text.equals("")) editFile.renameTo(new File(text)); list.remove(editField); list.revalidate(); list.repaint(); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76fe1616918b9192a8d599c054a35e64237146ed/MetalFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java |
if (editField != null) | if (editField != null && editFile != null) | private void completeEditing() { if (editField != null) { String text = editField.getText(); if (text != null && !text.equals("")) editFile.renameTo(new File(text)); list.remove(editField); list.revalidate(); list.repaint(); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76fe1616918b9192a8d599c054a35e64237146ed/MetalFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java |
if (text != null && !text.equals("")) editFile.renameTo(new File(text)); | if (text != null && text != "" && !text.equals(fc.getName(editFile))) if (editFile.renameTo (fc.getFileSystemView().createFileObject (fc.getCurrentDirectory(), text))) rescanCurrentDirectory(fc); | private void completeEditing() { if (editField != null) { String text = editField.getText(); if (text != null && !text.equals("")) editFile.renameTo(new File(text)); list.remove(editField); list.revalidate(); list.repaint(); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76fe1616918b9192a8d599c054a35e64237146ed/MetalFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java |
list.revalidate(); list.repaint(); | private void completeEditing() { if (editField != null) { String text = editField.getText(); if (text != null && !text.equals("")) editFile.renameTo(new File(text)); list.remove(editField); list.revalidate(); list.repaint(); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76fe1616918b9192a8d599c054a35e64237146ed/MetalFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java | |
startEditing = false; editFile = null; lastSelected = null; editField = null; list.repaint(); | private void completeEditing() { if (editField != null) { String text = editField.getText(); if (text != null && !text.equals("")) editFile.renameTo(new File(text)); list.remove(editField); list.revalidate(); list.repaint(); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76fe1616918b9192a8d599c054a35e64237146ed/MetalFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java | |
private void editFile(int index) | void editFile(int index) | private void editFile(int index) { list.ensureIndexIsVisible(index); editFile = (File) list.getModel().getElementAt(index); if (editFile.canWrite()) { Rectangle bounds = list.getCellBounds(index, index); Icon icon = getFileView(fc).getIcon(editFile); editField = n... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76fe1616918b9192a8d599c054a35e64237146ed/MetalFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java |
list.ensureIndexIsVisible(index); | Rectangle bounds = list.getCellBounds(index, index); list.scrollRectToVisible(bounds); | private void editFile(int index) { list.ensureIndexIsVisible(index); editFile = (File) list.getModel().getElementAt(index); if (editFile.canWrite()) { Rectangle bounds = list.getCellBounds(index, index); Icon icon = getFileView(fc).getIcon(editFile); editField = n... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76fe1616918b9192a8d599c054a35e64237146ed/MetalFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java |
Rectangle bounds = list.getCellBounds(index, index); | startEditing = true; editField = new JTextField(editFile.getName()); editField.addActionListener(new EditingActionListener()); | private void editFile(int index) { list.ensureIndexIsVisible(index); editFile = (File) list.getModel().getElementAt(index); if (editFile.canWrite()) { Rectangle bounds = list.getCellBounds(index, index); Icon icon = getFileView(fc).getIcon(editFile); editField = n... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76fe1616918b9192a8d599c054a35e64237146ed/MetalFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java |
editField = new JTextField(editFile.getName()); list.add(editField); editField.requestFocus(); editField.selectAll(); | private void editFile(int index) { list.ensureIndexIsVisible(index); editFile = (File) list.getModel().getElementAt(index); if (editFile.canWrite()) { Rectangle bounds = list.getCellBounds(index, index); Icon icon = getFileView(fc).getIcon(editFile); editField = n... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76fe1616918b9192a8d599c054a35e64237146ed/MetalFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java | |
{ editField = null; editFile = null; lastSelected = null; | completeEditing(); list.repaint(); | private void editFile(int index) { list.ensureIndexIsVisible(index); editFile = (File) list.getModel().getElementAt(index); if (editFile.canWrite()) { Rectangle bounds = list.getCellBounds(index, index); Icon icon = getFileView(fc).getIcon(editFile); editField = n... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76fe1616918b9192a8d599c054a35e64237146ed/MetalFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java |
} | private void editFile(int index) { list.ensureIndexIsVisible(index); editFile = (File) list.getModel().getElementAt(index); if (editFile.canWrite()) { Rectangle bounds = list.getCellBounds(index, index); Icon icon = getFileView(fc).getIcon(editFile); editField = n... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76fe1616918b9192a8d599c054a35e64237146ed/MetalFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java | |
if (e.getClickCount() == 1) | if (e.getClickCount() == 1 && e.getButton() == MouseEvent.BUTTON1) | public void mouseClicked(MouseEvent e) { if (e.getClickCount() == 1) { int index = list.locationToIndex(e.getPoint()); File[] sf = fc.getSelectedFiles(); if ((!fc.isMultiSelectionEnabled() || (sf != null && sf.length <= 1)) && index >= 0 && editFile == null && ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76fe1616918b9192a8d599c054a35e64237146ed/MetalFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java |
&& index >= 0 && editFile == null && list.isSelectedIndex(index)) | && index >= 0 && !startEditing && list.isSelectedIndex(index)) | public void mouseClicked(MouseEvent e) { if (e.getClickCount() == 1) { int index = list.locationToIndex(e.getPoint()); File[] sf = fc.getSelectedFiles(); if ((!fc.isMultiSelectionEnabled() || (sf != null && sf.length <= 1)) && index >= 0 && editFile == null && ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76fe1616918b9192a8d599c054a35e64237146ed/MetalFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java |
else if (editFile != null) { | else | public void mouseClicked(MouseEvent e) { if (e.getClickCount() == 1) { int index = list.locationToIndex(e.getPoint()); File[] sf = fc.getSelectedFiles(); if ((!fc.isMultiSelectionEnabled() || (sf != null && sf.length <= 1)) && index >= 0 && editFile == null && ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76fe1616918b9192a8d599c054a35e64237146ed/MetalFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java |
editFile = null; lastSelected = null; } | public void mouseClicked(MouseEvent e) { if (e.getClickCount() == 1) { int index = list.locationToIndex(e.getPoint()); File[] sf = fc.getSelectedFiles(); if ((!fc.isMultiSelectionEnabled() || (sf != null && sf.length <= 1)) && index >= 0 && editFile == null && ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76fe1616918b9192a8d599c054a35e64237146ed/MetalFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java | |
else completeEditing(); | public void mouseClicked(MouseEvent e) { if (e.getClickCount() == 1) { int index = list.locationToIndex(e.getPoint()); File[] sf = fc.getSelectedFiles(); if ((!fc.isMultiSelectionEnabled() || (sf != null && sf.length <= 1)) && index >= 0 && editFile == null && ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76fe1616918b9192a8d599c054a35e64237146ed/MetalFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java | |
JToggleButton listButton = new JToggleButton(); listButton.setIcon(this.listViewIcon); | JToggleButton listButton = new JToggleButton(this.listViewIcon); | protected void addControlButtons() { JButton upButton = new JButton(getChangeToParentDirectoryAction()); upButton.setText(null); upButton.setIcon(this.upFolderIcon); upButton.setMargin(new Insets(0, 0, 0, 0)); controls.add(upButton); JButton homeButton = new JButton(getGoHomeAction()); homeB... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76fe1616918b9192a8d599c054a35e64237146ed/MetalFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java |
listButton.addActionListener(new ListViewActionListener()); listButton.setSelected(true); listView = true; | protected void addControlButtons() { JButton upButton = new JButton(getChangeToParentDirectoryAction()); upButton.setText(null); upButton.setIcon(this.upFolderIcon); upButton.setMargin(new Insets(0, 0, 0, 0)); controls.add(upButton); JButton homeButton = new JButton(getGoHomeAction()); homeB... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76fe1616918b9192a8d599c054a35e64237146ed/MetalFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java | |
detailButton.addActionListener(new DetailViewActionListener()); detailButton.setSelected(false); | protected void addControlButtons() { JButton upButton = new JButton(getChangeToParentDirectoryAction()); upButton.setText(null); upButton.setIcon(this.upFolderIcon); upButton.setMargin(new Insets(0, 0, 0, 0)); controls.add(upButton); JButton homeButton = new JButton(getGoHomeAction()); homeB... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76fe1616918b9192a8d599c054a35e64237146ed/MetalFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java | |
map.put("cancelSelection", null); | map.put("cancelSelection", getCancelSelectionAction()); | protected ActionMap createActionMap() { ActionMap map = new ActionMap(); map.put("approveSelection", getApproveSelectionAction()); map.put("cancelSelection", null); // FIXME: implement this one map.put("Go Up", getChangeToParentDirectoryAction()); return map; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76fe1616918b9192a8d599c054a35e64237146ed/MetalFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java |
return new JPanel(); | fileTablePanel = new JPanel(new BorderLayout()); Object[] cols = new Object[] {"Name", "Size", "Modified"}; Object[][] rows = new Object[fileList.getModel().getSize()][3]; fileTable = new JTable(new DefaultTableModel(rows, cols)); if (fc.isMultiSelectionEnabled()) fileTable.setSelectionMode(ListSelectionModel.MULTIP... | protected JPanel createDetailsView(JFileChooser fc) { // FIXME: implement this. The details view is a panel containing a table // inside a JScrollPane - it gets displayed when the user clicks on the // "details" button. return new JPanel(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76fe1616918b9192a8d599c054a35e64237146ed/MetalFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java |
JPanel panel = new JPanel(new BorderLayout()); | if (fileList == null) { fileListPanel = new JPanel(new BorderLayout()); | protected JPanel createList(JFileChooser fc) { JPanel panel = new JPanel(new BorderLayout()); fileList = new JList(getModel()); fileList.setLayoutOrientation(JList.VERTICAL_WRAP); fileList.setVisibleRowCount(0); fileList.setCellRenderer(new FileRenderer()); panel.add(new JScrollPane(fileList)); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76fe1616918b9192a8d599c054a35e64237146ed/MetalFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java |
fileList.setLayoutOrientation(JList.VERTICAL_WRAP); fileList.setVisibleRowCount(0); | scrollPane = new JScrollPane(fileList); | protected JPanel createList(JFileChooser fc) { JPanel panel = new JPanel(new BorderLayout()); fileList = new JList(getModel()); fileList.setLayoutOrientation(JList.VERTICAL_WRAP); fileList.setVisibleRowCount(0); fileList.setCellRenderer(new FileRenderer()); panel.add(new JScrollPane(fileList)); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76fe1616918b9192a8d599c054a35e64237146ed/MetalFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java |
panel.add(new JScrollPane(fileList)); return panel; | } else { fileList.setModel(getModel()); fileListPanel.removeAll(); scrollPane.setViewport(new JViewport()); scrollPane.getViewport().setView(fileList); } fileListPanel.add(scrollPane); return fileListPanel; | protected JPanel createList(JFileChooser fc) { JPanel panel = new JPanel(new BorderLayout()); fileList = new JList(getModel()); fileList.setLayoutOrientation(JList.VERTICAL_WRAP); fileList.setVisibleRowCount(0); fileList.setCellRenderer(new FileRenderer()); panel.add(new JScrollPane(fileList)); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76fe1616918b9192a8d599c054a35e64237146ed/MetalFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java |
return new Dimension(506, 326); | Dimension tp = topPanel.getMinimumSize(); Dimension bp = bottomPanel.getMinimumSize(); Dimension bup = buttonPanel.getMinimumSize(); Dimension fl = fileList.getMinimumSize(); return new Dimension((tp.width + bp.width + bup.width + fl.width), (tp.height + bp.height + bup.height + fl.height)); | public Dimension getMinimumSize(JComponent c) { // FIXME: not likely to be a fixed value return new Dimension(506, 326); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76fe1616918b9192a8d599c054a35e64237146ed/MetalFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java |
return new Dimension(500, 326); | Dimension tp = topPanel.getPreferredSize(); Dimension bp = bottomPanel.getPreferredSize(); Dimension bup = buttonPanel.getPreferredSize(); Dimension fl = fileList.getPreferredSize(); return new Dimension((tp.width + bp.width + bup.width + fl.width), (tp.height + bp.height + bup.height + fl.height)); | public Dimension getPreferredSize(JComponent c) { // FIXME: not likely to be a fixed value return new Dimension(500, 326); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76fe1616918b9192a8d599c054a35e64237146ed/MetalFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java |
fileListPanel = createList(fc); fc.add(fileListPanel); | fc.add(createList(fc), BorderLayout.CENTER); | public void installComponents(JFileChooser fc) { fc.setLayout(new BorderLayout()); topPanel = new JPanel(new BorderLayout()); topPanel.add(new JLabel(directoryLabel), BorderLayout.WEST); this.controls = new JPanel(); addControlButtons(); JPanel dirPanel = new JPanel(new VerticalMidLayout()); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76fe1616918b9192a8d599c054a35e64237146ed/MetalFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java |
fileList.addListSelectionListener(createListSelectionListener(fc)); fileList.addMouseListener(this.createDoubleClickListener(fc, fileList)); fileList.addMouseListener(new SingleClickListener(fileList)); | protected void installListeners(JFileChooser fc) { directoryComboBox.setAction(new DirectoryComboBoxAction()); fileList.addListSelectionListener(createListSelectionListener(fc)); fileList.addMouseListener(this.createDoubleClickListener(fc, fileList)); fileList.addMouseListener(new SingleClickListener(fil... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76fe1616918b9192a8d599c054a35e64237146ed/MetalFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java | |
listSelList = createListSelectionListener(fc); doubleClickList = this.createDoubleClickListener(fc, fileList); singleClickList = new SingleClickListener(fileList); fileList.addListSelectionListener(listSelList); fileList.addMouseListener(doubleClickList); fileList.addMouseListener(singleClickList); | protected void installListeners(JFileChooser fc) { directoryComboBox.setAction(new DirectoryComboBoxAction()); fileList.addListSelectionListener(createListSelectionListener(fc)); fileList.addMouseListener(this.createDoubleClickListener(fc, fileList)); fileList.addMouseListener(new SingleClickListener(fil... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76fe1616918b9192a8d599c054a35e64237146ed/MetalFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java | |
controls.revalidate(); controls.repaint(); | protected void removeControlButtons() { controls.removeAll(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76fe1616918b9192a8d599c054a35e64237146ed/MetalFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java | |
public void rescanCurrentDirectory(JFileChooser fc) { // FIXME: this will need to take into account whether the list view or // the table view is current directoryModel.setSelectedItem(fc.getCurrentDirectory()); getModel().validateFileCache(); fileList.revalidate(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76fe1616918b9192a8d599c054a35e64237146ed/MetalFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java | ||
fileList.revalidate(); | if (!listView) updateTable(); else createList(fc); | public void rescanCurrentDirectory(JFileChooser fc) { // FIXME: this will need to take into account whether the list view or // the table view is current directoryModel.setSelectedItem(fc.getCurrentDirectory()); getModel().validateFileCache(); fileList.revalidate(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76fe1616918b9192a8d599c054a35e64237146ed/MetalFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java |
fc.remove(fileTablePanel); fileTablePanel = null; | public void uninstallComponents(JFileChooser fc) { fc.remove(bottomPanel); bottomPanel = null; fc.remove(fileListPanel); fileListPanel = null; fc.remove(topPanel); topPanel = null; directoryModel = null; fileTextField = null; directoryComboBox = null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76fe1616918b9192a8d599c054a35e64237146ed/MetalFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java | |
directoryComboBox.setAction(null); fileList.removeListSelectionListener(listSelList); fileList.removeMouseListener(doubleClickList); fileList.removeMouseListener(singleClickList); if (fileTable != null) fileTable.removeMouseListener(tableClickList); | protected void uninstallListeners(JFileChooser fc) { super.uninstallListeners(fc); fc.removePropertyChangeListener(filterModel); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76fe1616918b9192a8d599c054a35e64237146ed/MetalFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java | |
public void valueChanged(ListSelectionEvent e) { // FIXME: implement } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/76fe1616918b9192a8d599c054a35e64237146ed/MetalFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java | ||
if (cellHasFocus) setBorder(UIManager.getBorder("List.focusCellHighlightBorder")); else setBorder(noFocusBorder); | public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { String s = value.toString(); setText(s); setOpaque(true); if (isSelected) { ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/50dc6879c9be89f646fdff68c58f785e3dc0b90e/DefaultListCellRenderer.java/buggy/core/src/classpath/javax/javax/swing/DefaultListCellRenderer.java | |
setTitle(String title) { | public synchronized void setTitle(String title) { | setTitle(String title){ // A null title is equivalent to an empty title this.title = (title != null) ? title : ""; if (peer != null) { DialogPeer d = (DialogPeer) peer; d.setTitle (title); }} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0b19d44a3472af286798825397a7084f011ca05e/Dialog.java/buggy/core/src/classpath/java/java/awt/Dialog.java |
d.setTitle (title); | d.setTitle(title); } | setTitle(String title){ // A null title is equivalent to an empty title this.title = (title != null) ? title : ""; if (peer != null) { DialogPeer d = (DialogPeer) peer; d.setTitle (title); }} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0b19d44a3472af286798825397a7084f011ca05e/Dialog.java/buggy/core/src/classpath/java/java/awt/Dialog.java |
} | setTitle(String title){ // A null title is equivalent to an empty title this.title = (title != null) ? title : ""; if (peer != null) { DialogPeer d = (DialogPeer) peer; d.setTitle (title); }} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0b19d44a3472af286798825397a7084f011ca05e/Dialog.java/buggy/core/src/classpath/java/java/awt/Dialog.java | |
public void setMnemonic(int mne) | public void setMnemonic(char mne) | public void setMnemonic(int mne) { int old = mne; getModel().setMnemonic(mne); if (old != getModel().getMnemonic()) { firePropertyChange(MNEMONIC_CHANGED_PROPERTY, old, mne); revalidate(); repaint(); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/AbstractButton.java/buggy/core/src/classpath/javax/javax/swing/AbstractButton.java |
int old = mne; | int old = getModel().getMnemonic(); | public void setMnemonic(int mne) { int old = mne; getModel().setMnemonic(mne); if (old != getModel().getMnemonic()) { firePropertyChange(MNEMONIC_CHANGED_PROPERTY, old, mne); revalidate(); repaint(); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/AbstractButton.java/buggy/core/src/classpath/javax/javax/swing/AbstractButton.java |
firePropertyChange(MNEMONIC_CHANGED_PROPERTY, old, mne); | firePropertyChange(MNEMONIC_CHANGED_PROPERTY, old, (int) mne); | public void setMnemonic(int mne) { int old = mne; getModel().setMnemonic(mne); if (old != getModel().getMnemonic()) { firePropertyChange(MNEMONIC_CHANGED_PROPERTY, old, mne); revalidate(); repaint(); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/AbstractButton.java/buggy/core/src/classpath/javax/javax/swing/AbstractButton.java |
public GridLayout (int rows, int cols) | public GridLayout () | public GridLayout (int rows, int cols) { this (rows, cols, 0, 0); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e864c0d89c996e0999ad08d1701193723aaab52a/GridLayout.java/buggy/core/src/classpath/java/java/awt/GridLayout.java |
this (rows, cols, 0, 0); | this (1, 0, 0, 0); | public GridLayout (int rows, int cols) { this (rows, cols, 0, 0); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e864c0d89c996e0999ad08d1701193723aaab52a/GridLayout.java/buggy/core/src/classpath/java/java/awt/GridLayout.java |
public JButton(Action a) | public JButton() | public JButton(Action a) { this(); setAction(a); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JButton.java/buggy/core/src/classpath/javax/javax/swing/JButton.java |
this(); setAction(a); | this(null, null); | public JButton(Action a) { this(); setAction(a); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JButton.java/buggy/core/src/classpath/javax/javax/swing/JButton.java |
if (old != i) { | public void setIcon(Icon i) { Icon old = default_icon; default_icon = i; if (old != i) { firePropertyChange(ICON_CHANGED_PROPERTY, old, i); revalidate(); repaint(); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/AbstractButton.java/buggy/core/src/classpath/javax/javax/swing/AbstractButton.java | |
public ButtonGroup() {} | public ButtonGroup() { } | public ButtonGroup() {} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/ButtonGroup.java/buggy/core/src/classpath/javax/javax/swing/ButtonGroup.java |
v.addElement(b); | buttons.addElement(b); | public void add(AbstractButton b) { b.getModel().setGroup(this); v.addElement(b); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/ButtonGroup.java/buggy/core/src/classpath/javax/javax/swing/ButtonGroup.java |
public JScrollPane(Component view) | public JScrollPane() | public JScrollPane(Component view) { this(view, VERTICAL_SCROLLBAR_AS_NEEDED, HORIZONTAL_SCROLLBAR_AS_NEEDED); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JScrollPane.java/buggy/core/src/classpath/javax/javax/swing/JScrollPane.java |
this(view, VERTICAL_SCROLLBAR_AS_NEEDED, HORIZONTAL_SCROLLBAR_AS_NEEDED); | this(null); | public JScrollPane(Component view) { this(view, VERTICAL_SCROLLBAR_AS_NEEDED, HORIZONTAL_SCROLLBAR_AS_NEEDED); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/JScrollPane.java/buggy/core/src/classpath/javax/javax/swing/JScrollPane.java |
public PropertyChangeListener createPropertyChangeListener(JFileChooser fc) { return new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent e) { // FIXME: Multiple file selection waiting on JList multiple selection bug. if (e.getPropertyName().equals(JFileChooser.SELECTED_FILE_CHAN... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/031055047d52e1cffbe5de5ce0c7da51215e931f/BasicFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicFileChooserUI.java | ||
boxEntries(); | public PropertyChangeListener createPropertyChangeListener(JFileChooser fc) { return new PropertyChangeListener() { public void propertyChange(PropertyChangeEvent e) { // FIXME: Multiple file selection waiting on JList multiple selection bug. if (e.getPropertyName().equals(JFileChooser.SELECTED_FILE_CHAN... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/031055047d52e1cffbe5de5ce0c7da51215e931f/BasicFileChooserUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicFileChooserUI.java | |
public String toString() | public final String toString() | public String toString() { return super.toString() + "; name=" + name + "; isSource=" + isSource; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/7cc107e01ff95c250142dda3e246542e1b0c0794/Port.java/buggy/core/src/classpath/javax/javax/sound/sampled/Port.java |
String.class, int.class, CompletionStatus.class | String.class, int.class, CompletionStatus.class | public static SystemException createSystemException(String idl, int minor, CompletionStatus completed ) { try { String cl = toClassName(JAVA_PREFIX, idl); Class exClass = Class.forName(cl); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/031055047d52e1cffbe5de5ce0c7da51215e931f/ObjectCreator.java/clean/core/src/classpath/gnu/gnu/CORBA/ObjectCreator.java |
" Remote exception " + idl + ", minor " + minor + ", " + completed + ".", new Integer(minor), completed | " Remote exception " + idl + ", minor " + minor + ", " + completed + ".", new Integer(minor), completed | public static SystemException createSystemException(String idl, int minor, CompletionStatus completed ) { try { String cl = toClassName(JAVA_PREFIX, idl); Class exClass = Class.forName(cl); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/031055047d52e1cffbe5de5ce0c7da51215e931f/ObjectCreator.java/clean/core/src/classpath/gnu/gnu/CORBA/ObjectCreator.java |
new Class[] { org.omg.CORBA.portable.InputStream.class } | new Class[] { org.omg.CORBA.portable.InputStream.class } | public static UserException readUserException(String idl, InputStream input) { try { String helper = toHelperName(idl); Class helperClass = Class.forName(helper); Method read = helperClass.getMethod("read", new Class[] ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/031055047d52e1cffbe5de5ce0c7da51215e931f/ObjectCreator.java/clean/core/src/classpath/gnu/gnu/CORBA/ObjectCreator.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.