rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
throw new IOException(ex.getException()); | final IOException ioe = new IOException(); ioe.initCause(ex.getException()); throw ioe; | public void write(final byte[] b, final int off, final int len) throws IOException, NullPointerException, IndexOutOfBoundsException { try { AccessController.doPrivileged(new PrivilegedExceptionAction() { public Object run() throws IOException { final DatagramPacket p = new DatagramPacket(b, off, ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4fe0410e3d1e4dea160852289195cd6981c0f456/UDPOutputStream.java/buggy/core/src/core/org/jnode/debug/UDPOutputStream.java |
d.pack(); | Insets i = d.getInsets(); d.setSize(500 + i.top + i.bottom, d.getPreferredSize().height); | public int showDialog(Component parent, String approveButtonText) throws HeadlessException { JDialog d = createDialog(parent); setApproveButtonText(approveButtonText); setDialogType(CUSTOM_DIALOG); retval = ERROR_OPTION; d.pack(); d.show(); return retval; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java |
d.pack(); | Insets i = d.getInsets(); d.setSize(500 + i.top + i.bottom, d.getPreferredSize().height); | 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; d.pack(); d.show(); return retval; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java |
d.pack(); | Insets i = d.getInsets(); d.setSize(500 + i.top + i.bottom, d.getPreferredSize().height); | public int showSaveDialog(Component parent) throws HeadlessException { JDialog d = createDialog(parent); setDialogType(SAVE_DIALOG); retval = ERROR_OPTION; d.pack(); d.show(); return retval; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java |
MetalUtils.fillMetalPattern(g, startX, 3, endX - startX, getHeight() - 6, Color.white, Color.gray); | MetalUtils.fillMetalPattern(this, g, startX, 3, endX - startX, getHeight() - 6, Color.white, Color.gray); | public void paintComponent(Graphics g) { Color savedColor = g.getColor(); if (isPalette) paintPalette(g); else { paintTitleBackground(g); paintChildren(g); Dimension d = getSize(); if (frame.isSelected()) g.setColor(MetalLookAndFeel.getPrimaryControlDarkShadow(... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/563d61706c08a9c62b0e997a1e5a45e90d1e8cd7/MetalInternalFrameTitlePane.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalInternalFrameTitlePane.java |
MetalUtils.fillMetalPattern(g, b.x + 4, b.y + 2, b.width | MetalUtils.fillMetalPattern(this, g, b.x + 4, b.y + 2, b.width | public void paintPalette(Graphics g) { Color savedColor = g.getColor(); Rectangle b = SwingUtilities.getLocalBounds(this); g.setColor(MetalLookAndFeel.getPrimaryControlShadow()); g.fillRect(b.x, b.y, b.width, b.height); MetalUtils.fillMetalPattern(g, b.x + 4, b.y + 2, b.width - paletteClos... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/563d61706c08a9c62b0e997a1e5a45e90d1e8cd7/MetalInternalFrameTitlePane.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalInternalFrameTitlePane.java |
if (instances == null) instances = new HashMap(); Object o = instances.get(component); MetalTextFieldUI instance; if (o == null) { instance = new MetalTextFieldUI(); instances.put(component, instance); } else instance = (MetalTextFieldUI) o; return instance; | return new MetalTextFieldUI(); | public static ComponentUI createUI(JComponent component) { if (instances == null) instances = new HashMap(); Object o = instances.get(component); MetalTextFieldUI instance; if (o == null) { instance = new MetalTextFieldUI(); instances.put(component, instance); } else instance ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/563d61706c08a9c62b0e997a1e5a45e90d1e8cd7/MetalTextFieldUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalTextFieldUI.java |
protected void addImpl(Component comp, Object constraints, int index) { super.addImpl(comp, constraints, index); | 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); else layer = DEFAULT_LAYER; in... | protected void addImpl(Component comp, Object constraints, int index) { super.addImpl(comp, constraints, index); comp.validate(); comp.repaint(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/JLayeredPane.java/buggy/core/src/classpath/javax/javax/swing/JLayeredPane.java |
comp.validate(); comp.repaint(); } | super.addImpl(comp, null, newIdx); validate(); repaint(); } | protected void addImpl(Component comp, Object constraints, int index) { super.addImpl(comp, constraints, index); comp.validate(); comp.repaint(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/JLayeredPane.java/buggy/core/src/classpath/javax/javax/swing/JLayeredPane.java |
this(""); | this(null); | public AbstractAction() { this(""); // TODO: default name } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/27e9978154ebcb2e4d9c4e05e11bf17d1b8e1ef5/AbstractAction.java/buggy/core/src/classpath/javax/javax/swing/AbstractAction.java |
public void removePropertyChangeListener(PropertyChangeListener listener); | void removePropertyChangeListener(PropertyChangeListener listener); | public void removePropertyChangeListener(PropertyChangeListener listener); | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/Action.java/buggy/core/src/classpath/javax/javax/swing/Action.java |
private static NameSpace getNameSpace() { if(namespace == null) { | static NameSpace getNameSpace() { if (namespace == null) { | private static NameSpace getNameSpace() { if(namespace == null) { namespace = new DefaultNameSpace(); } return namespace; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/95d080b6dd45e9377ad3ace3a74f8c5e46c8815f/InitialNaming.java/buggy/core/src/core/org/jnode/naming/InitialNaming.java |
return getNameSpace().nameSet(); } | return getNameSpace().nameSet(); } | public static Set nameSet() { return getNameSpace().nameSet(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/95d080b6dd45e9377ad3ace3a74f8c5e46c8815f/InitialNaming.java/buggy/core/src/core/org/jnode/naming/InitialNaming.java |
public static void setNameSpace(NameSpace namespace) { if(InitialNaming.namespace != null) { throw new SecurityException("namespace can't be modified after first initialization"); | public static void setNameSpace(NameSpace namespace) { if (InitialNaming.namespace != null) { throw new SecurityException( "namespace can't be modified after first initialization"); | public static void setNameSpace(NameSpace namespace) { if(InitialNaming.namespace != null) { throw new SecurityException("namespace can't be modified after first initialization"); } InitialNaming.namespace = namespace; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/95d080b6dd45e9377ad3ace3a74f8c5e46c8815f/InitialNaming.java/buggy/core/src/core/org/jnode/naming/InitialNaming.java |
public NameAlreadyBoundException (String msg) | public NameAlreadyBoundException () | public NameAlreadyBoundException (String msg) { super (msg); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/NameAlreadyBoundException.java/buggy/core/src/classpath/javax/javax/naming/NameAlreadyBoundException.java |
super (msg); | super (); | public NameAlreadyBoundException (String msg) { super (msg); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/49e488b8530051383b90b1357fa767c87c9ff7f5/NameAlreadyBoundException.java/buggy/core/src/classpath/javax/javax/naming/NameAlreadyBoundException.java |
public static CompoundBorder createCompoundBorder() { /* Create a compound border with a null inside edge and a null outside edge. Returns: the CompoundBorder object createCompoundBorder */ return null; } | public static CompoundBorder createCompoundBorder () { return new CompoundBorder (); } | public static CompoundBorder createCompoundBorder() { /* Create a compound border with a null inside edge and a null outside edge. Returns: the CompoundBorder object createCompoundBorder */ return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/BorderFactory.java/clean/core/src/classpath/javax/javax/swing/BorderFactory.java |
public static Border createEtchedBorder() { /* Create a border with an "etched" look using the component's current background color for highlighting and shading. Returns: the Border object createEtchedBorder */ return null; } | public static Border createEtchedBorder () { return new EtchedBorder (); } | public static Border createEtchedBorder() { /* Create a border with an "etched" look using the component's current background color for highlighting and shading. Returns: the Border object createEtchedBorder */ return null; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/BorderFactory.java/clean/core/src/classpath/javax/javax/swing/BorderFactory.java |
public static Border createLoweredBevelBorder() { /* Created a border with a lowered beveled edge, using brighter shades of the component's current background color for highlighting, and darker shading for shadows. (In a lowered border, shadows are on top and highlights are underneath.) Returns: the Border object cre... | public static Border createLoweredBevelBorder () { return new BevelBorder (BevelBorder.LOWERED); } | public static Border createLoweredBevelBorder() { /* Created a border with a lowered beveled edge, using brighter shades of the component's current background color for highlighting, and darker shading for shadows. (In a lowered border, shadows are on top and highlights are underneath.) Returns: the Border ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/BorderFactory.java/clean/core/src/classpath/javax/javax/swing/BorderFactory.java |
public static MatteBorder createMatteBorder( int top, int left, int bottom, int right, Color color) { /* Create a matte-look border using a solid color. (The difference between this border and a line border is that you can specify the individual border dimensions.) Parameters: top - an int specifying the width of the... | public static MatteBorder createMatteBorder (int top, int left, int bottom, int right, Color color) { return new MatteBorder (top, left, bottom, right, color); } | public static MatteBorder createMatteBorder( int top, int left, int bottom, int right, Color color) { /* Create a matte-look border using a solid color. (The difference between this border and a line border is that you can specify the individual border dimensions.) Parameters: top - an int specifying t... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/BorderFactory.java/clean/core/src/classpath/javax/javax/swing/BorderFactory.java |
public static Border createRaisedBevelBorder() { /* Created a border with a raised beveled edge, using brighter shades of the component's current background color for highlighting, and darker shading for shadows. (In a raised border, highlights are on top and shadows are underneath.) Returns: the Border object create... | public static Border createRaisedBevelBorder () { return new BevelBorder (BevelBorder.RAISED); } | public static Border createRaisedBevelBorder() { /* Created a border with a raised beveled edge, using brighter shades of the component's current background color for highlighting, and darker shading for shadows. (In a raised border, highlights are on top and shadows are underneath.) Returns: the Border obj... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/BorderFactory.java/clean/core/src/classpath/javax/javax/swing/BorderFactory.java |
public static TitledBorder createTitledBorder(String title) { /* Create a new title border specifying the text of the title, using the default border (etched), using the default text position (sitting on the top line) and default justification (left) and using the default font and text color determined by the current l... | public static TitledBorder createTitledBorder (String title) { return new TitledBorder (title); } | public static TitledBorder createTitledBorder(String title) { /* Create a new title border specifying the text of the title, using the default border (etched), using the default text position (sitting on the top line) and default justification (left) and using the default font and text color determined by the curre... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/BorderFactory.java/clean/core/src/classpath/javax/javax/swing/BorderFactory.java |
buf.append(record.getLoggerName()); | buf.append(record.getSourceClassName()); buf.append(' '); buf.append(record.getSourceMethodName()); | public String format(LogRecord record) { StringBuffer buf = new StringBuffer(180); if (dateFormat == null) dateFormat = DateFormat.getDateTimeInstance(); buf.append(dateFormat.format(new Date(record.getMillis()))); buf.append(' '); buf.append(record.getLoggerName()); buf.append(lineSep); bu... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/71bd4a234ff464b217036c28c910b8210f375bad/SimpleFormatter.java/buggy/core/src/classpath/java/java/util/logging/SimpleFormatter.java |
Menu(String label) | Menu() | Menu(String label){ this(label, false);} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0e5ba93f67f359dbdb3b61f9a098e2718a744e71/Menu.java/buggy/core/src/classpath/java/java/awt/Menu.java |
this(label, false); | Menu(String label){ this(label, false);} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0e5ba93f67f359dbdb3b61f9a098e2718a744e71/Menu.java/buggy/core/src/classpath/java/java/awt/Menu.java | |
if (item.parent != null) { item.parent.remove(item); } item.parent = this; | item.setParent(this); | add(MenuItem item){ items.addElement(item); if (item.parent != null) { item.parent.remove(item); } item.parent = this; if (peer != null) { MenuPeer mp = (MenuPeer) peer; mp.addItem(item); } return item;} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0e5ba93f67f359dbdb3b61f9a098e2718a744e71/Menu.java/buggy/core/src/classpath/java/java/awt/Menu.java |
item.addNotify(); | add(MenuItem item){ items.addElement(item); if (item.parent != null) { item.parent.remove(item); } item.parent = this; if (peer != null) { MenuPeer mp = (MenuPeer) peer; mp.addItem(item); } return item;} | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0e5ba93f67f359dbdb3b61f9a098e2718a744e71/Menu.java/buggy/core/src/classpath/java/java/awt/Menu.java | |
return channel != null && channel.isOpen(); | ByteChannel c = channel; return (c != null) && (c.isOpen()); | public boolean valid () { return channel != null && channel.isOpen(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/9d7d26bc0847e35910ab50fd2b364a4d49f580bf/FileDescriptor.java/clean/core/src/classpath/java/java/io/FileDescriptor.java |
Certificate certs[] = new Certificate[certificates.size()]; | Certificate[] certs = new Certificate[certificates.size()]; | public Certificate[] certificates() { Certificate certs[] = new Certificate[certificates.size()]; int max = certificates.size(); for (int i = 0; i < max; i++) certs[i] = (Certificate) certificates.elementAt(i); return certs; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/61b8e27fab61a8487622d1793b61aa19c130c7ab/Identity.java/clean/core/src/classpath/java/java/security/Identity.java |
JaxpParser () { } | JaxpParser() { } | JaxpParser () { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/JAXPFactory.java/buggy/core/src/classpath/gnu/gnu/xml/aelfred2/JAXPFactory.java |
public Parser getParser () | public Parser getParser() | public Parser getParser () throws SAXException { if (parser == null) parser = new XMLReaderAdapter (ae2); return parser; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/JAXPFactory.java/buggy/core/src/classpath/gnu/gnu/xml/aelfred2/JAXPFactory.java |
parser = new XMLReaderAdapter (ae2); | { parser = new XMLReaderAdapter(ae2); } | public Parser getParser () throws SAXException { if (parser == null) parser = new XMLReaderAdapter (ae2); return parser; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/JAXPFactory.java/buggy/core/src/classpath/gnu/gnu/xml/aelfred2/JAXPFactory.java |
public Object getProperty (String id) | public Object getProperty(String id) | public Object getProperty (String id) throws SAXNotRecognizedException, SAXNotSupportedException { return ae2.getProperty (id); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/JAXPFactory.java/buggy/core/src/classpath/gnu/gnu/xml/aelfred2/JAXPFactory.java |
{ return ae2.getProperty (id); } | { return ae2.getProperty(id); } | public Object getProperty (String id) throws SAXNotRecognizedException, SAXNotSupportedException { return ae2.getProperty (id); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/JAXPFactory.java/buggy/core/src/classpath/gnu/gnu/xml/aelfred2/JAXPFactory.java |
{ return ae2; } | { return ae2; } | public XMLReader getXMLReader () throws SAXException { return ae2; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/JAXPFactory.java/buggy/core/src/classpath/gnu/gnu/xml/aelfred2/JAXPFactory.java |
public boolean isNamespaceAware () | public boolean isNamespaceAware() { try { return ae2.getFeature(SAXDriver.FEATURE + "namespaces"); } catch (Exception e) | public boolean isNamespaceAware () { try { return ae2.getFeature (SAXDriver.FEATURE + "namespaces"); } catch (Exception e) { throw new Error (); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/JAXPFactory.java/buggy/core/src/classpath/gnu/gnu/xml/aelfred2/JAXPFactory.java |
try { return ae2.getFeature (SAXDriver.FEATURE + "namespaces"); } catch (Exception e) { throw new Error (); | throw new Error(); | public boolean isNamespaceAware () { try { return ae2.getFeature (SAXDriver.FEATURE + "namespaces"); } catch (Exception e) { throw new Error (); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/JAXPFactory.java/buggy/core/src/classpath/gnu/gnu/xml/aelfred2/JAXPFactory.java |
public boolean isValidating () | public boolean isValidating() | public boolean isValidating () { try { return ae2.getFeature (SAXDriver.FEATURE + "validation"); } catch (Exception e) { throw new Error (); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/JAXPFactory.java/buggy/core/src/classpath/gnu/gnu/xml/aelfred2/JAXPFactory.java |
try { return ae2.getFeature (SAXDriver.FEATURE + "validation"); } catch (Exception e) { throw new Error (); | try { return ae2.getFeature(SAXDriver.FEATURE + "validation"); } catch (Exception e) { throw new Error(); | public boolean isValidating () { try { return ae2.getFeature (SAXDriver.FEATURE + "validation"); } catch (Exception e) { throw new Error (); } } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/JAXPFactory.java/buggy/core/src/classpath/gnu/gnu/xml/aelfred2/JAXPFactory.java |
public void setProperty (String id, Object value) | public void setProperty(String id, Object value) | public void setProperty (String id, Object value) throws SAXNotRecognizedException, SAXNotSupportedException { ae2.setProperty (id, value); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/JAXPFactory.java/buggy/core/src/classpath/gnu/gnu/xml/aelfred2/JAXPFactory.java |
{ ae2.setProperty (id, value); } | { ae2.setProperty(id, value); } | public void setProperty (String id, Object value) throws SAXNotRecognizedException, SAXNotSupportedException { ae2.setProperty (id, value); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/JAXPFactory.java/buggy/core/src/classpath/gnu/gnu/xml/aelfred2/JAXPFactory.java |
public JAXPFactory () { } | public JAXPFactory() { } | public JAXPFactory () { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/JAXPFactory.java/buggy/core/src/classpath/gnu/gnu/xml/aelfred2/JAXPFactory.java |
public boolean getFeature (String name) throws ParserConfigurationException, SAXNotRecognizedException, | public boolean getFeature(String name) throws ParserConfigurationException, SAXNotRecognizedException, | public boolean getFeature (String name) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException { Boolean value = (Boolean) flags.get (name); if (value != null) return value.booleanValue (); else try { return new JaxpParser ().getXMLReader ().getFeature (name); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/JAXPFactory.java/buggy/core/src/classpath/gnu/gnu/xml/aelfred2/JAXPFactory.java |
Boolean value = (Boolean) flags.get (name); | Boolean value = (Boolean) flags.get(name); | public boolean getFeature (String name) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException { Boolean value = (Boolean) flags.get (name); if (value != null) return value.booleanValue (); else try { return new JaxpParser ().getXMLReader ().getFeature (name); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/JAXPFactory.java/buggy/core/src/classpath/gnu/gnu/xml/aelfred2/JAXPFactory.java |
return value.booleanValue (); | { return value.booleanValue(); } | public boolean getFeature (String name) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException { Boolean value = (Boolean) flags.get (name); if (value != null) return value.booleanValue (); else try { return new JaxpParser ().getXMLReader ().getFeature (name); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/JAXPFactory.java/buggy/core/src/classpath/gnu/gnu/xml/aelfred2/JAXPFactory.java |
try { return new JaxpParser ().getXMLReader ().getFeature (name); } catch (SAXNotRecognizedException e) { throw new SAXNotRecognizedException (name); } catch (SAXNotSupportedException e) { throw new SAXNotSupportedException (name); } catch (SAXException e) { throw new ParserConfigurationException ( e.getClass ().getNam... | { try { return new JaxpParser().getXMLReader().getFeature(name); } catch (SAXNotRecognizedException e) { throw new SAXNotRecognizedException(name); } catch (SAXNotSupportedException e) { throw new SAXNotSupportedException(name); } catch (SAXException e) { throw new ParserConfigurationException(e.getClass().getName() | public boolean getFeature (String name) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException { Boolean value = (Boolean) flags.get (name); if (value != null) return value.booleanValue (); else try { return new JaxpParser ().getXMLReader ().getFeature (name); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/JAXPFactory.java/buggy/core/src/classpath/gnu/gnu/xml/aelfred2/JAXPFactory.java |
+ e.getMessage ()); | + e.getMessage()); } | public boolean getFeature (String name) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException { Boolean value = (Boolean) flags.get (name); if (value != null) return value.booleanValue (); else try { return new JaxpParser ().getXMLReader ().getFeature (name); ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/JAXPFactory.java/buggy/core/src/classpath/gnu/gnu/xml/aelfred2/JAXPFactory.java |
public SAXParser newSAXParser () | public SAXParser newSAXParser() | public SAXParser newSAXParser () throws ParserConfigurationException, SAXException { JaxpParser jaxp = new JaxpParser (); Enumeration e = flags.keys (); XMLReader parser = jaxp.getXMLReader (); parser.setFeature ( SAXDriver.FEATURE + "namespaces", isNamespaceAware ()); parser.setFeature ( SAXDriver.FEATURE... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/JAXPFactory.java/buggy/core/src/classpath/gnu/gnu/xml/aelfred2/JAXPFactory.java |
JaxpParser jaxp = new JaxpParser (); Enumeration e = flags.keys (); XMLReader parser = jaxp.getXMLReader (); | JaxpParser jaxp = new JaxpParser(); Enumeration e = flags.keys(); XMLReader parser = jaxp.getXMLReader(); | public SAXParser newSAXParser () throws ParserConfigurationException, SAXException { JaxpParser jaxp = new JaxpParser (); Enumeration e = flags.keys (); XMLReader parser = jaxp.getXMLReader (); parser.setFeature ( SAXDriver.FEATURE + "namespaces", isNamespaceAware ()); parser.setFeature ( SAXDriver.FEATURE... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/JAXPFactory.java/buggy/core/src/classpath/gnu/gnu/xml/aelfred2/JAXPFactory.java |
parser.setFeature ( SAXDriver.FEATURE + "namespaces", isNamespaceAware ()); parser.setFeature ( SAXDriver.FEATURE + "validation", isValidating ()); | parser.setFeature(SAXDriver.FEATURE + "namespaces", isNamespaceAware()); parser.setFeature(SAXDriver.FEATURE + "validation", isValidating()); | public SAXParser newSAXParser () throws ParserConfigurationException, SAXException { JaxpParser jaxp = new JaxpParser (); Enumeration e = flags.keys (); XMLReader parser = jaxp.getXMLReader (); parser.setFeature ( SAXDriver.FEATURE + "namespaces", isNamespaceAware ()); parser.setFeature ( SAXDriver.FEATURE... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/JAXPFactory.java/buggy/core/src/classpath/gnu/gnu/xml/aelfred2/JAXPFactory.java |
while (e.hasMoreElements ()) { String uri = (String) e.nextElement (); Boolean value = (Boolean) flags.get (uri); parser.setFeature (uri, value.booleanValue ()); | while (e.hasMoreElements()) { String uri = (String) e.nextElement(); Boolean value = (Boolean) flags.get(uri); parser.setFeature(uri, value.booleanValue()); | public SAXParser newSAXParser () throws ParserConfigurationException, SAXException { JaxpParser jaxp = new JaxpParser (); Enumeration e = flags.keys (); XMLReader parser = jaxp.getXMLReader (); parser.setFeature ( SAXDriver.FEATURE + "namespaces", isNamespaceAware ()); parser.setFeature ( SAXDriver.FEATURE... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/JAXPFactory.java/buggy/core/src/classpath/gnu/gnu/xml/aelfred2/JAXPFactory.java |
public void setFeature (String name, boolean value) throws ParserConfigurationException, SAXNotRecognizedException, | public void setFeature(String name, boolean value) throws ParserConfigurationException, SAXNotRecognizedException, | public void setFeature (String name, boolean value) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException { try { // force "early" detection of errors where possible // (flags can't necessarily be set before parsing) new JaxpParser ().getXMLReader ().setFeature ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/JAXPFactory.java/buggy/core/src/classpath/gnu/gnu/xml/aelfred2/JAXPFactory.java |
try { | try { | public void setFeature (String name, boolean value) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException { try { // force "early" detection of errors where possible // (flags can't necessarily be set before parsing) new JaxpParser ().getXMLReader ().setFeature ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/JAXPFactory.java/buggy/core/src/classpath/gnu/gnu/xml/aelfred2/JAXPFactory.java |
new JaxpParser ().getXMLReader ().setFeature (name, value); | new JaxpParser().getXMLReader().setFeature(name, value); | public void setFeature (String name, boolean value) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException { try { // force "early" detection of errors where possible // (flags can't necessarily be set before parsing) new JaxpParser ().getXMLReader ().setFeature ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/JAXPFactory.java/buggy/core/src/classpath/gnu/gnu/xml/aelfred2/JAXPFactory.java |
flags.put (name, new Boolean (value)); } catch (SAXNotRecognizedException e) { throw new SAXNotRecognizedException (name); } catch (SAXNotSupportedException e) { throw new SAXNotSupportedException (name); } catch (Exception e) { throw new ParserConfigurationException ( e.getClass ().getName () | flags.put(name, new Boolean(value)); } catch (SAXNotRecognizedException e) { throw new SAXNotRecognizedException(name); } catch (SAXNotSupportedException e) { throw new SAXNotSupportedException(name); } catch (Exception e) { throw new ParserConfigurationException(e.getClass().getName() | public void setFeature (String name, boolean value) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException { try { // force "early" detection of errors where possible // (flags can't necessarily be set before parsing) new JaxpParser ().getXMLReader ().setFeature ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/JAXPFactory.java/buggy/core/src/classpath/gnu/gnu/xml/aelfred2/JAXPFactory.java |
+ e.getMessage ()); | + e.getMessage()); | public void setFeature (String name, boolean value) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException { try { // force "early" detection of errors where possible // (flags can't necessarily be set before parsing) new JaxpParser ().getXMLReader ().setFeature ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/JAXPFactory.java/buggy/core/src/classpath/gnu/gnu/xml/aelfred2/JAXPFactory.java |
public XmlReader () { } | public XmlReader() { } | public XmlReader () { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/XmlReader.java/buggy/core/src/classpath/gnu/gnu/xml/aelfred2/XmlReader.java |
public XMLReaderAdapter (XMLReader xmlReader) | public XMLReaderAdapter () throws SAXException | public XMLReaderAdapter (XMLReader xmlReader) { setup(xmlReader); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2c0635b05f68dbb361b3532fd5813a38b74cf57a/XMLReaderAdapter.java/buggy/core/src/classpath/org/org/xml/sax/helpers/XMLReaderAdapter.java |
setup(xmlReader); | setup(XMLReaderFactory.createXMLReader()); | public XMLReaderAdapter (XMLReader xmlReader) { setup(xmlReader); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2c0635b05f68dbb361b3532fd5813a38b74cf57a/XMLReaderAdapter.java/buggy/core/src/classpath/org/org/xml/sax/helpers/XMLReaderAdapter.java |
public Object getProperty (String propertyId) | public Object getProperty(String propertyId) | public Object getProperty (String propertyId) throws SAXNotRecognizedException { if ((SAXDriver.PROPERTY + "declaration-handler") .equals (propertyId) || (SAXDriver.PROPERTY + "lexical-handler") .equals (propertyId)) return filter.getProperty (propertyId); throw new SAXNotRecognizedException (propert... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/XmlReader.java/buggy/core/src/classpath/gnu/gnu/xml/aelfred2/XmlReader.java |
if ((SAXDriver.PROPERTY + "declaration-handler") .equals (propertyId) || (SAXDriver.PROPERTY + "lexical-handler") .equals (propertyId)) return filter.getProperty (propertyId); throw new SAXNotRecognizedException (propertyId); | if ((SAXDriver.PROPERTY + "declaration-handler").equals(propertyId) || (SAXDriver.PROPERTY + "lexical-handler").equals(propertyId)) { return filter.getProperty(propertyId); } throw new SAXNotRecognizedException(propertyId); | public Object getProperty (String propertyId) throws SAXNotRecognizedException { if ((SAXDriver.PROPERTY + "declaration-handler") .equals (propertyId) || (SAXDriver.PROPERTY + "lexical-handler") .equals (propertyId)) return filter.getProperty (propertyId); throw new SAXNotRecognizedException (propert... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/XmlReader.java/buggy/core/src/classpath/gnu/gnu/xml/aelfred2/XmlReader.java |
public boolean getFeature (String featureId) | public boolean getFeature(String featureId) | public boolean getFeature (String featureId) throws SAXNotRecognizedException, SAXNotSupportedException { if ((SAXDriver.FEATURE + "validation").equals (featureId)) return isValidating; return aelfred2.getFeature (featureId); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/XmlReader.java/buggy/core/src/classpath/gnu/gnu/xml/aelfred2/XmlReader.java |
if ((SAXDriver.FEATURE + "validation").equals (featureId)) | if ((SAXDriver.FEATURE + "validation").equals(featureId)) { | public boolean getFeature (String featureId) throws SAXNotRecognizedException, SAXNotSupportedException { if ((SAXDriver.FEATURE + "validation").equals (featureId)) return isValidating; return aelfred2.getFeature (featureId); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/XmlReader.java/buggy/core/src/classpath/gnu/gnu/xml/aelfred2/XmlReader.java |
return aelfred2.getFeature (featureId); | return aelfred2.getFeature(featureId); | public boolean getFeature (String featureId) throws SAXNotRecognizedException, SAXNotSupportedException { if ((SAXDriver.FEATURE + "validation").equals (featureId)) return isValidating; return aelfred2.getFeature (featureId); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/XmlReader.java/buggy/core/src/classpath/gnu/gnu/xml/aelfred2/XmlReader.java |
public void setProperty (String propertyId, Object value) | public void setProperty(String propertyId, Object value) | public void setProperty (String propertyId, Object value) throws SAXNotRecognizedException, SAXNotSupportedException { if (active) throw new IllegalStateException ("already parsing"); if (getProperty (propertyId) != value) filter.setProperty (propertyId, value); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/XmlReader.java/buggy/core/src/classpath/gnu/gnu/xml/aelfred2/XmlReader.java |
throw new IllegalStateException ("already parsing"); if (getProperty (propertyId) != value) filter.setProperty (propertyId, value); | { throw new IllegalStateException("already parsing"); } if (getProperty(propertyId) != value) { filter.setProperty(propertyId, value); } | public void setProperty (String propertyId, Object value) throws SAXNotRecognizedException, SAXNotSupportedException { if (active) throw new IllegalStateException ("already parsing"); if (getProperty (propertyId) != value) filter.setProperty (propertyId, value); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/XmlReader.java/buggy/core/src/classpath/gnu/gnu/xml/aelfred2/XmlReader.java |
{ } | { } | public void cancelEditing(JTree tree) { // FIXME: not implemented } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
{ return new BasicTreeUI(); } | { return new BasicTreeUI(); } | public static ComponentUI createUI(JComponent c) { return new BasicTreeUI(); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
public TreePath getClosestPathForLocation(JTree tree, int x, int y) { return null; } | public TreePath getClosestPathForLocation(JTree tree, int x, int y) { return treeState.getPathClosestTo(x, y); } | public TreePath getClosestPathForLocation(JTree tree, int x, int y) { return null; // FIXME: not implemented } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
{ return null; } | { return null; } | public TreePath getEditingPath(JTree tree) { return null; // FIXME: not implemented } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
{ return null; } | { return null; } | public Rectangle getPathBounds(JTree tree, TreePath path) { return null; // FIXME: not implemented } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
{ return null; } | { DefaultMutableTreeNode pathForRow = ((DefaultMutableTreeNode) (tree .getModel()).getRoot()); for (int i = 0; i < row; i++) { if (pathForRow != null) pathForRow = pathForRow.getNextNode(); } if (pathForRow == null) return null; return new TreePath(pathForRow.getPath()); } | public TreePath getPathForRow(JTree tree, int row) { return null; // FIXME: not implemented } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
{ return new Dimension(200,200); } | { return getPreferredSize(c, false); } | public Dimension getPreferredSize(JComponent c) { return new Dimension(200,200); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
{ return 0; } | { return treeState.getRowCount(); } | public int getRowCount(JTree tree) { return 0; // FIXME: not implemented } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
{ return -1; } | { return path.getPathCount() - 1; } | public int getRowForPath(JTree tree, TreePath path) { return -1; // FIXME: not implemented } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
protected void installDefaults(JTree tree) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); | protected void installDefaults(JTree tree) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); | protected void installDefaults(JTree tree) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); tree.setFont(defaults.getFont("Tree.font")); tree.setForeground(defaults.getColor("Tree.foreground")); tree.setBackground(defaults.getColor("Tree.background")); tree.setOpaque(true); hashColor = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
tree.setFont(defaults.getFont("Tree.font")); tree.setForeground(defaults.getColor("Tree.foreground")); tree.setBackground(defaults.getColor("Tree.background")); tree.setOpaque(true); | tree.setFont(defaults.getFont("Tree.font")); tree.setForeground(defaults.getColor("Tree.foreground")); tree.setBackground(defaults.getColor("Tree.background")); tree.setOpaque(true); | protected void installDefaults(JTree tree) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); tree.setFont(defaults.getFont("Tree.font")); tree.setForeground(defaults.getColor("Tree.foreground")); tree.setBackground(defaults.getColor("Tree.background")); tree.setOpaque(true); hashColor = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
hashColor = defaults.getColor("Tree.hash"); rightChildIndent = defaults.getInt("Tree.rightChildIndent"); leftChildIndent = defaults.getInt("Tree.leftChildIndent"); rowHeight = defaults.getInt("Tree.rowHeight"); } | rightChildIndent = defaults.getInt("Tree.rightChildIndent"); leftChildIndent = defaults.getInt("Tree.leftChildIndent"); setRowHeight(defaults.getInt("Tree.rowHeight")); } | protected void installDefaults(JTree tree) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); tree.setFont(defaults.getFont("Tree.font")); tree.setForeground(defaults.getColor("Tree.foreground")); tree.setBackground(defaults.getColor("Tree.background")); tree.setOpaque(true); hashColor = ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
protected void installKeyboardActions() { } | protected void installKeyboardActions() { } | protected void installKeyboardActions() { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
protected void installListeners() { } | protected void installListeners() { tree.addPropertyChangeListener(propertyChangeListener); tree.addFocusListener(focusListener); tree.addTreeSelectionListener(treeSelectionListener); tree.addMouseListener(mouseInputListener); tree.addKeyListener(keyListener); tree.addPropertyChangeListener(selectionModelPropertyChange... | protected void installListeners() { } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
{ installDefaults((JTree) c); } | { super.installUI(c); installDefaults((JTree) c); tree = (JTree) c; setModel(tree.getModel()); treeSelectionModel = tree.getSelectionModel(); installListeners(); installKeyboardActions(); completeUIInstall(); } | public void installUI(JComponent c) { installDefaults((JTree) c); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
{ return false; } | { return false; } | public boolean isEditing(JTree tree) { return false; // FIXME: not implemented } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
{ JTree tree = (JTree) c; TreeModel mod = tree.getModel(); g.translate(10, 10); paintRecursive(g, 0, 0, 0, 0, tree, mod, mod.getRoot()); g.translate(-10, -10); } | { JTree tree = (JTree) c; TreeModel mod = tree.getModel(); g.translate(10, 10); paintRecursive(g, 0, 0, 0, 0, tree, mod, mod.getRoot()); g.translate(-10, -10); } | public void paint(Graphics g, JComponent c) { JTree tree = (JTree) c; TreeModel mod = tree.getModel(); g.translate(10, 10); paintRecursive(g, 0, 0, 0, 0, tree, mod, mod.getRoot()); g.translate(-10, -10); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
protected void paintLeaf(Graphics g, int x, int y, JTree tree, Object leaf) | private void paintLeaf(Graphics g, int x, int y, JTree tree, Object leaf) { TreePath tp = new TreePath(((DefaultMutableTreeNode) leaf).getPath()); boolean selected = tree.isPathSelected(tp); if (selected) { Component comp = tree.getCellRenderer() .getTreeCellRendererComponent(tree, leaf, true, false, true, 0, false); ... | protected void paintLeaf(Graphics g, int x, int y, JTree tree, Object leaf) { Component c = tree.getCellRenderer().getTreeCellRendererComponent(tree, leaf, false, // selected... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
leaf, false, false, true, 0, false ); | leaf, false, false, true, 0, false); | protected void paintLeaf(Graphics g, int x, int y, JTree tree, Object leaf) { Component c = tree.getCellRenderer().getTreeCellRendererComponent(tree, leaf, false, // selected... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
} | protected void paintLeaf(Graphics g, int x, int y, JTree tree, Object leaf) { Component c = tree.getCellRenderer().getTreeCellRendererComponent(tree, leaf, false, // selected... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
protected void paintNonLeaf(Graphics g, int x, int y, JTree tree, Object nonLeaf) | private void paintNonLeaf(Graphics g, int x, int y, JTree tree, Object nonLeaf) { TreePath tp = new TreePath(((DefaultMutableTreeNode) nonLeaf).getPath()); boolean selected = tree.isPathSelected(tp); if (selected) { Component comp = tree.getCellRenderer() .getTreeCellRendererComponent(tree, nonLeaf, true, false, true,... | protected void paintNonLeaf(Graphics g, int x, int y, JTree tree, Object nonLeaf) { Component c = tree.getCellRenderer().getTreeCellRendererComponent(tree, nonLeaf, false, //... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
nonLeaf, false, false, false, 0, false ); | nonLeaf, false, false, false, 0, false); | protected void paintNonLeaf(Graphics g, int x, int y, JTree tree, Object nonLeaf) { Component c = tree.getCellRenderer().getTreeCellRendererComponent(tree, nonLeaf, false, //... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
} | protected void paintNonLeaf(Graphics g, int x, int y, JTree tree, Object nonLeaf) { Component c = tree.getCellRenderer().getTreeCellRendererComponent(tree, nonLeaf, false, //... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | |
protected int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, Object curr) | private int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, Object curr) | protected int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
if (indentation > clip.x + clip.width + rightChildIndent || descent > clip.y + clip.height + rowHeight) | if (indentation > clip.x + clip.width + rightChildIndent || descent > clip.y + clip.height + getRowHeight()) | protected int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
int halfHeight = rowHeight / 2; | int halfHeight = getRowHeight() / 2; | protected int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
descent += rowHeight; } else | descent += getRowHeight(); } else | protected int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
descent += rowHeight; | descent += getRowHeight(); | protected int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
g.setColor(hashColor); | g.setColor(getHashColor()); | protected int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
descent = paintRecursive(g, indentation + rightChildIndent, descent, i, depth+1, tree, mod, mod.getChild(curr, i)); | descent = paintRecursive(g, indentation + rightChildIndent, descent, i, depth + 1, tree, mod, mod.getChild(curr, i)); | protected int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
g.setColor(hashColor); g.drawLine(indentation + halfWidth, y0, indentation + halfWidth, y1); | g.setColor(getHashColor()); g .drawLine(indentation + halfWidth, y0, indentation + halfWidth, y1); | protected int paintRecursive(Graphics g, int indentation, int descent, int childNumber, int depth, JTree tree, TreeModel mod, ... | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
{ } | { } | public void startEditingAtPath(JTree tree, TreePath path) { // FIXME: not implemented } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
{ return true; } | { return false; } | public boolean stopEditing(JTree tree) { return true; // FIXME: not implemented } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
protected void uninstallDefaults(JTree tree) { tree.setFont(null); tree.setForeground(null); tree.setBackground(null); tree.setCellRenderer(null); } | protected void uninstallDefaults(JTree tree) { UIDefaults defaults = UIManager.getLookAndFeelDefaults(); tree.setFont(null); tree.setForeground(null); tree.setBackground(null); tree.setCellRenderer(null); } | protected void uninstallDefaults(JTree tree) { tree.setFont(null); tree.setForeground(null); tree.setBackground(null); tree.setCellRenderer(null); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.