rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
for (int i = 0; i < value0.length; i++)
for (int i = 0; i < paths.length; i++)
public void removeSelectionPaths(TreePath[] value0) { if (value0 != null) { int index = -1; TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (isPathSelected(v0)) { for (int x = 0; x < selection.length; x++) { if (selection[i].equals(v0)) { in...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/DefaultTreeSelectionModel.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java
v0 = value0[i];
v0 = paths[i];
public void removeSelectionPaths(TreePath[] value0) { if (value0 != null) { int index = -1; TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (isPathSelected(v0)) { for (int x = 0; x < selection.length; x++) { if (selection[i].equals(v0)) { in...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/DefaultTreeSelectionModel.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java
leadPath, value0[0]));
leadPath, paths[0]));
public void removeSelectionPaths(TreePath[] value0) { if (value0 != null) { int index = -1; TreePath v0 = null; for (int i = 0; i < value0.length; i++) { v0 = value0[i]; if (isPathSelected(v0)) { for (int x = 0; x < selection.length; x++) { if (selection[i].equals(v0)) { in...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/DefaultTreeSelectionModel.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java
public void setRowMapper(RowMapper value0)
public void setRowMapper(RowMapper rowMapper)
public void setRowMapper(RowMapper value0) { // TODO }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/DefaultTreeSelectionModel.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java
public void setSelectionPaths(TreePath[] value0)
public void setSelectionPaths(TreePath[] paths)
public void setSelectionPaths(TreePath[] value0) { // TODO }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b0819f69fb87c25602911abcc49016c8e9b9db5d/DefaultTreeSelectionModel.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java
public Rectangle getTabBounds(JTabbedPane pane, int index) {
public Rectangle getTabBounds(JTabbedPane pane, int index) {
public Rectangle getTabBounds(JTabbedPane pane, int index) { Rectangle result = null; Iterator iterator = uis.iterator(); // first UI delegate provides the return value if (iterator.hasNext()) { TabbedPaneUI ui = (TabbedPaneUI) iterator.next(); result = ui.getTabBounds(pane, index); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01bcf1d981a0d2c2251fcc9f4417c2f3b3c93627/MultiTabbedPaneUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/multi/MultiTabbedPaneUI.java
public int getTabRunCount(JTabbedPane pane) {
public int getTabRunCount(JTabbedPane pane) {
public int getTabRunCount(JTabbedPane pane) { int result = 0; Iterator iterator = uis.iterator(); // first UI delegate provides the return value if (iterator.hasNext()) { TabbedPaneUI ui = (TabbedPaneUI) iterator.next(); result = ui.getTabRunCount(pane); } // return values from...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01bcf1d981a0d2c2251fcc9f4417c2f3b3c93627/MultiTabbedPaneUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/multi/MultiTabbedPaneUI.java
public int tabForCoordinate(JTabbedPane pane, int x, int y) {
public int tabForCoordinate(JTabbedPane pane, int x, int y) {
public int tabForCoordinate(JTabbedPane pane, int x, int y) { int result = 0; Iterator iterator = uis.iterator(); // first UI delegate provides the return value if (iterator.hasNext()) { TabbedPaneUI ui = (TabbedPaneUI) iterator.next(); result = ui.tabForCoordinate(pane, x, y); } ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/01bcf1d981a0d2c2251fcc9f4417c2f3b3c93627/MultiTabbedPaneUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/multi/MultiTabbedPaneUI.java
entryBytes = readManifestEntry(super.getEntry(entry));
ZipEntry e = super.getEntry(entry); if (e == null) { if (DEBUG) debug("verifyHashes: no entry '" + entry + "'"); return false; } entryBytes = readManifestEntry(e);
private boolean verifyHashes(String entry, Attributes attr) { int verified = 0; // The bytes for ENTRY's manifest entry, which are signed in the // signature file. byte[] entryBytes = null; try { entryBytes = readManifestEntry(super.getEntry(entry)); } catch (IOException ioe) ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b12e4b97d99b73f08ccf219bf0a3ffe50371c94a/JarFile.java/clean/core/src/classpath/java/java/util/jar/JarFile.java
IIOAttr attr = (IIOAttr)it.next();
IIOMetadataNodeAttr attr = (IIOMetadataNodeAttr)it.next();
public Node cloneNode(boolean deep) { IIOMetadataNode newnode = new IIOMetadataNode(name); newnode.parent = null; newnode.obj = obj; if (deep) { for (int i=0; i < children.size(); i++) newnode.children.add(((Node)children.get(i)).cloneNode(deep)); } // clone attrs for (Iterato...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bd498c30e250a0c0f87a82da5c5dbb94748e518a/IIOMetadataNode.java/buggy/core/src/classpath/javax/javax/imageio/metadata/IIOMetadataNode.java
throw new Error("not implemented");
return Element.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;
public short compareDocumentPosition(Node other) throws DOMException { throw new Error("not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bd498c30e250a0c0f87a82da5c5dbb94748e518a/IIOMetadataNode.java/buggy/core/src/classpath/javax/javax/imageio/metadata/IIOMetadataNode.java
return new IIOAttr(name, val, this);
return new IIOMetadataNodeAttr(this, name, val);
public Attr getAttributeNode(String name) { String val = getAttribute(name); if (val != null) return new IIOAttr(name, val, this); return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bd498c30e250a0c0f87a82da5c5dbb94748e518a/IIOMetadataNode.java/buggy/core/src/classpath/javax/javax/imageio/metadata/IIOMetadataNode.java
throw new Error("not implemented");
return null;
public String getBaseURI() { throw new Error("not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bd498c30e250a0c0f87a82da5c5dbb94748e518a/IIOMetadataNode.java/buggy/core/src/classpath/javax/javax/imageio/metadata/IIOMetadataNode.java
throw new Error("not implemented");
return null;
public Object getFeature(String feature, String version) { throw new Error("not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bd498c30e250a0c0f87a82da5c5dbb94748e518a/IIOMetadataNode.java/buggy/core/src/classpath/javax/javax/imageio/metadata/IIOMetadataNode.java
throw new Error("not implemented");
return null;
public TypeInfo getSchemaTypeInfo() { throw new Error("not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bd498c30e250a0c0f87a82da5c5dbb94748e518a/IIOMetadataNode.java/buggy/core/src/classpath/javax/javax/imageio/metadata/IIOMetadataNode.java
throw new Error("not implemented");
return null;
public String getTextContent() throws DOMException { throw new Error("not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bd498c30e250a0c0f87a82da5c5dbb94748e518a/IIOMetadataNode.java/buggy/core/src/classpath/javax/javax/imageio/metadata/IIOMetadataNode.java
throw new Error("not implemented");
return null;
public Object getUserData(String key) { throw new Error("not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bd498c30e250a0c0f87a82da5c5dbb94748e518a/IIOMetadataNode.java/buggy/core/src/classpath/javax/javax/imageio/metadata/IIOMetadataNode.java
throw new Error("not implemented");
return true;
public boolean isDefaultNamespace(String namespaceURI) { throw new Error("not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bd498c30e250a0c0f87a82da5c5dbb94748e518a/IIOMetadataNode.java/buggy/core/src/classpath/javax/javax/imageio/metadata/IIOMetadataNode.java
throw new Error("not implemented");
return true;
public boolean isEqualNode(Node arg) { throw new Error("not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bd498c30e250a0c0f87a82da5c5dbb94748e518a/IIOMetadataNode.java/buggy/core/src/classpath/javax/javax/imageio/metadata/IIOMetadataNode.java
throw new Error("not implemented");
return null;
public String lookupNamespaceURI(String prefix) { throw new Error("not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bd498c30e250a0c0f87a82da5c5dbb94748e518a/IIOMetadataNode.java/buggy/core/src/classpath/javax/javax/imageio/metadata/IIOMetadataNode.java
throw new Error("not implemented");
return null;
public String lookupPrefix(String namespaceURI) { throw new Error("not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bd498c30e250a0c0f87a82da5c5dbb94748e518a/IIOMetadataNode.java/buggy/core/src/classpath/javax/javax/imageio/metadata/IIOMetadataNode.java
attrs.put(name, new IIOAttr(name, value, this));
attrs.put(name, new IIOMetadataNodeAttr(this, name, value));
public void setAttribute(String name, String value) { Attr attr = (Attr) getAttributeNode(name); if (attr != null) attr.setValue(value); else attrs.put(name, new IIOAttr(name, value, this)); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bd498c30e250a0c0f87a82da5c5dbb94748e518a/IIOMetadataNode.java/buggy/core/src/classpath/javax/javax/imageio/metadata/IIOMetadataNode.java
throw new Error("not implemented");
public void setIdAttribute(String name, boolean isId) throws DOMException { throw new Error("not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bd498c30e250a0c0f87a82da5c5dbb94748e518a/IIOMetadataNode.java/buggy/core/src/classpath/javax/javax/imageio/metadata/IIOMetadataNode.java
throw new Error("not implemented");
public void setIdAttributeNS(String namespaceURI, String localName, boolean isId) throws DOMException { throw new Error("not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bd498c30e250a0c0f87a82da5c5dbb94748e518a/IIOMetadataNode.java/buggy/core/src/classpath/javax/javax/imageio/metadata/IIOMetadataNode.java
throw new Error("not implemented");
public void setIdAttributeNode(Attr idAttr, boolean isId) throws DOMException { throw new Error("not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bd498c30e250a0c0f87a82da5c5dbb94748e518a/IIOMetadataNode.java/buggy/core/src/classpath/javax/javax/imageio/metadata/IIOMetadataNode.java
throw new Error("not implemented");
public void setTextContent(String textContent) throws DOMException { throw new Error("not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bd498c30e250a0c0f87a82da5c5dbb94748e518a/IIOMetadataNode.java/buggy/core/src/classpath/javax/javax/imageio/metadata/IIOMetadataNode.java
throw new Error("not implemented");
return null;
public Object setUserData(String key, Object data, UserDataHandler handler) { throw new Error("not implemented"); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bd498c30e250a0c0f87a82da5c5dbb94748e518a/IIOMetadataNode.java/buggy/core/src/classpath/javax/javax/imageio/metadata/IIOMetadataNode.java
AccessibleAWTCheckBox ac = new AccessibleAWTCheckBox();
AccessibleAWTCheckbox ac = new AccessibleAWTCheckbox();
public AccessibleContext getAccessibleContext(){ /* Create the context if this is the first request */ if (accessibleContext == null) { AccessibleAWTCheckBox ac = new AccessibleAWTCheckBox(); accessibleContext = ac; addItemListener(ac); } return accessibleContext;}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/054e1190f52096b0d4a2126fdefac7d16939c8ad/Checkbox.java/clean/core/src/classpath/java/java/awt/Checkbox.java
public Component getComponent()
public final Component getComponent()
public Component getComponent() { return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/ComponentView.java/buggy/core/src/classpath/javax/javax/swing/text/ComponentView.java
throws NotImplementedException
public void actionPerformed(ActionEvent ae) throws NotImplementedException { // TODO: Implement this properly. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
if (scrollBar == null || !scrollBar.getValueIsAdjusting()) { if (timer != null) timer.stop(); updateSize(); timer = null; scrollBar = null; }
public void actionPerformed(ActionEvent ae) throws NotImplementedException { // TODO: Implement this properly. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
throws NotImplementedException
public void componentMoved(ComponentEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
if (timer == null) { JScrollPane scrollPane = getScrollPane(); if (scrollPane == null) updateSize(); else { scrollBar = scrollPane.getVerticalScrollBar(); if (scrollBar == null || !scrollBar.getValueIsAdjusting()) { scrollBar = scrollPane.getHorizontalScrollBar(); if (scrollBar != null && scrollBar.getValueIsAdjust...
public void componentMoved(ComponentEvent e) throws NotImplementedException { // TODO: What should be done here, if anything? }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
throws NotImplementedException
protected JScrollPane getScrollPane() throws NotImplementedException { // FIXME: Not implemented. return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
return null;
JScrollPane found = null; Component p = tree.getParent(); while (p != null && !(p instanceof JScrollPane)) p = p.getParent(); if (p instanceof JScrollPane) found = (JScrollPane) p; return found;
protected JScrollPane getScrollPane() throws NotImplementedException { // FIXME: Not implemented. return null; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
throws NotImplementedException
protected void startTimer() throws NotImplementedException { // TODO: Implement this properly. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
if (timer == null) { timer = new Timer(200, this); timer.setRepeats(true); } timer.start();
protected void startTimer() throws NotImplementedException { // TODO: Implement this properly. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
if (startEditTimer != null)
if (tree != null && tree.isEnabled())
public void mousePressed(MouseEvent e) { // Any mouse click cancels the previous waiting edit action, initiated // by the single click on the selected node. if (startEditTimer != null) { startEditTimer.stop(); startEditTimer = null; } Point click = e.getP...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
startEditTimer.stop(); startEditTimer = null; }
if (isEditing(tree) && tree.getInvokesStopCellEditing() && !stopEditing(tree)) return;
public void mousePressed(MouseEvent e) { // Any mouse click cancels the previous waiting edit action, initiated // by the single click on the selected node. if (startEditTimer != null) { startEditTimer.stop(); startEditTimer = null; } Point click = e.getP...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
Point click = e.getPoint(); TreePath path = getClosestPathForLocation(tree, click.x, click.y);
int x = e.getX(); int y = e.getY(); TreePath path = getClosestPathForLocation(tree, x, y);
public void mousePressed(MouseEvent e) { // Any mouse click cancels the previous waiting edit action, initiated // by the single click on the selected node. if (startEditTimer != null) { startEditTimer.stop(); startEditTimer = null; } Point click = e.getP...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
int row = getRowForPath(tree, path);
if (SwingUtilities.isLeftMouseButton(e)) checkForClickInExpandControl(path, x, y);
public void mousePressed(MouseEvent e) { // Any mouse click cancels the previous waiting edit action, initiated // by the single click on the selected node. if (startEditTimer != null) { startEditTimer.stop(); startEditTimer = null; } Point click = e.getP...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
if (tree.isEditing() && row != editingRow) cancelEditing(tree); boolean cntlClick = isLocationInExpandControl(path, click.x, click.y); boolean isLeaf = isLeaf(row); TreeCellRenderer tcr = getCellRenderer(); Icon icon; if (isLeaf) icon = UIManager.getIcon("Tree.leafIcon"); else if (tree.isExpanded(path)) icon = UIMa...
if (x > bounds.x && x <= (bounds.x + bounds.width))
public void mousePressed(MouseEvent e) { // Any mouse click cancels the previous waiting edit action, initiated // by the single click on the selected node. if (startEditTimer != null) { startEditTimer.stop(); startEditTimer = null; } Point click = e.getP...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
final TreePath editPath = path; if (startEditTimer != null) startEditTimer.stop(); startEditTimer = new Timer(WAIT_TILL_EDITING, new ActionListener() { public void actionPerformed(ActionEvent e) { startEditing(editPath, EDIT); } }); startEditTimer.setRepeats(false); startEditTimer.start(); } else { if (e.getClickCou...
if (! startEditing(path, e))
public void mousePressed(MouseEvent e) { // Any mouse click cancels the previous waiting edit action, initiated // by the single click on the selected node. if (startEditTimer != null) { startEditTimer.stop(); startEditTimer = null; } Point click = e.getP...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
if (cntlClick) { handleExpandControlClick(path, click.x, click.y); if (cellEditor != null) cellEditor.cancelCellEditing(); tree.scrollPathToVisible(path); } else if (tree.isEditable()) startEditing(path, e); }
public void mousePressed(MouseEvent e) { // Any mouse click cancels the previous waiting edit action, initiated // by the single click on the selected node. if (startEditTimer != null) { startEditTimer.stop(); startEditTimer = null; } Point click = e.getP...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
treeModel = tree.getModel(); treeModel.addTreeModelListener(treeModelListener);
setModel(tree.getModel()); } else if (property.equals(JTree.CELL_RENDERER_PROPERTY)) { setCellRenderer(tree.getCellRenderer()); if (treeState != null) treeState.invalidateSizes();
public void propertyChange(PropertyChangeEvent event) { String property = event.getPropertyName(); if (property.equals(JTree.ROOT_VISIBLE_PROPERTY)) { validCachedPreferredSize = false; treeState.setRootVisible(tree.isRootVisible()); tree.repaint(); } else i...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
public TreeHomeAction(int direction, String name) throws NotImplementedException
public TreeHomeAction(int dir, String name)
public TreeHomeAction(int direction, String name) throws NotImplementedException { // TODO: Implement this properly }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
direction = dir; putValue(Action.NAME, name);
public TreeHomeAction(int direction, String name) throws NotImplementedException { // TODO: Implement this properly }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
throws NotImplementedException
public void actionPerformed(ActionEvent e) throws NotImplementedException { // TODO: Implement this properly }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
if (tree != null) { String command = (String) getValue(Action.NAME); if (command.equals("selectFirst")) { ensureRowsAreVisible(0, 0); tree.setSelectionInterval(0, 0); } if (command.equals("selectFirstChangeLead")) { ensureRowsAreVisible(0, 0); tree.setLeadSelectionPath(getPathForRow(tree, 0)); } if (command.equals("sel...
public void actionPerformed(ActionEvent e) throws NotImplementedException { // TODO: Implement this properly }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
throws NotImplementedException
public boolean isEnabled() throws NotImplementedException { // TODO: Implement this properly return false; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
return false;
return (tree != null) && tree.isEnabled();
public boolean isEnabled() throws NotImplementedException { // TODO: Implement this properly return false; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
public TreeIncrementAction(int direction, String name) throws NotImplementedException
public TreeIncrementAction(int dir, String name)
public TreeIncrementAction(int direction, String name) throws NotImplementedException { // TODO: Implement this properly }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
direction = dir; putValue(Action.NAME, name);
public TreeIncrementAction(int direction, String name) throws NotImplementedException { // TODO: Implement this properly }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
String command = e.getActionCommand();
String command = (String) getValue(Action.NAME);
public void actionPerformed(ActionEvent e) { TreePath currentPath = tree.getLeadSelectionPath(); int currentRow; if (currentPath != null) currentRow = treeState.getRowForPath(currentPath); else currentRow = 0; int rows = treeState.getRowCount(); int nextRow = currentRo...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
throws NotImplementedException
public boolean isEnabled() throws NotImplementedException { // TODO: Implement this properly return false; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
return false;
return (tree != null) && tree.isEnabled();
public boolean isEnabled() throws NotImplementedException { // TODO: Implement this properly return false; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
putValue(Action.NAME, name);
public TreePageAction(int direction, String name) { this.direction = direction; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
throws NotImplementedException
public void actionPerformed(ActionEvent e) throws NotImplementedException { // TODO: Implement this properly. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
String command = (String) getValue(Action.NAME); boolean extendSelection = command.equals("scrollUpExtendSelection") || command.equals("scrollDownExtendSelection"); boolean changeSelection = command.equals("scrollUpChangeSelection") || command.equals("scrollDownChangeSelection"); if (!extendSelection && !changeSelect...
public void actionPerformed(ActionEvent e) throws NotImplementedException { // TODO: Implement this properly. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
throws NotImplementedException
public boolean isEnabled() throws NotImplementedException { // FIXME: Not implemented. return false; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
return false;
return (tree != null) && tree.isEnabled();
public boolean isEnabled() throws NotImplementedException { // FIXME: Not implemented. return false; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
putValue(Action.NAME, name);
public TreeToggleAction(String name) { // Nothing to do here. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
throws NotImplementedException
public void actionPerformed(ActionEvent e) throws NotImplementedException { // TODO: Implement this properly. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
int selected = tree.getLeadSelectionRow(); if (selected != -1 && isLeaf(selected)) { TreePath anchorPath = tree.getAnchorSelectionPath(); TreePath leadPath = tree.getLeadSelectionPath(); toggleExpandState(getPathForRow(tree, selected)); tree.setLeadSelectionPath(leadPath); tree.setAnchorSelectionPath(anchorPath); }
public void actionPerformed(ActionEvent e) throws NotImplementedException { // TODO: Implement this properly. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
throws NotImplementedException
public boolean isEnabled() throws NotImplementedException { // FIXME: Not implemented. return false; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
return false;
return (tree != null) && tree.isEnabled();
public boolean isEnabled() throws NotImplementedException { // FIXME: Not implemented. return false; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
putValue(Action.NAME, name);
public TreeTraverseAction(int direction, String name) { this.direction = direction; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
if (e.getActionCommand().equals("selectParent"))
String command = (String) getValue(Action.NAME); if (command.equals("selectParent"))
public void actionPerformed(ActionEvent e) { TreePath current = tree.getLeadSelectionPath(); if (current == null) return; if (e.getActionCommand().equals("selectParent")) { if (current == null) return; if (tree.isExpanded(current)) { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
else if (e.getActionCommand().equals("selectChild"))
else if (command.equals("selectChild"))
public void actionPerformed(ActionEvent e) { TreePath current = tree.getLeadSelectionPath(); if (current == null) return; if (e.getActionCommand().equals("selectParent")) { if (current == null) return; if (tree.isExpanded(current)) { ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
throws NotImplementedException
public boolean isEnabled() throws NotImplementedException { // TODO: Implement this properly return false; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
return false;
return (tree != null) && tree.isEnabled();
public boolean isEnabled() throws NotImplementedException { // TODO: Implement this properly return false; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
propertyChangeListener = createPropertyChangeListener(); focusListener = createFocusListener(); treeSelectionListener = createTreeSelectionListener(); mouseListener = createMouseListener(); keyListener = createKeyListener(); selectionModelPropertyChangeListener = createSelectionModelPropertyChangeListener(); componentL...
public BasicTreeUI() { validCachedPreferredSize = false; drawingCache = new Hashtable(); nodeDimensions = createNodeDimensions(); configureLayoutCache(); propertyChangeListener = createPropertyChangeListener(); focusListener = createFocusListener(); treeSelectionListener = createTreeSelectionLis...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
toggleExpandState(path);
handleExpandControlClick(path, mouseX, mouseY);
protected void checkForClickInExpandControl(TreePath path, int mouseX, int mouseY) { if (isLocationInExpandControl(path, mouseX, mouseY)) toggleExpandState(path); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
throws NotImplementedException
protected void completeUIInstall() throws NotImplementedException { // TODO: Implement this properly. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
setShowsRootHandles(tree.getShowsRootHandles()); updateRenderer(); updateDepthOffset(); setSelectionModel(tree.getSelectionModel()); treeState = createLayoutCache(); treeSelectionModel.setRowMapper(treeState); configureLayoutCache(); updateSize();
protected void completeUIInstall() throws NotImplementedException { // TODO: Implement this properly. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
throws NotImplementedException
protected void completeUIUninstall() throws NotImplementedException { // TODO: Implement this properly. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
tree = null;
protected void completeUIUninstall() throws NotImplementedException { // TODO: Implement this properly. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
if (currentCellRenderer != null) return new DefaultTreeCellEditor( tree, (DefaultTreeCellRenderer) currentCellRenderer, cellEditor); return new DefaultTreeCellEditor( tree, (DefaultTreeCellRenderer) createDefaultCellRenderer(), cellEditor);
DefaultTreeCellEditor ed; if (currentCellRenderer != null && currentCellRenderer instanceof DefaultTreeCellRenderer) ed = new DefaultTreeCellEditor(tree, (DefaultTreeCellRenderer) currentCellRenderer); else ed = new DefaultTreeCellEditor(tree, null); return ed;
protected TreeCellEditor createDefaultCellEditor() { if (currentCellRenderer != null) return new DefaultTreeCellEditor( tree, (DefaultTreeCellRenderer) currentCellRenderer, cellEditor); return...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
InputMap focusInputMap = (InputMap) UIManager.get("Tree.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); ActionMap parentActionMap = new ActionMapUIResource();
InputMap focusInputMap = (InputMap) SharedUIDefaults.get("Tree.focusInputMap"); SwingUtilities.replaceUIInputMap(tree, JComponent.WHEN_FOCUSED, focusInputMap); InputMap ancestorInputMap = (InputMap) SharedUIDefaults.get("Tree.ancestorInputMap"); SwingUtilities.replaceUIInputMap(tree, JComponent.WHEN_ANCESTOR_OF_FOCUSED...
protected void installKeyboardActions() { InputMap focusInputMap = (InputMap) UIManager.get("Tree.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); ActionMap parentActionMap = new ActionMapUIResource(); action = new TreeAction(); Object keys[] = focusInputMap.allKeys(); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
Object keys[] = focusInputMap.allKeys();
protected void installKeyboardActions() { InputMap focusInputMap = (InputMap) UIManager.get("Tree.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); ActionMap parentActionMap = new ActionMapUIResource(); action = new TreeAction(); Object keys[] = focusInputMap.allKeys(); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
for (int i = 0; i < keys.length; i++) { parentInputMap.put( KeyStroke.getKeyStroke( ((KeyStroke) keys[i]).getKeyCode(), convertModifiers(((KeyStroke) keys[i]).getModifiers())), (String) focusInputMap.get((KeyStroke) keys[i])); parentInputMap.put( KeyStroke.getKeyStroke( ((KeyStroke) keys[i]).getKeyCode(), ((KeyStroke)...
SwingUtilities.replaceUIActionMap(tree, getActionMap());
protected void installKeyboardActions() { InputMap focusInputMap = (InputMap) UIManager.get("Tree.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); ActionMap parentActionMap = new ActionMapUIResource(); action = new TreeAction(); Object keys[] = focusInputMap.allKeys(); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
parentInputMap.setParent(tree.getInputMap( JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).getParent()); parentActionMap.setParent(tree.getActionMap().getParent()); tree.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).setParent( parentInputMap); tree.getActionMap().setParent(parentActionMap); }
protected void installKeyboardActions() { InputMap focusInputMap = (InputMap) UIManager.get("Tree.focusInputMap"); InputMapUIResource parentInputMap = new InputMapUIResource(); ActionMap parentActionMap = new ActionMapUIResource(); action = new TreeAction(); Object keys[] = focusInputMap.allKeys(); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
tree.addPropertyChangeListener(selectionModelPropertyChangeListener);
selectionModelPropertyChangeListener = createSelectionModelPropertyChangeListener(); if (treeSelectionModel != null && selectionModelPropertyChangeListener != null) { treeSelectionModel.addPropertyChangeListener (selectionModelPropertyChangeListener); } componentListener = createComponentListener();
protected void installListeners() { tree.addPropertyChangeListener(propertyChangeListener); tree.addFocusListener(focusListener); tree.addTreeSelectionListener(treeSelectionListener); tree.addMouseListener(mouseListener); tree.addKeyListener(keyListener); tree.addPropertyChangeListener(selectionMod...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
cellEditorListener = createCellEditorListener();
protected void installListeners() { tree.addPropertyChangeListener(propertyChangeListener); tree.addFocusListener(focusListener); tree.addTreeSelectionListener(treeSelectionListener); tree.addMouseListener(mouseListener); tree.addKeyListener(keyListener); tree.addPropertyChangeListener(selectionMod...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
treeModel = tree.getModel();
public void installUI(JComponent c) { tree = (JTree) c; treeModel = tree.getModel(); prepareForUIInstall(); super.installUI(c); installDefaults(); installComponents(); installKeyboardActions(); installListeners(); setCellEditor(createDefaultCellEditor()); createdCellEditor = true; is...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
super.installUI(c);
public void installUI(JComponent c) { tree = (JTree) c; treeModel = tree.getModel(); prepareForUIInstall(); super.installUI(c); installDefaults(); installComponents(); installKeyboardActions(); installListeners(); setCellEditor(createDefaultCellEditor()); createdCellEditor = true; is...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
setCellEditor(createDefaultCellEditor()); createdCellEditor = true; isEditing = false; setModel(tree.getModel()); treeSelectionModel = tree.getSelectionModel(); setRootVisible(tree.isRootVisible()); treeState.setRootVisible(tree.isRootVisible()); updateExpandedDescendants(new TreePath(new Object[] { treeModel.getRoot...
public void installUI(JComponent c) { tree = (JTree) c; treeModel = tree.getModel(); prepareForUIInstall(); super.installUI(c); installDefaults(); installComponents(); installKeyboardActions(); installListeners(); setCellEditor(createDefaultCellEditor()); createdCellEditor = true; is...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
int row = getRowForPath(tree, path); if (! isLeaf(row))
if (! treeModel.isLeaf(path.getLastPathComponent()))
protected boolean isLocationInExpandControl(TreePath path, int mouseX, int mouseY) { boolean cntlClick = false; int row = getRowForPath(tree, path); if (! isLeaf(row)) { Rectangle bounds = getPathBounds(tree, path); if (hasControlIcons() ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
Rectangle bounds = getPathBounds(tree, path);
int width = 8; Icon expandedIcon = getExpandedIcon(); if (expandedIcon != null) width = expandedIcon.getIconWidth();
protected boolean isLocationInExpandControl(TreePath path, int mouseX, int mouseY) { boolean cntlClick = false; int row = getRowForPath(tree, path); if (! isLeaf(row)) { Rectangle bounds = getPathBounds(tree, path); if (hasControlIcons() ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
if (hasControlIcons() && (mouseX < bounds.x) && (mouseX > (bounds.x - getCurrentControlIcon(path).getIconWidth() - gap))) cntlClick = true;
Insets i = tree.getInsets(); int left = getRowX(tree.getRowForPath(path), path.getPathCount() - 1) -getRightChildIndent() - width / 2 + i.left; cntlClick = mouseX >= left && mouseX <= left + width;
protected boolean isLocationInExpandControl(TreePath path, int mouseX, int mouseY) { boolean cntlClick = false; int row = getRowForPath(tree, path); if (! isLeaf(row)) { Rectangle bounds = getPathBounds(tree, path); if (hasControlIcons() ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
throws NotImplementedException
protected boolean isToggleEvent(MouseEvent event) throws NotImplementedException { // FIXME: Not implemented. return true; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
return true;
boolean toggle = false; if (SwingUtilities.isLeftMouseButton(event)) { int clickCount = tree.getToggleClickCount(); if (clickCount > 0 && event.getClickCount() == clickCount) toggle = true; } return toggle;
protected boolean isToggleEvent(MouseEvent event) throws NotImplementedException { // FIXME: Not implemented. return true; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
throws NotImplementedException
protected void prepareForUIInstall() throws NotImplementedException { // TODO: Implement this properly. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
lastSelectedRow = -1; preferredSize = new Dimension(); largeModel = tree.isLargeModel(); preferredSize = new Dimension(); setModel(tree.getModel());
protected void prepareForUIInstall() throws NotImplementedException { // TODO: Implement this properly. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
throws NotImplementedException
protected void prepareForUIUninstall() throws NotImplementedException { // TODO: Implement this properly. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
protected void prepareForUIUninstall() throws NotImplementedException { // TODO: Implement this properly. }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
tree.setAnchorSelectionPath(path);
if (isToggleEvent(event)) toggleExpandState(path);
protected void selectPathForEvent(TreePath path, MouseEvent event) { if (isToggleSelectionEvent(event)) { // The event selects or unselects the clicked row. if (tree.isPathSelected(path)) tree.removeSelectionPath(path); else { tree.addSelectionPath(path); ...
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
tree.setModel(model);
completeEditing(); if (treeModel != null && treeModelListener != null) treeModel.removeTreeModelListener(treeModelListener);
protected void setModel(TreeModel model) { tree.setModel(model); treeModel = tree.getModel(); treeState.setModel(treeModel); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
updateLayoutCacheExpandedNodes(); updateSize(); }
protected void setModel(TreeModel model) { tree.setModel(model); treeModel = tree.getModel(); treeState.setModel(treeModel); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java
tree.setShowsRootHandles(newValue);
completeEditing(); updateDepthOffset(); if (treeState != null) { treeState.invalidateSizes(); updateSize(); }
protected void setShowsRootHandles(boolean newValue) { tree.setShowsRootHandles(newValue); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/53983e95556bf4b775130b06570aa2ea08d85628/BasicTreeUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java